Archive

Archive for February, 2014

Path to happiness

February 22, 2014 Leave a comment

Once a group of 50 people was attending a seminar.
Suddenly the speaker stopped and decided to do a group activity. He started giving each one a balloon. Each one was asked to write his/her name on it using a marker pen. Then all the balloons were collected and put in another room.

Now these delegates were let in that room and asked to find the balloon which had their name written, within 5 minutes. Everyone was frantically searching for their name, colliding with each other, pushing around others and there was utter chaos.

At the end of 5 minutes no one could find their own balloon.
Now each one was asked to randomly collect a balloon and give it to the person whose name was written on it.
Within minutes everyone had their own balloon.

The speaker began— exactly this is happening in our lives. Everyone is frantically looking for happiness all around, not knowing where it is.

Our happiness lies in the happiness of other people. Give them their happiness; you will get your own happiness.
And this is the purpose of human life.

Advertisements
Categories: Uncategorized

MAP REDUCE using couchdb

February 18, 2014 Leave a comment

https://wiki.apache.org/couchdb/Introduction_to_CouchDB_views

http://guide.couchdb.org/draft/views.html

  • If you don’t use the key field in the map function, you are probably doing it wrong.
  • If you are trying to make a list of values unique in the reduce functions, you are probably doing it wrong.
  • If you don’t reduce your values to a single scalar value or a small fixed-sized object or array with a fixed number of scalar values of small sizes, you are probably doing it wrong.