小器和大器

我為人心直口快,兼且火爆,所以忌與小器的人交朋友。小器者,容不得人批評自己,被批評後記仇,找機會報復;小器者,也接受不了給人比下去,心有不甘,覺得對方不過爾爾,成功只是僥倖,自己實是懷才不遇,只要時來

APS-C微單新世紀—Samsung NX100試用報告(一)

較早前到北京出差,只帶了我剛買入手不久的Canon G12同行。

說真的,平日出門若果又要帶電腦又要帶相機的話,如非必要,老早決定不會帶單鏡機上路了。

不是不享受單鏡機可帶來的攝影樂趣,但讓肩膀太受罪的話,身體至上

Continue reading...

PHP UTF-8 編碼與 session 及 header 問題 (Solving BOM of UTF-8 File Encoding problem with PHP session and header)

網絡上不少跨語言網頁大部分都是以 UTF-8 作為編碼
但利用 UTF-8 編碼編寫 PHP 文件使用到 session 及 header 時便會發生問題
UTF-8 編碼的文件會在文件檔頭加上 3個bytes 的資料,這 3個bytes 稱為 BOM - Byte Order Mark
在標準制式下 UTF-8 的這 3個bytes 分別是見下文
Continue reading...

Why I'm not really interested in Solaris's Live Upgrade stuff

Solaris Live Upgrade is one of those things that I would like to love,but I can't seem to get interesting in, and here's why.

First, as I've written before ,we don't patch our Solaris machines . They're onlyaccessible internally and they're effectively black-box appliances;there's very little enthusiasm here for patching a working appliance.

When we do patch our Solaris machines, we never need to roll backpatches because we test them first in


The Cove ("海豚灣") ----- 海豚被屠殺之灣!
























Film : The Cove (USA) (2009)
Directed by Louie Psihoyos
Produced by Fisher Stevens, Paula DuPre Pesmen
Written by Mark Monroe
Starring Ric O'Barry
Music by J. Ralph
Editing by Geoffrey Richman
Duration : 91 mins

1. 又是另外一齣Documentary,今年好似看了很多紀錄片,而今次是可愛的海豚!

2. 片的主題是講一隊crew深入日本人捕殺海豚
Continue reading...

Abalone - the affordable luxury

Right, last time after writing some comments on Blokus , we did have some fun on blocking others' way in the library. Some of my friends asked me about the Abalone I mentioned, okay, lets get the chess-game on!



Continue reading...

Mamiya 645 pro tl+80 1.9正片夜景

有了賓仔645後,成日拍賓仔,搞到mamiya 645 pro tl長放防潮箱。人說相機鏡頭不用好易壞,就乘星日一人去吃晚飯的時候,帶他去吹吹風,晒一下月光。誰叫自己睡晚了,連magic hour都過了。

這回帶上80mm 1.9這枚645的標

Continue reading...

感誰的恩?

今天是感恩節,有個住在灣區的好朋友全家過來跟我們一起過節,好朋友的父母正探望他們,所以也一道來了,一行大小共六人,加上我們一家三口,今晚要弄的就是個九人大餐了!其實所謂大餐,不外是焗一隻十多二十磅的火

My view on Wayland replacing X in Linux

There has been a little bit of commotion lately about Wayland perhaps replacing X ( see also ). I'm not really happy, andwhy goes like this:

  • odds of a full Wayland environment having an X compatibilitylayer: decent but nowhere near sure.
  • odds of Wayland having remote window support on initial deployment: low.
  • odds of Wayland supporting remote X the way it's done today: basicallycertain if it has X support at all.
  • odds of there being a Wayland to X translator, so you can

不是寶箱

早前才聽到,有位牧師說「婚姻就像一個寶箱」,很多人以為結婚就是尋寶,噢,幸運地找到一個對上眼的娘子,又或是脫離可怕的家庭,嫁給型男,從此就快快樂樂的生活下去。但牧師續道,「寶箱卻是空的」,正如那些相信