Archive for October, 2005

Easy Install From Subversion

Wednesday, October 26th, 2005

I’d like to keep all of my project specific shell scripts under version control. I usually write them in place, and forget they exist.
My first pass at this, was to include an install script, which was no fun. It was a complicated. It added a step that wasn’t there before.
Then I decided that I’m going […]

Java Filehandle GC

Tuesday, October 25th, 2005

Relay was leaking file handles in a bad way. In a crashy way. Getting rid of the last occurance right now.
Relay has it’s own URI resolver, since the Java URI resolver to both too complex, and not flexible enough.
Too complex is self-evident. Many things there I don’t need, and do not want to implement. […]

Rabbit’s Feet and Best Practices

Tuesday, October 25th, 2005

I wrote an article just now, about how I replaced a lot of XML driven, reflection based, non-sense, with a Java class heirarchy that was no more or less convoluted, but much, much, faster.
The library creates an event handler that builds Java objects from XML events. The old library used an event handler to build […]

Java Reflection Removal

Tuesday, October 25th, 2005

Yesterday, I was, as the say, refactoring a library I wrote called Madlib. With it, I build Java object trees in XML, by specifying the properties missing from the heirarchy. So, I named it for the children’s word game that operates on the same premise. (Thinking about renaming it though.)
This is how Relays are built […]

Fridges of Katrina

Sunday, October 23rd, 2005

Fridges of Katrina, art+appliances.

Copacetic

Sunday, October 23rd, 2005

I’ve always had an Ant target called “copacetic” that I’d fire off before a check in. It would run compile and test my work. This has become the working name of my continuous integration system, which I’ll tell you a bit about.
I’ve got a standard project structure now, inspired by the abilities of Ivy, that […]

Gecoding REST

Sunday, October 23rd, 2005

Geocoding is installed. Now to create a REST interface I can use from XML.
My most recent survey of Perl XML land revealed XML::Dumper, which is an awful lot like Data::Dumper, but it dumps XML instead of Perl source code. Easy.
I don’t care about the semantics of the document. It doesn’t get my panties in a […]

Not Blogging

Sunday, October 23rd, 2005

Having switched to Wordpress, I’ve stopped blogging again. It was much easier to create entries in raw XML, because I had a lot more control over formatting, and I’d made a bit of effort to get code examples to display correctly. Then of course, it had an identity that was my own, and the good […]

Geocoding

Sunday, October 23rd, 2005

I didn’t take notes on installing Geo::Coder::US, but it was straightward. I fired up CPAN, and typed install Geo::Coder::US and away it went. Then when it was done I fetched the TigerLINE files for Louisiana and the FIPS 55 data, the “all” zip archive, rather than Louisiana specific. You’ll note that the TigerLINE page is […]

Groovy Pipes

Sunday, October 23rd, 2005

Here’s an example on OS X, using the build-in OS X artifical feline
intelligence simulation program, otherwise known as “cat”.
def cat = ‘cat’.execute()

Thread.start { System.out << cat.in }
Thread.start { System.err << cat.err }

cat << “Meow, World!n”

cat.out.close()
cat.waitForOrKill(0)
That is rougly translated to…
// Execute cat.
def cat = ‘cat’.execute()

// Direct the output, which is an (in)put buffer, to stdout.
Thread.start { […]