A Christmas present from The Echo Nest

A couple of weeks before Christmas I got a mail from The Echo Nest developer team promising a free T-shirt for filling out a survey : ...

January 5, 2011 · 1 min · Dave Perrett

Simple video remixes using The Echo Nest API

Here’s a couple of remix videos I did earlier in the year using The Echo Nest API. I’ve been meaning to post these for a while, but finally decided to get off my ass and put them up since the folks at Echo Nest were kind enough to send me a T-shirt : ...

January 5, 2011 · 2 min · Dave Perrett

Face detection with OSX and python

I’ve been messing about with face detection for a while, and was surprised how easy it is to get basic detection working out-of-the-box with open-source libraries. Today we’ll look at a simple way to get started with face detection on OSX using python. ...

December 14, 2010 · 5 min · Dave Perrett

Jekyll plugins for categories, projects and sitemaps

2013-03-28 Update : These plugins are now hosted on GitHub I’ve finally gotten around to cleaning up and releasing the source for a couple of the Jekyll plugins used to build this site. You can find them all on the Jekyll Plugins project page, or browse the source. As always, if you come across any problems please create a ticket and we’ll try to get it fixed as soon as possible. Enjoy! ...

December 8, 2010 · 2 min · Dave Perrett

CompSci 101 - Big-O notation

I recently had a couple of Google interviews in Tokyo, and while preparing for them I ended up with a huge list of things I wanted to brush up on before the interview. It turns out I didn’t get the job (next time!), but I thought I might be able to learn something anyway by working through the list and blogging about the main areas that companies like Google expect you to know. Without further ado, first on the list is Big-O notation: ...

December 7, 2010 · 8 min · Dave Perrett

jQuery SimpleColor plugin hits version 1.0

A couple of weeks ago someone commented on the SimpleColor plugin with a nice suggestion - adding the selected color as text inside the color selection button. I finally got around to implementing this last night, and added a couple of extra options to support this : ...

December 7, 2010 · 1 min · Dave Perrett

A weekend project - fromthecache.com

I was playing around on the weekend screen-scraping and analyzing word-frequencies for various sites (don’t ask), and was getting some slow responses (and accidentally got my IP blocked from one site when I hit them a few too many times). Eventually I hit upon the idea of hitting Google Cache for each URL (the pages I was scraping had sequential ?id=xxx URLs so it was easy to automate), with the aim of speeding things up a bit and taking some load off the target sites. With this in mind, I spent a few hours Saturday and Sunday developing fromthecache.com - it’s built on rails, and designed to provide transparent access to the Google cache, while fetching the original page as a fallback if necessary. ...

November 3, 2010 · 2 min · Dave Perrett

Introducing Rails Kitchen Sink

2013-03-28 Update : This project is very dated, and I don’t recommend it’s use. It’s now hosted on GitHub. I’m happy to announce the release of Rails Kitchen Sink a rails-project-starter, which I’ll be building all future Rails apps off of. ...

October 21, 2010 · 1 min · Dave Perrett

Static blogging the Jekyll way

In building the new site, I decided to take the opportunity to try out something new. I’ve been using WordPress to power my blog for about 5 years, and while it has served me well, I wanted to try out something different. The main criteria for choosing a new blogging platform were : It should serve true static pages, with no need for server-side processing. It should be easy to store the entire site in Git. It should support the concept of layouts - I wanted to have a single ‘template’ file that blog posts could easily inherit from. It should support MarkDown or Textile for formatting posts, since I want to keep away from posting raw HTML as much as possible. It should support comments. I should be able to deploy updates to the site with a single command. By patching together a few different open-source technologies, I’ve been able to achieve the above and more. ...

October 12, 2010 · 9 min · Dave Perrett

How to create a TextMate bundle

If you find yourself repeating the same commands over and over in TextMate, it’s relatively straightforward to create your own bundle. Recently I’ve been migrating a bunch of blog posts from WordPress to Jekyll, and found myself repeating the same tasks again and again : ...

September 30, 2010 · 3 min · Dave Perrett