setup
Set hardware clock as GMT in Windows
In windows, the system will read the hardware clock as local time by default. To change the hardware clock so that it is stored in GMT timezone. We can edit registry using regedit:
add the following key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal
DWORD: 1
Find My iPhone 設定,使用,及安全
Apple 今天發佈了 iOS 4.2,比較意外是今天起,iOS 4.2 的用家可以不需要申請 USD99 年費的 MobileMe 而使用 Find My iPhone 功能。Find My iPhone 是一個服務,當你不見了你的 iPhone, iPod Touch 或 iPad,你可以知道它的現在位置,或遙遠把機器上鎖或刪除所有資料。根據 Apple 說明應該只有新 iPhone 4,iPod Touch 和 iPad 才可以免費使用,但我試過在 3GS 上也可以免費使用,大家不防一試。
設定
Disable Java Auto Updater
If you've installed java in your Windows, the java will automatically run an auto update periodically. If you are using Vista or Windows 7, the annoying UAC will prompt you every time when the system try to run the auto updater. To disable this, edit the registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableAutoUpdateCheck"=dword:00000000
Ref: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6294083
Installing Palm Pre Mojo SDK on X64 Windows machine
When installing Palm Pre SDK on a Windows Vista/7 X64 Bits, the installation will automatically rollback and failed to install. To solve the problem, read the following link:
http://codeutopia.net/blog/2009/07/20/how-to-install-palm-prewebos-sdk-o...
How to activate voice mail in iPhone for PCCW user
When you first setup your iPhone for PCCW, you will find the voicemail button doesn't work. To fix this, simply dial:
*92
and it will dial to your voicemail account. Once you successfully dial to your voicemail. You can now use the "Voicemail" button in your phonepad to dial to your voice mail.
Easy method to enable internet tethering on iPhone 3G and 3GS
One of the new features in iPhone OS 3.0 is the internet tethering that allow you to share 3G network to your computer through bluetooth or USB cable. However, the function may be disable per carrier setting. For example, currently AT&T in US disallows internet tethering. However we can re-enable it by installing a customized network configuration file to your iPhone. The trick don't need your iPhone to be jailbreak. You must need to do some steps in the Mobile Safari of your iPhone.
How to let postfix to allow some ip to relay email
To allow postfix accept email relaying from a specific ip adress, we can edit /etc/postfix/main.cf:
mynetworks = 127.0.0.0/8
to
mynetworks = 127.0.0.0/8, a.b.c.d/e
where a.b.c.d/e is the new group of ip address, or you can simply add one ip address in it. Restart postfix and now postfix will consider a.b.c.d/e as trusted ip and allow email from this ip address relaying email using this postfix mail server.
Upgrade Windows 7 beta build 7000 to RC
Microsoft just opened a link to download Windows 7 Release Candidate (RC), that means the OS passed beta and it should be stable now. You can download the ISO image and product serial number here:
http://www.microsoft.com/windows/windows-7/download.aspx
However, if you have installed the old Windows 7 build 7000 open beta, the RC didn't allow you to upgrade from old pre-released Windows 7 build and it suggest you to make a clean install.
Paragon partition manager 2009 special edition giveaway

Paragon giveaway paragon partition manager, a partition manager that allow you to manage partitions of your harddisk like partition magic. It supports Windows XP, Vista to the new Windows 7, both 32 bits and 64 bits version. Original price is $39.95, and now you can download it for FREE.
http://www.giveawayoftheday.com/paragon-partition-manager-2009-special-e...
Prevent steal image links using .htaccess
Sometimes prevent overload of both the web server and bandwidth, it is good to prevent unwanted link from other web site. We can add the following lines in .htaccess:
#prevent steal image link
SetEnvIfNoCase Referer "^http://www.waterworld.com.hk/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.waterworld.com.hk$" locally_linked=1
SetEnvIfNoCase Referer "^http://waterworld.com.hk/" locally_linked=1
SetEnvIfNoCase Referer "^http://waterworld.com.hk$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
Order Allow,Deny




Recent comments
17 weeks 6 days ago
23 weeks 1 day ago
26 weeks 3 days ago
27 weeks 3 days ago
36 weeks 2 days ago
36 weeks 2 days ago
36 weeks 3 days ago
36 weeks 4 days ago
38 weeks 2 days ago
38 weeks 3 days ago