Archive for December, 2007

Smelling of lavender

It’s day two of Project Veggie Plot. Her Kateness and I have dug over an embarrassingly-small patch of earth, about 8 foot square, and removed the European Brick Mountain in the process. This will likely be the first plot of three, as part of a three-year rotation. I’m not sure that we’re natural gardeners… is it normal to want to apologise to every worm we disturb?

And it’s caused back-ache. I ached enough to have wanted a hot bath more than I wanted a nice warm beer at The Cranmer. Yes, really.

To top it all, having grabbed the wrong bottle of bubble bath, I smell of lavender. And still ache.

Filed under garden : Comments (0) : Dec 30th, 2007

Debootstrap Ubuntu on a Kuro Box

Since nas-central wiki won’t allow the uploading of zip files, I’m uploading one here instead. It’s just the debootstrap script for Ubuntu Gutsy.

I wrote an article about how to debootstrap Ubuntu some time ago, and as a quick fix, linked to a script hosted by someone else. If you’re the owner of food.fishcracker.net, then sorry about that. This is what I should have done in the first place: hosted the file myself rather than leech off someone else.

Here’s the file.

Tags: , ,
Filed under Kuro Box : Comments (0) : Dec 7th, 2007

Rails migration without ssh access…

(New blog! Woo!)

So, my preferred web host kinda supports Ruby on Rails, but only up to a point. There’s no shell access, so it’s all ftp-only. Which is fine, until you need to migrate your database back and forth…

Anyway, a quick-and-dirty solution is to make a ‘migration-controller’ to do the migrations remotely. Just hit the URL http://{host}/migration, enter the requred migration version number and your ultra-secret password and it’ll do the migration for you.

Do be aware of the dangers of having a publicly-accessible controller like this - I make sure I delete the controller from the production environment whenever I’m done with it.

Code attached…

migration.zip

Tags: , ,
Filed under Ruby on Rails : Comments (3) : Dec 3rd, 2007