I needed to post a few bits of code for my application to Hacker School. These are OLD (Java dates to 2003), so caveat emptor.