Suspending to RAM on Debian laptop

I am tracking Debian sid on my Thinkpad laptop, a few months ago it started to use pm-utils and broke suspending to RAM (sleep) functionality. Basically, the machine would go to sleep then immediately resume.
It turned out that this problem can be easily fixed by creating a file /etc …

more ...


an interesting birthday gift

gift

Huahai has received his birthday gift from Yunyao, a few days early.

What's inside?

Wow, a scenic flight certificate, what a lovely gift! Thank you, babe.

more ...


Create Multiple Modules Maven Project in Eclipse

Modularized software system design is often a good idea. Maven is the new software build system that is purported to be better than ant. For my new project, I want to create a maven build consisting of multiple modules. To do this, and let Eclipse treats these modules as parts …

more ...

Chrismas Vacation --- Mexico Riviera Cruise (Draft)

Place Holder for now.

Day1:

12/16/2007

Lunch with Junwen

Boarding at San Diego Port

Drill

First Dinner

Debarkation Celebration

Raffle at many places (of course we did not win any of them)

12/17/2007

Men's golf tournament (27 vs. 25)

Table tennis

Hairy Chest Contest

First Formal …

more ...

Java time resolution

I am writing a Java program to run psychology experiments. Since this is a generic program that may be configured for running some reaction time (RT) experiments, I am worried about the time resolution of Java. It turns out that I don't need to worry too much, except on Windows …

more ...

Interesting Comments on The Election From New York Times

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.

==================================

02 …

more ...


"txt2tags: a Lightweight Document Authoring Format"

txt2tags

Fresh ideas often pop up when one is not working, e.g. while in shower or in bed. When that happens, one needs to jot them down fast. Of course, a piece of paper and a pen is still the best solution in term of speed. However, if a computer …

more ...


How to load context of text files into DB2

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 …

more ...



Editing Web Textarea with Desktop Editor

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 …

more ...

Firefox Hangs

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 …

more ...

An Mac Look for my KDE Desktop

Although I have never laid my hands on an Apple computer, I have seen people going crazy about them. I remember seeing some kids shouting hysterically in front of Apple store on the release day of Tiger a few years ago. The user interface of Apple's OS is said to …

more ...

Use Vim as Info Page Browser

In this post, I set up vim as a manual page viewer, using ManPageView plugin. It turned out that the same plugin can be used to view info pages as well. All one needs to to is to add ".i" suffix to the command that you are seeking help on …

more ...


kmail hangs due to missing loopback interface

My /etc/network/interfaces got deleted when I removed mepis-network package. Everything was fine, except that kmail would hang since IP address 127.0.0.1 doesn't exist. It took me half an hour to figure it out. Had to create the file with these lines in it:

auto lo …
more ...