20080927

Phone Number Fix on iPhone (localization)

Problem is iPhone doesn't recognize callers. Although they exist in the address book, iPhone only show their number with extra country code prefix.

Replace PhoneNumberTemplates.plist
in the /System/Library/PrivateFrameworks/AppSupport.framework

*Best to just backup/rename than to remove.

Custom Ringtones on iPhone

Convert audio file to use AAC codec and change the extension to m4r. Must not exceed 40 seconds.

Fix Youtube on iPhone

Unzip unlock.zip
to /private/var/root/Library/Lockdown and remove pair_records folder.

*Best to just backup/rename than to remove.

Fix Youtube

unzip unlock.zip to /private/var/root/Library/Lockdown
remove pair_records

20080917

Shell Auto-completion

I feel it is too late for me to realize that auto-completion using ESCAPE ESCAPE is actually came from a shell variable, $EDITOR

EDITOR=`which vi`; export EDITOR

Few servers gave me hard times on stty important function. So I:

echo "stty erase ^H
stty kill ^U
stty intr ^C
TERM=vt100
EDITOR=`which vi`
export TERM EDITOR" >> ~/.profile

20080910

Use putty to access vnc using ssh tunnel

This is to overcome firewall which filter connection on the application layer. In putty:

Hostname: ssh_server
X display location: localhost:0
Source port: 5901
Destination: vnc_server:5900


On vnc, connect to localhost:1