November 15, 2009
Its Been A While…

Well, its been a few months since I posted last - the genuine joy of interesting/difficult work in my final year as a Physics undergrad - but there’s a fair amount I should probably put up here for posterity:

  • I’ve become very interested in Playdar - an old friend of mine, James Wheare, is a ket developer - and the possibilities music resolution has to offer. As a consequence I released quite a few libraries and a program that helps some of playdar’s features become a little more tangible.

    Voici DAAPlaydar: a script that will resolve playlists of yours (using playdar) and make them available to you via DAAP share. A very cool concept (even if I say so myself!) but it falls short because iTunes is very picky about the DAAP servers it talks to, Songbird works well though :) I hope to be ablet o work a bit more on this in the near future - if you have any expertise with DAAP, you know who to get in touch with!
  • In order to get DAAPlaydar working I had to build a few libraries, one to decode Apple’s DMAP object encoding method (now a ruby gem on gemcutter called (drumroll please) dmap - woop! There’s also PlaydARR, a ruby library for interacting with the Playdar server (also now a gem on gemcutter). So named because pirates help combat global warming. True story.
  • My dashing alter ego Cy Densham has released some more poetry, your opinions are more than welcome.
  • At some point some of the many photos I took while traveling Japan will arrive on Flickr (I’m fighting with FlickrUpload for Aperture at the moment) some of the photos are already up, and of course they’re geotagged so you can just browse to Japan in Flickr to see them.
  • I’ve also realized that one of the projects I enjoyed working on the most isn’t mentioned on here! Shock horror. irotoku is a (very basic) way of hiding information in images - ie. Stenography - the implementation of the decoder I wrote in C here is quick enough that if you hide MP3 data in a (big!) image you can pipe directly from the image through irotoku to an MP3 player and listen to your heart’s content. Good fun.

So that’s pretty much all for now, Cy has some interesting ideas so there may some more stuff up here soon, but he might be pushed down by this newly inspired Physicist and such tedious things as job applications. Yay.

May 5, 2009
Ruby-DLC on Github

Ruby-DLC is now available on github, and consequently as a gem! You can install with:

gem sources -a http://gems.github.com
sudo gem install jphastings-dlc
There’s a gist explaining how to use the library and the rdoc documentation is still available on my project page. Please file an issue if you have any problems with the code, I haven’t checked it thoroughly!

3:20pm  |   URL: http://tmblr.co/Zxt1by6BndD
Filed under: ruby code gem github ruby-dlc dlc 
April 21, 2009
Where On The Web is aliiiiive!

I built it, and it appears to work averagely well. You can see the code in the gist on github and soon there will be a mini-video online showing you how it all works. In the meanwhile, just enjoy the pretty colours :D

I’ve uploaded a snapshot of the whole window for you to ogle at too.

If you want to play with the code, get ruby installed and then just do:gem install ruby-processing
or follow the advice here: http://wiki.github.com/jashkenas/ruby-processing/getting-started
Then download the code from the gist, find an equirectangular map of the earth, call it map.jpg and then run:rp5 run whereOnTheWeb.rb
(There a more details in the gist) - Enjoy!

Where On The Web is aliiiiive!

I built it, and it appears to work averagely well. You can see the code in the gist on github and soon there will be a mini-video online showing you how it all works. In the meanwhile, just enjoy the pretty colours :D

I’ve uploaded a snapshot of the whole window for you to ogle at too.

If you want to play with the code, get ruby installed and then just do:
gem install ruby-processing
or follow the advice here: http://wiki.github.com/jashkenas/ruby-processing/getting-started
Then download the code from the gist, find an equirectangular map of the earth, call it map.jpg and then run:
rp5 run whereOnTheWeb.rb
(There a more details in the gist) - Enjoy!

March 25, 2009
Trash files in Ruby

I’ve written a ruby File class extension - File.trash( filename ) - which allows you to send files to the Trash or Recycle bin (depending on your OS).

Mac support is ready, Windows support is touch-and-go (read the wiki for more info) and its been so long since I used Linux (ahh, the Arch days) I can’t remember how the bins work over there. Anyone want to help?

10:42pm  |   URL: http://tmblr.co/Zxt1by5RBpn
Filed under: ruby code github 
Liked posts on Tumblr: More liked posts »