Wednesday 21 March 2012

Excerpts from Robin Sharma's books

  1. A bit of fragrance clings to the hand that gives flowers.
  2. As Gandhi stepped aboard a train one day, one of his shoes slipped off and landed on the track. He was unable to retrieve it as the train was moving. To the amazement of his companions, Gandhi calmly took off his other shoe and threw it back along the track to land close to the first.
    Asked by a fellow passenger why he did so, Gandhi smiled. "The poor man who finds the shoes lying on the track," he replied, "will now have a pair he can use."
  3. People asked Thomas Alva Edison why he didn't invent a machine to help him hear. And he always replied that "a man who has to shout can never tell a lie".
  4. Kaizen - continuous improvement.
  5. One night a father was relaxing with his newspaper after a long day at the office. His son, who wanted to play, kept on pestering him. Finally, fed up, the father ripped out a picture of the globe that was in the paper and tore it into a hundred tiny pieces. 'Here son, go ahead and try to put this back together.' he said, hoping that this would keep the little boy busy long enough for him to finish reading his paper. To his amazement, his son returned after only one minute with the globe perfectly back together. When the startled father asked how he achieved this feat, the son smiled gently and replied 'Dad, on the other side of the globe there was a picture of a person, and once I got the person together, the world was okay.'"
  6. king Midas loved gold so much he prayed that everything he touched would turn to gold. When his wish was granted he rejoiced. That was until he realized that he couldn't eat because his food had turned to gold and so on, so forth."

Tuesday 20 March 2012

Edit button missing google blogger

rRecently Google started routing users to country-specific URL. i.e For example if you are in India and trying to use example.blogspot.com , it will be redirected to example.blogspot.in. This affects the normal functioning of the site like the edit option for post is missing. To prevent this we can use a flag NCR(No country redirect) in the URL like this http://example.blogspot.com/ncr.
Reference: http://support.google.com/blogger/bin/answer.py?hl=en&answer=2402711

Lightbox for ajax loaded content Drupal

Normal way of implementing lightbox does not work out for the onclick event of ajax loaded content. For that we should do the below thing
$(document).ajaxComplete(function() {
   Lightbox.initList();
});
Reference: http://drupal.org/node/282089