Sunday, May 23, 2010

Cocoon of a butterfly......

A man found a cocoon of a butterfly, that he brought home.

One day a small opening appeared he sat and watched the butterfly for several hours. It struggled to force its body through that little hole. Then it seemed to stop making any progress. It appeared as if it had gotten as far as it could and it could go no farther.

So the man decided to help the butterfly. He took a pair of scissors and snipped off the remaining bit of the cocoon. The butterfly then emerged easily, but, it had a swollen body and small, shriveled wings. He continued to watch the butterfly, he expected that, at any moment, the wings would enlarge and the body would contract. Neither happened!

In fact, the butterfly spent the rest of its life crawling around with a swollen body and shriveled wings. It was never able to fly.

The man acted with well-intentioned kindness but he didn't understand the consequences. The restricting cocoon and the struggle required to get through the tiny opening, were nature's way of forcing fluid from the body of the butterfly once it achieved its freedom from the cocoon.

Sometimes struggles are exactly what we need in our life. If we were to go through life without any obstacles, it would cripple us. We would not be as strong as we could have been and we could never fly

So the next time you are faced with an obstacle, a challenge, or a problem, remember the butterfly. Struggle a little - then fly!

Some Good Quotes......

* Don't spend major time with minor people.

* If there are people in your life who continually disappoint you, break promises, stomp on your dreams, are too judgmental, have different values and don't have your back during difficult times...that is not friendship.

* To have a friend, be a friend.

* Sometimes in life as you grow, your friends will either grow or go. Surround yourself with people who reflect values, goals interests and lifestyles.

* When I think of any of my successes, I am thankful to God from whom all blessings flow, and to my family and friends who enrich my life.

* Over the years my phone book has changed because I changed, for the better. At first, you think you're going to be alone, but after awhile, new people show up in your life that make it so much sweeter and easier to endure.

* Remember what your elders used to say, "Birds of a feather flock together. If you're an eagle, don't hang around chickens: Chickens can't fly!"

Tuesday, April 28, 2009

emacs sort lines.

I always tend to use OpenOffice spreadsheet for sorting numbers or lines. I knew, there will be something in emacs to do the same. But, I was so lazy to figure out for long time. Today, i did google search and found a way to sort-lines.

mark the region using C- and moving cursor across lines and then,

M-x sort-lines

source:
http://edivad.wordpress.com/2008/04/11/emacs-sorting-lines/

Wednesday, April 22, 2009

emacs learning experience

I always wanted to do lot of programming and learn emacs very well. Unfortunately my initial career wasn't gave me opportunity to do lot of programming but put me in lot of analyzing skills. However, today i'm writting lots of lots of 'C' code and 'C' language is one of my favorite from my college days. Friends from my college used to call me as "Pointer" :). May be dangling ptr :)... I dont know....

Decided to blog about features i learn in emacs whenever i get time. Reason being, I learnt few features of emacs over last 3 years and forgot the many things in the same period. My blogs on these topics may help me later to recollect what i learnt.

a little story about emacs/xemacs in my life :).

I think, I heard the word emacs in my III year at college bachelor degree. We haven't had emacs as editor or none of my college professor adviced us to use it. One of my friend Vijay Lakshinarayanan, he was first one told me about emacs and was showing me up some Lisp commands. None of his words impressed me at that time. May be, i was so reluctant about emacs or importance of editor for programming. After a year or so, in HCL Tech, for initial 6 months i wasn't really need of any editor. I think, i wasn't even writting anything at computer terminals expect just browings/chatting :). I was using vim and xemacs for remaining days of HCL. Today, I spent full days with emacs. A week ago, I moved to emacs from xemacs due to lack of development activites in xemacs.

that was short flashback of emacs/xemacs in my life so far. :).


---------------
M-x align-regexp
---------------
var = 1;
long_varriable_name_test = 2;
help = 3;
ptr->var.xyz = 32;

mark the above region and do 'M-x align-regexp' and enter '=' ,
will change above region aligned as below.

var = 1;
long_varriable_name_test = 2;
help = 3;
ptr->var.xyz = 32;


Source : By 'http://stackoverflow.com/users/5039/ehdr' in http://stackoverflow.com/questions/60367/the-single-most-useful-emacs-feature

Sunday, November 05, 2006

like crazy mohan dialogues

Yesterday I was reading Su.Ki. Shivam's "Inn Nazhal eniya Nazhal' , He mentioned about using language in various form of funny and enjoyable way. One way is that different meaning of the words and context. It reminded me one of the event happened at our office.

As usual, couple of my friends and myself went for lunch. While having lunch, one friend started some serious talk. Then someone said, "Thalaiva, life is short, let us just enjoy". Another friend asked "Is it 'unsigned short' or 'signed short' ".

Friday, November 03, 2006

Google Labs/Google Pages.

Thought to try out all available products from Google Labs.

I have created a website ( i can say just weblink with my name for future use :) ) and a blogs site today in google labs.

You can view that in

http://sureshkannan.googlepages.com/home