practical web design & development

Archive for February, 2010

Installing Memcached on Ubuntu for PHP

I’ve been playing around with caching and php, and thought I’d give a little insight on installing memcached on Ubuntu, and enable php-memcached. First start out by opening up your Synaptic Package Manager, search for “php memcached”. Select and install “memcached” and “php5-memcache” Now everything should be installed. Restart Apache for php to recognize the [...]

A common feature missing in many javascript editors is spell check. And if you are able to successfully use spell check it is also nice to have it cleanly integrated as a button on the wysiwyg toolbar. Guess What! Using jQuery Impromptu, jquery-spellchecker, and a small plugin I whipped together called impspeller (impromptu speller). To [...]

In my previous post I commented that CakePHP doesn’t like “~” as an operator when building queries for PostgreSQL. Well I got to digging around and found that the fix is relatively simple, however I’m not sure that it follows the Cake intentions. PostgreSQL uses “~”, “~*”, “!~”, “!~*” as operators for regular expressions. To [...]