Erik A. Hanson's Weblog

Archive for March, 2009

Testing File Uploads To A Rack Server

Posted: Saturday, March 28th, 2009    Tags: Howto, Ruby

I wrote a web app on top of Rack that includes the ability to accept file uploads. It took some time to figure out how to successfully test the file upload using Rack::Test.
The trick was to encode the file exactly correctly, and then post it with the correct headers. I wrote a simple post_file [...]

AppleScripts for Creating Podcast Playlists in iTunes

Posted: Monday, March 16th, 2009    Tags: AppleScript, My Software

I have a 2nd generation iPod Shuffle that I use with the super-awesome Arriva iPod headphones:

I love these headphones because I can wear them at the gym without having to deal with wires. I actually bought the shuffle because of these headphones. At the gym, I like to start out by listening to a few [...]