You can setup the PowerShell profile as follow.
1. Open the PowerShell.
2. Check if the profile file exists. Please note that the letter-case doesn’t matter.
- test-path $profile

Continue reading Windows PowerShell – Setup user account profile
You can setup the PowerShell profile as follow.
1. Open the PowerShell.
2. Check if the profile file exists. Please note that the letter-case doesn’t matter.

Continue reading Windows PowerShell – Setup user account profile
Update @ 2013-08-10: It is found that there is no way to register the installed Windows XP. I tried to use the KEY file in the archive inside sources\xpm but that is not valid. It seems that we have to use the Windows Virtual PC. For more info, please refer to the following post.
XP Mode Unauthorized Key
It’s really funny to see how a BIG corporation like MTR recruits employees. The candidate needs to complete a few online tests. And these tests have to been done in a Windows XP machine and only support Internet Explorer. This is how things work in Hong Kong~~
Anyway, i solved the problem by setting up a Windows XP virtual machine by following the article written by Melanie Pinola.
How to Run Windows XP for Free in Windows 8
1. Download the WindowsXPMode_en-us.exe from Microsoft.
Continue reading Run Win XP in Virtual Box
A file system check in Linux is equivalent to chkdsk in Windows. It can only run on unmounted drive so if you want to run it on the next reboot, you can use the following command.
shutdown -rF now
Continue reading Linux – Schedule file system check on next reboot
If you are a long time Windows user, the Ubuntu default graphical user interface which has the launcher on the left hand side may be a bit unfamiliar to you.

Continue reading Cinnamon – Windows-like start menu on Ubuntu
We have Modernizr to handle the HTML5 and CSS3 problem in old browsers.
Modernizr – Tackle the HTML5 and CSS3 problems in old browsers for frontend programming
Today, i would like to introduce another tool which could help you aligning the CSS styles for different browsers as well as OS. This tool is called CSS Browser Selector. Although it is not updated for more than a year, it is still very useful if you need to deal with Internet Explorer 7 & 8.
Similar to Modernizr, what u need to do is just included the library in the <head> tag.
Continue reading CSS Browser Selector – Align the CSS styles for different browsers and OS
My server was hacked. ToT
One day i found that i couldn’t login the server thru SSH and the CPU usage jumped to 100% for more than 12 hours. Finally i could login as root and found that a new user R00T was created and the SSH service was restarted with all settings in the sshd config file commented out. =.=
So from now on i will use Key Authentication instead of simple Password Authentication. Here is a very useful guide on Linode.com which shows you how to secure your server.
Linode Library – Securing Your Server
In order to use the Key Authentication, you need to generate the private key and public key on your desktop/labtop computers. This is straight forward if you are a Mac or Linux user who could use the ssh-keygen command. But for Windows user, you have to use 3rd party program like PuTTYgen. I suggest using WinSCP + PuTTY.
Continue reading Secure the SSH protocol by Key Authentication
We can use the fsutil command to create a dummy file with fixed size.
fsutil file createnew sample.dat 1024
Continue reading Windows – Create a dummy file with fixed size
I found a freeware which can help you to convert tabs into spaces in Windows. it is called TABS2spaces (Download).
You can select a group of files and start the conversion or you can copy the text and then the TABS2spaces can convert those tabs in the clipboard text into spaces. Nice! Continue reading TABS2spaces – Free Tabs to Spaces converter in Windows
Prior to the topic about the SSH keypair, i would like to let u know that the BeansTag module is already submitted to drupal.org and now undergoing the approval process. BeansTag is a light-weight and user friendly SEO tool which help you setting the meta attributes as well as page title. It is also multilingual supported. Visit the BeansTag project page to get more ideas or even try it with your Drupal 7.
Before i could start working with the Git repository hosted in drupal.org, i have to create a SSH keypair and add it in my Drupal account profile. Actually i have done the similar task before but that is for Windows. For your reference, you can refer to the following post.
In VBA, there is 3 types of Newline characters.