• Bruce Schneier schools Sam Harris

    Posted by in Security   0 Comments

    May

    09

    2012

    Unlike some readers, I wouldn’t call Sam Harris a ‘racist’ (religions or ideologies aren’t races) or even a bigot. He thinks he’s actually got a good argument when he calls for profiling by the TSA. On face value, his arguments might seem sound, perhaps even nearly convincing – even though there’s a nagging feeling that [...]

    Read More

    Clever bash hack

    Apr

    20

    2012

    I stubled across this from a colleague at my new gig:

    #!/bin/bash if uname -r | { IFS=.- read -r a b c _; [ "$((a*10000+b*100+c))" -lt 20622 ]; }; then echo 'Your kernel is too old!'; else echo 'Your kernel is 2.6.22 or newer!' fi

    What nerds do for fun

    Posted by in Geek   0 Comments

    Apr

    19

    2012

    So, I was logging in to an account with my registrar today, and there was a notice saying that ‘.in’ domains were on sale for $2.48. I couldn’t resist, it is the best $3 I’ve ever wasted.

    Read More

    Back from my social ‘vacation’

    Posted by in Perl, PHP, Ruby, Social   0 Comments

    Apr

    04

    2012

    It’s been a while since I posted anything here, I blame winter plus a host of all sorts of things that have been keeping me busy. Since the last blog post, there have been a number of things. Delano and I released One-Time Secret, along with Ruby, PHP and (thanks to Kyle Dawkins) Perl client [...]

    Read More

    Carlsberg ad

    Posted by in Social   0 Comments

    Nov

    24

    2011

    This is a great ad. It says a lot about our impressions, our fears and prejudices. A whole paper could be written on why some folks left and the body language of the couples coming in. The ending is uplifting too.

    Hello (again) world!

    Posted by in Geek   0 Comments

    Nov

    22

    2011

    Wow, it’s been a while since I’ve had a professional blog, (back when I was working for Terra Soft and managing YDL.net in fact) and my own website was worse than terrible. It’s ironic, because I was too busy building medium and large web systems for universities, SMBs and ISPs to actually keep my own [...]

    Read More

    Postgresql, plperl and custom rowtypes

    Posted by in Perl, PostgreSQL   0 Comments

    Sep

    14

    2007

    I had a problem that I needed to solve recently, and the most elegant way to do this was with a stored procedure. However, the procedure needed to return 2 columns – an index id and a sort order. One way to tackle this is to have the plperl function called by a wrapping plpgsql [...]

    Read More