Thoughts on the state of the "East London Tech City" initiative

Last Monday I was at the Department for Business, Innovation and Skills to explore the government’s “Tech City” scheme to do something to do with the technology industry in an area loosely defined as “East London”. I’d been wondering before sitting down to write this how best to sum up my reservations about the scheme, not really realising that just writing that first sentence would actually begin to draw them out quite quickly. An initiative has been announced, a name has been given, but very few people seem to actually be sure what is being proposed, or where or at whom it’s targeted. That made it very hard to work out how to engage with the event. ...

January 25, 2011

News Sauce

One of the projects that occupied the latter half of my 2010 was the build and launch of News Sauce. It’s an aggregator product that we’ve built on drupal and initially launched to pull together news coming out of the UK government. It’s been ticking along very nicely for a couple of months now and has been very well received. Which is nice. Over the weekend there was a little surge of attention as a result of UK Gov Camp and that prompted me to write a blog entry I’ve been promising for a couple of months. So if you want to know a little more about the tech behind the site you can now find my first notes over on the News Sauce blog. ...

January 24, 2011

Adding actions to Devise controllers

Adding Actions to Devise Controllers It wasn’t the most fun I could imagine having during a “holiday season” but while holed up in Chicagoland over Christmas I spent a couple of days porting a few of my older Rails apps to use a more up to date stack: Rails 3, Devise, Inherited Resources, Formtastic, etc. The idea is that if the apps are on a stack I use every day, I’ll spend less of my time reloading old tools into my head when the inevitable tweaks are required. We’ll see how that goes. ...

January 7, 2011

Rails 3 Theme Support

A few months back I set out to port theme_support (my rails plugin to allow one app to serve different views under various conditions) to Rails 3. I got some basics working, but realised along the way that it was well overdue for a complete rewrite. And then I got busy with projects that didn’t use theme_support and the rewrite was left lingering. With Rails 3’s official release a few weeks back I began getting a few requests for an updated version. Without time to do the plugin justice, I suggested people fork the project and submit patches. I’m very pleased to say that Lucas Florio took that and ran with it. The result is a new gem: themes_for_rails. ...

September 29, 2010

Bundler and Monit playing nicely together

I’ve been setting monit up to keep an eye on the various parts associated with a Rails app (2.3.x but patched to use Bundler for gem management) and ran into a problem getting my Gemfile recognised properly. The essential piece I’d missed was the BUNDLE_GEMFILE environment variable. So for, say, delayed_job what was needed was: start program = "/usr/bin/env RAILS_ENV=production BUNDLE_GEMFILE=/var/www/my_app/current/Gemfile PATH=/opt/ruby/bin:$PATH /var/www/my_app/current/script/delayed_job start" Hopefully that’ll save someone a few minutes.

August 13, 2010

Delayed Job dying silently

I’ve just completed migrating a client site from BackgrounDRb to delayed_job (which is a huge relief on several levels). I had hoped to complete the process this morning, but the delayed_job process kept dying on me without any apparent explanation in the usual logs. Thankfully the RPM log in my app turned out to be capturing one vital detail – the MySQL server had “gone away”, Armed with that knowledge I was able to find this thread on github and from that Brandon’s pointer to the ‘reconnect’ option in database.yml. Setting that appears to have solved that last lingering problem. ...

August 3, 2010

Suite 4

Alex has beaten me to the punch with Shut the door, have a seat: Suite 4, announcing the fact that a selection of the small businesses on our floor have invested in a meeting room. Well… We hope it’ll be something more than a meeting room. A lot of interesting people pass through this part of town, it’s quite the hub for businesses, and a lot of folks with good ideas and a diverse set of interests are gathered right around here. It seems like the opportunities are there to be grabbed. Hopefully there’ll be some talks, some workshops, and a few drinks. We’re also planning a series of “Innovation Workshops”, offering a wide range of perspectives on… well, whatever you want to get those perspectives on. ...

August 2, 2010

Week 149

A fortnight of intense activity seems to have been the unfortunate result of taking a week off to go on holiday. One project had slipped because the client disappeared on holiday, and there was the usual cascade effect. So it is that I’m trying to cobble together some week notes last thing on a Sunday evening. It’s feeling like the last few months have been a little too non-stop. There’s a lot to reflect on, some new practices to bring in, and a whole lot of side projects and admin awaiting attention. Some of us were speculating that it’s a sign of the complex economic times that many people around seem to be in a similar spot. Thinking that does help me think it’s not just us, but it’s hardly a cheery thought. ...

August 1, 2010

I18n and "undefined method each for false:FalseClass"

I’ve never really had much need for Rails’ i18n support, but a new project is going to be using it extensively. I was a bit thrown by an error that started to be thrown after I created the relevant locale files, and took a while to track it down (possibly because I was also upgrading to the Rails 3 RC at the same time). It turns out Rails really doesn’t like empty locale files. Adding a couple of translations into my empty files solved everything. ...

July 27, 2010

Week 146

As I write I am sitting on the floor of my sister’s hotel room in Paris as she and Kari watch the World Cup Final and my daughter sleeps in the next room. Which is to say–despite my officemates thinking I was inventing the plan simply to hurry some suppliers–I’m actually on holiday. That means the past week was a hectic and scattered one as I made sure as much as possible was wrapped up before my departure. For the most part that worked though one significant project was left in a very uncertain state as the client went on a holiday of his own without informing me. Thankfully 48 hours after leaving the office it is actually taking a little effort to recall the details (which are of course all documented for me on my return). ...

July 11, 2010