Chicago Street Lights

Michigan Avenue lights (photo taken this weekend atop the Hancock Building in the northern part of Chicago):

Street Lights at Michigan Avenue


君子絕交

無論是多要好的朋友,也難保不會一朝割蓆斷交,雖然未必就此反目成仇,至少也盡量迴避對方,甚至老死不相往來互無聞問。這樣不是很可惜嗎?其實那也是不一定的。

這麼多年來先後跟幾個本來要好的朋友斷絕來往,當年自

Turning synchronous channels asynchronous

(This is likely obvious, but since I keep working it out again in myhead I'm going to write it down once and for all.)

Suppose that you have a CSP -likeenvironment, with lightweight processes and synchronous communicationchannels with no buffering. Synchronous channels are simple but veryinconvenient for many real-world things, where you need to haveasynchronous channels. Fortunately, you can turn synchronous channelsinto acceptable asynchronous ones as follows.

To send an asynchronous message, you spawn a new process and


Some thoughts on battery backup for RAID controller cards

In a comment on my entry on software RAID's advantages I was asked what I thought about sofware RAID'slack of battery backup units, as you can get on better RAID controllercards. To answer that, I'm going to start by asking my traditionalquestion: how does having a BBU RAID card improve your systemperformance?

A RAID card with a battery backup unit effectively turns synchronousdisk writes into asynchronous ones, by buffering such writes in itsbattery-backed RAM and immediately telling the host OS


姊姊的守護者


我沒有看過小說,看電影時無法進行比較,但可能這樣也有好處,因為心無掛慮,對於這個題材自然感到很新鮮。

姊姊患了絕症,父母為了救她而用試管嬰兒技術生了妹妹,妹妹出生的任務就是為姊姊供應各種DNA能完美配合的器

我和酒的關係


我和酒的關係有點複雜。我不會直截了當承認自己好酒,因為有時候即使美酒當前,我也完全沒有飲的意欲,而且我會間中一段長時間滴酒不沾;可是,我的確經常飲酒,也不否認很享受對酒當歌、共君一醉一陶然的樂趣 。

我第

Go interfaces are not my sort of interfaces

I've written about interfaces before, orat least what I mean by the term (and how it relates to inheritance ). To summarize, 'interfaces' are a way offormally expressing 'is-a' relationships; when you say that a class or atype implements the String interface, you mean that it is a string.

One of the things that jogged my mind about the whole issue was Go , which has things that it calls 'interfaces' (okay,technically they're called interface


得到了以後又如何

世上絕少人能做到無欲無求,像顏回那樣一簞食、一瓢飲已能自得其樂。大多數人都有一些非常渴望得到的東西,而且往往是越難得到,便越渴望得厲害。不同的人渴望得到的東西可以大異其趣:對你,那是一套昂貴的頂級音響

Proper disclosure, or how not to be a comment spammer

Shortly after I wrote my first ipsCA entry , Igot a comment on the entry recommending a specific other SSL vendor.At first this didn't strike me as unusual; it was the kind of helpfulnote that might be left by one of my readers (or just someone who sawmy blog entry on Planet Sysadmin ). ButI have a hair trigger with spam, one that not infrequently makes meunreasonably suspicious, so I ran the poster's IP address through areverse DNS lookup just to make myself


博士雜談

一直不明白為甚麼現代教育的最高學位叫做「博士」。中國古代的博士是教授官,跟現在拿學位而被稱為博士的大不相同。那麽「博士」應是「博學之士」的意思吧,但讀博士學位的人只專精研究一個科目裏的一個小範圍,叫「