庸俗紅樓

光管壞什麼都不想做,亂update吧。這篇文章是年初就想寫的。

三年級開始看《紅樓夢》,應該是鄙人的怪異經歷裡,最登得大雅之堂的一項(其餘如誤闖沙頭角無禁區紙被警車解回之類的,還是待我再堅強一點時才說吧)。那時看

握緊與鬆開之間


艾尼斯:

還在想念傑克嗎?你這個膽小的契弟,憑甚麼可以傷害這麼多人呢?

看到你和傑克在斷背山上牧羊,天高地闊,只有你們兩個人和那數之不盡的羊群,你們曖昧地行進,我明白你倆的苦悶,了解你這個粗人和傑克這個牛

An obnoxious RSS feed trick

I suppose it was inevitable, but the marketers have definitely arrived;the otherwise excellent In The Pipeline 'ssyndication feed now has banner ads. Animated banner ads atthat. I find this especially irritating because the feed is already a partial text feed , which means that I'm goingto visit the website anyways (because I have to). Adding animatedbanner ads on top is just adding insult to injury.

I honestly don't know why marketers still keep doing this. Everyonewith three brain cells to


20060412網摘 – Google中文名:谷歌

Google

New Services


Something to remember about networking restarts

I helped a coworker debug an interesting Linux problem today, and inthe process wound up reinforcing something that I already more or lessknew but hadn't really thought about for a while. Namely:

/etc/rc.d/init.d/network restart doesn't unload and reloadthe kernel modules for your network devices.

A networking restart will bring down and then restart all of yourinterfaces, reset parameters and so on, but the one thing it doesn't reset is kernel modules. They


blog102?

有讀者問我可不可以寫一些 Blog 教學,不是怎樣申請 BSP 開戶口那種,而是比較進階的技術層面的東西。嗯,即是甚麼呢? 我想應該有以下幾項:

  • RSS
  • Permalink
  • Trackback
  • Tag

再配以一些 Blogger 常用的 Web2.0 服務介紹

  • Technorati
  • delicious
  • flickr
  • 豆瓣
  • Wikipedia

再介紹一下一些技巧,如


A little script: howmany

There's a lot of Unix idioms that I use often enough to have turnedinto little shell scripts. Here's the first of them; I call it howmany :

#!/bin/shtrap '' 13sort "$@" | uniq -c | sort -nr

(The trap is necessary because of a Linux bash issue .)

Howmany does what its name says: it counts up how many times each lineof its standard input appears, then shows them from most to leastfrequent


十年一覺電影夢


大凡競賽就得有個標準。可是影展競賽又不像體育競賽,譬如賽跑,一個起點一個終點,不管你身體狀况如何,誰先抵達終點,大家都看得到,有個公平性。影展競賽的標準比較主觀,見仁見智,不管評審人數是多少,都是一種

xiostat: better Linux disk IO statistics

Xiostat is the program I wrote to giveus a faithful recounting of the Linux kernel's disk IO stats after we discovered the problems with iostat's numbers . I've now finally gotten around to putting it up on theweb and making a page that explains how to run itand what its output means and so on.

The current version is a bit slapdash, but I have verified that it(still) works on bog standard 2.6 Linux kernels (and thus should work onDebian Sarge,


The fun and charm of quoting URLs properly

The fun and charm of URL quoting is that you need to do it twice .Differently. That's because there's two different entities involved:browsers and web servers.

Strictly speaking, about the only thing that you have to quote forthe browser is quote characters, because otherwise your nice comes out very confusing. If you are being a good web standards monkeyyou need to quote at least ampersands (&'s) as well, because otherwisethe