Explosions, Fires, and Birds

July 16, 2008

Monday was planned to be our release day of a new version of Viviti, but it was not to be. An underground explosion and fire took down a chunk of the power in downtown Vancouver, and while the water cooled generators worked, they stopped working in a hurry when the Vancouver Fire Department tapped into the water supply to put out the fire. Oops.

Tuesday we were getting ready to release in the afternoon when a bird flew into a transformer a block or two away from our offices, killing power to the building. Fortunately, our office buildings have nothing to do with our servers so this was mostly just a minor inconvenience, but pushed us to Wednesday.

Today we managed to make it through the entire day without anything exploding or catching fire, so we've pushed up the new build!

 

New bike!

June 18, 2008

After riding a supermarket giveaway bike (which proudly displayed the MJB Coffee logo on it's frame) for a couple years I finally gave in and bought a new bike. Perhaps more accurately, the bike gave out and I replaced it!



I love it - but it won't stay clean for very long, so I took some pictures while it's still cleanish. I also found out that it takes about 50 minutes to ride home from work, and that riding on pavement isn't as boring as I thought it would be. The cars still scare me a bit.

The Canadian DMCA

June 14, 2008

The Conservatives have finally introduced the DMCA, resulting in somewhat predictable outrage from Canadians. For those not familiar with what this means if it's passed, I urge you to read some of Micheal Geist's recent posts - he breaks down the fine print. He's also posted a nice list of 30 things you can do to make a difference.

For those that don't know why this is bad, It's similar to the American DMCA - It has privacy concerns and removes a lot of consumer rights. It adds a few as well, to be fair, but the problems need to be addressed. For more information I suggest you read Geist's summary of the problems with the bill.

The easiest thing you can do is contact your MP - Call them, mail them, email them, meet them in person - whatever you are able to do, and ask them to oppose the bill. For the lazy, onlinerights.ca has a simple form you can use to select your MP and send them an email. They do read these, and it only takes a minute or two to send.

Keep in mind, we do have a minority government, and we can be heard.

There are good things in the bill, and there is nothing wrong with updating copyright laws in Canada. They are out of date, and out of step with the world we live in. We just need to make sure the Government hears our concerns, and modifies the bill to help protect consumer rights and privacy as well as the rights of content producers.

Serialized hashes with partial_updates in Rails 2.1

June 2, 2008

In Rails 2.1, they added partial updates - which is a great idea and a long time coming. This makes ActiveRecord only updates the parts of a model that has actually changed, and also gives you the ability to see if a field (or a record) has changed since retrieving it from the database. (via model.changed?, model.attribute_changed?, and friends)

There is a gotcha though, If you are using serialized attributes it won't trigger the changed flag unless you assign to it - so if you are doing something like:

model.something_serialized[:foo] = true

ActiveRecord will not realize you have changed anything and it won't get saved. You can get around this by doing something like:

model.something_serialized = model.something_serialized.merge( :foo => true )

New layout, now using Viviti

May 20, 2008

I've regressed back to the late 90's in terms of design for my personal blog, and once again have a black-based design. Not sure how long it will last, but for now I like it!

Also, in the name of 'eating your own dogfood' I am now using Viviti for this blog. Previously it was custom blog software, which I'm not missing in the least. Now when I add new features to my blog, other people can enjoy them as well!

My photography has gone missing from this site as anyone who may be looking for it will notice, I've decided along with going back to black, to also go back to splitting my blog and photography into two separate sites and I haven't put that up yet. Soon!

About

I'm a programmer and shutterbug living on the West Coast of Canada.

Blog Archive

Recently Heard

A Liberal Educationby New Model ArmyPlayed on 2008/07/16 at 02:35PM
The Two Sides of Monsieur Valentineby SpoonPlayed on 2008/07/16 at 02:32PM
You Weren't Thereby New Model ArmyPlayed on 2008/07/16 at 02:28PM
Powered by Viviti