The Penalty Box

Five minutes for attempted world domination

There wasn't a sippy cup big enough

February 25, 2012 at 09:45 AM | categories: Five Hole Photo | View Comments

There are times when you gather with your friends that some special moments happen. Weddings, birthday parties, Christmas gatherings and the like can produce some unforgettable moments of family, friends and love. Then there are those times when you get sauced and you get one of those "well it seemed like a good idea at the time" moments.

I don't remember if my friend Allen told me the reason he was trying to drink Guinness through a straw, but it doesn't take away from the sheer ridiculousness of the photo. Maybe he just graduated from a sippy cup, and this was his way of celebrating.

There wasn't a big enough sippy cup.

f/2.8, 1/125th sec, ISO 1600

Read and Post Comments

Down with OPP?

February 21, 2012 at 08:02 PM | categories: Coding, Tech | View Comments

A lot of people rag on Perl as a language. Indeed, I can agree with some of their points. It's not great as a page serving language, despite a decent framework like Catalyst. The syntax lends to awful looking code. Figuring out what it does can take just as long as rewriting it yourself. However, I still think it's a good language to do system level stuff: parsing, deployment and other assorted back end stuff. It's pretty fast (in the world of scripting languages at least, although there are some crazy things being done in Python to get it to the speed of compiled C with JIT compiling), there is good library support and it's been around forever so it's pretty stable.

The downside usually lies in reading code that is not your own (Other People's Perl). I was trying to use a Perl library recently that interacted with Amazon's S3 storage, but it wasn't doing quite what I wanted to do. I then came across this little tidbit that made me want to punch the developer in the face.

  1. my $cmd = qq[curl $curl_options $aws $header --request $verb $content --location @{[cq($url)]}];

Anyone want to hazard a guess? No? Yeah didn't think so, not unless you're one of those crazy Perl guys. It starts off pretty normal. "qq[" is another way of doing the backtick operator, capturing output and assigning it to $cmd. The rest is pretty straightforward too, until you get to the parameter of location. Eventually I figured out that the output of cq was an array of strings. The square brackets annonymizes the array and the @{} syntax derefences the array and joins it with the empty string. This is an example of someone who is trying to be clever with his code when he could have just used a freaking join function!

You down with OPP? Hell no, not me.

Read and Post Comments

Look Up

February 18, 2012 at 11:25 AM | categories: Five Hole Photo | View Comments

Ah yes, another cliche Internet cat photo. Don't worry, I won't be putting any LOLText on it. This is my sister's cat, Beanie. Beanie is a bit of a putz; everything either amazes her or scares the crap out of her. Or the world is ending. She is very much a #FirstWorldProblems cat.

This was taken when she was still a kitten, so the prospect of a camera looming over her was a very curious sight indeed. Hence the eyes bugging out.


f/1.4, 1/40 sec, ISO 400, exposure correction in post

Read and Post Comments

Sunset Theatre

February 10, 2012 at 11:09 PM | categories: Five Hole Photo | View Comments

I took this photo on a walk around the Seawall by Stanley Park. As the sun went down, this couple sat down on a log to watch the sunset. As I waited for the skies to redden a little deeper to get a landscape shot with the ships in the distance, I noticed the light from the setting sun leading straight to the lovebirds on the log. Once the sun got low enough to silhouette their two heads in an embrace, I snapped a shot. Enter your own mushy romantic cliche here.


f/14, 1/30 sec, ISO 100

Read and Post Comments

Bugs are cool

February 04, 2012 at 04:35 PM | categories: Five Hole Photo | View Comments

I snapped this photo before I had my DSLR. If there's one thing I've learned since getting into photography, it's that the gear doesn't matter nearly as much as the operator of the gear. A little luck doesn't hurt either. Immediately after I hit the shutter for this picture, this little guy took off and buzzed a canoe like a Japanese Zero Fighter. Except, you know, without the kamikaze bit. Macro shots for nature's creatures usually take some level of sneakiness, but I happened upon this guy while walking along the trail at Burnaby Lake.


f/5, 1/500 sec, ISO 100

Read and Post Comments