Fishpond 604x90

Tuesday, September 19, 2006

largest static array size in UNIX

After puzzled by this question for several times, I finally decided to find out the answer. After writing some trial programs, I discovered that the size is related to the system stack limit. Under FreeBSD, the limits can be gotten by limits command. Under other OS, you can use getrlimit function to get various limits of the system.

Wednesday, September 13, 2006

Line wrap problem for emacs with ecb

It has hassled me for a long time that when using emacs, some times after some action, the line can't wrap around as usual, and I can't reverse back. Today, I finally decided to solve it. After some tedious commenting out and removing comments in the .emacs file, I noticed that it is ecb which causes the problem. Thus I went to ecb's homepage and read the FAQ. The solution is right there, which says "Check the variable truncate-partial-width-windows and set it to nil". What a relieve it is.

Monday, September 11, 2006

A night at Singapore river side


Last Saturday, I spent some time at Singapore river, taking some photos, just to try out my new camera. This picture I love most. As I just begin to learn photography, the photo may be not that great, but I will improve, definitely.

Wednesday, September 06, 2006

Control multi computers with single keyboard and mouse

I just discovered that there is a program called synergy. With this program, you are able to control multi computers with single keyboard and mouse. How it achieves this is by making a server and many clients. The server's mouse and keyboard is the control one, and other clients will receive signals from the server to do the proper task. What you need to do is simply move your mouse out of the boundary of your display, thus it will enter another one. This program is really cool. More information can be found on the website http://synergy2.sourceforge.net