After an afternoon of learning APIs and library porting, I have just taken my first camera picture controlled over USB/PTP by clicking a GUI button on the Nokia N770! Apart from porting the python usb binding library, the PTP python code required absolutely no changes from running on my dev laptop. Right, better start designingContinue reading “Success!!”
Author Archives: adq
Cramond
We went to Cramond today; got the 41 bus there and walked down. Had a look at what was left of the the Roman fort, which seemed infested with Dowsers. After that, we walked up the River Almond until we got to the main road, and had something to eat at the Cramond Brig… whichContinue reading “Cramond”
Photos from last weekend
Just uploaded some new photos from last weekend to my flickr. Some infrared shots from round calton hill, and my first attempt at a panorama shot. I stitched the panorama together using the opensource hugin software.
Beautiful Python
I wrote this line of code last night: reduce(lambda acc,v: (acc << 8) | (v & 0xff), bytes[::-1]) That takes an array of bytes, reverses it (for CPU endianness), and then builds it into a single integer by ORring each byte together and shifting left 8 bits each time. I use it to convert 16Continue reading “Beautiful Python”
photos from the botanics and inverleith park
I had a whole piece written about the weekend, but managed to accidentally zap it, and I can’t be arsed rewriting it just now. Anyway, I’ve just posted some more photos from the Botanics and Inverleith row. Do the clicky, you know you want to! .
Wee camera
Hmm, I think I need to get a wee camera for taking to parties/ windy-hilltops-when-I’ve-had-far-too-much-to-drink-*cough*. Looking about, I think its gonna have to be a Canon. Why Canon specifically? Well, have a look here. I quite like the idea of being able to write custom photography-assisting scripts which run on the camera itself….
Shadowtrees
I went for a wander in the Botanics this morning with the two D’s (David+Diego). Glad to get out of the house on such a nice day, as I spent all yesterday in bed with a headache. I took some photos of tree shadows as well.
Symbian phone hacked
Booo, someone beat me to it! Anyway, I followed the instructions here, and they worked perfectly; I can see all the private interesting folders and do pretty much anything I want to my phone now. I can’t *believe* they left such a huge hole in a supposedly secure product: distributing the phone-side debugger with aContinue reading “Symbian phone hacked”
ipodsync python script
I am fed up with using GUIs to sync my ipod with my music database, so I hacked the attached script together this evening. It uses the python bindings of libgpod. Originally, I thought of using rsync for the file update part of this, but the issue is rsync doesn’t allow you to reformat theContinue reading “ipodsync python script”
St Bernards well photos
I finally got round to processing these.. They’re from a few weeks ago, when St. Bernard’s well was open, so we headed there with friends. Afterwards we went to the Botanics glasshouses. Hmm, my first batch of DVDs arrived today; included my copy of the silent film “Der Golem”, which I’ve been wanting to seeContinue reading “St Bernards well photos”