Brad Lucas

Programming, Clojure and other interests

Scp Timeouts

July 31, 2006

If you have put scripts using scp that timeout due to a slow connection or if you are tunneling out through a proxy. Ty the following flags passed into scp.

-o ServerAliveCountMax=1500 -o ServerAliveInterval=20

Continue reading →

Pretty Printing Classpaths Within Ant

July 16, 2006

I found a great Ant tip over at

With it you can debug your classpath references quite nicely.

Continue reading →

Hsqldb Not Writing Changes To Disk

July 16, 2006

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.


See the following link for more details:

Continue reading →

Cygwin Ssh Doesn’T Find Config

July 12, 2006

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 →

Telling Firefox Where To Store Your Bookmarks

July 11, 2006

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:

“browser.bookmarks.file”, “C:\\home\\brad\\firefox\\bookmarks.html”


Continue reading →