Getting your networks to your racks

I'm in the process of getting a new test server installed in a rackin our machine room. This means we needed to set up some networkconnections for it, which involved someone dragging yet more cablearound our machine room and finding switch ports to plug into to getthe necessary networks (which turned out not to be an entirely trivialthing).

As a result, the whole thing got me thinking about the issue of the bestway to get all of your networks to where they need to be in


A gotcha with command order in pipes

Here's a mistake I've made more than once:

tail -f active-log | grep big-filter | grep -v one-thing

(Here the big-filter is something that selects only a small amountof actual interesting logfile output, and then you want to throw awaya small bit more. For example, my most recent version of this wasmonitoring the exim log on our new mail system for failures and otheranomalies, and then wanting to throw away one particular known failure.)


風花雪月

風花雪月


「蘭開夏道」這個專欄,很多人看得咬牙切齒。是的,我曾經毫不留情地批評「北方佳麗」,並因此而開罪了至少五十萬個香港男人,背上「傷害中國人民感情」的罪名;在「以貌取人」等文裡,港男同樣被我嘲諷得好

How to properly look up hostnames from IP addresses

Looking up reverse DNS to determine the hostname of an IP address thatyou are talking to is one of those almost simple things that softwarekeeps getting wrong .So here is how you do it, in two variants.

First, if you use DNS and have an (almost) empty /etc/hosts or justdon't care about looking up something in it, is the simple version:

  • gethostbyaddr() the IP address. If it fails, you are done. Otherwiseyou have the claimed hostname .

    (


20071010 網摘 – Lessig on ‘corruption'

Freedom

Web 2.0/3.0


上港台,和「自己人」開咪。

較早前在本blog寫了一篇有關Levi’s 廣告攣與直的網誌,港台的Eric看後,便找了我上了他和梁兆輝主持的節目「自己人」做嘉賓,講一下gay marketing這題目。

噢,想來我真的和港台有緣,今次已經是第二次被不同的DJ邀請,看來DJ們都經


A silly trick with X

Once upon a time, I was at home and really needed to see somethingthat was displayed on my screen at work. This being Unix, there was noconvenient remote desktop add-on that would have let me mirror my workdisplay to home, but this being Unix, there are ways around that.

(Also, I was connecting over a slow dialup PPP connection , so a live remote desktop thing would havebeen difficult anyways.)

My first attempt was simple; ssh in to the work machine and do


IT亂談

早前聽回 Talkonly 談本地 IT ,討論到其中一個痛點是:香港普遍不太尊重 IT人才,但在這個資訊科技的年代,往往有很多 mission critical 的工作其實都落在 IT 人手上。近年也開始有這些新聞,如市民私人資料洩漏到網上、八達通增值失誤等等。然


近來,一直在為錢發愁。

下個月就要27歲的我,所有的銀行存款加起來,都不夠買一部手提電腦。

下個月就要27歲的我,朋友請我去吃魚翅,我卻窮得連上班用的淺色胸罩都捨不得買。

不要告訴我經濟大好市面一片欣欣向榮

無題

下個月,就27歲了。