The story of the Burnt Toast

His Mom Served Burnt toast , but he was shocked when his Dad said this.
“When I was about eight or nine, my mom burnt some toast .
One night that stood out in my mind is when she had made dinner for us after a very long and rough day at work, She placed a plate of jam and extremely burned toast in front of my dad. Not slightly burnt but completely blackened toast.
I was just waiting to see if anyone noticed the burnt toast and say anything. But Dad just ate his toast and asked me if I did my homework and how my day was. I don’t remember what I told him that night, but I do remember hearing my mom apologizing to dad for burning the toast. And I’ll never forget what he said:
“Sweetie, I love burned toast.”
Later that night, I went to tell my dad good night and ask him if he really liked his toast burned. He put his arm on my shoulder and said,
“Your momma put in a very long day at work today and she was very tired. And besides, A burnt toast never hurts anyone but you know what does? Harsh words!”
The he continued to say “You know, life is full of imperfect things and imperfect people I’m not the best at hardly anything, and I forget birthdays and anniversaries just like every other human. What I’ve learned over the years, is that learning to accept each others faults and choosing to celebrate each other’s differences, is one of the most important keys for creating a healthy, growing, and lasting relationship. Life is too short to wake up with regrets. Love the people who treat you right and have compassion for the ones who don’t.”
Enjoy Life Now.

Copied from source: Facebook image of Victoria Potter.

A Quote on Life!

I couldn’t stop myself posting the following quote on my blog.

Whether you have a Maruti or a BMW, the road remains the same. Whether you travel in an economy or a business class, your destination doesn’t change. Whether you have a Titan or a Rolex, the time remains the same. Whether you have an iPhone or a Nokia, people who call you remains the same. There is nothing wrong in dreaming a luxurious life. What needs to be taken care of is to not let the NEED become GREED. Because needs can always be met, but greed can never be fulfilled.

—- Rajinikanth

I bow in respect to this great person. Big fan.

Siri’s obsession for the upcoming Apple Watch – Easter Eggs

Now-a-days, the technology companies are planting interesting easter eggs in their software applications, like the recent 007 James Bond submarine car mode in Tesla was really amazing. Apple has planted some in their personal virtual assistant AI Siri. With the date for pre-ordering the most awaited Apple Watch just around the corner, Apple has planted some easter eggs to show the Siri’s obsession for the Apple Watch. If you trigger Siri and ask “What are you doing?” you will get several interesting answers. Here are some of it’s witty answers in the following screen shots.





Try it for yourself and have fun. I loved it :)



24 H in a D puzzle! Fun IQ bits

Solve this

24 H in a D.
Ans: 24 hours in a day.

1. 12 N in C
2. 2 E in F
3. 11 P in CT
4. 9 P in U
5. 19 C in CB
6. 24 F in M
7. 3600 S in H
8. 29 S in I
9. 5 O in W
10. 3 S in W


1. 12 Numbers in a Clock.

2. 2 Eyes in a Face.

3. 11 Players in a Cricket Team.

4. 9 Possibilities in Unnatural death. [9 Planets in Universe is wrong. 9 planets in Solar System makes sense if we include Pluto]

5. 19 Coins in a Carrom Board.

6. 24 Frames in a Movie.

7. 3600 Seconds in an Hour.

8. 29 States in India.

9. 5 Oceans in the World.

10. 3 Stumps in Wicket/ 3 States of Water.

The question looks silly but I really liked these. It’s been spreading over the WhatsApp as a forward message, and I loved solving it. Good to relate simple facts with just codes.



How to update Ruby 2.0 to the latest version of Ruby on Mac OS X Yosemite?


Mac OS X Yosemite comes included with Ruby 2.0. But when you are working with the latest version of Rails[4.2], you might be in need of the latest version of Ruby [2.2] to have better performance. So, how do you update Ruby? There is a simple solution for this is to use Ruby Version Manager (RVM), which is a standard for upgrading ruby on OSX.

To do this. Open your terminal and run

\curl -L | bash -s stable –ruby

When this is complete, you need to restart your terminal for the rvm to work.

Now, run rvm list known 

This shows the list of versions of the ruby.

Now, run rvm install ruby-2.2.0

If you type ruby -v in the terminal, it still shows you ruby 2.0.

To use the latest installed version. Run rvm use ruby-2.2.0

Now, when you look at the version, it shows you the following:

ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

There you go, you have the latest version of ruby now in use.



Fix to the Error installing Rails on Mac OS X !


I was trying to install Rails on my mac by using the command:

sudo gem install rails

But it threw me the following error

ERROR:  Error installing rails:

ERROR: Failed to build gem native extension.

This happens if I haven’t installed the Xcode Command Line Tools properly. To do that

Run xcode-select –install in terminal

This would install the Xcode command line tools. Thats it, you are good to go.

Re run the sudo gem install rails in the terminal and it will install the rails.

To verify if the rails is installed properly. Run rails -v in terminal.

This shows us the version of the rails installed on the machine.



Programming Style!

I was learning Ruby and I stumbled upon this short note on the programming style. I loved it. The author Huw in “The Book of Ruby” says that “A good programming style has nothing to do with the naming conventions and everything to do with good code structure and clarity.” He also says with his experience that the most important characteristics of well-written code are clarity and lack of ambiguity. Code that is easy to understand and easy to debug is also likely to be easier to maintain.

It makes perfect sense and I loved it, hence I posted it. I am thinking to do this more often as I strongly believe if I write about something I learn, it would retain in my mind for a longer time.