An if-substring-in-string Django Template Construction

Here's a quick tip for Django template hackers. It's a known fact of Django templates that the syntax is purposefully limited. I've been living with the need for an if-substring-in-string construction. Of course, I could write a custom template tag, but work is quite busy. So on a whim and a 10 minute break I tried this yesterday, and it worked well for me. Take a look and let me know what you think.

Read the rest of this post | 3 comments

When JavaScript Attacks, errrr, Hacks

I've been doing a lot of JavaScript coding in my recent work on Launchpad. I mean, a lot! We're pushing to get every aspect of a bug page editable within the page itself, hopefully making it easier to manage bugs without being directed to another web page. Everyone on the Launchpad bugs team is working on some part of this. I haven't previously done any JavaScript coding like this, and now I'm sitting with a 1400 line JavaScript file that has grown unwieldy and needs to be tamed. I'm starting on that refactor this morning and thinking on the things I've learned as this file has grown seemingly with a mind of its own.

Read the rest of this post | Add a comment

The Early Morning Internets

Most everyone I work with knows this, but friends and family may not -- so just in case you haven't heard -- my work schedule (which means the time I am available online) has changed since I joined Canonical. I am now up very early to better match European time zones, where the other members of the Launchpad bugs team are located. How early, you ask?

Read the rest of this post | Add a comment

Book review: Saturday

Ian McEwan never disappoints, and this novel is no exception. [...]

Read the rest of this post | Add a comment

Working from Barcelona!

I've just finished my first night in Barcelona, Spain. This was a fun night, a good night for catching up with people in person whom I normally only see online. And, of course, Canonical is steadily growing, so there are many people still to meet or get to know. This should be a nice couple weeks.

Read the rest of this post | Add a comment