grahambinns.com

| Lancaster-based photographer, writer and developer
  • Home
  • Flickr
  • Tumblr

Posts in "rambling"

Blargh argh argh argh

Posted at 03:17:52 on Sat, October 17th 2009  |  Comment on this post
Published in insomnia, rambling, time, writing

Otherwise known as why the hell am I awake?

It's 03:15 as I write this. Decent, civilised people are in bed. Indecent but still civilised people are in bed with someone else, doing things of a biological nature. Whatever. I am not them. I am in my living room, blogging this stream-of-alleged-conciousness to you, people who are actually reading it in the future.

Funny thing about writing, that. It's time-travelling telepathy. It leaps all bounds of geography - I can write this in Lancaster and you can, theoretically at least, read it in Kathmandu - language - assuming it's translated correctly you can understand what I'm thinking perfectly well - and of course, time period, which is why we can still know what Oscar Wilde was thinking a hundred-and-odd years ago (I wrote 'a hundred years ago' originally and then had the commons sense to check whether or not dear old Oscar, who turned 155 this week, was dead a hundred years ago. Sure enough, he died in 1900, poor chap).

So you could be reading this ten years from now, scouring through the new, improved, instant-download-to-your-hippocampus version of the Internet Archive. You might even be looking at a 3D representation of me - though not, of course, of me right now because I'm a bit shy on the 3D recording equipment front here.

Or maybe you're reading it tomorrow, when I'm asleep, recovering from not having been so last night (I can see that language is going to be a problem here). Or perhaps it's Sunday, and you're reading this over a cup of coffee and a muffin, whilst I'm learning things and shooting frames at the Wilkinson Digital Splash. Thing is, wherever we are, we're all right here, right now, and this particular instance of me, right here, right now, should be asleep.

This instance will now shut down. 

Annoyances and things like them

Posted at 21:52:05 on Fri, May 01st 2009  |  Comment on this post
Published in javascript, launchpad, lazr-js, planet ubuntu uk, rambling, work

It seems to have been a week of minor annoyances. Particularly with regard to this website. For some bizarre and as yet unknown reason the VM upon which this site resides keeps losing track of time, by up to ten hours. The upshot of this - and I haven't been able to track down exactly why yet but it's either Django's DateTimeFields or, more likely, PostgreSQL's datetime handling - is that every time you try to access a blog post by date you get a big fat 404. I'm starting to get the distinct feeling that I'm going to have to re-image the machine at some point, but I'm loathe to do that unless there's no way to fix whatever it is that's going wrong.

Other minor annoyances have mostly been self-related. I've spent most of the week working on some cool new features for Launchpad but, due to the fact that we're in code freeze at the moment because this is Launchpad 2.2.4 release week, I haven't been able to land anything. Add to that the usual frustration that comes with doing anything that requires a particularly intricate piece of UI work and you find me feeling not unlike I've repeatedly smashing myself on the head with a potato masher.

On the other hand, doing all this cool Launchpad Javascript work has given me a new appreciation for just how much fun Javascript can be when done right. I've tended to avoid Javascript most of the time because I found it non-intuitive and, coming from a background of object-oriented languages, a bit weird. You see, Javascript's a prototype-based language, which when observed in a certain way makes it look as though the developers were adding object orientation as an afterthought and, worse, going the wrong way about doing it.

But whether that's true or not (and I have no idea whether it is) the simple fact is that you can't observe Javascript as an object-oriented language because it isn't one, at least not in the purest sense. If you lose that particular conceit and actually treat it as what it is then you fairly quickly realise that:

  • Javascript is extremely good at what it does - that's why it's been around for so long and hasn't been superseded by anything remotely convincing (and don't go saying Flash here because if you do I'll reach into the internet and slap you).
  • Most of the problems with Javascript are due to inconsistencies in different browsers' JS engines - which is why doing anything with IE7 and Firefox is only marginally less painful that hitting yourself in the nuts with a lump hammer.

Anyway, all this fooling around with Javascript, fun as it's been, has led me to thinking about how to include it in my blog engine (because if there's technology you've no choice but to use it, right? Yeah, that's going to end well). I've got some ideas - many of which include using the code provided by the awesome LAZR-JS library, which in turn uses YUI 3. I wasn't a fan of YUI to begin with - it's big and complicated and more heavyweight than I need for most things - but after two weeks of solid YUI work I've come to really like it.

So, watch this space for news of things that I'm trying to do. You probably won't notice them at first because high on my list of things to do is write a better interface for blogging rather than using the existing Django admin interface. Whilst django.contrib.admin is awesome in a lot of ways it's not the most user friendly thing ever (I'm writing this in gvim using It's All Text for a reason you know), so I aim to improve it to the point where it's on a par with the latest Wordpress UI (not that I'm setting the bar high or anything).

But before that, I have to do other things, which I'll talk about in a separate post. In the meantime, if you're looking to do interesting things with Javascript, take a look at LAZR-JS. I can't guarantee it'll be useful, but it may well be instructive.

About

Graham Binns is a photographer, writer, musician and software developer from Lancaster, England, with a bizarre imagingation, a penchant for odd t-shirts and a magnificent hat.

Latest tweet

@keybuk Emphatically yes.

2010-03-13 23:21:13
Latest flickr uploads
Texture Out of frustration, a self-portrait More Katie Green
More Katie Green More Katie Green More Katie Green
More Katie Green More Katie Green More Katie Green

Categories

  • Photography
  • Writing
  • Ubuntu

Blogroll

  • Joe McNally
  • Bert Stephani
  • Chase Jarvis
  • Alan Pope
  • Launchpad blog
  • Tony Whitmore
  • Pieter Van Impe

Recent posts

  • One of life's little disappointments
  • In which I turn 29
  • Wailly wailly
  • Migrating to Wordpress
  • Brain porridge
  • fnarg
  • Brief request
  • The oncoming arbitrarily-measured period of time
  • That there decade thing
  • Why I Hate Freedom

Recent comments

  • Shamima Sultana on Simple
  • Shamima Sultana on Simple
  • Lucena on And yet more photography gubbins
  • counterlord on Welcome to my humble abode
  • gvjj on Blog engines stuff and things
  • romaPlalase on Mumble
  • Frokostordning on Nonsense at 3am
  • WongCorina32 on Very quickly
  • Graham Binns on Response from Ben Wallace
  • Simon Regan on Response from Ben Wallace

Popular tags

blackandwhite blogs buildings computing d300 d40x flickr general home humour in the news lancashire lancaster landscape links linux monochrome morecambebay nanowrimo news observations people photography planet ubuntu uk religion sigma1020mm stupidity thoughts three hundred and sixty-odd days of 2008 twitter ubuntu water work writing writing ideas


©2005-2010 Graham Binns
Powered by Frabjous using the Gridline Lite theme by Graph Paper Press.