Why I hate the Solaris 10 version of /bin/sh

Every so often I discover some exceptional piece of braindamage inSolaris. Here is one of them, presented in handy illustrated form:

$ cat cdtest#!/bin/shcd /not/there || echo failedecho got here$ sh cdtest./cdtest: /not/there: does not exist

(No other output is produced.)

Oh yes, Solaris. Killing my script when a cd fails is just whatI want you to do, especially when this behavior is undocumented andcannot be turned


蕭灑

是的,信仰是一個鬥爭的過程。雖然馬克思說信仰是人民的精神鴉片,是麻醉藥物,是止痛劑,會令人上癮,會讓人逃避現實,人類要進步,就必須要戒除;在我看來正好相反,因為信仰使人夢醒,如果人生如夢,那麼信仰就是

Do we have a choice?

Talking about Inception, recently I has quite a strong idea ruminating in my mind.

In the past, I used to consider determinism as something naive, but these days when I read more on neuroendocrinology, I started to see how our thinking, emotions and judgement are easily explainable by the minute shoot of neurotransmitters/ hormones. If so, every tiny choice we made in life can simply be attributed to a reflex physiological response.

This may sound simple, but if its true and the whole world accept it, think about


聖人

甚麼是聖人?我從來也搞不清楚。宗教講的聖人還容易理解一點,這裏的所謂「聖」,應該是「神聖」的意思;比一般人接近神很多、甚至沾有神的屬性或靈氣或甚麼的,就是聖人。這種聖人當然是優越的極少數,不過,倒不知

Another reason to hate $LANG and locales on Unix

Sometimes I'm slow; only recently did it occur to me how the $LANG sort misfeature and GNU comm's misfeature combine in an orgy of annoyance in a heterogenousenvironment.

Suppose that you have systems that changed their default localebetween operating system versions. As part of routine processing , you use comm to get the difference betweensomething on the local system and a global list. Well, oops. Even if youcarefully use sort on both versions, you are going to have problems.

As we saw earlier


德州撲克之夜

作為一個被中環蹂躪過的女人,我很珍惜自己殘存的一點純真。Well,「純真」這兩個字用在我Daisy身上,無疑是一種黑色幽默,可是我的而且確也有純真的時候。譬如說,當我的上司Eric跟我說第一千七百六十九次:「Daisy,你知我遲

窒息


肥人和瘦人的分別是,瘦人會歧視、嘲笑、作弄、侮辱體型稍胖的人,肥人一般不會看瘦人不順眼。

瘦人面對肥人時,會很有優越感,會覺得很自豪,會忍不住要說些話做些事傷害一下肥人,而且,大多數人都會認為這是正常的

Mamiya 645 pro tl+mamiya 80 1.9+樂凱100黑白

上次上廣州和狄少買了不少菲林,樂凱是中國的一個菲林品牌,英文名lucky。

手上的這卷是120的黑白片,一回來就急不及待地放入了mamiya 645 pro tl入面試機,試機鏡頭是mamiya 80mm f1.9 sekor。

造形簡單,雖是1.9大光圈,但

Continue reading...

Totem

Watched the stunning Inception with Landico the second time. After the mind-drilling Memento, Chris Nolan pushed his art in storytelling to a master level, and again consumed all my brain glucose within this 150 minutes. Absolutely, best movie in 2010 so far.

The second time in theatre doesnt make the film dull, knowing the plot, I enjoyed the movie with much more appreciation to the fine details. This time what catches me is the role of the spinning Totem throughout the story. It

家庭 • 自由

老婆回來了。一去兩星期,遊上海世博,到廣州探望好朋友,在香港陪母親和購物。我問:「此行好玩嗎?」她說:「好玩得很!還未玩夠呢!最享受那種獨來獨往的自由。」接著竟還說:「我以後要每年自己出外旅遊一次,或