Monday, September 22, 2008

Executing after linking with DLL file on Windows using Visual Studio

The problem is to link dll file for execution of a developed executable using visual studio.

As shown at one can add a custom build step that copies the dll to the directory with the executable.

Friday, September 19, 2008

Comparing Two Folders on Windows/Linux/Whatever

In Eclipse, create a new project and include in it the link to the folders in the filesystem. Then use Compare With > Each Other. Cool!

Latex Problem with Using Bibliography

Underscores cause quite a problem in latex. There are places where one should never put _ and there are places where one can. When there is an _ in title of a bibliographic entry, a strange error like this is produced (discovered this after a lot of permutation and combination of debugging):

! LaTeX Error: Lonely \item--perhaps a missing list environment.

See the LaTeX manual or LaTeX Companion for explanation.

Type H for immediate help.


l.46 \bibitem{mcconnell04}

Try typing to proceed.

Compiling Java Code from JSHOPGUI

Just some java code I had to compile. The code structure

downloaded JSHOPGUI

In src directory
javac -classpath ..\antlr.jar;..\\JSHOP2.jar;JSHOP2;JSHOP2\*.java -d ..\\

In examples\logistics
javac *.java -classpath ..\..\antlr.jar;..\..\;..\foralltest

In examples\logistics
java -classpath ..\..\antlr.jar;..\..\;..\foralltest gui

The correct way was to look at the Makefile and run the commands as per Makefile (including the classpath as above).

Friday, September 12, 2008

Set Up Thunderbird for NUS Email on Ubuntu Linux

This is pretty easy (~5 mins), and exponentially more productive than Microsoft Exchange. I am putting up this information here for reference/people new to Ubuntu Linux.

> Install Thunderbird through Synaptic Package Manager
> Configure IMAP (if you want to use IMAP; an alternative protocol is POP: check here) with details as here.
> Put your username as NUSSTU\ if you are a student.

and that's it!