Category Archives: Programming

Getting all Second Level Domains from Wikipedia 0

Just hacked up this little script to do the needful:

Spamhaus DBL 0

Looking forward to evaluating the Spamhaus DBL at work.
Reading through some of the code that does multi-pass RBL filtering via a milter, and sometime’s I’m reminded just how painful it is to do DNS programming with C/C++.  Don’t get me wrong, I’m a C/C++ programmer first, Python/Perl programmer second, but damn that’s some lengthy code [...]

Go language tutorial 0

A neat little video from the Google Tech series describing some of the feature of the Go Language by Google.

Incorporate gravatars into your application 0

It’s super easy:

#/usr/bin/perl
use strict;
use Digest::MD5 qw( md5_hex );
 
my $email = shift || die("Please provide email address\n");
my $hash = md5_hex lc($email);
 
print "http://gravatar.com/avatar/${hash}.jpg\n";

I use them at work for showing tooltip displays upon email receipt etc. They’re fun and handy to add to any little application.

Quick launcher for ISO files and kids games 0

We only run linux at home, but my kids have a few game titles that I’ve stored (err, protected) on disk as ISO files. It’s a real PITA to write down the command line options for my wife to execute when they feel like playing a game, so I’ve thrown together a few quick [...]

Wordpress gist/github plugin 0

Nice
Using the github gist shortcode plugin. See usage below!
From http://gist.github.com/234059

Flingo now on github 0

Taste the goodness
http://github.com/petermblair/Flingo/

Flingo: First example! 0

I’ve decided to release flingo, my own context free email parser, as shown in this little video:

swfobject.embedSWF(
‘http://killallhumans.ca/wordpress/wp-content/plugins/flvplayer.swf’,
‘player1′,
640,
480,
‘9.0.0′,
false,
{file: “http://killallhumans.ca/videos/flingo_00.flv”},
{allowfullscreen: true},
{});

I’ll post the source code to flingo soon, but wanted to place something online for demo purposes.

Perl ACL library 0

Hacked together a little ACL package for creating dynamic ACLs based on a few simple ideas:

Sys-Admins like Perl style Regex
Must be versatile enough to handle many types of applications
Should be robust enough to handle auto-generated ACLs

I was sitting at $WORK, thinking of a way to restrict access to certain API calls from a shared script.  [...]

A better way to write OO Perl 0

Use the MooseX::Declare syntactic sugar.