A (surprising) missing Unix tool program

Every so often, I run across surprising omissions in the Unix toolchestof small utilities and the like. Today's is a program to print some orall of the various passwd fields for a user, by extended analogy to id (which will print user and group information in useful ways); youwould use it to extract data like the shell or the home directory for aparticular account.

(Perhaps I should instead call this a lack in the 'GNU Unix toolchest',since everyone else seems to have


效率秘技

我是個效率高的人嗎?根據一般人的標準,我的效率是頗高的;但根據我自己的標準,我的效率則不算高。認識我的人會認為我效率高,是因為他們知道每天上至讀書備課寫學術文章,下至洗碗掃地清潔廁所房間,加上練拳做運

iSCSI Enterprise Target 1.4.20.1 and disk write caches (and ZFS)

First, a note about IO modes. IET has two ways of doing IO to whatever actual storage is behind the iSCSItargets it advertises, called 'fileio' and 'blockio' respectively. Fileiomore or less does regular filesystem IO, as if you had opened the backingstorage at user level and were doing read() and write() to it. Blockiodoes low-level direct block IO to the backing storage. All of the followingis specific to blockio.

There are two levels of possible write caching


政府大力宣傳2012政改起錨,你有什麼意見?Act Now齊表態!

我的太太是馬來西亞人,她經常說,你們香港人喜歡公開說什麼就可以說什麼,就算是最敏感的政治宗教話題也可以,真幸福。

今早,無意中看見MSN香港的首頁,居然出現了以下叫人投票表態的橫額。

任誰都會知道這個結果會是


永生的秘密(轉貼)


以下文字轉貼自國內著名博客連岳先生較早前的文章,名為 永生的秘密 ,粗字部分是我喜歡的句子

《理財一周》“牆邊細語”專欄

別處是不是也跟這裏一樣?

連岳

1 、 當一個人想當然以為能仇恨誰、懲罰誰的時候,往往就會淪為


沉迷

如果你從來沒有沉迷過任何事物,得罪說句,你多半好打有限。

沉迷有程度之分,但即使你只是輕度沉迷,至少也有以下徵狀:有空的時候,你多數會想著那沉迷的事物,想著怎樣做得更好,或怎樣收集得更多好貨,或學習更新

How to: Batch Delete Photos on the iPad

Today my iPad told me it was out of space. Not believing that for a second, I remembered that I had taken about 9 GB worth of RAW photos last weekend, and dumped them all on the iPad. I thought they were deleted by Aperture after I imported them, but I guess they weren't.

Lacking any easy way of deleting photos through Aperture's Import interface, or through Image Capture [Edit: Image Capture does allow 'select all' or 'batch selection' of photos to delete

Tap and hold, then slide, to batch select photos on iPad

著住條裙睇《通天奇兵》(The A-Team)


從來不是槍戰片迷. 我知道有人愛《色慾都市》(Sex and the City) , 在我心目中卻比不上《通天奇兵》( The A-Team ). 槍林彈雨勝過華衣美服? 豈只勝之一籌, 對我來說, 《通天奇兵》簡直是我童年時的電視奶水精華. 亞洲電視金錢
Continue reading...

世界很好 我們很糟

( 原刊 AV Magazine 11-06-2010)

人生音像城

世界很好 我們很糟

看血肉橫飛的《維多利亞壹號》時,朋友都又怕又要看,看完又大罵「彭浩翔是xx !」寫文章時引用了這句直接的評語,其實是戲謔電影中一句對白,結果沒有一


What I know about ZFS and disk write caches

Many people with ZFS experience have probably heard that ZFS is designedto work safely with disks with write caches, and may also have heardthat this is done with cache flush commands. The details of what getdone when and under what circumstances are a bit complicated, though.

First, I'm only talking about the situation where you give ZFS wholedisks, instead of slices. When you do this, ZFS marks the device asbeing a whole disk in the pool configuration, and the remaining magic isdriven from