Rails comes with a script/runner script that can be used to run the code in your Rails app. There’re many ways to organize your code to let this runner script execute it, but one obvious way is to write the code as a model’s action. Here are quick steps for doing this: 1. Insert the [...]
Posts Tagged ‘lessons’
Running Rails code through cron job
Posted in Ruby on Rails, tagged lessons, programming, Ruby on Rails, tips on November 20, 2008 | Leave a Comment »
Life is a gift
Posted in Fun-and-morals, tagged lessons, morals on November 19, 2008 | Leave a Comment »
Today Before you say an unkind word -Think of someone who can’t speak. Before you complain about the taste of your food -Think of someone who has nothing to eat. Before you complain about your husband or wife -Think of someone who’s crying out to GOD for a companion Today before you complain about life [...]
Remember the past
Posted in Fun-and-morals, tagged lessons, morals on November 19, 2008 | Leave a Comment »
There was a blind girl who hated herself because she was blind. She hated everyone, except her loving boyfriend. He was always there for her. She told her boyfriend,’If I could only see the world, I will marry you.’ One day,someone donated a pair of eyes to her. When the bandages came off, she was [...]
The Nature of Prejudice
Posted in Fun-and-morals, tagged lessons, morals on November 17, 2008 | Leave a Comment »
Poet Carl Sandburg wrote of a man standing by a road when a wagon pulled up. The driver asked, “What kind of folks live around here?” The man answered, “What kind of folks was there in the country you come from?” The driver replied, “Well, they was mostly a lowdown, lying, thieving, gossiping, backbiting lot [...]
Friends Forever
Posted in Fun-and-morals, tagged lessons, love, morals on November 4, 2008 | Leave a Comment »
Horror gripped the heart of a World War-I soldier, as he saw his lifelong friend fall in battle. The soldier asked his Lieutenant if he could go out to bring his fallen comrade back. “You can go,” said the Lieutenant, “but don’t think it will be worth it. Your friend is probably dead and you [...]
Why Rails?
Posted in Ruby on Rails, tagged funs, lessons, programming, Ruby on Rails, tips on October 24, 2008 | Leave a Comment »
Good One
Posted in Fun-and-morals, tagged funs, lessons, love, morals on October 23, 2008 | Leave a Comment »
An elderly man in Mumbai calls his son in New York and says, ‘I hate to ruin your day son, but I have to tell you that your mother and I are getting a divorce; 35 years of marriage… and that much misery is enough!’ ‘Dad, what are you talking about?’ the son screams.. ‘We [...]
Nobody’s perfect
Posted in Fun-and-morals, tagged lessons, love, morals on October 21, 2008 | Leave a Comment »
A man and his girlfriend were married. It was a large celebration. All of their friends and family came to see the lovely ceremony and to partake of the festivities and celebrations. A wonderful time was had by all. The bride was gorgeous in her white wedding gown and the groom was very dashing in [...]
Inspect Javascript Object
Posted in Javascript, tagged javascripts, lessons, programming, tips on October 21, 2008 | Leave a Comment »
function inspect_object( obj ) { var str = ”; for( var memb in obj ) str += memb + ‘ = ‘ + obj[memb] + ‘n’; alert(str); return str; }
Hot Chocolate
Posted in Fun-and-morals, tagged funs, lessons, morals on September 26, 2008 | Leave a Comment »
A group of graduates, well established in their careers, ?were talking at a reunion and decided to go visit their ?old university professor, now retired. During their visit, the conversation turned to complaints about stress in their work and lives. Offering his guests hot chocolate, the professor went into the kitchen and returned with a [...]