Tuesday, December 16, 2008

Chrome 1.0 (not Chromium) supports Greasemonkey now

ChromonkeyGoogle Chrome 1.0 supports Greasemonkey.  You can use Google Reader Unread Count and Better Mobile Twitter in Chrome now.
To enable Greasemonkey in Chrome, download and install the latest Chrome. Right click your Chrome shortcut, add "--enable-greasemonkey" to the end of the "Target" box (see below).  Finally, you have to put the scripts in the folder "C:\scripts\" and the script files' extension must be ".user.js".

Friday, December 5, 2008

Google Reader has new look

Google Reader has new look.  I like the collapsible section so I can free more space for the feed list.  And I'm please to tell you that my Google Reader Unread Count greasemonkey script still works for new look.  Enjoy it.

Monday, October 13, 2008

Better Mobile Twitter user script

I always keep a tab in Firefox opening Twitter and I prefer the mobile version instead of the standard one for speed and simplicity. Despite the simplicity, one thing I would like to have is automatically load next page when the mouse scroll to bottom (just like what Google Reader does). As a result I come up with the Better Mobile Twitter user script. You can install in http://userscripts.org/scripts/show/35396. Below is showing how it works, or you can watch in high quality.

Tuesday, April 22, 2008

From EeePC to SLC/MLC SSD

Recently the 9 inch EeePC catches everyone's eye because of the price (under HKD 4,000) and the large 20G SSD. However it raises a big concern after people discovered that the 20GB SSD is made up of 4G SLC + 16G MLC.  Since the life-span of MLC is much lower than SLC and can only survives for 10,000 writes. Someone in a forum even claim that "the SSD will die after 1 month if write to the disk 30 times a day".

I did some research on this.

The smallest unit of SSD is "page", which is usually 2KB in size. Each time SSD write s data to a page, it will need to erase the data first.  This is called erase/write cycle. It is also why writing is SSD is slower because it needs two operations.  When SSD erases data, it is in the unit of "block", which is 64 pages or 128KB data.  So the 10,000 write cycles means each block can be written 10,000 times. Assuming writing 1GB of data every day, a 8GB MLC SSD can last for 219 years (8 * 10000 / 365).

There may be case that it keep writing on the same block and used up the limit of that block.  To solve this, there is a technique called "wear leveling" to balance the erase count of each block.  For example, when there is need to write to a block with high erase count, it will swap the data in this block with another block with lower erase count (this is done by the SSD chips in background).  Note that a swapping is also counted as erase/write and impact the write speed.  Another technique is to reserve some blocks which didn't count as capacity.  When a block's erase count reaches the limit, The reserved block will step it.  This method can reduce the swapping overhead.

After all the life of SSD should not be a concern to for you to buy a EeePC.

Saturday, November 24, 2007

Howto install Firefox 3 to co-exists with Firefox 2

Mozilla just release Firefox 3 Beta 1. Review said it is much faster and consume less memory. It definitely worth a try but for the obvious reason you have to keep your Firefox 2. Here is the steps show you how to install Firefox 3 and make it co-exists with Firefox 2. 1. Right click the shortcut of the Firefox 2, click "Properties". Add "-profilemanager" at the end of the shortcut path. Click OK. Then run this shortcut to launch Firefox Profile Manager. 2. Create a new profile, name it "firefox3". And uncheck the "Don't ask at startup" 3. Go to Properties of the Firefox 2 shortcut again, remove the "-profilemanager" and add "-p default" at the end of the path. This forces Firefox 2 to open the original profile. 4. Start install Firefox 3. Choose "Custom" when you are asked. 5. The default Destination Folder is "Mozilla Firefox 3 Beta 1", which is stupid when you later update to Beta 2, Beta 3 or even 3.0.1. So change it to Mozilla Firefox 3 6. Same in Start Menu Folder name. 7. When installation completed, uncheck the "Launch Firefox now". You still have something to do before you can run it. 8. Go to the Properties of the Firefox 3 shortcut. Append "-no-remote -p firefox3" to the Target. The "-no-remote" will let Firefox run a separate instance. The "-p firefox3" will force your Firefox 3 to run the newly clean profile. 9. Run the Firefox 3, and you will be prompted that your Firefox is not the default browser. DON'T click Yes. Firefox 3 is not stable and you won't like to use it as your default browser. Simple uncheck the "Always perform this check when starting Firefox" and click No. 10. Now you can run Firefox 2 and Firefox 3 at the same time. Enjoy it.