Jojo Siao

Icon

enjoying life

First look at Akelos PHP Framework

Since I couldn’t sleep well last night,  I just thought it was my chance to see and try out how to use Akelos PHP framework.  It is said to be a port of Ruby on Rails, and so , it sounds like it (should) runs like Cakephp.

Well, I was impressed. Everything went well for me as newbie of this PHP framework because (I think) every step is done thru web interface and there is also some documentation included with it so just in case you lost yourself when following instructions.

Read the rest of this entry »

Confusing cakephp validation rule ‘required’=>true

I want to clarify the usage of ‘required’=>true in cakephp as a validation rule to your forms.

When using this rule, you must not confuse yourself with the other validation rule ‘notEmpty’ as told by teknoid. And from the cookbook it says,

This key should be assigned to a boolean value. If ‘required’ is true, the field must be present in the data array.

Read the rest of this entry »

Problem to installing Mongrel in ubuntu

I had this problem when installing Mongrel on ubuntu hardy heron in my laptop.
When I type,

{code type=ruby}
gem install mongrel
{/code}

This message appears:

Read the rest of this entry »

Funny Video: What if Matrix used Windows?

I just got this video link thru PHPUGPH Forums.

Neo: “I want to learn kung fu now!”

Cypher: But your kung fu trial already expired!”

LoL! Ha ha ha… :D

A complicated SQL Query needed at work

There was this cron job that I made that saves daily on-hand quantity of our items/goods, and my boss just needed one of our principal’s items trade prices with VAT be computed with that data for the month of July this year.
Read the rest of this entry »