August 21, 2005
Gunniess (the dog, not the beer)

The webcam caught our neighbor's dog, 'Guinness', taking a leak on the lawn. You can also make out 'Puddles' running around near the tree.

wizz.png

Posted by ed at 12:22 PM
August 18, 2005
Happy B-Day Lare!

So, you're a year older. At least you're still younger than the rest of the band! :-)

Posted by ed at 10:38 AM
August 17, 2005
Tests are a good thing

Testing with perl is a wonderful thing, and has saved my ass a few times.

Like today.

We have a horrible, horrible billing system (created by a third party) with an equally horrible database schema running on a horrible database server (I'm looking at you, Microsoft).

I have to be able to create tickets for this beast, but since I have no documentation I have to rely on code, which is documented as well as the schema.

So, naturally, I write tests. This, coupled with the fact that my code returns undef if something bad happens long before anything is inserted into the database made getting things working much easier.

I loves me some .t files!

Posted by ed at 03:01 PM
August 13, 2005
Seriously, WTF?

http://www.walken2008.com/index.html

I have no words to for this. It's too weird.

Posted by ed at 12:53 PM
August 11, 2005
One of those days...

Today is just one of those totally non-productive days. I just can't seem to concentrate enough on the work to be effective. Maybe it's the rainy weather we are having today (finally).

Posted by ed at 01:44 PM
August 10, 2005
search cpan and open Safari from perl
#!/usr/local/bin/perl
use warnings;
use strict;
use WWW::Mechanize;
use Mac::AppleScript qw(RunAppleScript);

my $search = shift || "WWW::Mechanize";

my $mech = WWW::Mechanize->new();
$mech->get("http://search.cpan.org/");
$mech->form(1); #use the first form
$mech->field("query",$search);
$mech->click;

my $link = $mech->find_link(text => $search)->url_abs();

my $script =<<END;
set searchURL to "$link"
tell application "Safari"
    open location searchURL
end tell
END

RunAppleScript($script)
    or die "Didn't work!";

exit(0);
Posted by ed at 02:52 PM
August 04, 2005
Dawn...

I have always hated being up before dawn. Be it from staying up all night, or getting up at some horribly early time, seeing the sky slowly lighten into morning has always felt unnatural to me, even in my youth when staying up all night was a common thing.

I had to get up at 1:30AM to do some testing on live systems during a scheduled maintenance window which runs between 2AM and 5AM. I had to drink a pot of coffee just to maintain focus and the stress level of running tests on live systems sucked, big time. I had to scramble a bit to make sure things were in working order when the tests finished.

I am getting too old for this shit. I'm totally wired from all the coffee, but I'm also exhausted. My writs are aching. I want to sleep, but there's no point in trying since I still have all this caffeine in me, and we have a house appraiser coming over at 9AM anyway. It's 5:21AM now, no point trying to sleep if I have to be up in a few hours anyway, right?

Damn, I'm tired.

Posted by ed at 05:23 AM