Rename authors in a git repository

I recently imported the old Clutch code into git , but for some reason it ignored the authors.txt file I provided, and used the original svn user names. This info is based largely on this stack overflow post . First, clone your repository locally : ...

April 29, 2009 · 2 min · Dave Perrett

'Can't find Magick-config' error installing rmagick gem

If you are getting the error ‘Can’t find Magick-config’ when installing the RMagick gem, chances are you’re missing the libmagick9-dev library. /opt/ruby-enterprise-1.8.6-20090201/bin/ruby extconf.rb install rmagick checking for Ruby version >= 1.8.2... yes checking for gcc... yes checking for Magick-config... no Can't install RMagick 2.9.1. Can't find Magick-config in ..... To fix this on ubuntu, simply install libmagick : apt-get install libmagick9-dev

April 26, 2009 · 1 min · Dave Perrett

Styling Apache directory listings with mod_autoindex

Index-Style is a set of html, css and image files designed to work together with the mod_autoindex module to make the default Apache file listings look a little nicer. The UI design is based almost entirely on the great work done by the guys at Repos-Style, although the code itself is largely done from scratch (as mod_autoindex doesn’t support XSLT). ...

December 29, 2008 · 2 min · Dave Perrett

Nginx adds strange characters using rails/memcached_pass

After upgrading a few gems recently, I found that the content returned from the nginx memcached_pass directive always had a few strange characters prepended. After some investigation it seems that this is caused by rails ‘marshalling’ the data. If you’re using a memcached set command such as Cache.set(key, content, time_to_live) You need to add an extra argument to force rails to cache the raw data instead of marshalling it : ...

December 23, 2008 · 1 min · Dave Perrett

Pylons - LookupError: Entry point 'main' not found in egg

If you are getting a LookupError in Pylons similar to the following : ...

December 21, 2008 · 1 min · Dave Perrett

memcaches_page plugin for Rails

This plugin is very similar to the built-in Rails ‘caches_page’ functionality, except it caches to memcached rather than a file. It relies on the ‘memcached_pass’ nginx directive to serve pages directly from memory if possible, and only passes to rails if necessary. On my server I’ve seen a 75% reduction in Ruby memory usage using this technique. ...

December 3, 2008 · 3 min · Dave Perrett

Gantt Calendar plugin for Trac

2013-03-28 Update : This plugin is hosted on GitHub for historical reasons, but no longer supported. Please use the sibuya-trac version. 2010/12/16 Update : I’ve been in touch with the original author of this plugin, and his latest version (0.12) supports English now. I recommend you use his svn repository rather than this out-dated version : > svn co http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/ganttcalendarplugin/trunk ganttcalendarplugin ...

November 26, 2008 · 2 min · Dave Perrett

iTerm Delete Key Config

I’ve often found that after SSHing with iTerm, the delete key mappings are occasionally (well regularly) problematic. This post from Alaska Geeks sorted the problem out straight away in my case : ...

October 24, 2008 · 1 min · Dave Perrett

Styling subversion listings with xslt

The default Apache mod_dav_svn listings are a little bland, but luckily you can use the SVNIndexXSLT Apache directive to spice things up a bit. I’ve been using a slightly modified version of the fantastic ReposStyle XSLT styles. Assuming you’ve already set up subversion , download the latest ReposStyle from here and drop it in the document root, and configure Apache something like this : ...

September 17, 2008 · 1 min · Dave Perrett

Rewrite Trac links to Redmine with nginx

I recently migrated from Trac (at http://recurser.com/trac/ ) to Redmine (at http://recurser.com/code/ ), and wanted the Trac links to redirect to the right place if possible. The nginx rules that follow achieve most of that. As always, there are a few catches: ...

September 11, 2008 · 2 min · Dave Perrett