A Productive Day
Posted on September 27th, 2008 at 22:02 by fr3@K

今天真是多產的一天啊, 連這篇也算的話今天已經寫了四篇文字. (文字的內容與品質則是另外一回事) 這該是個人最高紀錄了吧! 這代表了一件事情 – 我實在是太不務正業了!

昨晚開始拜讀 Rootkits, 加上今天上廁所的時候看了幾頁, 目前進度只有二十來頁. 怎麼說這都是我現階段要拿來吃飯的傢伙, 不能擺爛啊. 只是手邊積了幾篇寫了一半的文字, 不把它們寫一寫, get them out of the system, 老是覺得不是很自在.

這本書作者的寫作功力跟技術實力都很強, 雖然主題與我傳統上的興趣沒什麼相干, 但目前為止讀起來很好玩. 看來我很可能會上鉤, 以後又多個題目玩耍了.

拼一下看睡前能寫多少算多少, 明天繼續 root.

del.icio.us:A Productive Day digg:A Productive Day spurl:A Productive Day newsvine:A Productive Day furl:A Productive Day Y!:A Productive Day 黑米共享書籤:A Productive Day 推推王:A Productive Day
XP 改. 中文版變英文版
Posted on September 27th, 2008 at 20:29 by fr3@K

不是我中文真那麼糟, 也不是我英文超流利. 實在是很多中文化的技術辭彙讓我不敢恭維, 排序的時候也不像英文那般一目了然. 即便買的 NB 上總有 不要也不行 隨機器附 的 Win XP 中文版, 我這幾年都是當錢丟到水裡, 用個 GNU/Linux 的 distro (通常是 Ubuntu) 直接蓋過去, 自然是以個人偏好的英文為主要介面.

還記得幾年前的我還會先灌個英文版的 XP 然後做成 XP/Linux dual boot (現在 Windows 都是跑在 VM 裏面). 可是這個時候機車的事就來了, 雖然是 不要也不行 沒教我另外付錢 的 中文版 XP, 但畢竟我錢也沒少付. 偏偏這隨機器附的序號就是不能用在自己灌的英文版 XP 上. 於是我做了法律所不允許的事情, 把錢匯到了國外. Oh 不… 是規避 Microsoft 再賺我一筆的機會.

剛看了 阿駕零零壹 © 學習筆記 才知道原來還有 這招 啊, 直接把中文版的 XP 介面改為英文. 這樣我就可以合法地 (?) 用英文版的 XP 跟 GNU/Linux dual boot 了. 這樣雖然沒 Host/Guest 好用, 但至少可以讓我心裡舒服點.

del.icio.us:XP 改. 中文版變英文版 digg:XP 改. 中文版變英文版 spurl:XP 改. 中文版變英文版 newsvine:XP 改. 中文版變英文版 furl:XP 改. 中文版變英文版 Y!:XP 改. 中文版變英文版 黑米共享書籤:XP 改. 中文版變英文版 推推王:XP 改. 中文版變英文版
你們在哪裡?
Posted on September 27th, 2008 at 17:54 by fr3@K

Better Blog Search 的過程中讓我看到一個 interesting (但一點也不有趣) 的現象. 雖然 Sutter’s Mill 是今年四月才從 Windows Live 的舊址搬到 Wordpress. 至今五個多月以來, 竟然只有一個部落格以中文寫過相關文字. 而教我不知道該高興還是苦笑的是, 這個部落格不是別人, 正是這裡 – 小弟的 COdE fr3@K.
(more…)

del.icio.us:你們在哪裡? digg:你們在哪裡? spurl:你們在哪裡? newsvine:你們在哪裡? furl:你們在哪裡? Y!:你們在哪裡? 黑米共享書籤:你們在哪裡? 推推王:你們在哪裡?
Better Blog Search
Posted on September 27th, 2008 at 17:23 by fr3@K

以往, 我會每隔幾周用一次 google 的 blog search 找與自己興趣相關的部落格. 雖然這個方法是可以找到不錯的部落格, 但效率不是很好. 找到的東西中, 有很多五四三的垃圾. 昨晚意外發現一個更好更有效的方法; Technorati.

首先鎖定一個自己喜歡的部落格, 用 Technorati 來查哪些其他的部落格引用/連結到這個部落格. 舉個例子, 我最感興趣的題目是 C++, 在幾位 C++ 仙級人物 (Guru) 中, 我最推崇的是 Herb Sutter. 用 Technorati 一查, 果然發現 文中寫到/連結到他的 Sutter’s Mill 的部落格 不少都是我很感興趣的. 簡單的方法挖到了許多好文章, 一股腦的又多 subscribe 了五六個部落格.

del.icio.us:Better Blog Search digg:Better Blog Search spurl:Better Blog Search newsvine:Better Blog Search furl:Better Blog Search Y!:Better Blog Search 黑米共享書籤:Better Blog Search 推推王:Better Blog Search
詳細錯誤說明的重要性
Posted on September 26th, 2008 at 1:21 by fr3@K

這是一個我想寫很久了的主題, 由於我也搞不清楚的原因 delay 到這個時候. Anyway, here it goes…
(more…)

del.icio.us:詳細錯誤說明的重要性 digg:詳細錯誤說明的重要性 spurl:詳細錯誤說明的重要性 newsvine:詳細錯誤說明的重要性 furl:詳細錯誤說明的重要性 Y!:詳細錯誤說明的重要性 黑米共享書籤:詳細錯誤說明的重要性 推推王:詳細錯誤說明的重要性
What Are You Smoking?
Posted on September 17th, 2008 at 15:33 by fr3@K

A geeky friend of mine IM’ed me URL of an interesting blog post just now.

Though I haven’t had the chance to read through this post, I can’t help quoting his/her words on STL, so they could be shared by more people out there:

… when you first encounter it (ed: STL), makes you wonder what the hell the designer was smoking. And once you’ve gotten used to it, you start wondering why other library designers don’t start smoking the same thing.

Get me some of those. Somebody! Please!

del.icio.us:What Are You Smoking? digg:What Are You Smoking? spurl:What Are You Smoking? newsvine:What Are You Smoking? furl:What Are You Smoking? Y!:What Are You Smoking? 黑米共享書籤:What Are You Smoking? 推推王:What Are You Smoking?
Microsoft Search SPAM is back
Posted on September 16th, 2008 at 19:56 by fr3@K

Here it comes again, referer spam from Microsoft’s live search engine is back. It managed to bypass the mod_rewrite rules I got from The Art of Web the last time I was spammed.

New rules (again, from The Art of Web) were installed last night. So far, the log spamming seems to be stopped.

Huge thanks to people from The Art of Web for documenting this instance and updating their blocking method.

del.icio.us:Microsoft Search SPAM is back digg:Microsoft Search SPAM is back spurl:Microsoft Search SPAM is back newsvine:Microsoft Search SPAM is back furl:Microsoft Search SPAM is back Y!:Microsoft Search SPAM is back 黑米共享書籤:Microsoft Search SPAM is back 推推王:Microsoft Search SPAM is back
Security Enhanced CRT, Safer Than Standard Library?
Posted on September 15th, 2008 at 0:48 by fr3@K

In a blog post Danny Kalev published earlier this year on InformIT, an example was presented demonstrating how one could write valid but insecure code involving vector and auto_ptr which compiles without any warning, despite other warnings Micorsoft’s recent compilers would’ve issued against standard compliant code. Along with other points he made in the post, Danny suggests Micorsoft doesn’t really care about your code safety. I couldn’t have agreed with him more, and would like to contribute my own analysis (aka. my two cents) in support of Danny’s finding.
(more…)

del.icio.us:Security Enhanced CRT, Safer Than Standard Library? digg:Security Enhanced CRT, Safer Than Standard Library? spurl:Security Enhanced CRT, Safer Than Standard Library? newsvine:Security Enhanced CRT, Safer Than Standard Library? furl:Security Enhanced CRT, Safer Than Standard Library? Y!:Security Enhanced CRT, Safer Than Standard Library? 黑米共享書籤:Security Enhanced CRT, Safer Than Standard Library? 推推王:Security Enhanced CRT, Safer Than Standard Library?
How to Do It Right? Wide and Multi-Byte String Conversion
Posted on September 14th, 2008 at 17:17 by fr3@K

一方面是受到 jeffhung 與 augustinus 在 我家clsung 那邊留下的迴響所啟發, 令一方面也是為了讓自己更清楚了解正確 wide string and multi-byte string 間轉換的 issue. 我寫了兩個 Wide string and Multi-Bytes string conversion functions 以及方便性的 wrapper (source code hosted by Google Code).

希望能做為一個範例提供給想進一步了解這題目的朋友 (this includes me) 把玩. 也希望能請對這題目有研究的朋友來 code review 以及留下意見, 幫助讓我完善這對 conversion functions 一起造福有這需求的使用者.

Disclaimer: 小弟對實作所使用的 API (wcrtombmbrtowc) 的行為不是非常肯定, 不敢宣稱其功能上的正確. 歡迎自行取用 (MIT-licensed), 但不提供任何保證.

del.icio.us:How to Do It Right? Wide and Multi-Byte String Conversion digg:How to Do It Right? Wide and Multi-Byte String Conversion spurl:How to Do It Right? Wide and Multi-Byte String Conversion newsvine:How to Do It Right? Wide and Multi-Byte String Conversion furl:How to Do It Right? Wide and Multi-Byte String Conversion Y!:How to Do It Right? Wide and Multi-Byte String Conversion 黑米共享書籤:How to Do It Right? Wide and Multi-Byte String Conversion 推推王:How to Do It Right? Wide and Multi-Byte String Conversion
re: string to/from wstring conversion
Posted on September 3rd, 2008 at 16:22 by fr3@K

本篇文字的內容本來是我寫給 clsung 的一篇文字 的第二個回應. 但不幸的是我的回應被 anti-spam 機制吃掉了, 並提示我 email 給站長處理. 那時 submit 的文字我是撈不回來了, 於是決定重寫並貼在自己家裡.
(more…)

del.icio.us:re: string to/from wstring conversion digg:re: string to/from wstring conversion spurl:re: string to/from wstring conversion newsvine:re: string to/from wstring conversion furl:re: string to/from wstring conversion Y!:re: string to/from wstring conversion 黑米共享書籤:re: string to/from wstring conversion 推推王:re: string to/from wstring conversion

Page 1 of 2[ 1 ]2»