Underscores are stupid? Get a Japanese keyboard

There was a surprising amount of discussion on Hacker News today on whether or not underscores are stupid, with suggestions ranging from changing key bindings to using the Dvorak layout. Here’s an alternative (although possibly slightly drastic) solution - get a Japanese keyboard: ...

May 16, 2012 · 3 min · Dave Perrett

jQuery i18n Translation Plugin

2013-03-28 Update : This plugin is now hosted on GitHub 2010-09-29 Update : This plugin has been moved from subversion to git, and now has a dedicated project page . Subversion updates will be discontinued, so please update your links to point to the latest version! ...

February 21, 2008 · 1 min · Dave Perrett

Multibyte-safe CSV Parser

I recently had to write a PHP CSV parser for a project, and found the built-in fgetcsv function fairly useless for real-world CSVs (where some fields are quoted and some aren’t for example, or where escaped delimiters or quotes are present inside the field text). This function should handle : Lines where some fields are quoted and some aren’t Lines where quoted fields have ‘escaped’ quotes inside them Lines where non-quoted fields have ‘escaped’ delimiters inside them Lines where the quote is ‘escaped’ by another quote (the default behaviour for Excel CSV exports) Lines containing multi-byte strings ...

August 9, 2007 · 2 min · Dave Perrett