« June 2005 | Main | August 2005 »

July 29, 2005

Running Windows with No Services

http://www.sysinternals.com/blog/2005/07/running-windows-with-no-services.html

Saw this from a /.-like site: slashdotcn.org

Posted by Roy at 01:16 AM | Comments (0)

July 26, 2005

My city from the satellite

http://virtualearth.msn.com/default.aspx?cp=38.032895|-78.507708&style=h&lvl=17&v=1

The best I can find.

Posted by Roy at 01:07 PM | Comments (0)

July 19, 2005

procfs

In order to know the command line of a process, one can open /proc/pid/cmdline. If a program needs to know its own command line, it can read from /proc/self/cmdline.

The file contains null-terminated strings of the command line.
For example, if you run "./a.out 33 44", the file will be
. / a . o u t \0 3 3 \0 4 4 \0
You can't use stat function to know the size though.

For more details, see the manual page for proc.

Posted by Roy at 05:59 PM | Comments (0)