Recovering Deleted Posts When Using WordPress

January 31, 2007

This morning I was having some technical problems with my “Learning Ruby – TDD Style!” Parts 1 and 2 blog posts, specifically how pings were handled when linking posts to each other on update. A side effect of a post update meant a comment would be automatically created in the blog post that it referred to. Since I was adding and will continue to add “navigation” functionality for the different post-parts in order to make life easier for the readers, the present set up was not adequate.

When writing or updating a post in WordPress, there is a box on the right hand side of the screen entitled Discussion with an item for allowing pings. The solution was simple enough: All I needed to do was update each page, uncheck Allow Pings, save and delete any lingering ping comments. Simple enough. Somewhere along deleting the ping comments in my early morning haze, I accidentally deleted one of my blog entries!

Read the rest of this entry »


Learning Ruby – TDD Style! (Part 2)

January 31, 2007

start | previous | next | finish

In order to do Test Driven Development (TDD), we need to become intimately familiar with assertions. In my last blog entry, we started to look at the assert method. Lets consider the contract of this method:

assert(boolean, message=nil)
– Asserts that boolean is not false or nil.

When testing this method I’m making the conscious decision not to test assert using the other methods that Test::Unit::Assertions offers. Although it’ll make things more difficult at first, it will force us to learn aspects of the Ruby language that we would not be able to see if we used one “assert” to test another “assert”.

Read the rest of this entry »


Learning Ruby – TDD Style! (Part 1)

January 13, 2007

start | previous | next | finish

I’m starting to take a serious look at Ruby, and like many people who are new to a programming language, it’s difficult to know where to start. Sure I have the “pickaxe” book in hand and my bookmarks are overflowing with Ruby links, but where ever and however I start I would like to be able to see immediate results and I would like to prove to myself that I’m understanding the syntax.

How about testing what I already know? Well, right now I don’t know too much. However, that should make things easier since it will prevent me from wanting to take on too much at once and keeping myself focused on small obtainable goals.

Read the rest of this entry »


Finnish Kung Fu is Strong!

January 9, 2007

A lot of people were pretty excited about getting a Nintendo Wii for Christmas this past year largely in part to the cool remote motion sensor technology. After seeing some of the demos for Call of Duty 3, I must say that my interest was sparked.

However, what if I wanted to practice my Kung Fu skills? Sure the Nintendo Wii comes with a “nunchuk” controller, but over time I’m sure the muscles in my legs will begin to atrophy if I don’t get the stimulating workout that I need. Well, wait no longer. Check out this technology coming out of the far east country of… Finland.


Buckeyes: Thems Good Eats!

January 8, 2007

As I sit watching the BCS Title Game between the Buckeyes and the Gators, I started to reflect back on how little I knew of the Ohio and western Pennsylvanian region before meeting my wife. Coming from Canada, American college football was foreign to me since hockey in Canada is king. Even more foreign were the customs of the hillbillies who call Appalachia home.

When I visited my future in-laws for the first time out in western Pennsylvania, I was asked if I wanted to eat some “buckeyes”. Knowing that my wife’s family are avid deer hunters, I assumed that they were being literal. Since I love food and embrace every opportunity to try food which is different, I was really looking forward to the experience. In my defense, before this moment I have visited quite of few exotic countries and enjoyed much stranger food. Still, I was looking forward to trying some fine Appalachia eats.

Read the rest of this entry »


Patterns of Annoying Flyers

January 8, 2007

After traveling by air for many, many years, it’s hard not to recognize those flyers which are just plain annoying. The following list are some of these people that I have seen and continue to loathe:

  • The Princess – people who put their jackets and / or their tiny bags in the overhead bin instead of holding onto their jacket and putting their bags under the seat in front of them. Oddly enough, most of these offenders are middle-age business men who carry man-purses around.
  • The Lazy Sherpa – people who sit in the back and decide to put their roller bags up by the bulkhead. Although these offenders won’t have to carry their already over packed bag as far, it forces people near to front to check their baggage OR they will need to go further back and tick off those people seated there.
  • My new best friend – perpetrators are usually old, lonely, or just nervous of flying. They like to tell you everything about themselves, even if you don’t ask. Sometimes they will continue to talk to you even when your eyes are closed and you’re sleeping.
  • Read the rest of this entry »


“Hello, World!” – Again and again…

January 6, 2007

During the good old Dot-com days, it was really exciting to head over to Geocities to create your own “home page” and impress your family and friends in the process.

The aspiring web developer of yesteryear would:

  • overload the web page with lots of colors and pictures
  • writeup uninteresting text (possibly ALL IN CAPS) that only a few people would care about or understand
  • put some copyrighted MIDI music playing in the background
  • provide enough personal information that someone could either stalk or steal the identity of the web developer
  • create a “guest book” so visitors could read / write comments to know / say how great the web developer was
  • provide a virtual “shout-out” to their friends by having links from their home page to their friend’s – after all, there is no harm inferring that you have lots of friends

At some point the aspiring web developer would place a web counter on their home page as a way to revel in their own successes – bonus if the counter didn’t track unique visits.

Read the rest of this entry »