Monthly Archives: February 2009

Just what you need to know to write a CouchDB reduce function

Lets say you have the CouchDB classes (located here) all compiled together and included into your test.php script. Lets also say that you have created a database with the built-in web ui called “testing”. Finally let us say that your test.php has the following code in it, which would add a record to the db [...]

random php… a multi-channel chat rooom class using memcached for persistence

why? i dunno… just because… just a toy… no sql, no flat file, no write permissions required anywhere, no fuss class mc_chat { var $chan = null; var $mc = null; var $ret = 5; function __construct($memcached, $channel, $retention=5) { $this->mc = $memcached; $this->chan = $channel; $this->ret = $retention; } function messages( $from=0 ) { [...]

Debian Lenny, Avahi, AFP… Linux Fileserver for OSX Clients

If you’re like me you have an OSX computer or 3 at home, and a debian file server. If you’re like me you hate samba/nfs on principle and want your debian server to show up in finder.  If you’re like me you arent using debian 3 which is what most of the walkthroughs seem to [...]

randomly decided to install opensolaris inside virtualbox

just to try it out. its not done installing…. but… 8 char max for the user login is pretty lame… what is this… 1990?