The rules for combining things with Bourne shell 'here documents'

Shell here documents are relatively simple to use on their own, butit's usually head-scratching to combine them with other things(redirections, pipelines, or conditionals). To save me having to dothe experimentation and manpage reading the next time, here's thesimple version of the rules: here documents always start at thenext line .

So you can write any number of other things on the same lineas the command with a here document:

cat <
                    
                
                
                    
                
            
            
            

只得空殼 – 偽能叛變

《The Surrogates》(偽能叛變) 本身的點子不錯,當人人都使用機器替身去工作、甚致吃喝玩樂的時候,我們的社會會變成怎樣呢?可惜影片卻不能掌握此重心,劇情鬆散,連貫不來。

主線是慣常的偵探故事,發現機器替身被毀,卻連操


On (not) putting IP addresses in registration email

If you are creating some sort of system that sends email to people inresponse to web-based requests , it is tempting tothink that you should put in the IP address (and the timestamp) that therequest came from, in case your services are abused. In practice this isuseless, for a number of reasons.

The first one is that almost no one sends abuse complaints about spamany more, because people have long since worked out that doing so isalmost always a waste of (their) time


A little habit: cat >/dev/null

If you were to haunt me, every so often you would see me open up a new terminal window , run' cat >/dev/null ', and paste or type something there.

What I am doing with this peculiar behavior is simple: I'm arrangingfor a slightly more persistent text storage than my X selection . I park any number of things dependingon what I'm doing; snippets of text from fishing back in editorundo , commands that I'm temporarilyre-running, and


起底又如何

專家警告,不要隨便在網上表露真實身份。

看來確實是明智的忠告。因為對店舖職員不滿,為了羞辱他忿而錄下職員映像放上互聯網,殊不知正義之火倒過來燒著自己,甚至被人起底,原因竟是愚蠢地透過常用戶口來上載,兼且

關你屁事


題目的四個字,看似粗鄙,但認真想想,這四個字實在發人深省,而且有大智慧在。

日常生活的眾多問題,往往由想不通這四個字開始。有些人喜歡花時間去探聽別人的事,人家過得快樂,他會妒忌和自卑;人家遇上挫折,他又

《電腦線圈》的科幻魔法

《電腦線圈》是一套獲奬無數的科幻動畫,故事講述在近未來的「電腦眼鏡」流行於小孩子之間,主角優子一家剛剛搬回到大黑市中,遇上當地的小孩,發覺他們除了用眼鏡上網或養寵物外,竟然還可以連接到「古舊空間」,裏


由「檔案」到「對話」

上星期上了 Talkonly 做現場觀眾,其實沒有甚麼特別的題目想講,不過當談到 Chrome Frame 的時候,我當然也提一下 Wave,然後討論就去到解釋甚麼是 Wave 了。一如所料,這些解釋很易落入細節描述,如實時、可重播歷史等等,聽的反而難以掌握。


《派對動物傳》partying中

等了又等,

拖了又拖的《派對動物傳》,

始終都是要寫的。

由十月一日開始,

唯有暫時放下空姐的行李篋。

寫稿期間,

為配合氣氛,

飯局、茶聚及飲酒作樂無任歡迎,

其他有益身心的活動一律暫停。

如你經歷過開始於夜店的愛情

下女載譽歸來


亞洲電影節 (HKAFF ) 選映蒙 世界電影基金 修復的《下女》(The Housemaid, 1960) . 多口之徒定必認為南韓電影在世界影史上不值一提. 我卻對這套南韓經典歷歷不忘, 是我影迷成長期中, 極具營養價值的一套電影.

Continue reading...