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 仍然可以被修改...

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 有否被引入。

Building VC Projects in Console Mode

通常我們在 Visual C++ 裡開發,是以其圖形介面的 IDE 為主要操作環境。若為了要把一些工作自動化,就必須要找到方法,在 console mode 下編譯建置專案。

wp2docbook.pl - DocBook from wordpress export

看到 gslin 最近連續寫了兩篇文章,談論 wordpress 的 export 檔,就想起之前在 wordpress 2.3 的時候,寫過一個 wp2docbook.pl,可以將 wordpress export 檔,轉成 DocBook 格式。

Pages: 1 2 3 4 5 6 7 8 ...10 11 12 Next