Jamie's Notes

Currently browsing the year of 2009 ⤵

Scanning for Bookmooch using Android

I’m loving my new Android phone. It’s a real smart piece of technology and I keep finding great applications for it. One neat application that I have found is the Android Scripting Environment , which basically does what it says on the tin, allowing you to create quick and dirty scripts, on the device, which make use of the extensive Android API.

One of the example programs that came with the application made use of the barcode scanner to add a book to Google Books. I’ve adapted this program to allow you to quickly add a book to your Bookmooch inventory, just by scanning the barcode on the back of a book.

It’s a bit rough and ready but a fun little hack.

Here’s the code:

import android
droid = android.Android()
code = droid.scanBarcode()
isbn = int(code['result']['SCAN_RESULT'])
url = ("http://bookmooch.com/m/add_do?text=%d" %isbn+"&store=amazon.co.uk")

The original code, along with a load of other examples can be found here . I’d love it if someone were able to develop this a bit more, if only to provide a nice exit routine. Sadly that’s way beyond my ability.

Hull to Skegness

This Sunday saw a small group of hardy bikers brave the grim looking clouds and head out for a ride to not so sunny Skegness. To be fair, I knew that it was going to rain anyway. The previous day I had spent two hours fastidiously cleaning the inner corners of my bike. Sods law says that if you do this, the next time you leave the house it will completely piss it down.

We set out with one eye on the clouds, planning to stop off at Willingham Woods and Cadwell Park along the way, offering chance to turn back early on should the heavens unload on us. Luckily, the rain didn’t hit us until just before Willingham Woods and it was over in a flash, so we decided to carry on to Cadwell Park, then on to Skegness.

For the rest of the day it did indeed rain. It rained a lot. It rained so much that the road into Barton was under a foot of water. Despite this a lot of fun was had. I’ve put the route up here for posterity because some of the roads were excellent; particularly the bottom end of the B1203.

The parking at Skegness was free for bikes. Top marks to North Lincolnshire Council.

A run around the moors

Suddenly having a free day yesterday (which also turned out to be gloriously sunny), I took inspiration from a reviewed ride on HYB and headed out on my bike to the Yorkshire Moors for the day. No real plan but I wanted to visit Blakey Ridge and Lord Stones along the way.

My first stop was at Fimber which, as usual, was very busy. A frankenstein bike pulled up beside me while I was supping my tea: no lights, no speedo, no instruments and a paint job that suggested it had just been rolled down a hill. It’s owner said it was a Bandit 1200 engine in an unknown frame, with wheels and other parts from old bikes he had lying around in his garage. I couldn’t see an ignition system so asked him how he started it. His reply was a small green electrical connector block pulled out of his jacket pocket. It was his winter bike – just hadn’t got round to getting a summer one yet. He said he’d been stopped loads of times by the police but it’s all road legal, apparently.

After that I headed straight for the moors, stopping periodically to take photos. Blakey Ridge was nice but I decided not to stop because my intention was to head further up and round to Lord Stones – and I can only eat so many butties in one day. Instead I headed onwards and upwards and after a few pleasant miles split off to the left and down into Westerdale, passing a scenic picnic site called River Falls which I plan to revisit one day. From there, out through the top of the moors, past Stokesly, returning to back to the moors through Carlton Bank (which is pretty fecking steep!)

I intended to visit Lord Stones but must have flown right past it, so carried on down to Helmsley, through Chop Gate (had a cool name, but not as good as Wetwang), stopped for chips, then returned to Hull the long way round.

It was sunny all day. Good roads, good weather, good times!

New bike

The GSX 750 is about to go to the auction house in the sky. I’ve traded her in against a lovely 2007 plate SV650s with less than 4000 miles on the clock – only just worn in.

I’ve been thinking about trading up to a faired bike for a while, especially after some hairy motorway miles on windy days. Hopefully the new one will make it a bit more bearable.

I don’t take ownership until Thursday. Counting down the sleeps til then..