A Unix irritation: pipeline status

Let's start with a Bourne shell irritation. Suppose you have a commandsequence that looks like:

may-fail | grep ...

Further suppose that you want to know whether may-fail actuallyfailed. In the normal Bourne shell, you're out of luck; the exit statusof a pipeline is the exit status of the last command, and grep willprobably succeed no matter what happens to may-fail . You're goingto need to use a temporary file instead of the pipeline or


神戶除左有神戶牛柳,仲有神戶鐵人。

Continue reading...

我也是大陸妹

文明單位:半新不舊移民
嘉賓:梁以文、趙寧志

移民撐起香港 ( 經濟日報評論版

香港是個移民社會,開埠時只是個人口不足七千的小漁村;香港兩次人口的大飆升,一次是第二次世界大戰,一次是中華人民共和國建國,顯見香

紐西蘭航空的坦蕩蕩真人騷

咳咳….你真係無眼花,以下這段短片,片內的紐西蘭航空機艙服務員,真的坦蕩蕩赤裸裸,全部一絲不掛,身上只有幾可亂真的制服body paint。

為了帶出紐西蘭航空Has Nothing To Hide這品牌概念,呢班演員便為藝術而犧牲,拍了這齣有關機


新劇場版《破》文字劇透

《破》在前兩天六月二十七日正式在日本全國公映,劇情有超多的改動,是為「破」也!以下是文字劇透,給心急的你和我,不喜勿進!翻譯關係,意思可能有錯。

!!!以下嚴重劇透!!!

This summary is coming from . Thank Soth for allowing me to translate this in Chinese


A theory on why users keep mailing specific people

Like many places, we have several generic aliases that users mail aboutvarious issues. And, just like I expect happens everywhere, every sooften users don't use those aliases and instead email some specificperson here with their issue.

I recently came up with a theory for why this happens: it's easier toremember people (and then their email address) than it is to remembersomething impersonal. So people remember 'oh, I dealt with last timeto fix this', and


可能係第一部裝有USB手指的環保車

簡單來說就是這樣的,將USB手指插入這部Fiat的環保車內,開車去,落車熄匙時記住帶埋隻USB手指,回家後插入電腦,你就可以得悉你剛才開車時,所曾排出的二氧化碳量的資料,電腦軟件更會為你分析,如何可以減低二氧化碳的


倘我有幸

我要發動大家!去評《巿場,去死吧》!今年文學雙年獎!!希望這本詩集得到公平的待遇!!!


有幸看到高峰

達到高峰未必是幸運的事,目擊高峰之達到則一定是必須訴諸幸運的事。我的意思是,作為讀者我們什麼都不用做,

How we solve the multiuser PHP problem

For those that have not run into it, the multiuser PHP problem is this:you have a shared, multiuser web server where many people have their ownweb pages, and some of them want to have PHP-based applications. Thisis a perfectly reasonable thing to ask for, but PHP runs in the webserver under the web server's UID and to have at least a pretense ofaccountability and security you want a user's dynamic stuff to run asthat user, so at most they can blow


去印度,踏上夢想搜尋之途。

04年的時候,我去過印度旅行,一去三個星期,全程雖然完全沒有珍饈百味瘋狂購物,但印度的古國文明,加上民間雖落後卻樂天的氣氛,卻讓我這一趟的旅程,成為了我目前畢生最難忘之旅。

讀過一篇報導,話說在某個調查