Test driving Socrata for Open Data

The Queensland Police Service recently published some data about reported offences from July 1997 to June 2012. I was interested to see how Socrata would handle that data. Here’s the results. Powered by Socrata Note that the graph is only displaying the first few years worth of data. Also note that this experiment was conducted Read more about Test driving Socrata for Open Data[…]

Spork to Spin

In my last post, I documented the trials and tribulations of getting spork working properly with RSpec, Cucumber, SimpleCov and Mongoid, and a solution I devised to the problems. I also posted my solution to the SimpleCov issues list on GitHub. Then Christoph Olszowka, the maintainer of SimpleCov introduced me to spin, a lightweight alternative Read more about Spork to Spin[…]

When spork puts a fork in your cucumber and a spanner in your specs

TL;DR: Getting Rails, RSpec, Cucumber and SimpleCov to play nicely with spork is a pain. However, it is possible to get them all working together. Ensure config.cache_classes = true, that Rails threadsafe mode (config.threadsafe!) is not enabled, and then see my spec_helper.rb file below. So, I’m hacking again. How I have missed it. It has Read more about When spork puts a fork in your cucumber and a spanner in your specs[…]

Of Thanksgiving Turkeys and Black Swans

A couple of months ago I finished reading The Black Swan (TBS) by Nassim Nicholas Taleb. I suspect I’ll read it again sometime. In a nutshell, TBS is about (un)predictability, uncertainty and knowledge. Karen and the kids bought me the second edition of TBS for Fathers’ Day. It’s the one with a lengthy postscript essay, Read more about Of Thanksgiving Turkeys and Black Swans[…]

The Australian and the new Battle of Jericho

When the Israelites crossed the River Jordan into the land of Canaan, they came upon the city of Jericho. God spoke to the leader of the Israelites, Joshua, saying he and seven priests should walk around the city once a day with the Ark of the Covenant, until the seventh day, at which time they Read more about The Australian and the new Battle of Jericho[…]

No startup culture in Australia

Occasionally I go back and read some of Paul Graham‘s past essays. I find them to be a source of enlightenment, mostly on issues surrounding startups. Some gems are consigned to the footnotes: There are two very different types of startup: one kind that evolves naturally, and one kind that’s called into being to “commercialize” Read more about No startup culture in Australia[…]

RSpec: verifying model instance creation

UPDATE: I think this post may be a complete waste of time. Just stub out the valid? method on your model to return true or false depending upon what you’re testing. See Ryan Bates’ RailsCast on how he tests controllers. I’m a freaking idiot sometimes. As a good little rspeccer, I try hard to write Read more about RSpec: verifying model instance creation[…]