Interesting Comments on The Election From New York Times

Posted on: Thu, 02/07/2008 - 19:03 By: yunyao

I found that comments on the news for the election are often much more entertaining than the news acticles themslves. For the next few months, I will keep on updating this blog entry with comments that I found interesting, regardless whether I agree with the comments themselves or not.




Posted on: Tue, 01/01/2008 - 00:31 By: yunyao

自从家里来了一位美猫JJ Cassandra之后 (暂时寄养的猫),


How to load context of text files into DB2

Posted on: Sat, 12/29/2007 - 00:48 By: yunyao

The task is fairly simply --- I need to load the content of some text files into DB2. There are many ways to do so, but since I only need to this only once (hopefully), I want to find an easy way without writing any external code.

So here is the solution:

(1) create a table containing a CLOB (VARCHAR should work as well, if we know the maxium size of the files in advance) column. For example:


A Simple GTD List Solution: Desktop, Web and Possibly Mobile

Posted on: Mon, 12/10/2007 - 04:25 By: Huahai

I have been searching for a lightweight list solution since I started trying out the Getting Things Done (GTD) approach a few days ago. Unlike calendar events, list items (projects and actions) do not associate with a particular time and date, therefore, using a calender for them is not appropriate. According to David Allen, for lists, we should "just go for simplicity, speed, and fun". Here I operationalize that into these properties:

  • Simple, but can still do these:
    • Handle lists for "project", "next-action", "waiting-for" and "maybe"*
    • Be able to tag an item with "context", and organize items by context
    • Support sub-list

Editing Web Textarea with Desktop Editor

Posted on: Fri, 12/07/2007 - 07:17 By: Huahai

Nowadays we do a lot of text input on the Web, like posting on forums, filling out a support request form, commenting on someone's blog, etc. Although Web forms often offer a variety of so-called rich text editing capabilities, nothing beats the good old desktop editors. For a vim person, a plain Web textarea simply is not the place for text editing. Fortunately, for Firefox users, this pain can be eased. There are a few Firefox addons that allow people to use external editors for editing textarea.

Firefox Hangs

Posted on: Thu, 12/06/2007 - 10:52 By: Huahai

Although Firefox is considered very safe and stable, it sometimes hangs. In the past, when it hung, my solution was to remove the whole ~/.mozilla/firefox directory. It worked every time (reinstalling Firefox doesn't help). Of course, I would always backup my bookmarks.html and other files under the chrome sub-directory first. Then I had to reinstall the add-ons when I got a working firefox. It turned out I shouldn't have taken such a drastic action.

Subscribe to