A rule of thumb: Automate where you can make mistakes

One of my sysadmin rules of thumb for deciding what to automate in scriptsand programs is this: automate where you can make mistakes. In particular,automate where you are specifying redundant information.

This will make more sense with an example, so let's talk aboutconfiguring iSCSI targets. We use static target configuration, whichmeans that you tell the system a target name and the IP address that itcan be found on; each iSCSI server has two IPs, so we configure each ofits targets twice, once


益力多的回憶

昨天在超級市場冷藏部見到一排排擺放整齊的益力多,奇怪怎麼平時沒留意到,買了一排回家,是給兒子的,因為他很喜歡這飲品;以往只在頗遠的華人超級市場才買到,因為不常去,所以買回來後都留給兒子喝。我已沒喝此物

葉問2("Ip Man 2") ----- 劇情就無乜,打仍精彩!
























片名 : 葉問2
導演 : 葉偉信
演員 : 甄子丹,洪金寶,黃曉明,熊黛琳,鄭則仕,樊少皇,任達華
片長 : 108 分鐘

1. 相對於第一集,這齣的劇情明顯薄弱了很多!不過,看武打片,我對劇情不會有太大要求,基本上去得順便可

孖寶大亂鬥

Super Mario Crossover – 可用洛克人、魂斗羅、惡魔城等等角色玩孖寶!用魂斗羅 Billy 吃了 S 炮 (花) 後簡直爽死!不過不懂游泳就是了…

[via 電腦玩物 ]


奶奶葬禮上有感

世界上有一句說話最是無敵。「我說的你就是不聽,忠言逆耳啊!!」這一個忠言逆耳,基本上沒有失敗的可能。你成功了,那就說全靠我提醒了你,可以躲過了危機。你失敗了,那又說我一早提醒了你,你就是不聽。問題在哪


Guru Dutt的故事 (八) : 錯估形勢


Kaagaz Ke Phool /紙花》(Paper Flower, 1959) 在1959年10月於孟買上映. 首映禮盛況空前, 連當時的副總統薩瓦帕利‧拉達克里希南 ( Dr. Sarvepalli Radhakrishnan ) 都出席觀影. 《Kaagaz Ka Phool》公映後, 外界旋即大力抨擊. 電影雜誌Filmindia 狠批: 「 《Kaagaz Ke
Continue reading...

Google Chrome OS 試用

由 Google 開發的 Chrome OS

可能暫時未有正式及具體的編譯教學
大部分在網路上可下載 Chrome OS 暫時都是由專業 Linux 使用者
經由 VMWare 所編譯的虛擬硬碟檔 (*.vmdk)
幸好 VMWare 的 VMWare Player 可免費下載安裝使用 (Macintosh 則使用 VMWare Fusion)
而 VMWare Player 3 還可以建立虛擬硬碟檔見下文
Continue reading...

Like

like

日前讀報,說賑災節說「分享」其實不敬,因為「享」的是歡樂,可災難不是甚麼值得歡樂的事,應用「分担/分憂」等字眼。

這明顯是個曲型英譯中問題,皆因 Share 是中性的,英文可寫 Share the joy、Share the burden 等。但當 Share 變成中文,則通


教哲學和講耶穌

這個學期近尾聲了,很期待快到的暑假,那長長的三個月,可以自由自在看書寫文、彈琴練魔術重執篆刻刀、和跟家人到處走走。其實,這麼渴望放暑假的其中一個原因,是這個學期哲學導論的那一班令我對教書有點厭倦。

我一

How you access an object can be important in Python

One of the less than obvious things about Python is that it can mattera lot just how you access an object, and not just for performancereasons. Accessing the same object through two different names can havedrastically different results under some circumstances, as yesterday'sentry about frame.f_locals shows.

(This is especially the case when resolving one of the names involvesa C module (instead of just a Python one). C modules generally need'getter' functions to translate their C-level data