最近在讀一本叫《 電影中有趣的科學 》的科普讀物,相信大家從書名已可以想到本書的內容是甚麼了。本書會說出電影中種種的科學錯誤,如在《Jurassic Park》裏的大部份恐龍其實是生於白堊紀,《Contact》裏的蟲洞之旅的時間概念錯了,
The :; shell prompt trick
For years, I've had a somewhat unusual shell prompt. It looks likethis:
:; (where
is the hostname of the current machine.) Putting the hostname in your prompt is pretty ordinary, but what'sthe other stuff? These days, a more typical shell prompt is somethinglike '
cks@newman:~$', to quote a Debian example. (And manypeople use more elaborate prompts, such as Jamie Zawinksi's .)The trick
A robots.txt surprise
Because I don't really like banning MSNBot , MSNSearch's web spider, I decided to drop our ban and see if its behaviorhad improved since last September . The process ofdoing this has led me to a little surprise about how at least MSNBotmatches User-Agent lines in robots.txt .
From looking at our logs, I already knew that MSNBot was still visiting;it pulled robots.txt at least once a day. So all I needed to do waschange robots.txt so that
記得。記得。
天氣又變冷了,像他們在觀塘法院外露宿的時候一樣。聽說沒什麼人記得他們了。其實我是記得的。請寬恕我這樣遲緩,才提起他們。支援被起訴的兩位抗議世貿人士,港島又得,新界又得,燭光又得,撞鐵馬又得。
政府把起訴
Unicode is not simple
Unicode is very big these days, and there are a lot of people who willtell you that Unicode is simple once you take the effort to understandit and that you're a parochial spud if your new program doesn't supportit. Unfortunately, only simple Unicode is easy.
The simple vision of Unicode is that once you have your data inUnicode, you're just dealing with characters and your program canjust do stuff with them as normal. Okay, case and collation is hard , but there
舊屎啲嘢
20060228網摘 – Google Calendar?
On the Web
- slash/links 可自己重新打造 del.icio.us 的外觀
- iOutliner – Organize your ideas. 在線 Outliner 來管理工作、意念、點記等等
- Logahead – Just blog. 簡單易用的 Blogging software,沒有 Admin Page,直接在 Blog 上寫文改文加 link
- NetJaxer 幫你替 Web App 安裝快速捷徑, menu, startup 等等,就如普通軟件一樣
Javascript
活在鹹潮中
A sad day for SGI: it's now a spammer
I once quite liked SGI and have been following its slow decline witha certain regret. But I did not expect to see this day come; SGI hasbecome a spammer.
Not directly, of course. Large corporations (which SGI still is, sortof) don't spam people directly. Instead they hire specialized placesto do this for them, like the well known (one could say 'infamous')Responsys Interact.
SGI might argue that we have previously been an SGI customer so theycould spam us
Practical RAID-1 read balancing
If you're doing performance analysis of a RAID-1 setup, one of theinteresting questions is 'which drive gets read from when?'
(Measuring how balanced the current IO load is is useful, but it doesn'ttell you how a changed load will affect the balance.)
Since seeks are the expensive thing on modern drives, you want yourRAID-1 system to deal in requests, not in individual blocks, and to senda sequence of sequential reads off to the same disk. If
Menu