Dave Perrett

A Weekend Project - fromthecache.com

announcement, company, html5, programming, rails, ruby, sass, web

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.

Static Blogging the Jekyll Way

company, html5, jekyll, programming, ruby, sass, web

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.

Excluding Fields From Rails Json and Xml Output

json, quickie, rails, rest, ruby, xml

Rails has a very handy ‘respond_to’ feature to render your pages in different formats :

respond_to do |format|
  format.json { render :json => @user }
  format.xml  { render :xml => @user }

However, by default it outputs every field in the model, which exposes some data (encrypted-password and password-salt) that I’d rather keep to myself :

New ‘Projects’ Section Launched

announcement, company, web

2013-03-28 Update : All projects are now hosted on GitHub

I’m pleased to announce my new projects section, where I’ll be consolidating the various open-source projects I’ve released.

Until now these projects have usually only been released via blog posts, but from now on each project will have a dedicated project page, with git repository information, issue tracking, and a link to a downloadable zip bundle of the latest release.

recurser.com Has a New Home - Update Your Feeds Please!

announcement, company, web

All of the content from recurser.com (blog posts, static pages, code repositories, git/svn etc) has been migrated over to the main “recursive-design.com”:/ site.

If you’re reading this from the old recurser.com RSS feed, please update the feed address - sorry for the inconvenience! You can find the new feed at recursive-design.com/feed/ . The old feed will continue for a few weeks, but will eventually be turned off.

I’m planning on posting a lot more regularly from now on, so if you aren’t a subscriber yet now would be a great time to start !