The many IPv6 addresses of an IPv4 machine

Ignoring things like link-local addresses, a dual-stack machine withan IPv4 address can have and see at least four different sorts of IPv6addresses:

  1. what I will call non-legacy IPv6 addresses. These are only reachablethrough the 6bone.

    (I think these are sometimes called 'native IPv6 addresses'.)

  2. 6to4 addresses in 2002::/16.These are reachable both through the 6bone and also directly overIPv4 (using 6in

接二連三

接二連三

劉曉波說希望自己是中國最後一個以言入罪的人。然而,這只是個美好的期望。他之後,有了譚作人。

譚作人說在他之前已有兩位無辜者因涉及揭露四川豆腐渣工程而被捕,他說自己會是第三位。而所謂好事不過三,他
Continue reading...

為何日本獨尊?

我和幾個同事每隔兩三星期便會在我家裏一起看電影,看完後討論一番,大家都很喜歡這活動。昨晚我們看了敕使河原宏導演的《沙丘之女》,討論完電影後,我趁機向同事們提出一個關於日本電影的問題:《沙丘之女》拍得很

Forcing your webpage content to scroll is generally a bad idea

Every so often, website designers do things that make me clutch myhead like a stunned monkey, so today I have an open letter for them.

Dear website designers: please understand that stuffing your pagecontents into a restricted space and forcing it to scroll when itdoesn't fit is not a good idea, at least not if you want people toactually read it. No one likes reading content through a little viewportwhen they have their full browser window available, and reading contentthat requires horizontal scrolling is generally


人民英雄

人民英雄

譚作人:做中國人特別困難。

見證最後的美麗
Continue reading...

Sony Cyber-shot 新三劍俠

昨晚剛出席了Sony Cyber-shot安排的博客活動,除了享受了一頓「一個海港只有一個海港城」的無敵海景晚餐外,更開心的是有機會第一時間把玩了Sony Cyber-shot的三部新機。

這是一貫的Cyber-shot的產品宣傳策略,絕少單打獨鬥,通常一定會

Continue reading...

紅雙喜: 小露寶與小甜甜

新年紅色, 撞正情人節, 玩具剪報也特別來個紅色特集.

我在1980年出生, 對七十年代的動畫沒有特別強烈的感覺. 如果自己早出生幾年, 可能已是個有玩具情意結的Kidult. 當時的小朋友不會上高登、玩facebook、打Wii, 只靠收看日
Continue reading...

拜年衫



過新年, 名正言順要買新衫過節. 我正是那種著到褲穿窿, 永遠煩惱如何參透穿衣之道的人. 新衣服都預備好了. 想起數月前曾翻箱倒篋, 找出一件舊衣拍照留念. 這件衣服很有紀念價值, 但我永遠不可能再穿了. 這是我六、七
Continue reading...

<青蛙王子>的哲學問題

<青蛙王子>的故事大家都耳熟能詳,無論喜歡與否,大概不會認為那是個很複雜的故事。其實呢,這個故事充滿了哲學問題,只要你思考一下,看似簡單的情節便會變得很難理解。讓我舉些例子:

- 故事說王子被巫婆施法變成

Beware of using Linux's hostname -s switch

The hostname program has a common switch, -s , which is documented(in the Linux version) as:

-s, --short
Display the short host name. This is the host namecut at the first dot.

Although you would not expect it from this description, running' hostname -s ' will do a gethostbyname() and thus often a DNS lookupin most Linux versions of hostname . This can of course fail if yourDNS is not working, which winds up with the very peculiar result