Archive for July, 2009

 

Rails scaffold and references

Using the keyword “references” in my rails scaffold command usually gives me errors, and I think this is the reason why. Following up on one of my favorite rails tutorial: AkitaOnRails I run the command ./script/generate scaffold Comment post:references body:text and the scaffold generator will create something like this in my views/new html file. <%= [...]

Funny nutritional facts

Here are some funny nutritional facts I learned from NPR. 1) Microwaving vegetables is the best way to preserve all the nutrients – LOL @ all the people who don’t have microwaves because they think it’s more natural. 2) Eating raw vegetables is not as good as eating cooked vegetables – cooking helps break down [...]

Marrying a Catholic

About a month ago, I got engaged. It’s great! White wedding, picked fences, three kids, and growing old together. Except for one problem, she’s not Catholic and my parents are well-known leaders of our Catholic church. To be frank, I have no intention of making my fiancee convert — even if she wanted to. I [...]

Commuting from Sacramento to San Francisco

When I tell people I commute from Sacramento to San Francisco every day, they usually grasp and tell me I am crazy. A lot of people can’t fathom the idea of traveling that much every day, or waking up that early to start the commute. I usually wake up at 5am, get ready and out [...]