
Chris Warburton warbo@identi.ca
Dundee, United Kingdom
I'm a Free Software hacker & Computer Science PhD student
11 years ago via Identi.ca 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."11 years ago via Identi.ca Web To: Public CC: Followers
Just pushed my AIXI experiment data online: https://gitorious.org/mc-aixi-ctw (look for light-sensor).
Unfortunately some got overwritten, so I'll need to reproduce it.11 years ago via Identi.ca 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 http://chriswarbo.net and software projects which I'm pushing to http://gitorious.org/~warbo11 years ago via Identi.ca Web To: Public CC: Followers
Finally got identi.ca messages showing on my blog again, since the switch to pump.io. 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 URLsazius, JanKusanagi, Christopher Allan Webber likes this.
12 years ago via Identi.ca 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 :P12 years ago via Identi.ca Web CC: Public, Followers
Massive nostalgia trip as Antibrain's "Zimbabwe" started playing on modules.pl :P12 years ago via Identi.ca 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...12 years ago via Identi.ca Web CC: Public, Followers
Damn you segmentation faults! If only I were using a high-level, interpreted language like PHP; oh, wait, I am.12 years ago via Identi.ca 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 :)12 years ago via Identi.ca 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!12 years ago via Emacs Identica-mode To: Public
Validation on "IP address" box on http://ur1.ca/ekvs7 doesn't accept IPv6. Oh well.12 years ago via Emacs Identica-mode To: Public
Written a bunch of scripts and a Chromium extension to make navigating through my Drupal SimpleTest setup easier http://ur1.ca/egs7h12 years ago via Emacs Identica-mode To: Public
Having fun with xautomation, xprop and xbindkey :) Who needs AutoHotKey?12 years ago via Emacs Identica-mode To: Public
How does I enable a Drupal's Strongarm variable? Why, with "$strongarm->disabled = FALSE;" of course! #HolyDoubleNegativeBatman12 years ago 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.12 years ago 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 :)12 years ago via Emacs Identica-mode To: Public
Given up on dzen, xmobar is12 years ago 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" :$12 years ago 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" http://ur1.ca/e816p