我們有什麼本錢?

那是在幾個月之前,我剛寫“青春殘酷物語”系列的第一篇〈青春是誰的本錢?〉,當時我曾想過:“如果一個地方本身沒有什麼資源,未能教育民眾卓越的謀生技能,人們自我增值的意識不強,而且大家事無大小都把責任推給

Platform risk and platform (in)security

One of the perennial arguments between Mac people and Windows people iswhether or not Macs are better than Windows machines for staying safeon the Internet, and if they are, why this is so; not infrequently,the debates get quite heated. I think that one reason for this is thatpeople confuse the concepts of platform risk and platform (in)security,and thus miss something important:

Risk is not the same as insecurity.

(Here, a platform's risk is the likelihood that people using it will


十一月至今

1)我在織一頂紫色的冷帽。

2)天天不停吃但又不能做運動,我像一隻豬。

3)拆了gel nail,現在我的指甲可與SAW II poster媲美。

4)我在看«時裝時刻»。

5)拆了fake lashes,每朝洗面時我都不知道眼睛在哪。

6)朋友又一次搭上別人

What NAT is useful for

I can think of at least three things that NAT is good for:

  • it compacts address space; many machines can be behind a single IPaddress.
  • it makes a decent outgoing-traffic-only firewall, which provides asignificant amount of protection to machines.
  • to some degree it denies outsiders what I'll call 'trafficintelligence'; how many machines you have, how they're grouped,and what machine or group is responsible for what traffic.

(Sometimes the lack of traffic intelligence can be a problem


Why vfork() got created (part 2)

Although fork() theoretically copies the address space of the parentprocess to create the child's address space, Unix normally does notactually make a real copy. Instead it marks everything as copy onwrite and then waits foreither the parent or the child to dirty a page, whereupon it does copiesonly as much as it has to. This makes forks much faster, which is veryimportant since things in Unix fork a lot.

(Disclaimer: this is the traditional implementation for paged virtualmemory. I don


失眠的成果

兩本講集,一個魯迅


接下了中學閱讀班,自然名正言順細讀魯迅。記得中學時看給中學生的魯迅賞析書籍,我總把導讀和賞析部分跳過去——作品本身有力太多了。現在自己下手來做,自然不想重蹈浮泛悶蛋的導讀覆轍(當然也


Matching words against a list in the Bourne Shell

One of the interesting challenges in writing shell scripts isfiguring out how to do as much as is practical with shell builtinsand primitives. Since Bourne shell builtins are such a limited andconstrained environment, the results can be somewhat perverse andpeculiar and thus neat and amusing.

(If you can find an efficient way of doing things, using builtins ismuch faster than having to resort to external programs, especially whenthe system is loaded.)

My challenge today was checking whether a word was in a list of words(


20071112 網摘 – 露底

China

Copyrights

HK Movies

Google 調虎離山?


玩命.飛車.殺人狂Death Proof


周末無聊
看了昆頓塔倫天奴導演的這齣奇片
大呼過癮
看過以前美國B級片的觀眾應該會覺得更高興
此片很懷舊
很暴力
不喜歡昆頓塔倫天奴的人會覺得這樣的電影很討厭
但這樣的試驗也實在為昔日的文化加上了不一樣的意義
要搞一

Why vfork() got created (part 1)

The fork() system call presents a problem for strict virtual memoryovercommit . Because it duplicates a process's virtualaddress space, strictly correct accounting requires that the childprocess be instantly charged for however much committed address space theparent process has; if this puts the system over the commit limit, the fork() should fail.

At the same time, in practice most fork() child processes don't usevery much of the memory that they're being charged for; almost all thetime they