Category Archives: Linux-Unix

Coroutine and continuation in C

An article about the EVE Online game and stackless Python got me thinking about how to implement coroutines and continuations in C. After a short research, I found a simple implementation (without using longjmp!).

Coroutines can be thought of as cooperative multithreading, sometimes also known as user threads. Two or more procedures can yield the CPU [...]

Building Thrift

Thrift is Facebook’s cross-language data-exchange and RPC library, similar to Google’s Protocol Buffers. In my opinion, it also seems to be better (supports more data structures and programming languages) than Protocol Buffers. Unfortunately, its documentation isn’t very comprehensive, and many people have trouble getting it to work. In Ubuntu/Debian Linux, besides the requirements on the [...]

贴几张Zaurus的照片

上个月在eBay上买的,后来装了OpenZaurus Linux.

Konqueror浏览器:

Opie桌面

Konsole + Vim + GCC

Things I Don’t Like About KDE

Yes, KDE is more powerful and more customizable than Gnome, as Linus said. But I think they really need to do some substantial work on user-interface design. Look at the intimidating menu of Kopete:

Not just Kopete, almost every KDE application has a menu like this. Outrageous. Couldn’t they figure out how to collapse the various [...]

Getting Card Readers to Work on Ubuntu Edgy

I have an Acer TravelMate 3000 laptop. The card reader did not work on Ubuntu Linux, and I didn’t care, because I didn’t need it. When I needed to transfer photos from my DC, I just used the USB cable. Recently I got a Zaurus PDA from eBay and needed to format an SD card [...]

Emacs终于也有Antialiasing了

当年从Emacs改用gvim的很重要的一个原因就是Emacs的字体怎么看都不顺眼。现在Emacs终于开始支持 antialiasing (2006年都快过完了,感觉还呆在上个世纪…)。已经习惯了vim,所以没有换回的打算,不过还是忍不住装了一下玩玩。必须要用最新的 cvs snapshot 才行,这里可以找到 Ubunty Edgy 的包。