Download and install AutoHotkey in your computer.- Write .ahk script like below
Capslock::Send {LAlt down}{Shift}{LAlt up}
- Save this file and try double click to run it.
- Test it by press caps lock and see.
- Create shortcut to this .ahk file and move it to Startup folder in Start menu. [Do this to run this script at startup]
Friday, April 3, 2009
Switch input language by Caps Lock #2
Tuesday, March 10, 2009
Major Limitation of Gmail and Google Calendar in Offline Mode
Recently Google launched an offline mode of Gmail in labs and just few days ago Google Calendar offline mode had been released in beta after the news of this feature over a year.
Both of them use the capabilities of Google Gears for running in offline. So I installed Google Chrome for try out these things.
It works nicely but I found a major limitation. A few days ago ,I was disconnected and I opened the Gmail. I expected that I could browse my email easily and see my drafts but it didn’t work.
Google Chrome showed an error. It said “105 (net::ERR_NAME_NOT_RESOLVED)” that is about Chrome cannot resolve an IP address of website (gmail.com). So it cannot work offline. The same error was shown when I tried the Calendar.
But Google Document or Remember The Milk which support Gears work correctly.
Gmail and Calendar work in offline mode correctly if they have already been opened before your computer is disconnected. They will switch to offline mode and continue running correctly.
I wish this limitation will be removed soon.
Monday, March 2, 2009
Booting Process Tuning in FreeBSD 7.1
The project's objective is to tune or optimize a subsystem of FreeBSD and/or its environs (applications, utilities, etc.) to make it perform better.
I choose to tune the booting process of FreeBSD. Due to my laziness and lack of time, so I didn’t do tuning as much as I expected. but if I have time……if I have time…..
Here is my presentation.
Sunday, February 22, 2009
Upgrade Thinkpad X200 Harddisk and Keep Service Partition Safe By Puppy Linux.
The usual procedure , replace it with a new harddisk and format, is fine but that procedure will blow your Service partition away. In term of Thinkpad , this kind of partition is called "Predesktop Area".
Predesktop Area or you'll see a partition named "Service003" in Computer is needed for booting your Thinkpad in Rescue And Recovery mode by Press Blue ThinkVantage at the boot time.
This mode can format your harddisk and recover it to the factory-installed state.
So I'd like to keep Service partition. Many people in the forums recommend to use Acronis True Image to clone the whole disk. It's a good application. I tried it and succeeded the cloning process. It works except booting in Rescue And Recovery mode.
So I searched for another way. and found the PuppyLinux is a good way.
Disclaimer : Do it at your own risk!!!. It works for me but I can't gurantee it'll work for your X200 or other model too.
Objective : To migrate all the data in the old harddisk to the new bigger harddisk and all data must remains. Can boot to windows with no problem and boot to Rescue and Recovery mode by pressing the blue button at the boot time.
Tools :
- New bigger harddisk.
- The USB externel harddisk enclosure.
- PuppyLinux CD
- A Screwdriver
Method :
- [optional but recommend] Create the Product Recovery Media (if you've created it) by Start->All Programs -> ThinkVantage -> Create Product Recovery Media
The Product Recovery Media needs 1 blank CD for start CD and 2 blank DVD. It's for using to rescue system when you cannont boot to your harddisk or you want to recovery your whole disk to factory-installed state (I think it includes Service partition).
** Product Recovery Media can create only once. It you lose it, you may contact Lenevo Support to have a new one.(maybe free or not) - [optional] Recover the Lenevo Partition (after create Product Recovery Media) by double click on this parition in Computer and choose Recover space.
- Reboot to Puppy Linux CD. (you may have to select boot order by press F12 at the boot time)
- Wait for the system is ready.
- Integrate the new harddisk with the external HD enclosure.
- Plug the external to the Thinkpad. Puppy may see new the drive if it was formatted.
- Run Pudd (Menu -> Utility -> Pudd copy drive/partition) to clone the internal harddisk to usb external harddisk. The main point is that cloning the all partition from disk to disk in "As is" mode that means the partition size will not expand propotionally. From 80 GB to 320 GB, you'll see the unallocated area 240GB approx in the rest of the external harddisk.
- It takes about half an hour for clone the disk. The limitation of Pudd is that no progress showing. Please wait patiently and wish it's working.
- When Pudd finished his work, run GParted (Menu -> System -> Gparted). You'll see the partition layout of the external harddisk as same as the old 80GB one.
- Now using the GParted to resize/move/create/delete some partitions except Service partition as you like.
- This is mine. (you'll see the 1 MB unallocated area at the beginning of disk. I think this results in why Acronis didn't works. )
- Shut down the computer.
- Switch the harddisk 80GB and 320GB. You may need a good screw driver. Do it by the Thinkpad Manual. It's very easy.
Now you can continue working with the new bigger space.
Wish it works for you too.
Monday, January 26, 2009
My favourite Dijkstra's epigrams
Do not try to change the world. Give the world the opportunity to change itself.
The question of whether computers can think is like the question of whether submarines can swim.
Computer Science is no more about computers than astronomy is about telescopes.
A formula is worth a thousand pictures.
Progress is possible only if we train ourselves to think about programs without thinking of them as pieces of executable code.
Program testing can at best show the presence of errors but never their absence.
I pray daily that more of my fellow programmers may find the means of freeing themselves from the curse of compatibility.
If you carefully read its literature and analyze what its devotees actually do, you will discover that software engineering has accepted as its charter, “How to program if you cannot.”
Waiting is a very funny activity: you can’t wait twice as fast.
Mathematicians are like managers; they want improvement without change.
source : Memorial Resolution - Edsger Wyber Dijkstra
Sunday, November 30, 2008
Facebook lost my data!
Unfortunately, the settings that control which email notifications get sent to you were lost. We're sorry for the inconvenience.
To reset your email notification settings, go to:
http://www.facebook.com/<wbr>editaccount.php?notifications
Thanks,
The Facebook Team
I was surprised very much with this. I thought that it is a phishing email but I see the sender and I logged in to my account and found this message.
Oh! it's real! I don't know what's happen at Facebook.(wait for news) but it made the image of facebook look bad. The very big website lost their member data. How about backup system?
There is no backup for the data?
After I googled about this issue, many bloggers have commented about this too. Really I love facebook more than other social networking websites. I wait for the news to know what happen to the Facebook now?


