Archive for August, 2008

Explicit scope resolution in Pico Lisp

Wednesday, August 13th, 2008

Today I felt like extending the html function that is responsible for rendering the bare bones of a HTML document in the GUI framework.... Read More

Expandable sidebar in Wordpress with jQuery

Tuesday, August 12th, 2008

This is really simple stuff, you’re wasting your time if you are above the absolute jQuery newbie level.... Read More

Extending PHP Doctrine Record - Check Box Groups

Monday, August 11th, 2008

I simply knew we would need the extension capability that the Mdl class allows for sooner or later, I didn’t expect it to be this soon though. The main problem here is saving a many to many relationship straight to the database from the $_POST array, to do that we can extend Doctrine Record with a new function I have named fromArrayExt which adds something extra to the normal fromArray method.... Read More

Smarty and Doctrine combination

Friday, August 8th, 2008

I’ve had problems with both Zend Session and the Zend Controller. It just feels like too much fighting and since the plan is to replace Zend DB with Doctrine there is only the controller and session left and unwanted to boot.


The session logic can easily be replicated in a more lightweight form, so can the routing and that is what this tutorial is about. We are creating an MVC setup where M is Doctrine, V is Smarty and C is our own stuff we do here. The Zend Framework has been reduced to just another component library for me now, I will pick goodies when I need them.... Read More

Recovering a corrupt hard drive

Friday, August 8th, 2008

I’ve just had the uncool job of recovering my external USB HDD. It’s a mess, Google is completely overrun by companies selling solutions for $39.95. Gah! This is my blow in the fight against this development, I hope it will help some poor soul one day.


The reason for the troubles in my case is a faulty USB controller in the machine I’m using at work, from time to time it will write corrupt data. This time I was unfortunate enough to get the meta data corrupted, call it master boot record, partition table, whatever. In any case no operating system was able to recognize one of the two partitions on my drive. So the search for a solution began and would not bear fruit until I started adding words like “Linux” and “Ubuntu” to “HDD recovery”.... Read More

PHP Doctrine introduction for dummies

Tuesday, August 5th, 2008

It was long overdue but finally I’ve taken a look at Doctrine. And I’m blown away, bye bye Zend DB.... Read More

Limiting character types in input fields with Actionscript 2

Monday, August 4th, 2008

This is a small snippet that will force the input in a named input field (in our case it’s input_txt) to be numbers only.... Read More

The Code strikes back

Sunday, August 3rd, 2008

For the record, I refer to the people known below as “the guys” in an unfavorable manner, and to be fair it’s not just their fault. Lack of communication between us and them and whatever else it is I don’t know has resulted in them appearing to be completely off the charts on the C-axis, and we’re not talking the collaborator end here… At the time the below conversation took place I hadn’t really reflected much on the matter though and put more blame on them than they deserve.... Read More

MODx htaccess problems and solutions

Sunday, August 3rd, 2008



Yesterday I discovered that the flash banner wouldn’t load on www.asiandivingvacation.com, I suppose the crossdomain xml didn’t work like I expected it to.... Read More

Registration form in Pico Lisp

Saturday, August 2nd, 2008

Finally, the registration form! Not really for beginners but anyway…... Read More