Home

Wed, May. 7th, 2008, 02:07 am
libchart, jpgraph

So the documentation for artichow was in french, and I couldn't figure out how to make it plot horizontal bar graphs. UGH. But it looks like libchart, can do exactly that.
Nice.

Wed, May. 7th, 2008, 01:00 am
Aritchow Graphing

A PHP API to generate dynamic NICE LOOKING charts. This is GREAT! I've been looking for this FOREVER! Alas all the docs for it seems to be in french, but at least the API is in english. If I only had this when I started working on the older version of the kutzik project, I wouldn't have had to deal with GNUPlot, which, while functional, looks rather unprofessional. http://www.artichow.org/http://www.artichow.org/

Thu, Mar. 20th, 2008, 12:15 am
generateList() disappeared in CakePHP 1.2

After a couple of days of messing about with CakePHP, I have decided to move on to 1.2 (beta). There are a lot more functions in the newer version than the old. The problem is that there's even LESS documentation.

The Model::generateList() disappeared in CakePHP 1.2.x :( This was a handy function to generate key/value pairs from tables for stuff like a drop down, or radio button. The following two calls should work:
var $uses = array('Model1', 'Status');
...
$tmpVals = $this->Status->findAll(array('context' => '= users'));
$tmpVals = Set::combine($tmpVals, '{n}.Status.id', '{n}.Status.name');
This is assuming that your Status table contains the fields 'id', and 'name' which would be the <.. value= ..> and the plain text description, respectively.

Wed, Aug. 29th, 2007, 09:00 pm
Using Spaces Instead of TAB in Vi

Autoindent based on syntax, tabstop to 4 spaces instead of 8 (default), and use spaces instead of the TAB character (TAB is default).

To make permanent, edit ~/.vimrc and put this in it:
set autoindent
set tabstop=4
set expandtab


Then ":retab" to reformat a file with the new settings. http://www.vim.org/tips/tip.php?tip_id=12

Fri, Aug. 24th, 2007, 12:11 pm
Ruby on Rails vs CakePHP

Interesting article as to "why" RoR vs (cake)PHP. http://jimmyzimmerman.com/blog/2007/05/why-i-prefer-ruby-on-rails-over-cakephp.html