Tuesday, January 12, 2016

Mirror Source folder to Destination folder in OSX

Use rsync.

rsync -avE --delete "source folder/" "destination folder/"

-a = Archive. Copy all attributes.
-v = Verbose
-E = Extended. Copy additional Mac attributes

man rsync to get more info.

The "/" at the end of the folder name is important as it will copy all files/folders within the source folder without creating the source folder itself.

Saturday, August 8, 2015

Remount Ejected USB without Replugging - OS X

You can use this command line to unload and reload the USB kernel extension.

sudo kextunload /System/Library/Extensions/IOUSBMassStorageClass.kext
sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext

Instead of ejecting, you can also use diskutil to unmount and remount later.

Saturday, June 27, 2015

Write NTFS in OSX

In Terminal

sudo chmod 666 /etc/fstab

sudo nano /etc/fstab


LABEL=drivename none ntfs rw,auto,nobrowse

Make sure to replace drivename with the name of the drive.  Press Control-O to save the file and Control-X to exit nano. Change mod back to 644. After that unmount and remount. Access the disk via Shift+Cmd+G, /Volumes. Don't forget to unmount before detach.

Saturday, March 21, 2015

Reverse Wheel Scrolling in Windows 8.1

เปลี่ยน Registry (??VID??\DeviceParameters\FlipFlopWheel) ไม่ work เพราะ Hardware ID ที่ดูใน properties อาจไม่ตรง ต้องเปิด PowerShell (Run As Admin) แล้ว Run Script

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }



Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopHScroll -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopHScroll 0 }

Sunday, December 7, 2014

Brother HL-P2500 Machine Error 76 Reset

This is a fuser error. To reset it, perform the following:

1. Turn power off
2. Holding down "job cancel" and "#1" buttons, turn power on
3. It will go into service mode. All LED blinks
4. Enter "99" to exit and that should reset code 

*Note, if its a true failure, it will re-appear.

Thursday, November 13, 2014

Cmd+Space to Change Language (XP in Fusion)

Need to uncheck the option in the figure below to make it work

Sunday, October 19, 2014

Transfer Files from Mac to iOS and Android Device

Using Cable for big files
Use iFunBox for transfer to iOS
Use Android File Transfer for transfer to Android

Goodreader for iOS
Airdroid for Android (no need to be on same WiFi)