18 Dec 2009

First Week in SA

It's a little late for a "One week in SA" update but it's been such an engaging and busy time that it's surprising that it's only a little late.

My two nieces quickly returned to treating me as a combination of climbing frame, playmate, punching bag and source of knowledgefulness. It's been great reconnecting with them and seeing how they've grown since I last saw them.

My sister and her husband run a really tight ship. Their household consists of 2 energetic and and curious girls and 4 playful, but obedient dogs (2 chihuahuas and 2 collies). The place runs like clockwork with only a few stern words when one of the denizens misbehaves and that usually brings them in to line very quickly.

On my second day here, we went to 'Visit the cheetahs' which turned out to be a pair of teenage cheetahs that a couple keep as pets. They sleep on the bed at night and lounge around in the garden during the day. I have a score on one of my boots where one of them decided that he wanted to play with it. They behave almost exactly like scaled-up house cats, including purring at a similarly scaled-up volume.

The rest of the time has been taken up with numerous social occasions, Xmas shopping, entertaining the girls and trying to make friends with the older collie who has decided that I am the anti-christ come to her house to destroy all that is good and pure (in spite of all the evidence to the contrary, I might add). I have taken to stroking her while saying "note the complete absence of death" quietly and reassuringly. It's not working very well.

Pics and more commentary will be forthcoming soon.
7 Dec 2009

Interesting times

The past few months have been interesting times (in the Chinese curse sense) for me. In a strange way I quite enjoyed looking for a new place to live while preparing for and winning a year-long court case against a landlady that decided to make off with our deposit.

Moving house involved deciding on the place without having seen it (they couldn't get the keys in time and I had 5 days to find a place), hearing at 8 on the day of the move that the landlord had not signed some important document and the keys were still not available, arriving at the new place and waiting an hour for the keys and then, finally, seeing the place for the first time. I am delighted with it. It is perfect for me and has some unexpected bonuses like the en-suite shower.

All of the to-ing and fro-ing and uncertainty about the move proved to me that I am capable of making, revising and executing plans that put me in a good position to benefit from the uncertainty. So when the latest development arrived on Thursday (5 days before I go to South Africa for 3 weeks), I barely raised my eyebrows and sighed. The development? My landlord is in arrears on the mortgage and my flat is being repossessed. As a tenant, I have no rights except to be informed of the fact. The lawyers that are doing the repossession wouldn't even give me a clear idea of the timeline. I may well return to London to find that I'm homeless and all my stuff is locked in. Oh well.
19 Oct 2009

Finding Somewhere to Live in London

I have to move soon and so I've been looking for a new place to live. In a city like London where the population is very mobile, you'd think there'd be services and web sites that make it easy. You'd be wrong. Here are some of the things I've tried:

  1. Craigslist and Gumtree - hives of scum and villainy. Worthless for anyone that's not a scammer or looking to be scammed. I responded to 5 ads before giving up. All five were scammers. I don't have the time or inclination to be a fraud filter.
  2. Looking through search results on various property websites. Search results were horribly polluted: Why on earth would I be interested in parking spaces when I've specified 1 bedroom? A 1 bed parking space? What's the living space like? On some sites it was impossible to specify that I don't want to share a house. Others just ignored that I had. All requests for viewings were ignored. When I see a situation like this, I wonder if there's a business to be made doing it better or if there are constraints that I'm not aware of. Does anyone out there know if horrible, useless property web sites are a necessary result of something inherent in the property market or just that nobody has made one yet? Alternatively, does anyone know of a property web site that made you think "Wow! That's a great site"?
  3. Found a site that allowed you to provide a description of what you're looking for and send an email to a number of agents (limit 20). So far, this looks like the best bet. Even though I've received a bunch of responses from people that had clearly not read the spec (asking for details that I'd already provided or sending me properties that clearly didn't fit), I did get a few responses that look promising (including one smart one that offered a property that was over my budget, but included council tax). I'm almost thinking of writing my own bot to scrape property sites for email addresses and mail my spec to them.
Anyone have any advice or experiences to share?
24 Sep 2009

How many ways can you be wrong?

TorrentFreak notes the hypocrisy of Lily Allen where she chastises 50 Cent for his stance on copying music using an article copied verbatim from Techdirt without attribution. I think that's hilarious, but I have other issues with her article. The full text of her article was here, but she took down the blog while I was writing this. Here is her comment:

this is particularly selfish in my view, he seems to only be thinking of how piracy effects him. What about the guys that work in the studio and the kids that run around town putting his posters up,the people that designed his artwork, the people that run his website. Is he giving them a cut of his live fee?



Aside from being nit-picky and pointing out the obvious misuse of effect, I find her basic misunderstanding of the world disturbing. Do the people that do those jobs for Lily get a cut of her album sales? I doubt it. They get paid a salary or a wage and they'll be paid the same whether 50 Cent (or Lily, for that matter) makes more money from live performances or from album sales.

I think artists should be paid for their work (I shouldn't need to point this out, but the level of debate on this issue is so low that I feel that it's necessary), but I get annoyed when the "content industries" and "creative industries" try to hijack our legal system and other businesses to protect their failing business model. Their business model is failing for a number of reasons:

  • there are better ways of selling music than moving little shiny discs around
  • they refused to engage with the idea that the Internet was a better way of distributing music so consumers developed the idea that music you download from the Internet is supposed to be free
  • the product (manufactured, sanitised music) is less and less interesting
  • competition from other, more interesting entertainments - games and interesting bands that are not signed to the big labels spring to mind
  • artists have worked out that they no longer need to sell their souls to these guys in order to be successful. They can make music, release it on the Internet and eliminate the shiny disc gatekeepers
All of this means that completely stopping music piracy will probably not have a great effect on their profits. However, the means that are used to try to stop piracy will distort our society in ways that I find unacceptable.

Let's start with the poorly named '3-strikes' proposal. It would be more accurate to call this the '3 unsubstantiated accusations' proposal. It neatly removes presumed innocence and any need for actual evidence from our legal system (at least where it relates to Big Content). If some big companies fail to make money, breaking our legal system to accommodate them is not the solution. The solution is to leave them to sink or swim on their own merits and ability to innovate.

Another proposal is that ISPs should police the traffic across their networks to detect and block the movement of copyrighted materials. This would be a great idea if it was possible and Big Content was paying for it. Detecting copyrighted material as it travels across a network is, essentially impossible. If Big Content gave every ISP a full corpus of all the material they wanted policed, they could reduce the problem to insanely difficult and very expensive. Anyone want to place bets on that happening? This goes beyond damaging a vibrant and useful industry in favour of a failing one. Combine it with the 3UA rule and you have software that can cut off your Internet access without any oversight.

I don't oppose the machinations of the copyright lobby because I think music should be free, I oppose them because I believe that they are a blight on our society.

21 Sep 2009

PyWeek Results are In!

Tartley organised a team for the latest PyWeek competition. Our team consisted of some current Resolver employees (me and tartley) and some ex-employees (mjs0 and xtian). The results are in http://www.pyweek.org/9/ratings/

Overall, out of a field of 54, we placed 15th on Fun, 33rd on Innovation and 23rd on Production. I'm delighted with our Fun place and I think our Production place is largely due to tartley's excellent colouring of my crappy wireframe ducks and xtian's brilliant duck sound-effects. I think a not-so-good placing in Innovation is entirely justified for a game that started from the sentence "Let's make a game like Joust"

We all had a great time doing this and I, for one, would love to take part in the next one.

Edit: Forgot to mention the team name - BrokenSpell

12 Sep 2009

Unintended consequences

After reading We Are All Sex Offenders Now, it occurred to me that this was a classic case of the unintended consequences arising from poorly considered legislation. In short, I believe that this will increase the chance that an adult interacting with a child is a paedophile. I'd love to find some way to test the hypothesis, so drop me a line if you have any ideas.

My reasoning starts with the thought that there are essentially 3 groups of people that are going to be affected by this:

  1. People that work in a profession that requires contact with children
  2. People who may work with children as a side-effect of their profession
  3. Paedophiles that are hiding in the previous 2 categories
Now it seems reasonable that group 1 will have to apply for the certificate and there's no reason why group 3 wouldn't (it doesn't increase their chances of being caught or increase the penalty if they are). Group 2, however, will have a significant number of people that decide that it's too much trouble to apply for a certificate, so they'll stop the part of their work that requires working with children. The result of keeping the number of bad people that interact with children constant and reducing the number of good people is that any interaction between a certified adult and a child is now more likely to result in abuse than before.
31 Aug 2009

Python, Posterous and RSS import

As promised, more on the post import.

Bloog wasn't included in the list of engines supported by Posterous and doesn't support any of the general APIs, either. I looked, in vain, for an 'Import from RSS' option and then decided to write one for myself. Based on feedparser and httplib2, it is absolutely the simplest thing that works. There is no media upload or anything beyond simply copying the contents of the posts.

import feedparser

from base64 import b64encode
import urllib
import httplib2

posterous_email = '####'
posterous_password = '####'
source_url = '####'

post_url = 'http://posterous.com/api/newpost'

def send_post(title, body, date):
   auth = b64encode('%s:%s' % (posterous_email, posterous_password))
   params = urllib.urlencode({
       'title': title,
       'body': body,
       'private': '1',
       'date': date,
       })

   http = httplib2.Http()
   response, content = http.request(post_url, 'POST',
           headers={
               'Content-type': 'application/x-www-form-urlencoded',
               'Authorization': auth},
           body=params)

feed = feedparser.parse(source_url)

for entry in feed['entries']:
   send_post(entry.title, entry.content[0].value, entry.published)

 

31 Aug 2009

Switch to Posterous

I chose my original blog engine because I wanted to tinker with it.
Soon after I started, I found that I had little time for tinkering and
my post volume was low because of missing features (specifically, no
way to save drafts). I finally decided that ease of posting is much
more important to me than having something to tinker on. Enter
Posterous - dead easy posting, draft saving provided by GMail and only
a little bit of tinkering to get the old posts copied across (more on
this in another post). If there are any issues relating to the switch
over, please drop me a mail or a comment.
6 May 2009

Resolver One goes parallel

Thanks to the awesomeness of Digipede Network, Resolver One (version 1.5 and later) can now run spreadsheets in parallel across a distributed network. A great IronPython sample by Robert Anderson of Digipede and a little bit of development work and Resolver One becomes a brilliant front-end for high-performance grid computing.
14 Apr 2009

What I did on my holidays

Because of some missed communications this Easter, I had a little more time on my hands than I expected. So I decided to resurrect an old project that I have neglected for a while. The result is pictured below. On the left is an Arduino Duemilanove powered by USB and on the right are 4 laser modules of the same power output you might find in a laser pointer. Since the lasers each draw more current than an output from the Arduino can provide, the chip in the middle of the protoboard (a ULN2003A) provides the necessary current on a signal from the Arduino. The device at the bottom of the protoboard is a 5V regulator so the whole thing can be driven from a battery or a wall-wart without the need for a USB connection.

The ultimate goal is to create a light-show by having the lasers attached to the ends of your fingers. I'm going to be playing around with the software to provide cool effects while I think about how to make the whole mess robust enough to survive on a dance floor.

Arduino with lasers