I've been playing Human Resource Machine. It's awesome! It's a little silly that I've been relaxing after a long day of coding by... doing assembly programming, but it's a fun game. Anyway, I've been hung up at the optimization challenges for Year 20: Multiplication Workshop. The challenge: For each two things in INBOX, multiply them … Continue reading Multiplication Workshop
Category: Code
I contributed to CPAN!
I spend a lot of time dealing with Perl at $WORK (as you can tell by the word "$WORK"). One of my projects is updating our legacy code, which mostly runs on Perl 5.8. When I tried running things under Perl 5.20, some unit tests broke because as of Perl 5.18, the return order of keys … Continue reading I contributed to CPAN!
Greasemonkey FTW
// ==UserScript== // @name Get Medieval // @namespace http://get-medieval.livejournal.com/ // @description Fixes broken comic images. // @include http://get-medieval.livejournal.com/ // ==/UserScript== var images = document.getElementsByTagName('img'); for (var i in images){ var src = new String(images[i].src); if (src.match(/ainself.net/)){ if (!src.match(/gif/)){ src = src + '.gif'; images[i].src = src; } break; } } Yeah, my Javascript sucks, but... … Continue reading Greasemonkey FTW
Water
Water! is a Google Maps mashup displaying all the public water fountains in Vancouver. The crazy thing about it is that he does it in drupal, and he builds it from scratch in ten minutes using the admin interface. There's a video. Nifty stuff.