StatCounter – Now 5 Times Better
Posted on May 30th, 2007 at 0:13 by fr3@K

剛收到一封 StatCounter 的 email. StatCounter 宣佈將 免費使用者的紀錄額度 (log size) 從 100 筆增加到 500 筆.
(more…)

del.icio.us:StatCounter - Now 5 Times Better digg:StatCounter - Now 5 Times Better spurl:StatCounter - Now 5 Times Better newsvine:StatCounter - Now 5 Times Better furl:StatCounter - Now 5 Times Better Y!:StatCounter - Now 5 Times Better 黑米共享書籤:StatCounter - Now 5 Times Better 推推王:StatCounter - Now 5 Times Better
Human Computation
Posted on May 29th, 2007 at 23:26 by fr3@K

太有趣了!!! 這位助理教授真是天才!!!

有辦法讓他人心甘情願, 以能得到快樂的方式, 甚至是上癮似的來幫忙做有意義的運算.
(more…)

del.icio.us:Human Computation digg:Human Computation spurl:Human Computation newsvine:Human Computation furl:Human Computation Y!:Human Computation 黑米共享書籤:Human Computation 推推王:Human Computation
給留言朋友的 Mini HTML 教學與建議
Posted on May 27th, 2007 at 1:47 by fr3@K

最近一些朋友在我這邊留言, 貼出來的結果常常不如預期. 我也是過來人, 很清楚他們雖然都是 programmer, 但其實對 HTML 並不熟悉. 就跟我一開始寫這個 blog 的時候一樣. 現在的我當然比以前好多了, 勉強還有一兩樣東西可以拿出來與其他人分享.
(more…)

del.icio.us:給留言朋友的 Mini HTML 教學與建議 digg:給留言朋友的 Mini HTML 教學與建議 spurl:給留言朋友的 Mini HTML 教學與建議 newsvine:給留言朋友的 Mini HTML 教學與建議 furl:給留言朋友的 Mini HTML 教學與建議 Y!:給留言朋友的 Mini HTML 教學與建議 黑米共享書籤:給留言朋友的 Mini HTML 教學與建議 推推王:給留言朋友的 Mini HTML 教學與建議
Avoid Pointer Parameters and Inheritance
Posted on May 22nd, 2007 at 23:16 by fr3@K

Preamble

Microsoft 的 MFC 是最早被大量採用 (massive adoption) 的 C++ library 之一. 等到我開始接觸 C++ Standard Library 這東西都已經是玩了兩年 MFC 以後的事. 還記得, 從一開始對 MFC 的讚嘆與擁抱, 幾年後對它的不屑, 到更後來的理解 (理解不好其實也是有原因的).

即便不少 programmer 知道 MFC 是一套瑕疵遍佈的 library, 可能也知道那些地方有問題. 但它以及部份其他 library 聯手對於更多 C++ programmer 造成的傷害已經留下不容易抹滅的痕跡. 它讓許多 programmer 以為這些東西本來就該這樣 (that’s the way things supposed to be), 當有一天這些被誤導的 programmer 有機會可以選擇另一套 library 或是自行設計的時候, 很容易就陷入 MFC 帶給他們已先入為主的錯誤觀念.

(more…)

del.icio.us:Avoid Pointer Parameters and Inheritance digg:Avoid Pointer Parameters and Inheritance spurl:Avoid Pointer Parameters and Inheritance newsvine:Avoid Pointer Parameters and Inheritance furl:Avoid Pointer Parameters and Inheritance Y!:Avoid Pointer Parameters and Inheritance 黑米共享書籤:Avoid Pointer Parameters and Inheritance 推推王:Avoid Pointer Parameters and Inheritance
Happy Birthday, My Dearest Brother
Posted on May 13th, 2007 at 6:55 by fr3@K

Yo, bro. It’s your 27th birthday. It’s the 13th of May and it’s Mother’s day again, just like the day you were born.

Though I can not be there to celebrate this special day with you. Nevertheless, I would like to say this out loud, you are the best brother a guy could ask for.

Happy birthday. I love you man.

del.icio.us:Happy Birthday, My Dearest Brother digg:Happy Birthday, My Dearest Brother spurl:Happy Birthday, My Dearest Brother newsvine:Happy Birthday, My Dearest Brother furl:Happy Birthday, My Dearest Brother Y!:Happy Birthday, My Dearest Brother 黑米共享書籤:Happy Birthday, My Dearest Brother 推推王:Happy Birthday, My Dearest Brother
Minimizing Function Scope
Posted on May 13th, 2007 at 6:45 by fr3@K

Intro

C++ 函數可以根據用途放在 (宣告/定義) 不同的 scope. 一個 function 可以是 free function, member function 或是 static member function. 它們不但可以被放在指定的 namespace 裡面. 後兩者更可被賦予 public, protected 或 private 的存取控制 (access control). 這篇要談的不是這些 function 的不同, 更不是三種存取控制的差異. 而是要談如何決定一個 function 該被宣告在哪裡.

過度使用 C++ 的 language feature 可說是在 C++ 程式中常見到的毛病. 即便是有數年經驗的程式設計師所寫出來的程式也會有這樣的問題. 其中, 最容易犯下的, 也是最難抗拒的誘惑之一是 – 沒有充分的理由, 就把 function 擺在不恰當的 scope (通常為會導致更多 coupling 的 scope). 譬如說, 把因為某個 class 而寫的 function 宣告為該 class 的 (static) member function.

(more…)

del.icio.us:Minimizing Function Scope digg:Minimizing Function Scope spurl:Minimizing Function Scope newsvine:Minimizing Function Scope furl:Minimizing Function Scope Y!:Minimizing Function Scope 黑米共享書籤:Minimizing Function Scope 推推王:Minimizing Function Scope
Copyright 2007 fr3@K
Posted on May 9th, 2007 at 18:27 by fr3@K

感謝 Ed Felten 教授, 我也能與 AACS 一樣 擁有自己的 128-bit 整數.
(more…)

del.icio.us:Copyright 2007 fr3@K digg:Copyright 2007 fr3@K spurl:Copyright 2007 fr3@K newsvine:Copyright 2007 fr3@K furl:Copyright 2007 fr3@K Y!:Copyright 2007 fr3@K 黑米共享書籤:Copyright 2007 fr3@K 推推王:Copyright 2007 fr3@K
Bye, Google Apps
Posted on May 2nd, 2007 at 22:39 by fr3@K

AACS Processing Key 被網民公開 事件裡, 除了把 key 貼出來的個人以及 AACS 兩造之外, 相關第三者至少還有 Digg 與 Google (and Wordpress?).

一開始, Digg 與 Google 都採取配合 AACS 要求的方式來處理這次事件. 事情被鬧大了幾天後, Digg 從善如流卯起來跟廣大 Digger 一起幹. 但 Google 似乎還沒有打算跟進的跡象.
(more…)

del.icio.us:Bye, Google Apps digg:Bye, Google Apps spurl:Bye, Google Apps newsvine:Bye, Google Apps furl:Bye, Google Apps Y!:Bye, Google Apps 黑米共享書籤:Bye, Google Apps 推推王:Bye, Google Apps
09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0
Posted on May 2nd, 2007 at 21:40 by fr3@K

Kevin Rose (Digg 創辦人) 給一篇 blog 下的標題引發我的好奇心:

大意是說為順應讀者的意見, 他們決定冒著關門大吉的風險, 拼了命也不會再把含有這段 code 的報導與評論刪除.
(more…)

del.icio.us:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 digg:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 spurl:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 newsvine:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 furl:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 Y!:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 黑米共享書籤:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0 推推王:09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0