Benchmark a website with ApacheBench

ApacheBench (only available in Linux & Mac OS) may come in handy when checking the site loading speed with a lot of requests. Here is the command:


[code]]czo2OlwiLW4gMTAwXCI7e1smKiZdfQ==[[/code] means we test for 100 requests, [code]]czo0OlwiLWMgNVwiO3tbJiomXX0=[[/code] means Concurrency level is set to 5.

The result should look similar as follow:


Here we have some useful information obtained, especially Requests per second & Transfer rate.

Read More

Change Mac OS X Screenshot Location

To change the screenshot location of Mac OS X, you can execute this command in Terminal:

defaults write location /your_desired_path/

For example, if you want to save the screenshot in Documents, use this command:

defaults write location ~/Documents/

Then, you have to restart the UI Server by:

killall SystemUIServer

If you change your mind to revert to default settings, you can execute the following:

defaults write location ~/Desktop/
killall SystemUIServer

Read More

Adium MSN unknown error (204) – Solution

When Adium / Pidgin starts up and loads your MSN contact list , an Adium notice prompted : unknown error (204) followed by few lines of HTML codes ( ! ) . It is caused by one or more Yahoo contacts no longer active .

To solve the problem:

  1. Read carefully the Adium notice to find out which contact(s) causes the problem
  2. Select View > untick “Hide certain contacts”
  3. Find out the problematic contact(s) > right click “Remove…”
  4. Restart Adium , the problem will be gone

Read More


Master Boot Record (MBR) is the standard partitioning scheme that’s been used on hard disks since the PC first came out. It supports 4 primary partitions per hard drive, and a maximum partition size of 2TB.

GUID Partition Table (GPT) is new partitioning scheme. Here is a list of operating system that supports GPT (except FreeBSD, Mac OS X and Linux, motherboard supporting EFI is required; modern motherboards all support EFI):

  • Windows 7 (all versions)
  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows Server 2003 R2
  • Windows Server 2003 (starting from SP1)
  • Windows Vista
  • Windows XP (64-bit version only) – use as data disk only
  • Mac OS X 10.4 or newer – must use GPT ; does not support MBR as OS disk
  • FreeBSD 7.0 or newer
  • Solaris 10 or newer
  • Chrome OS
  • Most mainstream Linux distributions like Ubuntu & RedHat

The GPT disk itself can support a volume up to 2^64 blocks in length. (For 512-byte blocks, this is 9.44 ZB – zettabytes. 1 ZB is 1 billion terabytes). It can also support theoretically unlimited partitions.

Windows restricts these limits further to 256 TB for a single partition (limited by NTFS), and 128 partitions.

Read More

Mac cannot mount HDD with partition type Windows_LDM

Mac OS X cannot mount hard disk drive with partition type Windows_LDM

What is Windows_LDM ?
It is dynamic disk partition created by Microsoft Windows 2000 ,  XP , Vista , 7 , Server 2003, Server 2003 R2 , Server 2008 or Server 2008 R2.

Help! I got important data in the partition!
The only method to read the drive is to move the data from the drive to another Basic disk in Windows . Then, you can convert the drive to Basic drive in order to enable read / write in Mac.

No other workaround at the time this short entry is written .

Read More

Dual Boot Mac OS X + Windows 7

Install Mac OS X in parallel with Windows 7 ( dual boot )

– Retail Mac OS X 10.6 Installation DVD ( download  / buy one from Apple ( link ) )
– DVD writer ( requires support of burning DVD dual layer disc )
– Separate hard disk ( NOT separate partition ) to install Mac OS X
– Good configuration of your computer ( must be Intel CPU, core i5 or i7 with 4GB+ RAM preferred )
– 2 blank CDs + (optional) 1 blank dual-layer DVD
– Windows 7 pre-installed

Files Needed
– Mac OS X 10.6 (10.6.0 – 10.6.6) disc image ( BitTorrent link ) if you don’t have one
– Nawcom ModCD v0.3.1 ( official link ) or v0.3.0 ( link )
– 7-zip or WinRAR to extract files
– Disc Image burning software ( we recommend ImgBurn )

=== PART 1 : Prepare Software ===
1. In Windows 7, download all the files above , extract from RAR / ZIP using 7-zip or WinRAR if needed
2. Burn Mac OS X disc image to a dual-layer DVD using ImgBurn or other disc burning tool , if you don’t have an official one
3. Burn Nawcom ModCD to a CD-ROM
4. ( print this blog post if necessary )

=== PART 2 : Prepare Computer ===
1. Access Disk Management through Computer > right click “Manage” > “Disk Management”
2. Delete all partitions in the target hard disk ( do not format your Windows 7 drive )
3. Insert Nawcom ModCD to your disc drive, reboot into BIOS ( press DEL / F2 during boot screen, depends on motherboard )
4.Set SATA mode to IDE or AHCI if possible
5. Set Power Saving mode to S3
6. Enable HPET if possible
7. Set DVD-ROM drive to be the first device to boot up
8. Save BIOS settings & exit ( computer will reboot )

=== PART 3 : Install Mac OS X ===
1. Let Nawcom ModCD boot up , until you reach a list of drive & disc icons
2. After inserting the Mac OS X disc, wait 15 seconds and hit F5
3. Nawcom ModCD disc icon will change to Snow Leopard Install disc icon
4. Hit Enter to load the disc
5. When you reach Mac OS X installation screen, click Next until you reach install location selection screen.
6. Select Disk Utility in Tools menu. Select the empty drive you prepared.
7. Configure the drive to have 1 partition with Mac OS Extended Journaled. Exit Disk Utility when done.
8. Click next to start Installation, which will take 30-45 minutes. When installation is done, it will prompt you for reboot (it will reboot automatically after 15 seconds). Prepare Nawcom ModCD and go ahead with reboot.

=== PART 4 : First Boot ===
1. During the reboot, replace Mac OS X disc with Nawcom ModCD again. Select Mac OS X in the item list.
2. You will be prompted to select a username & password, Apple ID, etc.
3. After that, you will be in Mac OS X.
IMPORTANT: Do not use Mac’s “Software Update” to update the Mac, or your Mac has chances to crash during boot.

=== PART 5 : Post-installation tasks ( Update Mac OS to 10.6.6 ) ===
1. Download Mac OS X 10.6.6 Combo Update ( official link )
2. Download iBoot ( official link , registration required )
3. Download Multibeast 3.2 ( official link , registration required )
4. Burn iBoot with a blank CD-ROM ( either in Windows / Mac )
5. Launch Multibeast , do NOT click “Continue” yet
6. Launch Mac OS X 10.6.6 Combo Update by mounting MacOSXUpdCombo10.6.6.dmg
7. Double click MacOSXUpdCombo10.6.6.pkg
8. Follow on-screen instructions. When it asks for restart , do NOT click Restart

=== PART 6 : Post-installation tasks ( Install Multibeast + kext drivers ) ===
1. Click Next on Multibeast until Choose Installation Options page
2. Select EasyBeast , System Utilities , OSx86 software > kExt Utility & kext Helper
3. Do not modify installation location , continue .
4. Now, check all the hardware to see if it works or not , including Network ( Wired & Wireless ) , Audio , Graphics
5. To install missing drivers ( we call it kext in Mac ) , find it from Google ( search : kext “device name” ) or . Use bundled driver installer , if any , else , install it using kExt Helper . Drag the kext to the kExt Helper to install the driver .
6. After installation of any kext driver , run kExt Utility from Applications .
7. Take a deep breath , restart the Mac .

If you want to boot into Mac, when you reach the bootloader Chameleon , select Snow Leopard … but before you press Enter , enter the following kernel flags ( just type before you press Enter ) :

cpus=X busratio=Y

where X = number of cores of your CPU ;
where Y = bus ratio of your CPU
( lookup table can be found here , missing entry : i5-870 => busratio=20 )

=== PART 7 : Save the kernel flag ===
1. To save the kernel flag permanently , launch Terminal in Mac .
2. Type sudo su [ Enter ]
3. Type in your password [ Enter ]
4. Type in vi /Extra/ [ Enter ]
5. If you are familiar with vi text editing environment , append the “cpus=X busratio=Y” after arch=i386 in the Kernel Flag section; if not, use arrow keys to navigate to the position after arch=i386, enter the follow key sequences (type only bold keys):

i , cpus=X busratio=Y , Esc , :w , :q , exit

The kernel flag is now saved , i.e. you don’t need to type the kernel flags during boot anymore .

Congratulations ! You’re done !

=== Part 8 : Install bootloader to hard disk ===
Note: this part involves knowledge of hard disk partitioning and disk layout. If you are not sure about what you are doing, just skip this part & use iBoot disc to boot up Mac.

To install Chameleon bootloader,  follow the steps:

  1. Download Chameleon bootloader here
  2. Extract the archived file ( assume you extract to ~/Downloads )
  3. Here we assume your root disk is /dev/disk0s1 (if not, change the commands accordingly)
  4. Gain administrative privileges in Terminal:
    sudo -s
  5. Navigate to extracted folder:
    cd ~/Downloads/Chameleon-2.0-RC4-r684-bin/i386
  6. Install boot0 to MBR:
    sudo fdisk -f boot0 -u -y /dev/rdisk0
  7. Install boot1h to partition’s bootsector:
    sudo dd if=boot1h of=/dev/rdisk0s1
  8. Install boot to partition’s root directory:
    sudo cp boot /
  9. Done

Read More

Windows Phone 7 Connector for Mac, now available on App Store

Windows Phone 7 Connector is now available at Mac App Store at no cost . WP7 users do not need to boot up Windows in their Mac to sync with their phone anymore . Here is the download link :

However , I do think the combination of Windows Phone 7 and Mac is a strange pair . I , as a Mac user , would prefer iPhone as my phone , though . For WP7 , I would prefer to stay sync with my Windows PC .

Read More