跳到主要內容

發表文章

Sync Gmail Contacts with Microsoft Outlook

同事說 Google Calendar Sync 不能同步Contacts,官方只有出 Google Apps Sync (Requires Google Apps Premier or EDU Edition)。

Closure Compiler vs. YUI Compressor vs.Ajax Minifier

Test compression rate via following tools: Closure Compiler (2010/01/04) YUI Compressor 2.4.2 (2009/06/10) Microsoft Ajax Minifier 1.1 (2009/11/15) Source file: jQuery 1.3.2 regular , jQuery 1.3.2 minified jQuery 1.3.2 regular jQuery 1.3.2 minified Original 124,995 57,254 Closure Compiler (default) 55,334 55,334 Closure Compiler (advanced) 49,647 49,647 YUI Compressor 57,524 56,705 Microsoft Ajax Minifier (default) 72,346 56,061 Microsoft Ajax Minifier (hypercrunching) 53,573 53,570 由上表可知, Closure Compiler 不管source是否有經過其他方式壓縮,都能做出正確地壓縮,達成最小壓縮;贏家為: Closure Compiler ! Conclusion:  Closure Compiler  can provide minimized javascript, it's the best choice! 2011 Update: Please take a look at  UglifyJS – 更強大的 JS Compressor

WBR-G54 install Tomato Firmware

看到 D-Link DIR-300分享(DD-WRT改機篇) 獲得如此高的效能,激起我更新手邊舊型的 WBR-G54 念頭。 查了一下不少人說 dd-wrt 沒有 Tomato 穩,雖然說 Tomato 只支援Broadcom晶片的無線基地台,剛好 WBR-G54 在支援之列。 I saw  D-Link DIR-300分享(DD-WRT改機篇)   obtained very good performance, inspired me to install third party's  firmware on my old  WBR-G54 . Some people say that  dd-wrt  is not as stable as Tomato , although  Tomato  only supports Broadcom chip based wireless access point,  WBR-G54  is one of the supported model.

自製Chrome Extension之我也會/ AV-Tokei Chrome Extension

由於某位很低調的學弟一直鼓吹Chrome Extension,所以今天花了半小時看了一下;似乎不會很難寫,剛好又看到 上官神人 貼的大人的美人時計avtokei,就簡單試做成一個extension。 I followed  Hello World  wrote a AV-Tokei Chrome Extension as an exercise. 簡單地說,就是照著 Hello World 的內容,再改寫自己的popup.html。目前這個av tokei就是點下去出現目前時間的美女圖,原網站是日本當地時間,我是盜連它的圖,應該沒幾天就不能連了,哈! To put it simply, I only rewrite popup.html. You can download the crx here . 下載網址: 這裏 其實我是希望能做出一個自己用的簡繁轉換,因為還沒看完Tutorial,所以先做一個垃圾玩玩。 Update: 似乎有朋友誤會我的意思,重點在可以自製,而不是盜連圖片呀!因為再增加DigGirl extension示範。

Convert from vmdk/vhd to VDI format 將vmdk/vhd轉換為VDI格式

上網找到的都是舊資料,現在不再需要vditool或qemu,直接利用VirtualBox附的VBoxManage就可以轉換虛擬硬碟的格式。 把vmdk或vhd轉成vdi的指令: VBoxManage clonehd source.vmdk target.vdi --format VDI --format 是指target的格式,source的格式似乎會自動判斷 Your are no longer needed to use vditool, the tool "VBoxManage" comes with recent revision VirtualBox. Just type the command: VBoxManage clonehd source.vmdk target.vdi --format VDI - format refers to the target format, source format seems to be automatically determined. VirtualBox Command Line Management Interface Version 3.1.0 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. Usage: VBoxManage clonehd | [--format VDI|VMDK|VHD|RAW| ] [--variant Standard,Fixed,Split2G,Stream,ESX] [--type normal|writethrough|immutable] [--remember] [--existing]

某醫院的掛號系統 A registration system crash picture

由於某位不要我說他很帥的學弟表示,寫英文Blog可以增加英文程度,因此開始練習雙語blog。 昨天看到某間醫院的掛號系統當機,拍張照留念。 I saw a registration system crash in a hospital yesterday, thus I take a picture souvenir.