Entries Tagged as 'tutorial'

Wednesday, January 21st, 2009

Easily Creating Fixed Length Flat Files With Groovy

Here's an (I think elegant) way to create flat files with Groovy. I want this script to be easy to read by future developers. So if someone wants to know what the format of the file is they can see it just by opening the script. Classes We'll Use Groovy: SQL: We'll use this library [...]

Friday, October 5th, 2007

Reading An Excel File With Ruby

This tutorial will cover how to read (or parse) an excel file with ruby. I had to write a script to unpivot some data for a co-worker that saved him hours of time, and I got to write a ruby script, so it was a win-win. Here's how you can do the same thing. Bookmark [...]

Tuesday, September 18th, 2007

Easy XML Generation with Ruby and ERB

Ah, the bracket tax. XML-Situps, whatever you want to call them, if you write any code (especially if you use java) it should be your sworn enemy. The other day I had to create about 40 XML files for some Java Webstart configs. Instead of doing them by hand, I decided to check out the [...]

Wednesday, May 16th, 2007

Using Protototype AJAX & JSON with J2EE and Struts

We don't always get to use the latest greatest web framework, but just because you're using a crusty old dinosaur J2EE XML framework from the pits of hell, doesn't mean you can't make girls cry with your AJAX/JSON skills. This tutorial will show how to use prototype to return JSON data to your jsp. Bookmark [...]

Tuesday, April 3rd, 2007

Scraping IMDB with Ruby and Hpricot

One service that cries for a nice web service interface is IMDB, however they like want $$ or something for it...the nerve! With just a few lines of ruby we can query to our heart's content. In this post I'll go over how to create a very simple class for extracting information about movies from [...]

Wednesday, December 20th, 2006

Importing an MS Project Plan into Basecamp using Ruby

Basecamp is a web based project management tool. It's just fun to use. Microsoft Project....not so much. That being said MS Project does a whole lot of stuff that Basecamp doesn't. Being leet web 2.0 doods we want to use Basecamp! Of course MS Project is the standard that most clients like to see, so [...]

Friday, October 6th, 2006

Defeating Firewalls with Putty and SSH

Once in a while we all get stuck behind a firewall and just have to get around it. You could use one of the many anonymizer web browsing sites which is most likely blocked or use some random proxy in Eastern Europe that features a totally leet 476 ms ping. Or if you have an [...]