2008-04-02

ruby, geonames and photography

Recently I've been working on some ruby code that serves up the photography content of my website as a ruby object (no, it's not available for download anywhere, it wouldn't be any use to anyone else). The point behind it is that it lets me query my photographs in all sorts of different ways (especially handy when working in irb as it means I've got a kind of REPL for working with my photographs) and also makes it easy to write programs that generate useful data.

Last night I got to thinking that it would be interesting to use this code to try and "reverse geocode" the ICBM address that every album has so that I could display the nearest centre of population to the album.

After a bit of searching on the net I found GeoNames. A handy enough site itself but even more handy because it has an API and a list of client libraries that are available. Handily there's a library for ruby.

A little bit of hacking later and I had this:

#!/usr/bin/env ruby

require 'geonames'
require 'photography'

include Photography
include Geonames

# Get place names for all the icbm locations
Albums.new.load.collect {|album|
[ album.latitude, album.longitude ]
}.uniq.each {|icbm|
near = WebService.find_nearby_place_name( icbm[ 0 ], icbm[ 1 ] )
puts( "#{icbm[ 0 ]}\t" +
"#{icbm[ 1 ]}\t" +
"#{near[ 0 ].name}\t" +
"#{near[ 0 ].country_name}\t" +
"#{near[ 0 ].distance}" )
}
Put simply: it gets a list of the unique locations that I've recorded and runs through them getting the nearest known location. I then use the resulting data on my site to display the name of the nearest location to where the album is from.

It isn't perfect. For example, most of the photographs I've shot in and around Billingborough end up being shown as being near Horbling (the next village north of here, and somewhat smaller than Billingborough). Still, it's a start.

Currently I've got the text linking to a search on nearby.org.uk. Via that there's some fascinating (for varying values of fascinating) links to further searches that can be done based on location.

2008-04-01

A day in the Lincolnshire Wolds

Last Sunday was the first day of really nice warm and sunny weather we've had since, well, since forever (okay, slight exaggeration, but only a week earlier we had snow on the ground). So, given that the forecast looked pretty good for the whole day we decided to ignore all the stuff that needed doing around the house and, instead, we took a drive up into the Lincolnshire Wolds.

Of course, I took a camera or two (I took the Canon EOS 400D and the Lomo Lubitel 166B — I got through ½ a film with the latter so no images from that just yet).

I ended up taking a handful of images in Horncastle and later on in the afternoon, after we'd had some lunch, we ended up near the village of Fulletby.

It was a pretty nice day out and it convinced me that I really need to get up to the Wolds more often.

2008-03-19

Lincolnshire Links

It's almost six months since I started using RedBubble and, in that time, I've slowly been sorting out my other photography pages so that they link into it.

Initially I had my main site linking in (including links from individual images like this) and then, just recently, I created a front end called Photography by Dave Pearson.

The one site that was missing out on this was Lincolnshire Photography. While I did have a set of links to my prints of Lincolnshire this was nothing more than a pointer to a specific tag on my RedBubble account. What I was missing was links from the individually available works.

Now I've done this. The site will display a list of prints of Lincolnshire and each individual work that is available also has a direct link to the RedBubble page for that work (like this for example).

2008-03-18

More Lubitel Photographs

I've just recently received the results of the latest film I put through my Lomo Lubitel 166B. Once again they've come out pretty good (and once again thanks go to Tim Haynes for processing and scanning the film).

The images from the film include:

Now that I've got the hang of the camera I think it's time to try some colour. I've ordered a couple of rolls of Fuji Provia 100F. I'll be interesting to see what I get out of that.

2008-03-05

New Site (and a RedBubble hack)

A few days ago I knocked up a quick ruby script for exporting a list of my photographic works on RedBubble. This was, to some degree, a solution looking for a problem.

One "problem" I was toying with was to do something with a domain I recently acquired. Yesterday evening I knocked up some quick and dirty php code and had the start of working site up and running. The site is, obviously, based around an exported list of works from RedBubble and, in essence, is simply a front end of sorts for my RedBubble account.

It still needs some work, it'll probably be an ongoing project but, for now, here's the first version of Photography by Dave Pearson.

2008-02-29

A RedBubble Collaboration

I've been with RedBubble for a few months now and, so far, it's been a good experience. Much as I suspected, it's turned out to be far more useful than Photobox.

One of the things that happens a fair bit there is that people will work together on collaborative projects. It's not something I've really looked into myself (although a friend and myself have knocked a couple of ideas about but haven't had the chance to do anything yet) but I've always been intrigued by the idea.

About a week ago Lloyd Harvey commented on my photograph Beyond the Trees, saying that it reminded him of one of the early scenes of H. G. Wells' book The War of the Worlds. He then went on to express a desire to take the image and turn it into what he was seeing.


Click on image for bigger version

Given my interest in doing some sort of collaboration, and being a big fan of the book (I read it many times as a child and own quite a few copies), I was intrigued by the idea. So, a couple of BubbleMails later we had a plan.

Lloyd delivered the result to me yesterday:


Click on image for bigger version

I think he's done a great job (and I do like the idea of a tripod getting ready to take on Billingborough) and the bulk of the credit goes to Lloyd: I just took a photograph, he did a lot of work creating the tripod and then processing the final result.

Have a look at his page for the image for details on how he created the work. And be sure to have a look at his website too.

2008-02-27

UK Earthquake

Last night I got to experience a relatively rare event: an earthquake in the UK.

This is only the second one I've ever knowingly experienced (and, coincidently, both events have happened while I've been living in Lincolnshire).

I was woken up, just before 0100 UT, and noticed a roaring and rattling noise and then I realised that the bed was shaking too. Given that we live on a route used by large lorries my first thought was that it was a large lorry going past. I then realised it was much stronger (and stranger) than that and came to the conclusion that it was an earthquake. Also, by UK standards, it felt pretty strong.

I got up and had a quick wander around the house to check everything was fine and I then noticed that my ADSL connection had gone down. I got that going again and then went and checked on the USGS earthquake website and, sure enough, there it was.

Currently they're placing the epicentre somewhere north east of Lincoln, not too far from Market Rasen.

The British Geological Survey put it at a 5.2 and give the epicentre a slightly different location (just north of Market Rasen whereas the USGS map places it south of there). They've got PDF file of all the main details.

The European-Mediterranean Seismological Centre also have some information about it.

2008-02-25

Describe my photography

This morning I added a few more pointless stats (along with some more pointless graphs) to the photography section of my site. For no good reason at all I thought it would be interesting to see the most common month, day of week and hour of the day.

And then I realised that, using the most common item in each table, I could sum up my photography:

Apparently you're most likely to find me using my Canon EOS 400D on a Saturday in August, between 14:00 and 14:59, to shoot in landscape orientation at 1/200, f/8.0, ISO 100 with a focal length of 55mm. I won't be using the flash, I'll be using matrix metering and the exposure will be done in program (auto) mode.

Chances are I'll be taking that photograph somewhere in Lincolnshire, probably in Billingborough.

Oddly enough I don't think I've actually taken that photograph yet... ;-)

2008-01-24

First outing with the Tamron AF 55-200mm

My New ToyEarlier on today, what with it actually being a nice day for a change, I took a brief walk around the village and took the Canon EOS 400D plus the Tamron AF 55-200mm. Other than a couple of test shots to make sure it worked when I got it I've not had the chance to give it a go yet.

I'm pretty happy with the results. It took a little bit of getting used to, what with me not being used to using such long focal lengths on the 400D (not to mention the fact that I'm sure the zoom works in the opposite direction of the kit lens that came with the 400D — I must check that), but overall it was a joy to use.


Tamron AF 55-200mm Test - SpireTamron AF 55-200mm Test - Five TreesTamron AF 55-200mm Test - Forked
Tamron AF 55-200mm Test - Trees on the FenTamron AF 55-200mm Test - Concentric
Tamron AF 55-200mm Test - Vane
Tamron AF 55-200mm Test - Two Plus Three

2008-01-11

More Geeking Out With Exif

Back in May last year I knocked up some code to generate some (pointless) stats taken from the Exif data of my photographs.

The other day I found the Google charts API and got to thinking that it might be (pointless) fun to knock something up that used it to generate some charts from the stats. A little bit of PHP hacking later and I've now got a page of totally pointless charts to go along with the totally pointless graphs.

2008-01-07

Tamron AF 55-200mm is Here

Well that was quick! Ordered Friday, turned up Monday:

My New Toy

Just over a year to double the lens collection for the EOS 400D.

2008-01-04

Tamron AF 55-200mm f4.5-5.6 Di II LD

Having got some money as xmas gifts I decided to spend it on something for the Canon EOS 400D. At first I wasn't sure what but then I saw an advert or two in Amateur Photographer where the price of the Tamron AF 55-200mm f4.5-5.6 Di II LD had come down quite a bit.

I read a review or two (especially this one) and, from what I can gather, it's a reasonable lens. Given that I'm currently working with the 400D's kit lens it couldn't be any worse (the kit lens isn't terrible, but I'm starting to notice why some people don't like it) and from what I've read it's slightly better. And, obviously, the nice thing about the Tamron is that it starts where the kit lens leaves off in terms of focal length.

I found one on Amazon.co.uk so I've gone ahead and ordered it.

The main problem I had when trying to decide was the Canon EF 50mm f/1.8 II. It would, of course, have served a different purpose from the Tamron and, from everything I've read, it's a very nice bit of kit. But, for now anyway, I think I'll go for range of focal lengths rather than kit that has a "specific" purpose.

Next time, perhaps...

2007-11-30

A collection of sorts

For no real obvious reason I've added a simple over view of my photography gear to the photography section of my site.

At the moment it's just a brief list/overview of my cameras (I don't even have a picture of each one — something I need to put right). When I get more time I'll probably document some of the accessories I've got and use.

2007-11-21

Photography Custom Search

I've been using Google's custom search facility for quite some time now. I've got a custom search for all my sites, for my astronomy sites and also for my weather sites.

However, for some odd reason, all this year I've been missing the obvious handy one: a custom search for my photography. Included in this new custom search are my main photography pages, my Lincolnshire photography site, my Flickr site and my RedBubble site.

Seems to work pretty well too.

2007-11-19

PowerShot G9: First Proper Outing

Last Saturday I took the PowerShot G9 out for its first "proper" outing. We were going shopping in Stamford so it seemed like the perfect chance to try shooting out on the streets.

I'm quite pleased with the results.

As I said previously, being small and fast to start up it's perfect for having close to hand (or, in this case, hanging around my neck) for when you see a shot that's worth grabbing. More than once I found myself faced with a shot I just "had" to "have" and the G9 was there and ready without any messing about. If I'd had the EOS 400D with me instead I'd have probably missed the shots (because, given that it's big and bulky in comparison, I tend to keep it in its case when I'm not actually taking a picture).

2007-11-15

PowerShot G9: First impressions

As I mentioned late last week, I've acquired a Canon PowerShot G9.

Ever since I got my Canon EOS 400D, and started getting addicted to photography, I've been wanting a compact camera that I could take anywhere (sometimes a dSLR is just too bulky). I also wanted one that had a good range of control (full manual mode right through to an auto-everything "I don't want to have to think" mode), felt solid and, as daft as it sounds, looked good. The G9 seems to fit all of these (the fact that it does raw files too is a bonus).

I won't even bother trying to do anything close to a review, there are plenty of those about, some of them going into great detail. I did, however, want to note my first impressions of it.

I went for a walk around our village last Sunday and took only the G9. The results can be seen over here. I found that the camera handled pretty well. The screen was easy to use in all conditions (shade and direct sunlight), the camera itself felt right in my hands, the buttons and dials are a bit on the small side for my fingers but not impossible to use (and it probably wouldn't be that good a compact camera if it wasn't very compact, right?), program-auto mode seems to cope fairly well with most situations and manual mode is a joy to use (I don't think I'd ever really thought about just how useful a live histogram would be).

Being small it's also very easy to keep to hand and the time from pressing the power button to being in a position to take a shot (assuming I've left it in program-auto) is short enough that it wouldn't be an issue in most cases.

Simply put: so far I'm very happy with it. I feel that it pretty much perfectly fits the requirement I had. It'll be nice to be able to take a camera almost everywhere with me now.

2007-11-09

Lust! Redux.

I wanted a Canon PowerShot G9.

Now I've got one.

Insert smiley face here.

First Roll from the Lomo Lubitel 166B

Lubitel 166B (#1)Yesterday I received the results of the first roll put through my Lomo Lubitel 166B (thanks to Tim for processing and scanning the roll) and I'm very pleased with what I see.

Given that the first roll was a bit of a rush job, done to simply test that the camera actually worked and didn't leak light like crazy and so on, I think most of the images have come out really well. There's a couple of them that really stand out for me and both of them were tests of relatively narrow depth of field:


If I can get these sorts of results from a quick test shoot, done close to sunset (so in failing light), without a tripod or cable release, and with no real "plan" for the shoot, I'm rather looking forward to what I can get out of it with an actual "plan".

I'm also thinking that at least one of the above images would look good as a mounted print:

2007-11-02

New Toy: Lomo Lubitel 166B

Last Monday I took delivery of my new toy, a Lomo Lubitel 166B:


Lubitel 166B (#1)

Bilora Bella 66It's all Tim's fault. A few weeks back he persuaded me to run some film through my Bilora Bella 66 and, after ordering the film and then having a look around at other medium format cameras, and seeing that the 166 is often suggested as a fun entry to medium format photography (not to mention the fact that Tim used to shoot with a Lubitel too), I couldn't resist getting hold of one.

Loss of eBay virginity happened (yes, I really have managed to avoid eBay all these years) and I finally had my new toy:

Lubitel 166B (#4)

The test shoot from the Bilora Bella 66 turned out okay too. Thanks go to Tim for processing and scanning the film.

2007-10-05

Featured!

Yay! I had this image (taken at Belton House) featured on RedBubble:




Which was nice. :-)