A quick note about how extended partitions work

Hard disk partitioning on PCs is one of those confusing areas, full ofpeculiar features and apparently random limitations, especially thewhole primary partitions versus extended partitions thing.

Fortunately, it's actually fairly simple:

  • primary partitions are just a fixed size array in the firstsector (the master boot record, among other things).
  • extended partitions are a chain (a linked list).

Each extended partition starts with a sector (the ' extended masterboot record ')that describes how big it is and then points to


blog人十問

某一晚
前輩問我關於寫blog的事
我以為
我沒有資格多談
因為我寫blog只是貪得意
電腦技術又不好
根本沒有深入了解這種文化

這件事
令我思考寫blog對我們生活的改變
我現在除了讀報紙
也會透過別人的blog來了解社會萬象
也許
有些朋友也會

世界大變


五年前今日
世界大變
這些年來我都在想
這麼辛苦工作有什麼用
賺了錢有什麼用
忍氣吞聲有什麼用
這個地球根本每天也有機會“一鑊熟”
有時候做人真的難免悲觀
特別在911這種怨氣十足的日子

寫blog差不多十個月
一直有人說這兒

Python's extra-clever help() function

I recently used ' help() ' on one of my own internal modules, mostly asa quick way to browse the entire function/class collection in one go.Now, I'm kind of a slacker when it comes to using docstrings (for somereason I prefer comments before the function), so I didn't expect tosee very much in the help() output.

Much to my surprise I saw things like:

hostFromEnv(env)  # Extract the host from the  # REQUEST_URI

'In place' filesystem defragmentation with Disksuite

While the Berkeley FFS and derivatives like Solaris UFS are much, muchbetter at dealing with fragmentation than the original V7 filesystem(which continued on into System V before SysVR4), they can actually getfragmented over time to a degree that matters.

Traditional Unix, Solaris included, really doesn't have any tools fordefragmenting filesystems; instead, you get to to do it the bruteforce way, by copying everything into a clear filesystem. With SolarisDisksuite and mirrored disks, it is possible to do this


微涼的早晨答展鵬出題

1.一部你不只看了一次的電影

王家衛的所有電影,當中又以“阿飛正傳”重看最多,因為喜歡那情調。

2.一部你如果身在孤島時想看的電影

似乎沒有可能看電影了。

3.一部讓你發笑的電影

周星馳“國產零零柒”,每句對白

Orz反彈藥方

1. 俄羅斯進軍大獎賽決賽

中國入唔到決賽有少少慘,其實我憎巴西多過中國好多。技術好鬼呀巴西。只係身體質素唔錯之嘛。而家傷兵處處,世界女排球壇的形勢真係好古怪。俄羅斯無端端咁都可以入到決賽,除了加莫娃醒番
Continue reading...

Weekly spam summary on September 9th, 2006

This week, we:

  • got 15,100 messages from 230 different IP addresses.
  • handled 18,312 sessions from 982 different IP addresses.
  • received 156,592 connections from at least 49,202 different IPaddresses.
  • hit a highwater of 36 connections being checked at once, set onSaturday (today).

Message volume is up from last week ,but I'm not too surprised; this is the start of classes


A thought on iTunes and similar online services

What iTunes and similar online services are really selling isconvenience and guilt-avoidance, with a small side order of helpingout the artists. They're manifestly not selling the music itself (orvideos or etc), since you can find them online yourself if you look hardenough.

The 'helping out the artists' bit is currently only a small side orderbecause most everyone understands at some level how little of the moneyinvolved actually makes it to the artists.

The guilt-avoidance is not a good long


贏了高薪,輸了什麼?

這段時間在街上走動,總會遇到一些年輕莊荷跟我打招呼,他們都是我以前教過的學生。有時我會跟他們閒談,他們有一個共同特點,就是很累,個個都有一雙渴睡的眼睛,大概是未習慣日夜打亂的上班生活吧。我最近發現這個