Brad Lucas

Programming, Clojure and other interests

Problem With Ant And The Scp Task

October 20, 2008

Recently resurrected a project and updated the latest dependencies. When trying to release via the SCP task in Ant it just hung.

I found that the best combination of Ant and Jsch is for now (Oct 08) to be

Ant 1.7.0 and Jsch 0.1.29.

Remember to put Jsch’s jar file in ant’s lib directory.

Continue reading →

Set The Comment Syntax For A File In Emacs

October 13, 2008

The other day I was editing a httpd.conf file and wanted to comment a large section. On the server I was using the comment syntax wasn’t setup for these types of files.

So, to quickly accomplish I just needed to set the comment-start variable to “#”.

For example,

M-: (setq comment-start "#") RET
Continue reading →

Mail Contents Of File

October 13, 2008

A tip:

If you have a file ‘names.txt’ and want to mail the contents to yourself.

$ mail -s “My subject here” myself@foo.com < names.txt
Continue reading →

Congratulations You Could Survive For 60 Seconds

September 24, 2008

I could survive for 60 seconds chained to a bunk bed with a velociraptor

Continue reading →

Cure For Reddit Addiction

July 29, 2008

If you find that you are reading reddit far too much and need something to help you stop try the following.

  1. Install the Redirector Firefox plugin.

https://addons.mozilla.org/en-US/firefox/addon/5064

  1. Select Tools -> Redirector and set up a redirection as follows
Continue reading →