The Glass and The Inspiration

Summer of 2008 I spent most of the summer, it appears, 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.

Daisy. Bokeh. Done.

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.

Posted in America 2008, blog, photo | Leave a comment

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:


cats_hierarchy={}
(doc/"wp:category").each do |category|
    cat_name = category.at("wp:category_nicename").innerHTML
    cat_parent = category.at("wp:category_parent").innerHTML

    if cats_hierarchy.include? cat_parent
        cats_hierarchy[cat_parent] = cat_name
    else
        cats_hierarchy[cat_name] = []
    end
end

cats = cats_hierarchy.to_a.flatten

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.


?> cats = cats_hierarchy.to_a.flatten.uniq
=> ["route66", nil, "rails", "american-2008", "reciprocal-affection", "hope-for-the-future", "code", "blog", "review-blog", "rant", "brands", "projects", "yab_shop", "textpattern", "meaningful-labor", "giants", "accessibility", "root", "charity-project", "apple", "xhtml", "america-2006-route-66", "ruby", "learning", "america-2007", "uncategorized", "iphone", "america-2008"]

?> cats_hierarchy
=> {"route66"=>nil, "rails"=>nil, "american-2008"=>nil, "reciprocal-affection"=>nil, "hope-for-the-future"=>nil, "code"=>nil, "blog"=>"review-blog", "rant"=>nil, "brands"=>nil, "projects"=>nil, "yab_shop"=>nil, "textpattern"=>nil, "meaningful-labor"=>nil, "giants"=>nil, "accessibility"=>nil, "root"=>nil, "charity-project"=>nil, "apple"=>nil, "xhtml"=>nil, "america-2006-route-66"=>nil, "ruby"=>nil, "learning"=>nil, "america-2007"=>nil, "uncategorized"=>nil, "iphone"=>nil, "america-2008"=>nil}

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

More soon.

Posted in Code, ruby | Tagged , , , | 1 Comment

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.

Posted in blog, meaningful labor | Leave a comment

Site Launch — Tales of the Unexpected

Last week saw the launch of TOTU: Tales of the Unexpected, a Summer Madness and Exodus project. The site was developed by me with visual identity design by Connie & Craig, the super-talented folks over at beautiful end product.

“TOTU is an opportunity for everyday people to express a part of their lives, a snapshot of faith, or quite simply, an encounter of God – and that’s always worth talking about”

I hope you enjoy watching the videos and maybe feel inspired to share.

So, the site is now live. Enjoy!

Posted in blog, meaningful labor, rails | Leave a comment

New CMS Review — Perch

Several months ago I blogged about using Textpattern as the CMS for the Harry Ferguson Memorial website. It was while I was implementing that site I realised how Txp should really be used, and that it wasn’t really necessarily the best fit for a site of this nature, as it’s main use is for “publishing” with really no provision at all for page based content management. WordPress does a much better job of this, but still is very much aimed at publishing over curating content.

Perch

I came across the Perch cms and almost instantly knew it would be the right fit for the job. Perch is pretty simple: it has quite a small functionality set, a very clear and linear management console, a fantastic support channel manned by Drew McLellan himself, providing helpful and very prompt responses. At £35 it’s not too expensive for use on a cheap web development job.

Wishes

It would be great if the Solutions section on their website was to be beefed up a little with more code examples and tutorials as I’m sure there’s more that has been and can be done with the perch engine.

Usage

Basic usage is simple. Instead of (like WordPress) creating a series of templates, specifying which content goes to which type of page, and then creating the content with Perch you write each page as a file.php and specify content fields for it. Insert the perch runtime script in the header of each page, and then visit the page:


<?php include('perch/runtime.php'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

In your body create some content fields as such, and fill them with the Perch content tags.

<body>
<h1><?php perch_content(‘Harry heading’); ?></h1>
<?php perch_content(‘Harry intro’); ?>
</body>
Go into your perch management console and you will now find two fields available to select, choose their content type and fill in the content.

As the admin user, once you have filled in all the fields your “editors” (the name for all other users) can come in and make adjustments to the headings and the content.

No css, no html, no breaking. Perfect.

ps.. ruby ftw!

Posted in Review, blog | Leave a comment

Virgin Media and Password Security

“Your password must be less than 10 characters long.”
“Your password must start with a letter.”
“Your password must contain a number.”
“Your password is too insecure!!”

*You’re doing it wrong*

—-
edit: and after all that “We’re experiencing difficulties…” Lame.

Posted in Uncategorized | Leave a comment

The Problem with Nickel Creek

So you’re coding along to your favourite type of productivity music [this week mine is country/folk/bluegrass] and turn shuffle off.

You listen to lovely stuff like this [youtube link].

What’s the problem with listening to Nickel Creek? Without fail Nickleback comes on after and it takes about three tracks to realise what’s going on..

Posted in blog | Leave a comment

Admit it, you’re one of them huff duffers aren’t you?

Today I huffduffed for the first time. I’ve planned to for a while…

The word Huffduffer derives from a technology called Huff-Duff [HF/DF] that was used to triangulate the position of radio transmissions. Huffduffing on the web is a way of pin-pointing interesting MP3 files.

Jeremy Keith spoke to Refresh Belfast in December and while I gave up on producing the video because it was so dark in the venue I simply forgot that I’d taken a HQ line out of the sound desk with the recording.

So here in all it’s glory is “Jeremy Keith talking about Huffduffer on Huffduffer about Huffduffer.”

Enjoy.

Posted in blog, meaningful labor | Tagged , , , , | Leave a comment

Band of Brothers followup: The Pacific

Seriously excited to hear recently (announced eight months ago) that HBO have been filming a follow-up mini series to Band of Brothers based in the Far East, the Pacific theatre, apparently Sky have bought the UK rights.

Can’t wait to see this: [youtube trailer]

I’ve always said that if I ever lost one of my B.O.B DVDs I would replace the set, and now that Blu-ray has come along… I probably will!

Posted in blog | Tagged , , , | Leave a comment

The Sky Mobile App: Review & How to cancel!

In early November O2 iPhone and BSkyB announced that they were releasing a limited free trial of the Sky News & Sports Mobile App [iTMS link] for the iPhone.

Pretty cool? Yes, three months of free small-screen Premiership Football, NHL Ice Hockey and…. wrestling. Pretty lame? Well, craning your neck to watch a three inch screen while sitting or in bed really there isn’t a comfortable way to do it without some form of scaffolding in front of your face. Regardless you can’t look a gift horse in the mouth, and so I enjoyed the ability to flick on or off during a big game to see the score and maybe a highlight or two.

The service costs £6 per month and auto subscribes after the trial ends and I believe it’s on a rolling monthly basis.

I signed up on 11 November, the week the offer was released with an iCal event scheduled for the week before the free offer expired, so that Mr Mastercard didn’t come into play.

According to the offer’s FAQs page you can cancel by going to this SkyID website – I didn’t see that before I cancelled my subscription, so I can’t vouch for whether it works or not.

How to cancel

The MySky site claims that as a non residential Sky Subscriber I’m a ‘guest user’ and not able to view or manipulate my account – so [unless the above link works] you need to call Sky Mobile enquires, the number for which is 08442 411 531 in the UK (& ROI it seems). All you need to do is enter your home number, then confirm your username and email address and tell them you wish to cancel the contract. Quite easy.

Verdict

Good application well executed, but without a TV-out (does the iPhone have one?) or some form of phone stand to relieve your neck muscles it’s a bit of a pain to use.

Posted in Review, blog, iPhone | 2 Comments