This blog is an archive

This blog contains a lot of posts from May 2005 until mid-to-late-2007, a period where I wrote a ton – mainly about politics, sometimes about technology and rarely about other things.

In spite of the fact I stopped writing for the blog I kept it online. Now, with this post, I’m declaring it to be officially defunct (although I’m going to keep it online). With that said, if you’re interested in seeing what I’m up to these days, take a look at:

aduyzer.com (for newer writings)
My LinkedIn profile (for what I’m up to professionally)

Occasionally I write a piece for Raise the Hammer (my posts are here), a publication I still have tremendous affection for.

If you’d like to get in touch with me, I’d be pleased to hear from you. My contact information is at aduyzer.com.

Thanks for dropping by.


Thoughts On My Kids

Two kids now, and both doing things that I find interesting and worth writing about.

Oliver At Three-And-A-Half

A New Room

[Well, I wrote this nine years ago. And it’s now 2020, and Oliver is twelve, and he’s not fond of the fact this blog post comes up when you google his name, because of the first story I relate here. It’s a funny story and I love it, but he’s viewing his three-year-old behaviour through the lens of a twelve-year-old, and I get that. So here’s the edited version…not as good as the original.]

He gets out of bed tonight and walks over to the top of the stairs. “Dah-ee!” (He generally skips the second d in daddy, which I’m fond of.)

I go upstairs to ask him what the issue is and I notice that he’s damp all over. His hair is plastered to his head. His face is flushed. I ask him why he’s all wet.

“Because my room is jiggling [his window rattles when the wind blows hard]. It was bothering me. So I got all of the way underneath my blankets. But my room was still jiggling. My room is too old. I need a new room.”

Very Upset

I’ve been off work due to the Christmas holidays for over a week. Oliver and I were hanging out after I was off for a few days, and he said, out of the blue: “I’m very upset with you, daddy, because you go to work every day to make lots of bacon and you are there for a very long time.”

Yes, Yes, Yes, Yes, Yes

You’ll really only understand this anecdote if you’ve read the Robert Munsch story Angela’s Airplane, about a child who absconds with an airplane because she cannot resist pressing buttons.

Oliver’s favourite stuffed animal is this truly massive (it’s bigger than him) blue teddy bear that my buddy Wayne bought for him when he was first born. Oliver got me out of bed one night to examine an urgent issue with the bear, namely that he had extracted a large amount of stuffing from the bear by pulling it out of a hole in that had formed in its arm.

“Oliver, why are you picking out the stuffing?” I asked.

“Well,” he replied, “I was laying in bed and I asked myself, should I pick the stuffing out of the bear? Is that a good idea? And I said, ‘yes, yes, yes, yes, yes’. So I picked it.”

Sloane At Ten Months

She’s recently learned how to “crawl”, except that she can only go backwards, by pushing the floor in front of her with her hands. Because of this she often seems confused about where she ends up, since she can’t see where she is going.

She never fails to return a smile, and when she does, it’s amazing.

I feel guilty that this portion of my post is so much shorter than the portion devoted to Oliver, but she’s still a baby, doing baby things, and I don’t want to bore you. Besides, a picture is worth a thousand words:


Throttle: A Bookmarklet That Removes Turbo From RTH

Raise the Hammer has long been a favourite place of mine for both reading and writing. Unfortunately, in the last few weeks, a determined and apparently unemployed troll named Turbo has been attempting to ruin the discussion there (unemployed or underemployed: the sheer volume of comments leaves no other conclusion).

As a result I’ve had no choice but to write a bookmarklet that automatically hides all of his comments when you click it.

To use it in Firefox or Chrome (probably Safari as well), just drag and drop the URL below (the one that says Throttle) to your bookmark’s toolbar. In Internet Explorer, right click on the link and choose “Add to favourites” (not sure how you get it into your browser toolbar from there, but if you know, go ahead and add a comment below.


Once you’ve done that, all you have to do to use it is click it while reading any RTH article or post. All of Turbo’s comments will instantly disappear and you can go on reading without with his absurd trolling.

P.S. This also just happens to automatically downvote his comments too…

UPDATE: Here’s a version that takes care of Hammy:



Hpricot – [BUG] Bus Error – Solution / Workaround


You’re using Hpricot to parse web content, but it’s throwing an error like this that completely kills the process (probably crashing your app, or your background task, as the case may be):

/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/parse.rb:33: [BUG] Bus Error
ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-darwin8.11.1]
Abort trap

This resource suggests that the problem is that the content retrieved is precisely 16384 bytes long, however, that was not the problem in my case.

My problem is replicated in this gist. Examination of the URL it was trying to retrieve using curl with -i indicated that this was returning a 302 redirect:

HTTP/1.1 302 Found
Date: Thu, 12 Nov 2009 14:50:53 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
X-UA-Compatible: IE=EmulateIE7
Location: /
Set-Cookie: ASP.NET_SessionId=p2s0dljru11tiwer3e01jfq2; path=/; HttpOnly
Set-Cookie: Forum2backURL=/tm.aspx?m=1859288#1859354; path=/
Set-Cookie: Forum2preURL=; path=/
Cache-Control: private
Expires: Wed, 11 Nov 2009 13:50:53 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 120

I am not sure why Ruby’s OpenURI open method was not capable of parsing / following this redirect. However, I determined that the file returned by open() had a size of zero bytes, and this was causing Hpricot to blow up.

My workaround is just to check the size of the file returned by open() and only try to parse it if it is greater than 0:

f = open(file_or_uri)
if f.size > 0
doc = Hpricot(f)
raise "Could not retrieve content due to zero-sized file, possibly due to site redirect."


Thoughts on O, 2

Oliver is two years and three months old. He’s an amazing little man. He seems to get cuter every day, an impossible feat. He trucks around with determination, his little legs whipping along, always moving from one thing to the next.

He’s curious. When he hears something, he asks, “What was that? What was that noise?” He loves to pick things up from the ground – sticks, rocks, whatever. To his mother’s horror, the other day he scavenged a french fry from the floor of the mall and happily ate it. In other words, he is resourceful.

He is observant. He can spot a sliver of the moon in broad daylight, when it scarcely looks different than a scrap of cloud. He learns quickly and is unafraid of embarrassing himself. I’m in a constant pattern of language instruction with him, introducing new words and asking him to repeat them. He does very well at it. I like to throw some curveballs in there too. “That’s called ‘manipulation’, Oliver. Can you say ‘manipulation’?” “Manish-ship-ship-shun.” “Can you say controversial?” “Con-oh-SERial!”

Although his vocabulary may not have caught up to mine yet, he has already superseded my musical ability. His rendition of Gincle Gincle Little Star is far sweeter to the ear than my best attempts. He is also adept at filling in the parts of songs he doesn’t know with semi-melodic mumbling, which will put him in good stead when he needs to sing the national anthem later on in life.

He loves to be tickled. When he’s had enough, he lets me know: “Daddy, dop!” In general he is not afraid to let me know when I’m being a pain in the ass. “No, Daddy. Go way, Daddy!”

On the other hand, he doesn’t like it when I leave. We have interesting conversations in the front hallway on weekday mornings when he tries to prevent me from going to work.

“No Daddy go!”

“Daddy has to go to work.”

“Why Daddy work?”

“Daddy has to work so that he can make money.”

“Why money?”

“Because we need money so that we can buy food.”


“Because we need to eat.”


Why indeed? I used to believe that when I had a child, I would always try to explain things to that child and never resort to the pat answers I’d hear from other parents (“just because”). My child is only two and he is already defeating this goal. Why DO we need to eat?

You can answer that question, sure, but ask enough “whys”, and you’ll find yourself trying to explain the nature and reasons for existence of the universe – to a two-year-old.

Then again, he’s probably got as good a chance of understanding it as most. In fact, I think he’s taught me far more about the ultimate nature of life and existence than I could ever teach him.

Life, politics, code and current events from a Canadian perspective.

Adrian Duyzer
Email me


Proud contributor to
Director, Web Division at