Monday, December 18, 2006

Uninstall Linux in a Windows XP– Linux Dual Boot Machine

I followed the following steps while uninstalling Ubuntu Linux on my laptop.

1. Use Windows XP installation CD to boot.
2. Go to recovery console and enter fixmbr
3. Restart the system. Now it should boot in Windows
4. Remove Linux partition by using the disk management utility of Windows XP.

Wednesday, December 13, 2006

Values of Environment Variables

To display value of environment variables in command prompt in windows use the following command

echo %variable_name%

For example to display the value of CLASSPATH variable type
echo %CLASSPATH%

Sunday, December 10, 2006

Way to learn Algorithms

Excerpts from The Art of Computer Programming-Fundamental Algorithms by Knuth, Page No. 4

“...the reader should not expect to read an algorithm as if it were part of a novel; such an attempt would make it pretty difficult to understand what is going on. An algorithm must be seen to be believed, and the best way to learn what an algorithm is all about is to try it. The reader should always take pencil and paper and work through an example of each algorithm immediately upon encountering it in the text.”