http://thebigboss.org/moreinfo/AptBackup.php
วิธีใช้โปรแกรม AptBackup [backup โปรแกรมจาก cydia ครับ]
โปรแกรมนี้เป็นการค้นพบ โดยบังเอิญของผมครับ
โปรแกรมนี้ สามารถ backup source จาก cydia
และยังสามารถ back app,theme[ที่ลงจากcydia] ได้อีกด้วย
โปรแกรมนี้ชื่อว่า AptBackup ครับ
รายละเอียดโปรแกรมครับ :
สำหรับ ท่านที่คุ้นเคยกับ Cydia มาตั้งแต่ไอโฟนเฟิร์มแวร์ 1.x อาจจะคุ้นเคยกับวิธี backup และ restore โปรแกรมต่างๆ ที่ติดตั้งผ่าน Cydia Package โดย command line กันไปบ้างแล้ว สำหรับหลายท่าน ที่ไม่คุ้นเคยกับ command line และการพิมพ์คำสั่ง ที่มีสัญลักษณ์เยอะๆ ก็คงจะรู้สึกว่ายุ่งยากพอสมควร ล่าสุดคุณ Chris Featherstone ก็ได้พัฒนาโปรแกรม AptBackup นี้ขึ้นมา โดยหลักการ ก็คือการสร้าง list โปรแกรมที่ติดตั้งผ่าน Cydia รวมถึง package sources ต่างๆ ออกมาเป็นไฟล์ แล้วเก็บเอาไว้ในข้อมูลของไอโฟน เวลาที่ทำการ backup iPhone/iPod touch ด้วยโปรแกรม iTunes ก็จะมีการรวมเอาไฟล์ดังกล่าวเข้าไปด้วย หากมีการ restore หรือ update firmware แล้วทำการ restore data ที่ได้ backup ไว้กลับมา ไฟล์ดังกล่าว ก็จะกลับมาด้วย เพียงแค่รันโปรแกรมนี้ ก็จะทำการดาวน์โหลดและติดตั้งโปรแกรมตามรายการทั้งหมดทันที แต่มีข้อแม้ตรงที่สามารถ restore ข้อมูลดังกล่าว ภายหลังจาก Restore data จาก iTunes เท่านั้นครับ ไม่สามารถสั่ง restore ในสภาวะปกติครับ
Name: AptBackup
Version: 1.1-3
Size: 43 kB
License: ฟรี
Install: Cydia (source: BigBoss)
รายละเอียดโปรแกรมจาก thaiiphoneclub.com
มาเริ่มกันเลยครับ
1.ลง openSSH จาก cydia ครับ[ส่วนมากcydia จะลงไว้ตั้งแต่แรกอยู่แล้วครับ ถ้าลงแล้วก็ข้ามไปเลย]
2.ลงโปรแกรม AptBackup จาก source bigboss ครับ ไม่ต้อง add อะไรทั้งนั้นครับ เพราะ source bigboss มีตั้งแต่แรกอยู่แล้วครับ
3.หลังจากลงเสร็จ เข้าโปรแกรม AptBackup
4.กด backup ด้านในโปรแกรมครับ รอมัน back up ดังรูปครับ
5.ใช้โปรแกรม จัดการไฟล์ ไป back up ไฟล์
โดยเข้าไปที่ ~/var/mobile/Library/Preferences
backup ไฟล์ดังนี้ครับ
1. aptbackup.cydiasources.tgz
2. aptbackup_dpkg-packages.txt
3. aptbackup_openssh.tgz
6. เปิด itune ขึ้นมาครับ sync iphone ให้ itune backup ให้เสร็จครับ ถ้ากลัวมันไม่ backup ให้ไปคลิกขวาที่ตัว iphone แล้ว กด back up ครับ
7.Restore original Firmware ตามที่ต้องการครับ ย้ำoriginal Firmware นะครับครับ ห้ามใช้ custom firmware ครับ ถ้าใช้ Custom Firmware ตอน restore อาจมีปัญหาได้ครับ
8.Jailbreak ให้เรียบร้อยโดยใช้ QuickPWN ครับ
9.หลัง jailbreak เสร็จ ไปที่ cydia
ลงโปรแกรมดังนี้
1.openSSH
2.Aptbackup
3.Sbsetting หรือ Bosspref
4.Five Icon Dock [ข้อ4 นี้ เอาไว้กรณีที่ ก่อน เรา restore เราได้ใช้ five icon dock อยู่แล้ว ถ้าเราไม่เคยใช้ตั้งแต่แรกก็ไม่ต้องลงครับ]
10. กด restore from backup ที่ backup ไว้ครั้งล่าสุดกับ itune ครับ
11. หลังจาก restore from backup เสร็จให้เข้าไปที่ AptBackup แล้วกด restore ในโปรแกรมครับ จะเป็นดังภาพ
12. เสร็จแล้ว มันก็จะกลับมาเป็นแบบเดิมครับเหมือนก่อนเรา restore ครับ
ถ้า ก่อนเรา restore เราได้ใช้โปรแกรม Categories จัดหมวดหมู่ Apps ไว้ หลังจากขั้นตอนที่ 11 ให้ ไปที่ Sbsetting หรือ Bosspref ไป ตั้งให้ Icon ที่ Hide อยู่ จาก Off –>> On ซะนะครับ
หมายเหตุ ถ้า กด restore ดังขั้นตอนที่ 11 แล้ว มันไม่ยอม back up กลับให้เป็นแบบเดิม ให้ทำดังนี้ครับ
1.ลง OpenSSH จาก cydia
2.ใช้โปรแกรมจัดการไฟล์เข้าไปที่ ~/var/mobile/Library/Preferences
ให้ เอาไฟล์ 3ไฟล์ ที่ back up ไว้ตอนแรกที่มีชื่อ ดังนี้
1. aptbackup.cydiasources.tgz
2. aptbackup_dpkg-packages.txt
3. aptbackup_openssh.tgz
มาใส่ครับ
3. จากนั้นเข้าไปที่โปรแกรม AptBackup อีกที แล้วกด restoreด้านในโปรแกรมครับ
แค่นี้ก็เรียบร้อยครับ ลองเอาไปใช้ดูนะครับ
http://me.srwz.us/iphone/appbackup
Backup Location
Backups are stored in /var/mobile/Library/Preferences/AppBackup/tarballs as files called bundleid.tar.gz, where bundleid is a given app’s bundle identifier (e.g. com.ooi.supermonkeyball). These files are regular gzip-compressed tar archives and can be opened with any program capable of viewing them (e.g. 7-zip on Windows). Backup times are stored in an XML property list at /var/mobile/Library/Preferences/AppBackup/backuptimes.plist as Unix timestamps.
If you want to “backup the backups,” you should back up the entire /var/mobile/Library/Preferences/AppBackup directory tree.
วันศุกร์ที่ 21 มกราคม พ.ศ. 2554
วันพุธที่ 19 มกราคม พ.ศ. 2554
iATKOS_S3 version 2 Dell 1525
Though not without some issues...
I'm choosing broadcom for wireless, Graphics Enabler, Chameleon v2 RC4, AHCI SATA, Voodoo PS2, Voodoo P-state, Battery, Card Reader, TSC Sync.
The thing that got it booted for me was disabling RTC. Once I did that, it came right up. At first the camera, track pad, and sound didn't work, but after I applied the "available updates" via the generic os updates pop-up, I was golden (everything worked).
On the sound, I did have to go into the sound settings and switch it to external speaker. The sound is a little more quiet than in my Linux and Win7, but it seems to work fine. Haven't found a way to boost the volume.
If u ever had welcome screen loops after succes installation hackintosh. U should try this.
Boot with “-s” no quotes
http://antyalias.com/2009/06/welcome-screen-loop-after-installation-hackintosh/
type “/sbin/fsck -fy” and then press enter
type “/sbin/mount -uw /” and then press enter
type “passwd root ##” and press enter
you will know be prompted to put in your password twice. Do so and press enter.
type “touch /var/db/.AppleSetupDone and press enter
type “exit” and press enter. you will now be booted into Leopard.
http://antyalias.wordpress.com/2009/05/27/hackintosh-10-5-7-running-on-dell-inspiron-1525/
Go get iPC 105.6 PFF 6 on torrent or whatever or simply can be found here. Burn iso with slower speed.
Download Driver Dell 1525 updated version here (Updated 27 May 2009) and save to flash usb drive.
Download Mac OS X Update 10.5.7 on apple site or download here. save to flash usb drive as well.
As usual boot from DVD and press F8, type -v. lets messy text appear to see the code running.
Open Disk Utility and format your drive to Macintosh Extended Jounal and name it for example Macintosh HD. Erase and next
View option Customize and select only this package
Install and Restart. Remove CD
boot hard drive. your screen will blank after apple logo dissappear. dont panic take a breathe for 1 minute
unplug your power cable. close lid screen. wait until hard drive idle (mean no fast blinking). then open back lid screen. your screen desktop will appear. dont waste your time. setup your information.
Drag copy dell driver and 10.5.7 updates on your flash usb to desktop.
open sleep trick folder / dsdt.aml drag to Macintosh HD. this fix display blank on gma x3100. no close lid if screen blank anymore.
Install chameleon for fake boot interface. Restart.
Install 10.5.7 updates on your desktop. open disk utility and repair permission. Restart.
Install other kext and package inside dell driver pack.
install Wifi broadcom package
install Power Management
Audio. Drag 1525_Codec to AppleHDAPatcher_v1.16
Install samba. if you want to sharing with windows file.
Install SD Card Reader using kext helper.
Open disk utility. Repair disk permission. Restart.
Ok thats it. i will update video installation soon. Happy enjoying your hackintosh.
Checkout my latest post http://antyalias.wordpress.com/2009/10/03/dell-1525-snow-leopard-10a432-10-6-retail-single-usb-method/
http://antyalias.com/2009/02/how-to-install-1056-on-dell-1525-ideneb-v14/#comments
On this tutorial i will guide u how to install 10.5.6 iDeneb on dell 1525 based on my experience. this guide i wrote for reference to dell 1525 hackintosh fan included me too . here following test worked on my dell 1525.
Wifi. works as aiport
Card reader. No need to run windows anymore to get works
Graphic GMA 3100. works without install any kext. Built in on iDeneb
Battery Life. Need to patch but works like charm.
Samba windows sharing. works perfectly.
Webcam works on iChat. never tested on other application.
Sleep trick works no need to move cursor to the corner.
Before we started Please read changelog here.
1. Go boot CD/DVD to installer. and press F8 to view option. type -v and press return. wait till installer menu appear.
2. Got to Disk Utility and make partition for macos extended journal. On my dell, i only make 2 partion 1st for macos extended journal named as Macintosh and 2nd for window partition fat32 named as u wish. after complete. close and next. Select Partition mac os and next.
3. You will see button customize. and click there. the list of package will shown up. be carefull to select. if ur setting goes wrong. u will never get it works. for my setting i only checked
ICHx Fixed
Network wifi Broadcom 43xx
FireWire Remove
IOUSBFamilyFix (i think this fix not working for me)
kexthelper if something need patch after install
and the rest leave that unchecked. we will install later.
4. then install. u can go to make some coffee and wait till complete. if u follow my setting around 10-15 minutes the installation will be complete.
5. restart ur pc and remove cd installer. press F8 and type -v and press return to see if anything goes wrong.
6. u will see blue screen few second and screen goes blank. dont panic. unplug your plug cable and close your lid screen. wait around 15 minutes. u have to be patient this time. i got experience 15 times format because of this blank screen. keep drink ur coffee u made just now.
7. open lid screen back u will see setup screen. if not, repeat step 5. above. fill ur information and Tada!!! u will see desktop screen. lets see now ur wifi works as airport.
8. go to system preferences and go to expose select active corner to the sleep display. (standby this trick if ur screen goes black again).
Now its time to install other kext to get all thing works.
go download Dell 1525 Driver Here or mirror Here. Thanks to all develepor. i’m just recompile to make easier for dell 1525 user.
go to folder usb. install that dmg files. this fix error if u try mount usb or cd hang.
go to folder sleep display. copy SleepDisplay application and place to “/Users/yourcomputername/ “. Then go to your system preferences. account. login items and add application SleepDisplay that u place just now and tick hide. this fix sleep display without to move cursor to the corner.
UPDATED 9/3/2009 Downlod Screen_Sleeper_Solution_Installer.pkg. Install it and reboot. u have to disable auto login on system preferences to get it works. Thanks to Skribbler
go to folder samba. and install that package. this will fix for windows sharing files.
go to folder Card Reader and open kexthelper drag IOSDHCIBlockDevice.kext to the kexthelper and run. this will fix for card reader.
go to folder ApplePS2Trackpad and drag to kexthelper and run. this fix for Trackpad.
go to folder audio. drag 1525_Codec to AppleHDAPatcher_v1.16. wait and restart. now ur audio should working.
go to folder Power Management. install Power Management 10.5.6 Fix. this fix for battery meter.
go to folder Time Machine Fix. read the instruction. i never tested yet. maybe should fix for time machine.
Here screen shot my desktop. any comment are welcome.
http://antyalias.com/2009/10/dell-1525-snow-leopard-10a432-10-6-retail-single-usb-method/
It has been long time i’m not update my blog. Today i’m going to write guide how to install retail Snow Leopard copy to Dell 1525 using usb either external hard drive or flash drive .. for DVD installation it can be found at macyourpc. Thanks to macyour pc for the helful guide, but i’m prefer to install using usb method more faster and easier to inject anything that i want to. Boot 132 also no longer needed. i’m just use chameleon boot loader to make Snow Leopard readable by dell 1525. On this guide also u can install on either MBR partition or GUID partition. No worried to lost any data on my previous MBR partition for example 1. Macintosh HD(System) 2. Data (i want keep this whole data). This method only worked on Retail 10A432 version. havent tried to other version. oke guys lets started.
Requirements
1. USB Flash Drive (8GB above) or external drive and Mac Computer or Hackintosh also considerable and your toy Dell 1525.
2. Mac OS X Snow Leopard (10A432) 10.6 Retail. u can buy from apple store or u can get here for PLAYING PURPOSE. a lot stuff there.
3. Download this Dell 1525 Snow Essential. Place to your mac desktop. What inside?
Preparation
U must did this step on Mac Computer or Hackintosh.
1. Restore installer to USB flash drive. If u dont know how to restore u can refer my previous post. carbon cloner also recommended to clone the installer, its free. Name it your USB flash drive as Snow.
2. Open Dell 1525 Snow Essential. Inject Chameleon 2 RC3 bootloader by installing to USB Drive Snow.
3. Copy All files under folder “Boot/Extra” to Folder Extra on USB Drive Snow.
To make installer recognized the MBR partition, we have to replace original OSinstall file with cracked version.
1. Open terminal type “sudo su” and insert password. copy following to terminal and press enter. It will show all hidden files on your mac.
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
2. Replace “OSInstall” file on USB Snow. read instruction inside OSInstall folder.
3. Copy “boot” file inside Boot folder and replace to USB Drive Snow directory. “boot” file inside USB Snow is hidden. u cant just replace the files by drag and drop. the simple trick without using terminal is
Move to Trash “boot” file inside USB drive snow directory.
Drag “boot” file inside boot folder Dell 1525 Snow Essential to USB drive Snow directory
Thats it. Now your hacked version snow leopard is ready.
Installation on Dell 1525
1. Boot press F2. Disable all boot sequence. save and exit.
2. Boot press F12 and select USB Flash drive and press enter. Chameleon bootloader will come up. Select USB Snow type -v -x and enter. This -x(safe mode) flag is important. i had failed many times to load the installation screen only because without -x .
3. Once your installation screen appear. do as usual. go disk utility to format partition to Mac OS Extended Journal and name it as u like. Close and Next
4. select your partition to install. this time if u are using MBR partition u are lucky no alert error will appear anymore. click customize if u want to save space, otherwise just click install. it will takes around 15minutes. after finish installation
5. restart. press F12 and once again select USB partition and chameleon shown up. Select partition installed OSX. type -v -x. after booted up Setup your information data.
Post Install
Inject all post install files to your Dellintosh. I’m not going to write this step. for the instruction follow guide from macyourpc.
Happy Enjoying!!
http://macyourpc.com/2011/01/install-mac-on-dell-inspiron-1525/
*New Guide* Mac OS X 10.6 Snow Leopard Retail Install Boot-132 Method
by GENARO BONILLA on 11. JAN, 2011 in SNOW LEOPARD GUIDES
Download: SnowBoot v1.1.iso
Step 1: Make sure you have your copy of Snow Leopard (I would highly suggest purchasing it, it’s a great price for what it offers!)
Step 2: Download SnowBoot v1.1.iso and burn it to a CD.
Step 3: Put the burned boot cd into your cd-drive and on startup at the “DELL” splash screen press “F12″ now you will be at the boot selection menu, from here wait till your activity light on your cd-drive stops blinking and boot from the disc.
Step 4: Eject the boot-132 disk and replace it with your Snow Leopard Disc and again, wait till the activity light stops blinking. Once it has stopped press “F5″ and the Install Disk will appear. Boot the disc by pressing enter. The disc will take about 5-10 min to load.
Step 5: Once in the install disk go to “Tools” from the menu bar and choose “Disk Utility.” Once you’ve gotten into the Disk Utility you have to select your hard drive and click on the partition tab and under the Volume Scheme choose 1 Partition and click “Options” and choose GPT. From this tab choose “Mac OS Extended (Journaled)” and name it Macintosh HD and click apply.
Step 6: Close Disk Utility and go through the Installer. After it is done restart and again press “F12″ and boot from the Boot-132 disc, this time select the Macintosh HD partition and again boot by pressing enter.
Step 7: Download Mac OS X 10.6.6 by clicking the following link and proceed to install it. Mac OS X v10.6.6 Update. Once you’ve done that you an restart and boot into the partition again following the same method used above. Boot into the partition using the same method that you did in Step 6.
Step 8: Now that you’ve booted into your partition open “My Boot CD” from the desktop. Navigate to the Post-Intall folder located in “My Boot CD/Extra/Post-Install” and double-click “Chameleon 2 RC3″ After this go back to the Post-Install folder and highlight “Extra” and copy the folder.. After you have copied “Extra” from the Post-Install folder open up your “Macintosh HD” and paste “Extra” by right-clicking and pressing Paste Item.
Step 9: Now Open up the Applications folder from the Post-Install folder and open “Kext Helper” now go to “Local Extensions” and Kext Helper all the files in there. (For more information on how to use Kext Helper click here.)
Step 10: Navigate back to the “Post-Install” folder and double-click the “10.6.2 – AppleHDA Installer” and follow the prompt.
Step 11: Go to “System Preferences” click “Security” then click the little lock in the bottom corner. Now uncheck “Use secure virtual memory.”
Step 12: Open up Terminal Located in “Applications/Utilities” and run the following commands one by one:
sudo -s
pmset -a hibernatemode 0
rm /private/var/vm/sleepimage
mkdir /BackupPreferencePanes
cp -R /System/Library/PreferencePanes/Trackpad.prefPane /BackupPreferencePanes
rm -rf /System/Library/PreferencePanes/Trackpad.prefPane
cp -R /Volumes/My\ Boot\ CD/Extra/Post-Install/PrefPane/Trackpad.prefPane /System/Library/PreferencePanes/
Step 13: Restart and at this point you should be all done and updated to Snow Leopard 10.6.6. As new updates come out you should visit below where I will be updating a link on how to upgrade.
Step 14: Feel free to donate anything. Any amount is helpful.
I'm choosing broadcom for wireless, Graphics Enabler, Chameleon v2 RC4, AHCI SATA, Voodoo PS2, Voodoo P-state, Battery, Card Reader, TSC Sync.
The thing that got it booted for me was disabling RTC. Once I did that, it came right up. At first the camera, track pad, and sound didn't work, but after I applied the "available updates" via the generic os updates pop-up, I was golden (everything worked).
On the sound, I did have to go into the sound settings and switch it to external speaker. The sound is a little more quiet than in my Linux and Win7, but it seems to work fine. Haven't found a way to boost the volume.
If u ever had welcome screen loops after succes installation hackintosh. U should try this.
Boot with “-s” no quotes
http://antyalias.com/2009/06/welcome-screen-loop-after-installation-hackintosh/
type “/sbin/fsck -fy” and then press enter
type “/sbin/mount -uw /” and then press enter
type “passwd root ##” and press enter
you will know be prompted to put in your password twice. Do so and press enter.
type “touch /var/db/.AppleSetupDone and press enter
type “exit” and press enter. you will now be booted into Leopard.
http://antyalias.wordpress.com/2009/05/27/hackintosh-10-5-7-running-on-dell-inspiron-1525/
Go get iPC 105.6 PFF 6 on torrent or whatever or simply can be found here. Burn iso with slower speed.
Download Driver Dell 1525 updated version here (Updated 27 May 2009) and save to flash usb drive.
Download Mac OS X Update 10.5.7 on apple site or download here. save to flash usb drive as well.
As usual boot from DVD and press F8, type -v. lets messy text appear to see the code running.
Open Disk Utility and format your drive to Macintosh Extended Jounal and name it for example Macintosh HD. Erase and next
View option Customize and select only this package
Install and Restart. Remove CD
boot hard drive. your screen will blank after apple logo dissappear. dont panic take a breathe for 1 minute
unplug your power cable. close lid screen. wait until hard drive idle (mean no fast blinking). then open back lid screen. your screen desktop will appear. dont waste your time. setup your information.
Drag copy dell driver and 10.5.7 updates on your flash usb to desktop.
open sleep trick folder / dsdt.aml drag to Macintosh HD. this fix display blank on gma x3100. no close lid if screen blank anymore.
Install chameleon for fake boot interface. Restart.
Install 10.5.7 updates on your desktop. open disk utility and repair permission. Restart.
Install other kext and package inside dell driver pack.
install Wifi broadcom package
install Power Management
Audio. Drag 1525_Codec to AppleHDAPatcher_v1.16
Install samba. if you want to sharing with windows file.
Install SD Card Reader using kext helper.
Open disk utility. Repair disk permission. Restart.
Ok thats it. i will update video installation soon. Happy enjoying your hackintosh.
Checkout my latest post http://antyalias.wordpress.com/2009/10/03/dell-1525-snow-leopard-10a432-10-6-retail-single-usb-method/
http://antyalias.com/2009/02/how-to-install-1056-on-dell-1525-ideneb-v14/#comments
On this tutorial i will guide u how to install 10.5.6 iDeneb on dell 1525 based on my experience. this guide i wrote for reference to dell 1525 hackintosh fan included me too . here following test worked on my dell 1525.
Wifi. works as aiport
Card reader. No need to run windows anymore to get works
Graphic GMA 3100. works without install any kext. Built in on iDeneb
Battery Life. Need to patch but works like charm.
Samba windows sharing. works perfectly.
Webcam works on iChat. never tested on other application.
Sleep trick works no need to move cursor to the corner.
Before we started Please read changelog here.
1. Go boot CD/DVD to installer. and press F8 to view option. type -v and press return. wait till installer menu appear.
2. Got to Disk Utility and make partition for macos extended journal. On my dell, i only make 2 partion 1st for macos extended journal named as Macintosh and 2nd for window partition fat32 named as u wish. after complete. close and next. Select Partition mac os and next.
3. You will see button customize. and click there. the list of package will shown up. be carefull to select. if ur setting goes wrong. u will never get it works. for my setting i only checked
ICHx Fixed
Network wifi Broadcom 43xx
FireWire Remove
IOUSBFamilyFix (i think this fix not working for me)
kexthelper if something need patch after install
and the rest leave that unchecked. we will install later.
4. then install. u can go to make some coffee and wait till complete. if u follow my setting around 10-15 minutes the installation will be complete.
5. restart ur pc and remove cd installer. press F8 and type -v and press return to see if anything goes wrong.
6. u will see blue screen few second and screen goes blank. dont panic. unplug your plug cable and close your lid screen. wait around 15 minutes. u have to be patient this time. i got experience 15 times format because of this blank screen. keep drink ur coffee u made just now.
7. open lid screen back u will see setup screen. if not, repeat step 5. above. fill ur information and Tada!!! u will see desktop screen. lets see now ur wifi works as airport.
8. go to system preferences and go to expose select active corner to the sleep display. (standby this trick if ur screen goes black again).
Now its time to install other kext to get all thing works.
go download Dell 1525 Driver Here or mirror Here. Thanks to all develepor. i’m just recompile to make easier for dell 1525 user.
go to folder usb. install that dmg files. this fix error if u try mount usb or cd hang.
go to folder sleep display. copy SleepDisplay application and place to “/Users/yourcomputername/ “. Then go to your system preferences. account. login items and add application SleepDisplay that u place just now and tick hide. this fix sleep display without to move cursor to the corner.
UPDATED 9/3/2009 Downlod Screen_Sleeper_Solution_Installer.pkg. Install it and reboot. u have to disable auto login on system preferences to get it works. Thanks to Skribbler
go to folder samba. and install that package. this will fix for windows sharing files.
go to folder Card Reader and open kexthelper drag IOSDHCIBlockDevice.kext to the kexthelper and run. this will fix for card reader.
go to folder ApplePS2Trackpad and drag to kexthelper and run. this fix for Trackpad.
go to folder audio. drag 1525_Codec to AppleHDAPatcher_v1.16. wait and restart. now ur audio should working.
go to folder Power Management. install Power Management 10.5.6 Fix. this fix for battery meter.
go to folder Time Machine Fix. read the instruction. i never tested yet. maybe should fix for time machine.
Here screen shot my desktop. any comment are welcome.
http://antyalias.com/2009/10/dell-1525-snow-leopard-10a432-10-6-retail-single-usb-method/
It has been long time i’m not update my blog. Today i’m going to write guide how to install retail Snow Leopard copy to Dell 1525 using usb either external hard drive or flash drive .. for DVD installation it can be found at macyourpc. Thanks to macyour pc for the helful guide, but i’m prefer to install using usb method more faster and easier to inject anything that i want to. Boot 132 also no longer needed. i’m just use chameleon boot loader to make Snow Leopard readable by dell 1525. On this guide also u can install on either MBR partition or GUID partition. No worried to lost any data on my previous MBR partition for example 1. Macintosh HD(System) 2. Data (i want keep this whole data). This method only worked on Retail 10A432 version. havent tried to other version. oke guys lets started.
Requirements
1. USB Flash Drive (8GB above) or external drive and Mac Computer or Hackintosh also considerable and your toy Dell 1525.
2. Mac OS X Snow Leopard (10A432) 10.6 Retail. u can buy from apple store or u can get here for PLAYING PURPOSE. a lot stuff there.
3. Download this Dell 1525 Snow Essential. Place to your mac desktop. What inside?
Preparation
U must did this step on Mac Computer or Hackintosh.
1. Restore installer to USB flash drive. If u dont know how to restore u can refer my previous post. carbon cloner also recommended to clone the installer, its free. Name it your USB flash drive as Snow.
2. Open Dell 1525 Snow Essential. Inject Chameleon 2 RC3 bootloader by installing to USB Drive Snow.
3. Copy All files under folder “Boot/Extra” to Folder Extra on USB Drive Snow.
To make installer recognized the MBR partition, we have to replace original OSinstall file with cracked version.
1. Open terminal type “sudo su” and insert password. copy following to terminal and press enter. It will show all hidden files on your mac.
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
2. Replace “OSInstall” file on USB Snow. read instruction inside OSInstall folder.
3. Copy “boot” file inside Boot folder and replace to USB Drive Snow directory. “boot” file inside USB Snow is hidden. u cant just replace the files by drag and drop. the simple trick without using terminal is
Move to Trash “boot” file inside USB drive snow directory.
Drag “boot” file inside boot folder Dell 1525 Snow Essential to USB drive Snow directory
Thats it. Now your hacked version snow leopard is ready.
Installation on Dell 1525
1. Boot press F2. Disable all boot sequence. save and exit.
2. Boot press F12 and select USB Flash drive and press enter. Chameleon bootloader will come up. Select USB Snow type -v -x and enter. This -x(safe mode) flag is important. i had failed many times to load the installation screen only because without -x .
3. Once your installation screen appear. do as usual. go disk utility to format partition to Mac OS Extended Journal and name it as u like. Close and Next
4. select your partition to install. this time if u are using MBR partition u are lucky no alert error will appear anymore. click customize if u want to save space, otherwise just click install. it will takes around 15minutes. after finish installation
5. restart. press F12 and once again select USB partition and chameleon shown up. Select partition installed OSX. type -v -x. after booted up Setup your information data.
Post Install
Inject all post install files to your Dellintosh. I’m not going to write this step. for the instruction follow guide from macyourpc.
Happy Enjoying!!
http://macyourpc.com/2011/01/install-mac-on-dell-inspiron-1525/
*New Guide* Mac OS X 10.6 Snow Leopard Retail Install Boot-132 Method
by GENARO BONILLA on 11. JAN, 2011 in SNOW LEOPARD GUIDES
Download: SnowBoot v1.1.iso
Step 1: Make sure you have your copy of Snow Leopard (I would highly suggest purchasing it, it’s a great price for what it offers!)
Step 2: Download SnowBoot v1.1.iso and burn it to a CD.
Step 3: Put the burned boot cd into your cd-drive and on startup at the “DELL” splash screen press “F12″ now you will be at the boot selection menu, from here wait till your activity light on your cd-drive stops blinking and boot from the disc.
Step 4: Eject the boot-132 disk and replace it with your Snow Leopard Disc and again, wait till the activity light stops blinking. Once it has stopped press “F5″ and the Install Disk will appear. Boot the disc by pressing enter. The disc will take about 5-10 min to load.
Step 5: Once in the install disk go to “Tools” from the menu bar and choose “Disk Utility.” Once you’ve gotten into the Disk Utility you have to select your hard drive and click on the partition tab and under the Volume Scheme choose 1 Partition and click “Options” and choose GPT. From this tab choose “Mac OS Extended (Journaled)” and name it Macintosh HD and click apply.
Step 6: Close Disk Utility and go through the Installer. After it is done restart and again press “F12″ and boot from the Boot-132 disc, this time select the Macintosh HD partition and again boot by pressing enter.
Step 7: Download Mac OS X 10.6.6 by clicking the following link and proceed to install it. Mac OS X v10.6.6 Update. Once you’ve done that you an restart and boot into the partition again following the same method used above. Boot into the partition using the same method that you did in Step 6.
Step 8: Now that you’ve booted into your partition open “My Boot CD” from the desktop. Navigate to the Post-Intall folder located in “My Boot CD/Extra/Post-Install” and double-click “Chameleon 2 RC3″ After this go back to the Post-Install folder and highlight “Extra” and copy the folder.. After you have copied “Extra” from the Post-Install folder open up your “Macintosh HD” and paste “Extra” by right-clicking and pressing Paste Item.
Step 9: Now Open up the Applications folder from the Post-Install folder and open “Kext Helper” now go to “Local Extensions” and Kext Helper all the files in there. (For more information on how to use Kext Helper click here.)
Step 10: Navigate back to the “Post-Install” folder and double-click the “10.6.2 – AppleHDA Installer” and follow the prompt.
Step 11: Go to “System Preferences” click “Security” then click the little lock in the bottom corner. Now uncheck “Use secure virtual memory.”
Step 12: Open up Terminal Located in “Applications/Utilities” and run the following commands one by one:
sudo -s
pmset -a hibernatemode 0
rm /private/var/vm/sleepimage
mkdir /BackupPreferencePanes
cp -R /System/Library/PreferencePanes/Trackpad.prefPane /BackupPreferencePanes
rm -rf /System/Library/PreferencePanes/Trackpad.prefPane
cp -R /Volumes/My\ Boot\ CD/Extra/Post-Install/PrefPane/Trackpad.prefPane /System/Library/PreferencePanes/
Step 13: Restart and at this point you should be all done and updated to Snow Leopard 10.6.6. As new updates come out you should visit below where I will be updating a link on how to upgrade.
Step 14: Feel free to donate anything. Any amount is helpful.
วันพฤหัสบดีที่ 16 ธันวาคม พ.ศ. 2553
iphone
http://stackoverflow.com/questions/1058880/can-iphone-send-gps-coordinates-to-a-website-painlessly
up vote
7
down vote
accepted
Please login or register to vote for this post.
(click on this box to dismiss)
Here's a snippet on how to read location from the iPhone. Looks like it requires 3.0:
navigator.geolocation.getCurrentPosition(foundLocation, noLocation);
function foundLocation(position)
{
var lat = position.coords.latitude;
var long = position.coords.longitude;
alert('Found location: ' + lat + ', ' + long);
}
function noLocation()
{
alert('Could not find location');
}
See: http://mapscripting.com/how-to-use-geolocation-in-mobile-safari
By the way, if you want to use web code on the iPhone, there are a couple middle-ground solutions you could try that don't force you to create a native app but allow you to wrap your site in an app and get access to GPS and other native features.
PhoneGap: http://phonegap.com/
Appcelerator: http://www.appcelerator.com/products/titanium-mobile/
link
flag
up vote
7
down vote
accepted
Please login or register to vote for this post.
(click on this box to dismiss)
Here's a snippet on how to read location from the iPhone. Looks like it requires 3.0:
navigator.geolocation.getCurrentPosition(foundLocation, noLocation);
function foundLocation(position)
{
var lat = position.coords.latitude;
var long = position.coords.longitude;
alert('Found location: ' + lat + ', ' + long);
}
function noLocation()
{
alert('Could not find location');
}
See: http://mapscripting.com/how-to-use-geolocation-in-mobile-safari
By the way, if you want to use web code on the iPhone, there are a couple middle-ground solutions you could try that don't force you to create a native app but allow you to wrap your site in an app and get access to GPS and other native features.
PhoneGap: http://phonegap.com/
Appcelerator: http://www.appcelerator.com/products/titanium-mobile/
link
flag
วันจันทร์ที่ 13 ธันวาคม พ.ศ. 2553
Clone hard disk ubuntu
Clone your Ubuntu installation onto a new hard disk
Wednesday, 07 May 2008 12:54 Linux.com
By Keir Thomas
This article is excerpted from the newly published book Ubuntu Kung Fu and published with the express permission of the publisher, the Pragmatic Programmers, LLC.
Three things must be done. First, you must discover how Ubuntu refers to the hard disks. Second, you must install ddrescue and then use it to clone the disk. Third, once ddrescue has finished, you must use the Gparted utility to expand the disk partition(s) (assuming that the new disk is bigger than the old one, which is almost certainly going to be the reason for upgrading in the first place).
It's not a good idea to clone a hard disk that's in use (any more than it's a good idea to repair a car while it's being driven), so you must use your Ubuntu install CD's live distro mode. To carry out the following instructions, boot from your Ubuntu install CD, and select Try Ubuntu from the boot menu.
Note that all the following stages are carried out using the Ubuntu install CD's live distro mode. At no point in the process do you need to boot into your standard Ubuntu installation, apart from to test the cloned disk at the end.
Preparing to clone
Before starting, it's a good idea to do three things in preparation. First, back up all valuable personal files to CD/DVD-R/RW disc, a USB keystick, or an external hard disk. The instructions that follow involve drastic fundamental disk management and the possibility of data loss.
Second, it's a good idea to check the filesystem of the original hard disk for errors and possibly enact repairs. Ideally, you should check the Windows filesystem for errors too.
Third, remove any USB memory sticks, card readers, or other kinds of attachable storage, such as MP3 players or mobile phones. This will avoid confusion when partitioning.
After all this, open a terminal window, and type the command sudo fdisk -l, which will scan the hard disks and list their partitions. Here are the results from my test system:
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1c381c37
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4742 38090083+ 7 HPFS/NTFS
/dev/sda2 4743 9964 41945715 5 Extended
/dev/sda5 4743 9744 40178533+ 83 Linux
/dev/sda6 9745 9964 1767118+ 82 Linux swap
/Solaris
Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb94838a4
Disk /dev/sdb doesn't contain a valid partition table
Two hard disks are listed in the results: look for the headings Disk /dev/sda and Disk /dev/sdb. Beneath each heading is technical information about the disk, and beneath that the partitions on that disk are listed.
It should be obvious that, on my test computer, /dev/sdb is the new hard disk because it has no partitions (it "doesn't contain a valid partition table"), while /dev/sda has the standard partition layout of an Ubuntu system. Yours will probably be similar, if not identical.
Look for the reference to your new hard disk and make a note of it. In my case, I make a note of /dev/sdb. Then type sudo cfdisk -z /dev/sdb to start the cfdisk partitioning program, which we'll use to write an initial partition table to the disk. If necessary, replace /dev/sdb with the details of the new hard disk you discovered earlier. When cfdisk starts, type W (note that's Shift+w) and then type yes to write a blank partition table. Then press q to quit cfdisk. You can ignore the handful of minor errors that are reported.
Cloning the disk
Now that we have this information, we can install ddrescue and use it to clone the disk. This needs to be installed because it isn't a default system tool. Although the computer is running the Ubuntu install CD live distro mode, it's still possible to install additional software from the online repositories. However, before doing this, it's necessary to enable the Universe software repository (of course, you will need to use NetworkManager to get online too, if you haven't already). Click System -> Administration -> Software Sources, and put a check in the box alongside Community-maintained Open Source software (universe). Then click the Close button, and agree to refresh the list of software when asked.
After this, type sudo apt-get install gddrescue at the prompt to install ddrescue.
Use ddrescue by first specifying the old hard disk, then the new hard disk. Add the -v command option to provide a status report as the command progresses:
$ sudo ddrescue -v /dev/sda /dev/sdb
It's extremely important that you ensure you get the old and new disks in the right order. Otherwise, you might well overwrite the data on your old disk!
Once the cloning has finished -- it will probably take an hour or more, depending on the size of the original hard disk -- you should shut down the computer, remove the old disk (you must disconnect the old disk before you can continue!), and boot from the cloned copy to test things. If you use Windows XP/Vista, it might object to a new hard disk as part of its Windows Genuine Advantage system, and you might have to revalidate online. Of course, Ubuntu will work fine without any such worries.
Assuming everything works correctly, you can move on to the next step: expanding the partitions to take advantage of the larger hard disk.
Expanding the partitions
Before attempting to expand the partitions, it's a good idea to check that your Ubuntu partition's filesystem is sound. To do this, boot into the Ubuntu install CD's live distro mode as before. Open a terminal window and type the command sudo fsck.ext3 -f /dev/sda5 to perform a disk check (assuming that Ubuntu is installed alongside Windows on your hard disk in the standard configuration).
Once this has completed, close the terminal window and click System -> Administration -> Partition Editor. What happens next depends on your requirements. If you just want to expand the Ubuntu partition, follow these steps:
In the Partition list, right-click the linux-swap entry and select Swap off. This will stop Ubuntu's live distro mode from accessing the swap partition so that it can be moved on the hard disk.
Before anything else can happen, you must resize the extended partition that contains Ubuntu. Right-click the extended entry in the list and select Resize/Move. In the dialog box that appears, change the Free Space Following (MiB) box to read 0, then press Tab. This will cause the partition to be expanded to fill the space. Click the Resize/Move button when done. Bear in mind that no changes are carried until you click the Apply button, which you will do after making all the changes to the disk's partitions.
Right-click the linux-swap partition once again, and select Resize/Move. In the dialog box that appears, click and drag the graphical representation of the partition to the end of the free space (in other words, click and drag it to the right of the graphical display). After this, the Free Space Following (MiB) box should read 0. Click Resize/Move.
Back in the main GParted program window, right-click the ext3 entry in the list, and select Resize/Move. Click and drag the rightmost edge of the partition in the graphical representation so that it "grows" to fill the free space. Eventually the Free Space Following (MiB) box will read 0. When this is the case, click the Resize/Move button.
Finally, click the Apply button on the main GParted toolbar. Then click Apply in the dialog box that appears, and sit back and wait while the partitions are moved and resized. If you want to see what's happening, click the small arrow alongside Details in the Applying pending operations dialog box.
When GParted has finished, close the program, then open a terminal window. Enter sudo fsck.ext3 -f /dev/sda5, which will once again check the Ubuntu partition for errors (and, again, these steps assume that Ubuntu is installed alongside Windows on your hard disk in the standard configuration). If there are any errors, you'll be prompted to repair them. Usually you can agree to the repair.
After the filesystem check, you can reboot your computer from the new hard disk. You should find the Ubuntu partition is now larger.
If you want to resize your Windows partition too, these steps are still relevant. However, you will have to move the swap and ext3 partitions, as well as the extended partition containing them, before resizing the NTFS partition.
If you want to dispose of the old hard disk or pass it on to somebody else, be sure to securely wipe it. However, don't do so until you're 100% sure your new cloned copy is working correctly. I usually wait at least a week or two to ensure the copy works fine before doing anything to the old disk.
Wednesday, 07 May 2008 12:54 Linux.com
By Keir Thomas
This article is excerpted from the newly published book Ubuntu Kung Fu and published with the express permission of the publisher, the Pragmatic Programmers, LLC.
Three things must be done. First, you must discover how Ubuntu refers to the hard disks. Second, you must install ddrescue and then use it to clone the disk. Third, once ddrescue has finished, you must use the Gparted utility to expand the disk partition(s) (assuming that the new disk is bigger than the old one, which is almost certainly going to be the reason for upgrading in the first place).
It's not a good idea to clone a hard disk that's in use (any more than it's a good idea to repair a car while it's being driven), so you must use your Ubuntu install CD's live distro mode. To carry out the following instructions, boot from your Ubuntu install CD, and select Try Ubuntu from the boot menu.
Note that all the following stages are carried out using the Ubuntu install CD's live distro mode. At no point in the process do you need to boot into your standard Ubuntu installation, apart from to test the cloned disk at the end.
Preparing to clone
Before starting, it's a good idea to do three things in preparation. First, back up all valuable personal files to CD/DVD-R/RW disc, a USB keystick, or an external hard disk. The instructions that follow involve drastic fundamental disk management and the possibility of data loss.
Second, it's a good idea to check the filesystem of the original hard disk for errors and possibly enact repairs. Ideally, you should check the Windows filesystem for errors too.
Third, remove any USB memory sticks, card readers, or other kinds of attachable storage, such as MP3 players or mobile phones. This will avoid confusion when partitioning.
After all this, open a terminal window, and type the command sudo fdisk -l, which will scan the hard disks and list their partitions. Here are the results from my test system:
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1c381c37
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4742 38090083+ 7 HPFS/NTFS
/dev/sda2 4743 9964 41945715 5 Extended
/dev/sda5 4743 9744 40178533+ 83 Linux
/dev/sda6 9745 9964 1767118+ 82 Linux swap
/Solaris
Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb94838a4
Disk /dev/sdb doesn't contain a valid partition table
Two hard disks are listed in the results: look for the headings Disk /dev/sda and Disk /dev/sdb. Beneath each heading is technical information about the disk, and beneath that the partitions on that disk are listed.
It should be obvious that, on my test computer, /dev/sdb is the new hard disk because it has no partitions (it "doesn't contain a valid partition table"), while /dev/sda has the standard partition layout of an Ubuntu system. Yours will probably be similar, if not identical.
Look for the reference to your new hard disk and make a note of it. In my case, I make a note of /dev/sdb. Then type sudo cfdisk -z /dev/sdb to start the cfdisk partitioning program, which we'll use to write an initial partition table to the disk. If necessary, replace /dev/sdb with the details of the new hard disk you discovered earlier. When cfdisk starts, type W (note that's Shift+w) and then type yes to write a blank partition table. Then press q to quit cfdisk. You can ignore the handful of minor errors that are reported.
Cloning the disk
Now that we have this information, we can install ddrescue and use it to clone the disk. This needs to be installed because it isn't a default system tool. Although the computer is running the Ubuntu install CD live distro mode, it's still possible to install additional software from the online repositories. However, before doing this, it's necessary to enable the Universe software repository (of course, you will need to use NetworkManager to get online too, if you haven't already). Click System -> Administration -> Software Sources, and put a check in the box alongside Community-maintained Open Source software (universe). Then click the Close button, and agree to refresh the list of software when asked.
After this, type sudo apt-get install gddrescue at the prompt to install ddrescue.
Use ddrescue by first specifying the old hard disk, then the new hard disk. Add the -v command option to provide a status report as the command progresses:
$ sudo ddrescue -v /dev/sda /dev/sdb
It's extremely important that you ensure you get the old and new disks in the right order. Otherwise, you might well overwrite the data on your old disk!
Once the cloning has finished -- it will probably take an hour or more, depending on the size of the original hard disk -- you should shut down the computer, remove the old disk (you must disconnect the old disk before you can continue!), and boot from the cloned copy to test things. If you use Windows XP/Vista, it might object to a new hard disk as part of its Windows Genuine Advantage system, and you might have to revalidate online. Of course, Ubuntu will work fine without any such worries.
Assuming everything works correctly, you can move on to the next step: expanding the partitions to take advantage of the larger hard disk.
Expanding the partitions
Before attempting to expand the partitions, it's a good idea to check that your Ubuntu partition's filesystem is sound. To do this, boot into the Ubuntu install CD's live distro mode as before. Open a terminal window and type the command sudo fsck.ext3 -f /dev/sda5 to perform a disk check (assuming that Ubuntu is installed alongside Windows on your hard disk in the standard configuration).
Once this has completed, close the terminal window and click System -> Administration -> Partition Editor. What happens next depends on your requirements. If you just want to expand the Ubuntu partition, follow these steps:
In the Partition list, right-click the linux-swap entry and select Swap off. This will stop Ubuntu's live distro mode from accessing the swap partition so that it can be moved on the hard disk.
Before anything else can happen, you must resize the extended partition that contains Ubuntu. Right-click the extended entry in the list and select Resize/Move. In the dialog box that appears, change the Free Space Following (MiB) box to read 0, then press Tab. This will cause the partition to be expanded to fill the space. Click the Resize/Move button when done. Bear in mind that no changes are carried until you click the Apply button, which you will do after making all the changes to the disk's partitions.
Right-click the linux-swap partition once again, and select Resize/Move. In the dialog box that appears, click and drag the graphical representation of the partition to the end of the free space (in other words, click and drag it to the right of the graphical display). After this, the Free Space Following (MiB) box should read 0. Click Resize/Move.
Back in the main GParted program window, right-click the ext3 entry in the list, and select Resize/Move. Click and drag the rightmost edge of the partition in the graphical representation so that it "grows" to fill the free space. Eventually the Free Space Following (MiB) box will read 0. When this is the case, click the Resize/Move button.
Finally, click the Apply button on the main GParted toolbar. Then click Apply in the dialog box that appears, and sit back and wait while the partitions are moved and resized. If you want to see what's happening, click the small arrow alongside Details in the Applying pending operations dialog box.
When GParted has finished, close the program, then open a terminal window. Enter sudo fsck.ext3 -f /dev/sda5, which will once again check the Ubuntu partition for errors (and, again, these steps assume that Ubuntu is installed alongside Windows on your hard disk in the standard configuration). If there are any errors, you'll be prompted to repair them. Usually you can agree to the repair.
After the filesystem check, you can reboot your computer from the new hard disk. You should find the Ubuntu partition is now larger.
If you want to resize your Windows partition too, these steps are still relevant. However, you will have to move the swap and ext3 partitions, as well as the extended partition containing them, before resizing the NTFS partition.
If you want to dispose of the old hard disk or pass it on to somebody else, be sure to securely wipe it. However, don't do so until you're 100% sure your new cloned copy is working correctly. I usually wait at least a week or two to ensure the copy works fine before doing anything to the old disk.
วันพุธที่ 8 ธันวาคม พ.ศ. 2553
windows command
Hope you find these useful.
Shutdown %windir%\System32\shutdown.exe -s
Reboot %windir%\System32\shutdown.exe -r
Logoff %windir%\System32\shutdown.exe -l
Standby %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
Hibernate %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate
Shutdown %windir%\System32\shutdown.exe -s
Reboot %windir%\System32\shutdown.exe -r
Logoff %windir%\System32\shutdown.exe -l
Standby %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
Hibernate %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate
วันเสาร์ที่ 27 พฤศจิกายน พ.ศ. 2553
Moodle online text template
Description « Hide
enable teacher to add a "template text" for students to base their answer upon
when giving them an online assignment.
patch explanation follows in the comments for this tracker issue
Description enable teacher to add a "template text" for students to base their answer upon when giving them an online assignment. patch explanation follows in the comments for this tracker issue Show »
All Comments Change History Version Control Sort Order: Ascending order - Click to sort in descending order
[ Permalink
« Hide ]
Nadav Kavalerchik added a comment - 27/May/09 04:15 AM
add new field to the DB, table assignment called "answertemplate" type=text collation=utf8_unicode_ci
patch the file mod/assignment/type/online/assignment.class.php
line 117:
print_single_button('view.php', array('id'=>$this->cm->id,'edit'=>'1','assignmentid'=>$this->assignment->id),
just after line 252 add:
$mform->addElement('htmleditor', 'answertemplate', get_string('answertemplate', 'assignment'), array('cols'=>60, 'rows'=>30));
$mform->setType('answertemplate', PARAM_RAW); // to be cleaned before display
$mform->setHelpButton('answertemplate', array('reading', 'writing', 'richtext'), false, 'editorhelpbutton');
$mform->addRule('answertemplate', get_string('required'), 'required', null, 'client');
just after line 283 add:
if (! $answertemplate = get_field('assignment','answertemplate' ,'id', $_GET['assignmentid'])) {
//error('assignment ID was incorrect');
}
$mform->setDefault('text', $answertemplate);
add to you local lang assignment.php files the string:
$string['answertemplate'] = 'A template for student\'s answer';
enjoy
[ Show » ]
Nadav Kavalerchik added a comment - 27/May/09 04:15 AM
add new field to the DB, table assignment called "answertemplate" type=text collation=utf8_unicode_ci
patch the file mod/assignment/type/online/assignment.class.php line 117:
print_single_button('view.php', array('id'=>$this->cm->id,'edit'=>'1','assignmentid'=>$this->assignment->id),
just after line 252 add:
$mform->addElement('htmleditor', 'answertemplate', get_string('answertemplate', 'assignment'), array('cols'=>60, 'rows'=>30));
$mform->setType('answertemplate', PARAM_RAW); // to be cleaned before display
$mform->setHelpButton('answertemplate', array('reading', 'writing', 'richtext'), false, 'editorhelpbutton');
$mform->addRule('answertemplate', get_string('required'), 'required', null, 'client');
just after line 283 add:
if (! $answertemplate = get_field('assignment','answertemplate' ,'id', $_GET['assignmentid'])) {
//error('assignment ID was incorrect');
}
$mform->setDefault('text', $answertemplate);
add to you local lang assignment.php files the string:
$string['answertemplate'] = 'A template for student\'s answer';
enjoy
enable teacher to add a "template text" for students to base their answer upon
when giving them an online assignment.
patch explanation follows in the comments for this tracker issue
Description enable teacher to add a "template text" for students to base their answer upon when giving them an online assignment. patch explanation follows in the comments for this tracker issue Show »
All Comments Change History Version Control Sort Order: Ascending order - Click to sort in descending order
[ Permalink
« Hide ]
Nadav Kavalerchik added a comment - 27/May/09 04:15 AM
add new field to the DB, table assignment called "answertemplate" type=text collation=utf8_unicode_ci
patch the file mod/assignment/type/online/assignment.class.php
line 117:
print_single_button('view.php', array('id'=>$this->cm->id,'edit'=>'1','assignmentid'=>$this->assignment->id),
just after line 252 add:
$mform->addElement('htmleditor', 'answertemplate', get_string('answertemplate', 'assignment'), array('cols'=>60, 'rows'=>30));
$mform->setType('answertemplate', PARAM_RAW); // to be cleaned before display
$mform->setHelpButton('answertemplate', array('reading', 'writing', 'richtext'), false, 'editorhelpbutton');
$mform->addRule('answertemplate', get_string('required'), 'required', null, 'client');
just after line 283 add:
if (! $answertemplate = get_field('assignment','answertemplate' ,'id', $_GET['assignmentid'])) {
//error('assignment ID was incorrect');
}
$mform->setDefault('text', $answertemplate);
add to you local lang assignment.php files the string:
$string['answertemplate'] = 'A template for student\'s answer';
enjoy
[ Show » ]
Nadav Kavalerchik added a comment - 27/May/09 04:15 AM
add new field to the DB, table assignment called "answertemplate" type=text collation=utf8_unicode_ci
patch the file mod/assignment/type/online/assignment.class.php line 117:
print_single_button('view.php', array('id'=>$this->cm->id,'edit'=>'1','assignmentid'=>$this->assignment->id),
just after line 252 add:
$mform->addElement('htmleditor', 'answertemplate', get_string('answertemplate', 'assignment'), array('cols'=>60, 'rows'=>30));
$mform->setType('answertemplate', PARAM_RAW); // to be cleaned before display
$mform->setHelpButton('answertemplate', array('reading', 'writing', 'richtext'), false, 'editorhelpbutton');
$mform->addRule('answertemplate', get_string('required'), 'required', null, 'client');
just after line 283 add:
if (! $answertemplate = get_field('assignment','answertemplate' ,'id', $_GET['assignmentid'])) {
//error('assignment ID was incorrect');
}
$mform->setDefault('text', $answertemplate);
add to you local lang assignment.php files the string:
$string['answertemplate'] = 'A template for student\'s answer';
enjoy
วันพุธที่ 24 พฤศจิกายน พ.ศ. 2553
mount usb on linux
Mounting the External File System (Hard Drive)
To mount your hard drive you need to use the mount command. (To unmount the drive when you are ready to unplug it and take it home, use the umount command.) Here’s an example:
mkdir /mnt/usbdrive
mount /dev/sda1 /mnt/usbdrive
The above command first creates a directory in your /mnt folder, typically the folder will be descriptive of the device, so we use /mnt/usbdrive. This only has to be done once, as you won’t be deleting this folder. This folder will be your mount point for the external hard drive.
The second line mounts the device at the /dev/sda1 location to the /mnt/usbdrive directory.
Now you can reference your hard drive from the command line using the folder /mnt/usbdrive.
Automount In the Terminal
To have your hard drive mount each time your server is restarted, you must edit your /etc/fstab file. Simply add at the bottom of your /etc/fstab file:
/dev/sda1 /mnt/usbdrive ext3 defaults 0 0
The first argument (/dev/sda1) tells the system what device to mount, and the second argument (/mnt/usbdrive) tells the system where to mount it. The third argument is the filesystem type (ext3). The fourth argument (defaults) tells the system what options to apply to the device, so in this case we’ll just use the defaults. The fifth and sixth arguments (both zeros) tell the system if the filesystem should be backed up using the dump utility, and the second zero tells the system whether to process the device when fsck is run. We can leave them both to zero for now.
Now you have a mounted hard drive that you can use for all your company backups, and by reading our previous two articles you can setup a script to automate your backup.
To mount your hard drive you need to use the mount command. (To unmount the drive when you are ready to unplug it and take it home, use the umount command.) Here’s an example:
mkdir /mnt/usbdrive
mount /dev/sda1 /mnt/usbdrive
The above command first creates a directory in your /mnt folder, typically the folder will be descriptive of the device, so we use /mnt/usbdrive. This only has to be done once, as you won’t be deleting this folder. This folder will be your mount point for the external hard drive.
The second line mounts the device at the /dev/sda1 location to the /mnt/usbdrive directory.
Now you can reference your hard drive from the command line using the folder /mnt/usbdrive.
Automount In the Terminal
To have your hard drive mount each time your server is restarted, you must edit your /etc/fstab file. Simply add at the bottom of your /etc/fstab file:
/dev/sda1 /mnt/usbdrive ext3 defaults 0 0
The first argument (/dev/sda1) tells the system what device to mount, and the second argument (/mnt/usbdrive) tells the system where to mount it. The third argument is the filesystem type (ext3). The fourth argument (defaults) tells the system what options to apply to the device, so in this case we’ll just use the defaults. The fifth and sixth arguments (both zeros) tell the system if the filesystem should be backed up using the dump utility, and the second zero tells the system whether to process the device when fsck is run. We can leave them both to zero for now.
Now you have a mounted hard drive that you can use for all your company backups, and by reading our previous two articles you can setup a script to automate your backup.
สมัครสมาชิก:
บทความ (Atom)