JeffHung.Blog

(My smile insists of having nose. :-)

Unescape URL in Perl

看 log 時快速解碼用的,一行搞定。

Ubuntu 真難用

兩個工作資歷加起來超過 15 年,可跨 UNIX/Windows 開發軟體的工程師,為了要在 Ubuntu 上編譯 C 的 hello world 程式,竟然要花上半小時。

Where to place mutable members in class?

在 C++ 裡,若 member data 被宣告為 mutable,表示即使是在「常數情境」下,如物件本身被宣告為 const,或執行於宣告成 const 的 member function 裡時,該 member data 仍然可以被修改...

SWT MVC Wrapper - Abandoned

Avoid anonymous namespace in header files

不過因為今天寫 C++ 程式的時候,碰到這樣的 warning:warning: 'Foo' has a field 'Foo::impl_' whose type uses the anonymous namespace. 原來是因為,我在 foo.hpp 這個 header 檔裡,寫了一個 anonymous namespace…

Simple continuous test solution via make

API Name Postfix

Windows SDK API 裡有個奇怪的命名慣例 (naming convention),學過 Windows Programming 應該都耳熟能詳:API 的加強版,通常是在原來的名字後面,加上個 Ex 後綴字尾以命名之。例如,CreateWindow() 的加強版,就叫做 CreateWindowEx()。

libcurl, openssl, and ca-bundle - on Windows

整理一下在 Windows 上,應付 libcurl、openssl 與 ca-bundle 的筆記。

用程式檢查程式 - 一定要引入的 header

專案一大,就會設定一些「慣例」,以簡化專案複雜度。但是我們無法叫 compiler 幫我們檢查「慣例」,久而久之,這些「慣例」反而會成為混亂的來源。因此,最終還是得想個辦法,自動檢查這些「慣例」是否有被遵守才行。例如,檢查某個一定要被引入的 header 有否被引入。

Help Online and 404

自從網際網路普及之後,寫 desktop application 的人,就把腦筋動到了這上面,試著將軟體的說明系統,移到 WWW 上。打的主意,當然是希望讓說明系統「活」起來,在軟體釋出之後,依然可以新增、修改內容。畢竟,使用文件只能依靠人力撰寫修訂,通常也得等到開發後期,才能開始動工。不過…

Pages: 1 2 3 4 5 6 7 8 ...12 13 14 Next