Sunday, November 20, 2005

ok Ruby on Rails does work

if you're using postgres you'll probably wanna use an id generator... hum, theres not
so we'll better use a sequence =)
ruby wont find it automatically, so you'll better just do this


create sequence t1_id_seq start 1;
alter table t1 alter column id set default nextval('public.t1_id_seq');

elegant... nope, but its the SIMPLIEST THING THAT COULD POSIBLY WORK =P


another thing, if they tell you that

created_on and updated_on will be automatically handled by RoR .... well i wont believe them, not for a date , not for a timestamp in PG, it allways show both fields in the object form ... @_@, haven't try it in mysql, for i don't like it, but would
think it work well with it

and finally , DOWNLOAD RADRails, its an SWT IDE specially for rails, if you think it's already fast, you wont believe how productive can you be with RAD.

just google it !

Sunday, November 13, 2005

The misterious stranger ( Mark Twain )

"....Strange! that you should not have suspected years ago -- centuries, ages, eons, ago! -- for you have existed, companionless, through all the eternities. Strange, indeed, that you should not have suspected that your universe and its contents were only dreams, visions, fiction! Strange, because they are so frankly and hysterically insane -- like all dreams: a God who could make good children as easily as bad, yet preferred to make bad ones; who could have made every one of them happy, yet never made a single happy one; who made them prize their bitter life, yet stingily cut it short; who gave his angels eternal happiness unearned, yet required his other children to earn it; who gave his angels painless lives, yet cursed his other children with biting miseries and maladies of mind and body; who mouths justice and invented hell -- mouths mercy and invented hell -- mouths Golden Rules, and forgiveness multiplied by seventy times seven, and invented hell; who mouths morals to other people and has none himself; who frowns upon crimes, yet commits them all; who created man without invitation, then tries to shuffle the responsibility for man's acts upon man, instead of honorably placing it where it belongs, upon himself; and finally, with altogether divine obtuseness, invites this poor, abused slave to worship him!...