發表文章

Change windows class name

You will not be able to change window class "on the fly" (at the runtime). At least I am not aware how to do it. If you need different class name for FindWindow, you will have to change your dialog window class, you will have to do it before dialog is created; furthermore you will have to change resource for that dialog by editing it manually. First, open resource file as text (it is regular ASCI scrypt) and add line: STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_APPWINDOW CAPTION "Dialog" FONT 8, "MS Sans Serif" CLASS "NewDialogClass" You must register this class without changing dialog’s procedure. The best way to do it is in InitInstance of the app before DoModal is created. Add following code (#32770 is the system class for all dialogs): WNDCLASS wc; ::GetClassInfo(AfxGetInstanceHandle(), "#32770", &wc); // Change the name of the class. wc.lpszClassName = "NewDialogClass"; // Regis...

Qt's kinetic-scrolling

http://labs.trolltech.com/blogs/2008/11/15/flick-list-or-kinetic-scrolling/ 想找一個更好的方法來做動力學卷動 ,找到這篇. 看了一下,不愧是Qt的作者,寫的真好!

HTC Hero

http://www.youtube.com/watch?v=FKTDSfbcbBU&eurl=http%3A%2F%2Fwww%2Egoogle%2Ecom%2Etw%2Freader%2Fview%2F%3Ftab%3Dmy&feature=player_embedded 還不錯耶,手腳真的很快!

Software/GeoClue

http://www.freedesktop.org/wiki/Software/GeoClue Geoclue is a modular geoinformation service built on top of the  D-Bus  messaging system. The goal of the Geoclue project is to make creating location-aware applications as simple as possible. Geoclue is Free Software, licensed under  GNU LGPL . It is developed for Linux, but should be portable to any platform that uses D-Bus. Geoclue defines a set of geoinformation APIs, but it also includes some  providers  that implement those APIs. Here is a list of services provided through Geoclue with the currently included implementations:

libxml2

http://www.xmlsoft.org/ 本來寫給Gnome用的XML C parser. 不過被Porting在很多平台,Apple也用。

TCmalloc

Thread0Caching Malloc 聽說效率非常好,Apple也拿來用了說。 http://goog-perftools.sourceforge.net/doc/tcmalloc.html

Charles介紹的protocol寫法

可以省掉找尾巴的步驟。 http://tools.ietf.org/html/rfc1055 RFC 中 包含 reference code - 用 C 寫的,send, rcv.