Aug 23

eeePC-mame-sibling-clash-hypersports
Originally uploaded by battez
i got off to a good start, but lost it somewhere during the archery and then of course, the pole vault which I hate…even qualified in the triple jump.
tom assures me the perfect angles are 35 41 and 45 with as much on the line as possible. If so a quite unrealistic third leap ensues. Gold medal for this game for playability.
Aug 19
so for a job vacancy form, I need to ask user if it requires a closing date as some jobs won’t. (they will alwys be looking for casual staff etc…)
so I added a field to my DB with default 1 (true therefore) and only later realised I would have been better just to reverse the semantics of the field name. But in the meantime I thought I ‘d just be able to set the checkbox default to true, but I only want this if the user has not specified it ever.
(so not to set it to checked if the user has ever set it to UNCHECKED)
here is how I Did it - a bit of code from my form element that I use in both add and edit actions’ views…
$fieldOptions = (strpos($this->action,'add') && !isset($this->data)) ? array('label'=>'Does this require a date?', 'after'=>'Only uncheck this if there is no closing date', 'checked'=>true) : array('label'=>'Does this require a date?', 'after'=>'Only uncheck this if there is no closing date') ; echo $form->input('needs_date', $fieldOptions);
love the ‘after’ field in Cake these days - the form helper is a work of art!
Aug 07
“I’m on the Outside looking In”
no reason for thi spost, I just like the pic
Aug 03
awesome new site…for applescripts. this guys ones are really cool - batch convert PDFs to Txt fles, itunes cover art as images wallpaper and so on