Archive for June, 2009

Why, Auntie, Why?

Monday, June 29th, 2009

Because of the bloody stupid Andy Murray, BBC2 has now become BBC1 and what was BBC1 has now become BBC ‘lets-eek-the-time-before-the-inevitable-failure-out’. Consequently, the one decent programme on tonight, ‘The Supersizers…’ has been cancelled.

I just sent the following to the BBC:

OK. I’m going to hold up my hand Auntie. I really don’t care if Andy ‘Tim’ Murray wins his match. I am in the minority I realise. The rest of my household loves the silly fool and cares deeply about his progress.

One thing we all agree on, however, is how much we love the Supersizers… And how we’re all capable of watching the Murray match on any one of the thousand or so *other* ways Wimbledon can be enjoyed on the BBC.

Imagine our suprise when, upon tuning in to get our weekly fix of the garrulous gastronomes, we were presented with the tail end of Panorama. Subsequent investigation revealed that, no, our digibox was not suffering from some confusion, BBC2 had indeed become BBC1.

If the BBC is going to launch BBC Murray, please have the good grace to do it sooner rather than later so that I can sit safe in the knowledge that the, already inordinately huge Wimbledon coverage, won’t be extended to quite frankly cringeworthy proportions.

Now, I know that the response to this will inevitably be ‘we decided that the Murray match was important and you are just some crotchety old fool who is probably sat at home counting his collection of interesting 1950s biscuit tins’. If not in so many words, then indeed in spirit. Well, I’ll have you know that said collection of tins is terribly interesting. If this were the One Show, we’d have a Z-list commedian or someone who was the offspring of someone else famous come and look at them. We’d have a nice little interview where I’d give a couple of soundbites that Adrian Chiles can mock in a nice gentle manner while the interchangable ‘regional presenter’ rolls her eyes.

So, BBC. Stop pandering to the stupid ‘Murray Mania’ and realise that you are providing a programme of television, i.e. a set of *different things*.

Right. Demons have be exorcised and this crotchety old man (28 years old BTW) can go back to his train set.

Firtree editing video

Monday, June 29th, 2009

There is a new Firtree demo up on YouTube. This shows Firtree’s integration with GStreamer so that it can process video.

The video is also embedded below so that I can make all your RSS aggregators eat CPU :).

Twitter Weekly Updates for 2009-06-28

Sunday, June 28th, 2009
  • http://is.gd/198Gu <- An article attacking DAB for using more resources than AM/FM. Totally ignores spectrum usage as a resource. #
  • http://is.gd/19bpg <- The DAB resource usage counter point. #
  • Never read the #atheism #reddit . I have never seen such poor arguments (on both sides). #
  • Feeling really quite ill :(. #
  • http://is.gd/19jHu <- Ryanair CEO introduces the latest thing to encourage frequent flyers. #humour #
  • Illness wavefunction has collapsed: It is a flare up of glandular fever - the disease that keeps on giving :). #
  • http://is.gd/1ahNk <- 45 seconds in… That is my system! #
  • Still unwell - Am manning through. #
  • http://is.gd/1an8F <- #firtree powering a simple dynamic image processing program. Pretty video! #
  • @mas90 Thanks! :) in reply to mas90 #
  • Off to NaNo pubmeet at Cambridge Blue #
  • Have just found out one of my friends was on Knightmare. Is this amazingly cool (Y/N)? #
  • http://is.gd/1b96E <- @rebeccapayne: here you are. How cute you were aged 15 :). #
  • http://is.gd/1cYxm <- #linkdump of an amazing optical illusion which is illustrative of how we perceive colour. #
  • http://is.gd/1d4LB <- Crop circles: not aliens, just stoned kangaroos! #
  • @jennielees: LOL - indeed it does. #
  • @microsoft: Q: “There is no … consensus … about what subset of HTML is appropriate for use in e-mail for interoperability.” A: None #
  • http://is.gd/1d5DU <- link missing from previous tweet. #
  • http://is.gd/1d5MG <- who said white #robots couldn’t #dance? #
  • Does anyone remember the /. proto-podcast Geeks in Space? Man that was good :) #
  • Has anyone played with the awesome new wall and floor detection fu on #google #streetview? #
  • “paper submissions must be in RTF or DOC format” Nooooooooooooooooooooooooooooooo! #
  • Thanks to openoffice.org and tex4ht, I can write in LaTeX and send Word documents to the proles. I secretly hope they are corrupted though. #
  • A fun night out with @jennielees - was surrounded with by the people and events of my past! Surreal. #
  • So sad. So talented. Always going to be a part or my memory of the 70s an 80. RIP Farrah Fawcett. #
  • If I put #iran and #michaeljackson in when I twat, does that make me cool? #
  • @wastethesewords I’m so cool that only *I* know ‘twat’ really is the past tense of ‘tweet’. Witness all the people twatting on Twitter :). in reply to wastethesewords #
  • Yay for rain! #
  • http://is.gd/1emSG <- Facebook username fail. According to http://is.gd/1emUq she doesn’t know it though. #
  • http://is.gd/1ewbw <- boy steals man’s car. Man reports it to police. Police catch boy. This, for some reason, is news? #

The most awesome friend evar!

Tuesday, June 23rd, 2009

So my friend, Rebecca, was on Knightmare. I am genuinely incredibly impressed.

Firtree pipeline editor

Tuesday, June 23rd, 2009

Here is a (pretty) little video showing the power of the new GObject-ified Firtree. Having signals as a first-class citizen in the Firtree world allows for dynamic pipeline editing as never before. In this example, the entire GUI is written in Python and uses Firtree underneath for the hard work. The rendering is done by Firtree on the CPU making use of multi-core where appropriate transparently.

If you want to see full HD version, or to download it, take a look at the ogg version or on YouTube.

The DAB myth?

Monday, June 22nd, 2009

An article in The Times got me thinking today. It was a moderately well researched article into the impact of DAB on resource usage and the ‘green impact’ of the decision that analogue AM/FM will be no-more for national stations by 2015.

As a summary of the article, it makes the following points:

  1. “digital radios use more than four times the energy (8.5 watts) of analog [sic] (average 2 watts).”
  2. When switched off “they are computers on permanent standby - like leaving a light on full-time.”

Now, we shall leave for a moment Ms Purves’ confusion between energy and power, and her inexcusable Americanism and come to the meat of these sentences. Does switching ‘off’ a DAB radio really raise it’s power usage to 60W? I think not.

It is fun to be a pedant and micro-analyse her article, which one could easily do. In the same way that getting a tasty trout for dinner using a gun and a large water butt is easy.

Let us address her main point: DAB is less green than analogue. Now there is no one measure of ‘resource’ usage. Power usage is of course one but one which can at least be amortised into ‘greener power’. A far scarcer resource (and one mandated by the laws of Physics) is bandwidth in the EM spectrum. Oil and gas may well run out in 20 years, but the EM spectrum has already been plundered as much as it is able. In terms of spectrum usage, the DAB wikipedia article performs a back-of-envelope calculation to show how DAB uses over 17 times less effective spectrum bandwidth than FM (despite the bandwidth for both being around 0.2MHz/channel).

As a wider concern, people should not focus on one resource number to measure environmental impact. There is no such number. Who is to say how many ‘resource units’, 1W of standby power is compared to 1MHz of bandwidth? It is impossible. Instead one should prioritise the scarcest resource while attempting to keep the impact on other resources as low as possible. DAB correctly optimises for the scarcest resource while allowing other resource usage to be optimised over time without impact on the system as a whole (e.g. individual unit power requirements).

Widening the scope even further, it does annoy me when the green lobby come in and attempt to micro-optimise one small area without looking at the bigger picture.

Twitter Weekly Updates for 2009-06-21

Sunday, June 21st, 2009
  • Reminding people that the best way to mail me electronically is via the invention called electronic mail. #
  • http://is.gd/14n6M <- #linkdump of an ‘open source’ hydrogen car. #
  • http://is.gd/17eYl <- When I rule the world I will make people like this illegal. #

Twitter Weekly Updates for 2009-06-14

Sunday, June 14th, 2009
  • Bored, cold and hungry. Code doesn’t work. Boiler is broken and food makes me fat :(. #
  • The Look East BBC election coverage is coming from my old school’s sports hall. They are standing outside my old RE classroom. Memories! #
  • The BBC’s election graphics for #eu09 is bumping BBC R&D to the top of ‘where Rich applies if it all goes wrong’ list. #
  • An issue with the PR in #eu09 is that one has to vote for the party, not the person. #
  • @Iowa656 I’m happy with PR as a concept. I just feel that one loses something. in reply to Iowa656 #
  • Are there any EU-wide equivalents to theyworkforyou.com which one could use to do informed voting in #eu09 ? #
  • I’m not sure making Gordon Brown a scapegoat is necessarily productive. The in-fighting is beautiful #politics to behold however. #eu09 #
  • @Iowa656 In the PR used in #eu09, the feeling that one votes directly for the people. It is not a fatal flaw, just a difference. in reply to Iowa656 #
  • Sweden exit polls suggest the Pirate Party have a seat in #eu09. Perhaps now we can have a balanced debate on copyright and digital law? #
  • Why have we heard nothing of the Pirate Party on the telly though? #eu09 #
  • Why is it all these women cabinet members are being asked if they are ‘window dressing’? Even I find that a little annoying. #eu09 #
  • http://is.gd/S5rY <- #gobject introspection. Perhaps this can remove the pain which is PyGObject and its ilk? #
  • Massively overslept. That is what one gets for staying up ’til the bitter end! #
  • http://is.gd/UtQZ <- Goddamn it. It is fricking #hammertime ! #
  • Waiting for people in the pub and fiddling with the Intertubes. #
  • @saf2285 You’ll get it. Welcome to the web twenty world. in reply to saf2285 #
  • @mas90 I shall certainly hope to be there! in reply to mas90 #
  • At the SRCF garden party. #
  • Back from pub with SRCF-es. So much geekery. #
  • Curry at 7:30pm, free until then. Anyy suggestions of what to do? #
  • http://is.gd/XmXg <- Everything you ever wanted to know on the guts of the C64 + 6502 + SID. Brings back memories of assembly on the Beeb :) #
  • Oh god. Sometimes tea hits just the right spot. #
  • Engaged in a nefarious, subversive project. Can’t say more at the moment. #
  • http://is.gd/Zfpq <- The first comment on this post is a fine example of everything that is wrong with geeky men. #
  • sudo aptitude install python-clutter; python -c ‘import clutter’ <- Does anyone else get a segfault? (http://is.gd/ZOyZ) #
  • http://is.gd/ZOQb is making my code fail the unit tests. Rage. #
  • http://is.gd/ZWZA <- all together far too catchy #
  • http://is.gd/ZXmo <- From #b3ta , made of immense awesome and uber win. #
  • http://is.gd/ZXH0 <- A beer chiller. From the description: “This is made possible thanks to the principle of thermal conduction.” Really? #

Twitter Weekly Updates for 2009-06-07

Sunday, June 7th, 2009
  • Built a tent from the Guardian on Jesus Green. #
  • Went to a nice BBQ. Saw people I hadn’t seen in too long. #
  • No-one must ever know I am secretly soppy. #
  • Feeling accomplished. My inbox is now empty. It only took all day and 113 filters in GMail to do it! #
  • Have pruned a load of stuff from Facebook. Thought it best not to FB-dump Saf just yet though :) #
  • Having a #flamewar about top-posting vs doing it right. I blame the businessman in his suit-and-tie :). #
  • http://bit.ly/r219h
    <- #linkdump of Greasemonkey script to block some Facebook ads. #
  • http://audidude.com/blog/?p=225 <- #linkdump of a better GObject generator. #
  • @evath With pure anger. in reply to evath #
  • http://bit.ly/tdoS5
    <- the best thing in my life. #
  • http://bit.ly/arKGL
    <- starting to strip out the crufty C++ Firtree API and make it sleek and GObject-y. #
  • http://bit.ly/SDfNV
    <- from @fanf, why CRSIDs rock. in reply to fanf #
  • http://bit.ly/CjU8F
    <- #lazyweb - please fix my bug! #
  • http://is.gd/N50N <- multi-line C++-style comments in GCC rage. #
  • http://is.gd/N5p5 <- #linkdump from The Times: CUSU yet again have to invent welfare issues a we’re all to comfortable and middle class. #
  • I am going mad. I just *seriously* wondered if there was an UML tool for GObject. #
  • @evath yes. It was how Cat found out her car was poorly. in reply to evath #
  • #randomwonder - Does one write ‘a HRH’ or ‘an HRH’? #
  • http://is.gd/Nks1 <- I can hear CJ crying from here. #
  • It only took two hours but now my 1 object, 3 method API has Python bindings :). #
  • audio.lugradio.org is down! Fail! #
  • Bytemark makes small changes to backup config that needs a fiddle on temp.l4.me.uk. Rich realises how horrible his backup script is. #
  • http://is.gd/NXD2 <- look at those hot geeks! Ladies, form a queue! :) #
  • Lines of CMake magic (LOCM) to use doxygen: 134. For GtkDoc: 328. GtkDoc is an exercise in pain! #
  • http://bit.ly/7eIFb
    <- Google squared: Fun to play with. #
  • http://is.gd/P9E9 <- Total Eclipse of the Heart, literal version. I love these. #
  • http://is.gd/Pdve <- I wish now my test harness wasn’t written in Python. I just added automatic valgrind support :(. #
  • I hate coming back to an empty house. OTOH, made the journey in 30 mins. A new record! #
  • I’ve just realised. This is the *first time ever* I’ve seen the start of Saturday Kitchen. That is quite depressing. #
  • Rick Stein has just revealed the Secret of Restaurant Curries. We magicians should never reveal our secrets! #
  • Indications of depression: Wathing the BBC News channel because all 600 other channels are crap. #
  • My JIT-ed code is randomly corrupting memory :(. #
  • http://bit.ly/w5iS3
    < @Jon Harrop: I’m finding exactly this :(. #
  • I hate the MMX EMMS instruction. #

LLVM wrinkle 3: Configuration? What configuration?

Sunday, June 7th, 2009

This is horrible! If anyone can find a way to toggle this option without creating a fake command line, please tell me!

rjw57@crowley:~/bzr-repo/firtree/gobject$ bzr diff -r-2..-1
=== modified file 'firtree/engines/cpu/firtree-cpu-engine.cc'
--- firtree/engines/cpu/firtree-cpu-engine.cc	2009-06-07 17:57:57 +0000
+++ firtree/engines/cpu/firtree-cpu-engine.cc	2009-06-07 19:37:17 +0000
@@ -212,6 +212,19 @@
         return NULL;
     }
 
+	/* Nasty, nasty hack to set an option to disable MMX *
+       * This is really horrible but is required by:       *
+       *   http://llvm.org/bugs/show_bug.cgi?id=3287       */
+	static bool set_opt = false;
+	static const char* opts[] = {
+        "progname",
+		"-disable-mmx",
+	};
+	if(!set_opt) {
+        llvm::cl::ParseCommandLineOptions(2, const_cast<char**>(opts));
+		set_opt = true;
+	}
+
     /* create an LLVM module from the bitcode in 
      * _firtee_cpu_engine_render_buffer_mod */
     llvm::MemoryBuffer* mem_buf =