Nov 19, 2009
I’ve been writing a small Python/Tk application and until recently was having trouble with menu item callback functions. I have a series of menu items, all of which do much the same thing, but within the context of an item-specific ID. Therefore it would make sense to have a generic function that takes some parameter to determine what to do. [Read more]
Nov 10, 2009
Smoking is bad. I realise that. But like any addiction, no amount of rational discourse will disuade me from enjoying a cigarette. Believe me, I’m very much aware of the arguements against it.
However, smokers are not carriers of some hideous contagion. If I want to smoke while waiting for a bus, I’ll respectful head to the end of the queue away from others. You don’t want to be bothered by my smoke, and I respect that. I do however object to Joe Public ignoring the ample space in front of me and queuing as only the British can, behind me; glaring at me all the while for polluting their personal space. If you don’t like it, don’t hover beside me when there is plenty of room for you to breathe the air that is polluted only by our own industrial and other emissions.
Here endeth the rant. If you can find it in yourself to not voluntarily subject yourself to passive smoking and then vilify me as if I made you do it, I would be most apreciative.
Sep 14, 2009
I’ve been somewhat remiss in updating this site in recent times. This has largely been due to my being incredibly busy. Since saying farewell to Valley Technology, I’ve joined Diet Chef as their web developer and general IT jack-of-all-trades. I’m pleased to say I’m enjoying the varied work, but look forward to finding time for some more personal projects, including further developing “Where are the shops?”.
I also think, due to the ubiquity of various social networks (vis-a-vis Facebook, Twitter et al.) and the iPhone, I tend to blog less, favouring to send updates to a number of social networking sites. This has lead me to conclude that the present incarnation of the site isn’t really working for me. Over the next month or so (depending on how much free time I have), I’ll be reorganising things with a focus on aggregating all the snippets of ‘me’ that are out on the interwebs into a single stream. I’ll still be posting longer posts and articles when I have something substantive to say, but will probably let Facebook, Twiiter, Last.FM, etc tell my story.
Hope you are all well!
Sep 13, 2009
I’m pleased to announce my latest offering to the interwebs. If you’ve recently moved house or are otherwise in an unfamilar area, you may want to know where the nearest shops are; well http://www.wherearetheshops.co.uk can answer that question for you. At the moment, just the big four supermarkets can be located, but I hope to redress that as time goes by. I in no way endorse any store represented on the site, and provide this service “as is”. Any thoughts/suggestions are very much welcome.
May 22, 2009
It is with a heavy heart that I leave Valley Technology today. As is becoming increasingly common at present, Valley Tech have had to reign in expenses, and unfortunately redundancies are a necessary evil in these hard times. I am a hard working and enthusiastic web developer with a broad range of skills – so if anyone is hiring, please do get in touch.
Feb 28, 2009
Came across a useful keyboard shortcut to continue to the next iteration of an interactive bash for loop. Let’s say you have something like:
for i in $(cat server_list.txt); do
ssh -q $i hostname
done
If one of the servers is unresponsive, you can continue to the next iteration with
ctrl + \
Feb 28, 2009
I’ve just come across goodreads – another social-networking site, with a difference. The site lets you add books you’ve read with arbitrary tags, giving reviews, ratings etc. The site also offers a REST API that returns XML based on request URIs using OAuth for authentication where required. I’m going to add some books to it and have a play with the API.
Oct 30, 2008
Having upgraded my Hardy distribution to Intrepd, I can say that I’m impressed. The changes to the desktop, although subtle, are very much welcome. I haven’t had any teething troubles with any of my hardware; the only ‘glitch’ I’ve noticed involves the title bars of open applications, it goes transparent now and then – but I’m sure I can put up with it until it gets fixed. Good work Ubuntu!
Oct 24, 2008
So, you need to take a copy of a subversion working copy, but it has local changes that you also need to copy. This precludes the use of `svn export` since the local changes won’t be included. One option is to do an `svn export` anyway, and then `cp -ra` the local changes. Another solution is to use a find command that excludes subversion metadata, and then copy the resulting files:
`find . -path ‘*/.svn’ -prune -o -type f -print`
I did something similar some time ago, but forgot the command, so here it is for posterity.