Monthly Archives: June 2010

The Glass and The Inspiration

Summer of 2008 I spent most of the summer roasting in Upstate New York working at camp, mostly working with video and photo, preparing the camp’s media that year.

I had the pleasure of re-visiting New York City at the end of the summer and picked up a new Nikon D80 in the Giant Jewish Argos (an amazing place!)

Last weekend I got a new lens.

Nokia 17-35 f2.8 Lens (pic from kenrockwell.com)

Ken Rockwell, whose site is a great internet resource for  camera reviews, real life lens tests and opinion on which cameras and lenses go well together, has a review of it here. He doesn’t necessarily recommend it for a “DX” body like my D80, as 17-35mm becomes cropped to ~27-55mm, but upon consultation and a quick road test, decided it was the one for me. An affordable [edit: actually, affordable is not quite the right word] wide lens with a short zoom and fast f2.8 would turn a camera I know has potential into one that will help me compose the photo I want.

Bokeh isn’t everything, but it sure tastes sweet.

Photo Blogs

Over the last few weeks I’ve come across a great selection of photo blogs, whether their content be stunning imagery, useful tips or an eclectic mix of those and more.

This site from MSNBC was launched a few weeks ago, a tumble-log format photo blog updated a couple of times per day with the best press and sports photos they can find.

Pictory is a showcase of photographs, stories and infographics. I particularly enjoy the New York Series — featuring loads of real life imagery with real depth and nostalgia.

Photo by audrey le on pictory

I came across Lisa Bettany‘s work a few days ago, I especially love her series of shots on bad photography.

I noticed all the crummy photos I’ve taken over the last few years. After feeling mildly embarrassed, I realized how much I’ve actually learned about photography, simply from taking bad photos.

Do you have any favourite photo blogs? I’ve no intention of starting my own, but it’d be amazing to have the content and endeavour to do so.

Blog Move 1: Getting WordPress data to Ruby using XML

Step 1 in the “Moving my blog” process is “Extract the current site’s data into a manageable format”

Frankly, that’s easy! WordPress has a functionality to export the site’s content to a single XML file containing all the published Categories, Tags, Posts, Pages and Comments. To do this (WordPress v2.9.2) click Tools > Export and save the file. In previous versions of the software I believe it’s under the Manage menu.

I’m aware I could import the data directly from the WordPress database (to wherever it goes in the end) but let’s imagine we can’t. Anyway, database access would be tediously slow and inefficient to test against and implement.

A quick google for “import wordpress xml ruby” threw up nothing helpful so I turned to the Ruby XML libraries. John Nunemaker “feverishly posts everything he learns” at railstips.org and has two articles of use here:

The latter deals with three different ruby xml libraries and compares their speed, ease of use and how nice their names are to say. He puts REXML, hpricot and libxml-ruby. I’ll save you the pleasure of reading the article (if you like) and ccv John’s summary:

“Libxml is blisteringly fast, [but] Hpricot has cooler name, REXML and Hpricot both feel easier to use out of the box”

And there you go. Hpricot it is!

Now to get the data into Ruby. After a quick glance at the rubytips article and The RDocs I put together this code as a starting point:

That gives me two each to use Ruby objects each containing all of my category data: a hash which preserves the hierarchy of the structure and all the names in a linear array.

And so we have the starting point to getting this WordPress exported XML data into a Ruby application.

More soon.

I'm going to move my blog…

I want to get away from this current site, it doesn’t show off anything of my professional work nor does the site itself actually resemble or build on anything I’ve made (apart, obviously, from WordPress site implementations).

How to go about this?

Well, I’ve identified the steps I need to go through to migrate the site from WordPress to a Ruby based site, either Rails or Sinatra (just to try my hand something a little different). Actually if heroku get it sorted in time I may throw together a Node.js application — they can be fun.

These aren’t necessarily in the right order at but I will approach them all independently and hope to blog through the process.

  1. Extract the current site’s data into a manageable format
  2. Design a data structure for a new site
  3. Migrate the data from Step 1
  4. Create or choose a blogging solution
  5. Implement Step 4

I’ve already made a start on a site design, I’ve got my data saved and have chosen a method of parsing it, which will form the next blog post.