Chris Warburton

Dundee, United Kingdom

I'm a Free Software hacker & Computer Science PhD student

  • 2014-04-11T08:46:01Z via Web To: CC: Followers, Public

    Irony: Dr David Waldron, a lecturer in history and anthropology at Federation University Australia and author of Roleplaying Games and the Christian Right: Community Formation in Response to a Moral Panic. "There was also a view that youth had an inability to distinguish between fantasy and reality."

  • 2014-03-14T08:41:54Z via Web To: Public CC: Followers

    Just pushed my AIXI experiment data online: (look for light-sensor).

    Unfortunately some got overwritten, so I'll need to reproduce it.

  • 2014-03-13T08:35:54Z via Web To: Public CC: Followers

    My 8 year old HD is starting to play up, so I've moved everything off it. Discovering a load of old blog posts which I'm now pushing to and software projects which I'm pushing to
  • 2014-03-12T15:42:37Z via Web To: Public CC: Followers

    Finally got messages showing on my blog again, since the switch to The solution:
     - Use pump2rss to get an ATOM feed URL
     - Put a script in cron to wget that URL
     - Pipe the results through "xmllint --format --recover - 2> /dev/null" to fix dodgy markup
     - Pipe that through xsltproc to strip out the empty title elements
     - Pipe that through xsltproc again to turn content elements into title elements
     - Pipe that into a Web-accessible file
     - Point ocPortal's side_rss block at that file's URL

    sazius, JanKusanagi, Christopher Allan Webber likes this.

  • 2013-08-09T08:16:22Z via Web CC: Public, Followers

    Aptitude is telling me there are security updates for Linux (kernel), Chromium, Firefox, OpenJDK, Apache, PHP and MySQL. That's basically everything I have on this laptop :P
  • 2013-08-05T16:40:24Z via Web CC: Public, Followers

    Massive nostalgia trip as Antibrain's "Zimbabwe" started playing on :P
  • 2013-08-01T16:38:51Z via Web CC: Public, Followers

    I've been irked all day by the line "if ($foo == 1) {...}" and finally spotted the problem; it's not that the author's been too lazy to put an extra "=" on their comparison, it's that they've done a comparison at all!
    According to PHP's type-mangling, "1" is 'truthy', so "if ($foo == 1) {...}" is pretty much like "if ($foo == TRUE) {...}". Hopefully it's obvious to everyone what's wrong with that: "if" casts its condition to a boolean and checks if it's TRUE, so this *isn't lazy enough*! We can just do "if ($foo) {...}"

    *I say "the line" but of course this pattern is actually copy-pasted a few times in a row, since it never occurred to the author to use a loop...
  • 2013-08-01T13:23:34Z via Web CC: Public, Followers

    Damn you segmentation faults! If only I were using a high-level, interpreted language like PHP; oh, wait, I am.
  • 2013-07-31T13:39:44Z via Web CC: Public, Followers

    The best way to learn something is to try teaching it to others, so I'm giving an introduction to dependent types at Manchester's Lambda Lounge; provisionally on the 19th August :)
  • 2013-07-31T13:35:44Z via Web CC: Public, Followers

    Headbangers Open Air was great, although being at the front for Iron Savior was bizarre since I was surrounded by children who looked about 6 years old. Probably says something about my music tastes!
  • 2013-07-09T13:50:44+00:00 via Emacs Identica-mode To: Public

    Validation on "IP address" box on doesn't accept IPv6. Oh well.
  • 2013-06-28T10:54:09+00:00 via Emacs Identica-mode To: Public

    Written a bunch of scripts and a Chromium extension to make navigating through my Drupal SimpleTest setup easier
  • 2013-06-26T15:56:02+00:00 via Emacs Identica-mode To: Public

    Having fun with xautomation, xprop and xbindkey :) Who needs AutoHotKey?
  • 2013-06-26T10:06:08+00:00 via Emacs Identica-mode To: Public

    How does I enable a Drupal's Strongarm variable? Why, with "$strongarm->disabled = FALSE;" of course! #
  • 2013-06-25T15:53:18+00:00 via Emacs Identica-mode To: Public

    *sigh* Why is PHP fine with "$c=foo(); $x=new $c; $x->bar();" but not "new (foo())->bar();"? Ridiculous.
  • 2013-06-25T13:20:20+00:00 via Emacs Identica-mode To: Public

    Given up on dzen, xmobar is much easier to set up. Only took a few minutes to get it showing test failures :)
  • 2013-06-25T13:19:22+00:00 via Emacs Identica-mode To: Public

    Given up on dzen, xmobar is
  • 2013-06-14T15:05:08+00:00 via Emacs Identica-mode To: Haskell, Public

    You know you've spent too much time writing !haskell when you write an email saying "I'll leave it until Monad" :$
  • 2013-06-07T10:29:36+00:00 via Emacs Identica-mode To: Public

    I cringe when I see phrases like "resolution is 38 metres per pixel". They mean "resolution is 1 pixel per 38 metres"