
生日回禮
有一次,有人問我:「你係咪覺得佢真係好叻」,我說,是啊。
周某 年少時據說喜歡法蘭克福學派、崇拜福柯(不知其光頭與此有無關係),有渾名福周(全名法蘭福周)。一起做《中大四十年》,後來一起在讀書會啃齊澤克,
周某 年少時據說喜歡法蘭克福學派、崇拜福柯(不知其光頭與此有無關係),有渾名福周(全名法蘭福周)。一起做《中大四十年》,後來一起在讀書會啃齊澤克,
Moderation Rules
New technology and science make numerous dreams feasible. But it takes us long to realize that the spectacle of high-tech science does not necessarily make life easier.
"We won’t have long to wait to find out this," I told myself after my preparation of the teaching material for an intensive review course for doctors sitting for examination.
At a glance of recent medical literature, the rule of moderation strikes me. As a matter of fact, the title of this blog can be read either in the straightforward
"We won’t have long to wait to find out this," I told myself after my preparation of the teaching material for an intensive review course for doctors sitting for examination.
At a glance of recent medical literature, the rule of moderation strikes me. As a matter of fact, the title of this blog can be read either in the straightforward
How ZFS's version of RAID-5 can be better than normal RAID-5
ZFS's 'raidz' and 'raidz2' storage methods are single and dual parity,but they are not exactly the same as normal RAID-5 and RAID-6. Thedifference is in how each handles partial stripe writes, such as whathappens when you write only a small amount to disk.
In a conventional RAID implementation, a partial write to a stripe alsohas to update the parity, which means additional disk IO (at least adisk read and a disk write). Even if this
heat
聯署
飄流歲月,團聚無期——居港權十年爭取
(有一個很長很長的故事,請到連結去看。你按過去之後發現的並不是故事,但這就是故事流傳的方式之一。)
我們要求:
1.在每天150人的單程證配額中,加設港人在內地的成年子
(有一個很長很長的故事,請到連結去看。你按過去之後發現的並不是故事,但這就是故事流傳的方式之一。)
我們要求:
1.在每天150人的單程證配額中,加設港人在內地的成年子
Speed surprises in reimplementing the .find() string method
In yesterday's entry , I mentioned that Iwas surprised by the relative performances of my three reimplementationsof the .find() string method.
The src[i:].startswith(sub) version was the slowest, and why isobvious in hindsight: it's summed up clearly in the first bit, where wecreate a big new string ( src[i:] ) on every iteration of the loop. Nowonder it's slow; creating big strings is slow in general, because
全方位批鬥大會
全方位批鬥大會
Keith之所以在公司裡犯眾憎,除了因為他但求就手而搞女秘書,還因為他是女皇的親信,奸的。女皇為了鞏固勢力,鏟除異己,於是收了Keith為公公,專門混進同事當中收風。譬如早前有女同事踢爆女皇打Botox,Keith知道
唔知自己想點, 淨係知自己唔想點
下文涉及個人情緒, 以部份廣東話寫出.
「唔知自己想點, 淨係知自己唔想點」, 確是現今廿零歲人既做人態度. 因為好多野唔到自己話事, 唔夠膽主宰自己命運, 無能力改變現狀之下, 只好退一步令自己唔會太輸蝕. 我係其中
「唔知自己想點, 淨係知自己唔想點」, 確是現今廿零歲人既做人態度. 因為好多野唔到自己話事, 唔夠膽主宰自己命運, 無能力改變現狀之下, 只好退一步令自己唔會太輸蝕. 我係其中

An illustration of the speed advantage of Python builtins
As a followup to my entry on the two sorts of languages , I decided to actually tryimplementing the string .find() method in Python to see how muchslower it is. The Python version uses the brute force C style approach,roughly:
for i in range(0, len(src)-len(sub)+1): if src[i:i+len(sub)] == sub: return ireturn -1
I actually did three versions, each with a different