If you are working with HSQLDB v1.8 and you don’t see changes written to disk or if after you app runs you can view your data it’s because HSQL since 1.7 is not closing the database after the last connection is closed.
To fix this append the following to your JDBC url.
;shutdown=true
See the following link for more details:
Continue reading →I found a great Ant tip over at
http://andrewbeacock.blogspot.com/2005/08/pretty-printing-java-classpaths-using.html
With it you can debug your classpath references quite nicely.
Continue reading →After installing Cygwin and setting up a new home directory with a .ssh directory and a config file. You may find that you need to run ssh with -F to help it find the ~/.ssh/config file.
If this is the case. Double check that $HOME is set correctly. Next look at your entry in /etc/passwd. If you find that it has a different home directory you’ve found the problem. Turns out ssh doesn’t look at $HOME but to the setting in /etc/passwd.
One easy way to fix this is with mount. Mount the incorrect home in /etc/passwd to the correct one. For example, my incorrect home is /etc/brad and the correct is c:\home\brad. This is fixed with the following.
mount -s -f c:\\home\\brad /home/brad
Continue reading →
By default Firefox stores your bookmarks in your profile. This is buried in under your name in Windows under ‘Documents and Settings’.
In my working from elsewhere project I needed to store my bookmarks under my own ‘home’ directory so I could manage them with CVS. With this I can work elsewhere, checkin at the end of the day, return home and do and update and continue.
To accomplish this you need to create a small file call user.js and store in your Firefox profile. This file tells Firefox to use another location to store your bookmarks. Here is a sample user.js file:
// Specify which bookmarks file to use:
user_pref(
“browser.bookmarks.file”, “C:\\home\\brad\\firefox\\bookmarks.html”
);
Continue reading →
I just found a useful plug-in for Eclipse that analyzes your Java code. It’s available at http://eclipse-cs.sourceforge.net/index.html.
I used the Remote install feature of Eclipse to install it. Here are the instructions.
A quick tip that you need to know is that you have to enable your project for CheckStyle. Right click on your project and select Properties. In the dialog select CheckStyoe and then check ”Checkstyle active for this project”.
Continue reading →