Friday, December 22, 2006

Anish Trade Secret

Atlast, I got what I want. The Trade Secret of Anish (My PL). He is a geek, he use to have interest in Unix Internals and Network Programming in his college days.

Today, I learned something important from Anish which I used to do in my college days and lost in touch of it in these days. It is imagination or having a mental picture of what you are studing or what you are doing while fixing the Bugs. I remember now, why I have interest in Fatasy Books like HP, LOR, ... I have a taste of Imagination. Pure Imagination. To put it in Shiju's Word ENVISAGE.

I'm going on a long weekend, I will be back only on wednesday(27-Dec-06).

Monday, December 18, 2006

Paulo Coelho

Yesterday, I read one novel and completed it. Now, I can read a Novel in a Day. It is The Valkyries by Paulo, the novel is abt "Seeking once Angel/Dream". It is really good to read. I have already read The Alchemist and The Pilgrimage, and reading "The Manual of the Light Warrior"(I will be reading it thru out my life). I once read it to my boy, when he is inside his mother.

In short, it says "Follow your dream, however hard it is, have patience. Seek help from god, he will help you." It also talks abt relationship between husband and Wife.

I have to start reading again "Awaken the Gaint Within." I have started returing to my god. Wisdom - Knowing and Doing what is right.

I read the Six Hats by Edward de Bono.

White hat - Informational (no good or bad, only info.)
Red hat - Emotional (or linux implementation)
Black hat - Caution
Yellow hat - Possitive Thinking
Green Hat - Creativity
Blue hat - Overview (thinking abt the thinking) control hat

Six Thinking Hats
- From Mind Tools

Tuesday, December 12, 2006

Waking Up Early

Today, I woke up at 9:00 am. What the hell is this mean ? I'm slowing off the Track. If one want to improve his personal effectiveness, he must be a early raiser. Great Guru's like Robin Sharma & Anthony Robbins advises to wake up early in the morning.

Now I have decided (my decision = my commitment) go to bed at 11 or 12 pm and wake up at 5 or 6 am.

Benefits of waking early in the morning

* having good Coffee or Tea in the early morning
* can read your newspaper
* going for a walk in Anna nagar Tower Park
* the freshness when you go to work
* start your work with the good song
* can save money by eating the food in the nearby hotel
* taking your breakfast on time
* if you come early and leave early from work

Never lie to yourself. It is a trust you cannot abuse. If your subconscious know that you won’t do what you say you want to do by getting up early, it’ll sabotage your efforts and dilute your commitment.

Monday, December 11, 2006

Proud Moments

These are the moments which I was proud of myself.

1. When I won first programming competition in TCE.
Thousand of hands clapping for me. (me alone, its great). Ofcourse, I submit it for my mom and my dad and my god. I won it in the following year also. One more in ASAN memorial college.

2. When I got an offer letter in Polaris, 2 days before my flight to Sharjah.

3. Got an offer letter from HCL Technologies and faced Sriram (my polaris manager) and greeted him with a smile in my face. (to put it correctly, I laughed at him)

4. When I got the project in IMSc, Taramani. After a lengthy interview with Venkatesh Raman Sir. Thanks to Girish.

People who shaped my thoughts:

* Manonmani Miss (St. Thomas)
* Suruli Sir (He taught me everything I need to know in Life, My Role Model)
* Peter Sir (He taught me programming)
* Murugasen Sir (MKU HOD, My Role Model)
* Alex Sir (My philosopher)
* Shanmugam Sir (Kamaraj College)

I'm greatly indebted to:

* Pakyam Sir (My Guru, My Guide, My philosopher)
* William Sir (MKU VC PA, A great personality)

My Song

It's a song from "The Lord of the Rings", sung by Enya. Whenever I get stuck, this song keeps me going.

May it be an evening star
Shines down upon you
May it be when darkness falls
Your heart will be true
You walk a lonely road
Oh! How far you are from home

Mornie utúlië (darkness has come)
Believe and you will find your way
Mornie alantië (darkness has fallen)
A promise lives within you now

May it be the shadows call
Will fly away
May it be you journey on
To light the day
When the night is overcome
You may rise to find the sun

Mornie utúlië (darkness has come)
Believe and you will find your way
Mornie alantië (darkness has fallen)
A promise lives within you now
A promise lives within you now


Friday (08-Dec), I went to Tuticorin to see my wife and my baby. Both are doing fine. Thank God.

I'm currently reading "Awaken the Gaint Within", It is a great book. I have decided to put forth the ideas given in it to my life. Anthony Robbins is my guru. Once in my life I want to meet him in person. (I will). The Pain and the Pleasure principle is a great idea. (This man must have read a lot of books to achieve such a great wisdom.)

If I would I will translate this books in Tamil. This book stands third in "To Be Translated into Tamil", the first 2 are Fountain Head and Atlas Shrugged.

Thursday, December 07, 2006

Redirection and Pipes

Yesterday, Kamesh wrote a program to redirect the output of the program to a file.

char *ar[]={"ls",">","mylog.dat"};
execv("ls",ar);

I'm going to kill this guy. He dont know what is the difference between passing argument to a command and output redirection. And also dont know who is doing the redirection.

when you say,

ls -l > mylog.dat

this is what shell does

1. Shell forks itself
2. Close the stdout of the child process
3. Open the file and bind it with the stdout of the child process
4. execl "ls -l" on child process
5. parent process (i.e. shell) waits till the complete execution of the child process

Program 1:


#include <unistd.h>
#include <fcntl.h>

int main() {
char *ar[]={"ls","-l"};
int fd;
close(1);
fd=open("/users/revincen/cpp/sample.dat",O_CREAT|O_WRONLY);
write(1,"hello world\n",12);
execv("/bin/ls",ar);
return 0;
}


Program 2:


#include <stdio.h>
#include <stdlib.h>

int main() {
char buf[256];
FILE *inp,*outp;

inp = popen("ls -l","r");
outp=fopen("hello.dat","w");

while ( fgets(buf,sizeof buf,inp) != 0 )
fputs(buf,outp);

pclose(inp);
return 0;
}

Tuesday, December 05, 2006

My Son

My son born on 03-Dec. I left home at 7:00 am morning, took a flight to Madurai, took cab to matuthavani bus stand. I reached AVM Hospital at 6:00 pm. I saw my Baby the next day (04-Dec). I took him in my hands on 05-Dec. He is too small, so fragile, like new born flower. When I called Pappukudi, he opened his eyes and saw me. I lost myself.

Till now we have 2 name choices Aslan (The lion in Narnia) and Romulus (Brother of Remus).

I love my son.

Friday, December 01, 2006

Same Mistakes

I'm making the same mistakes again and again. I should not do that. I dont have a plan for my life, I'm walking in the direction of Life.

Yesterday I bought "Awakening the Gaint Within", a great book by Anthony Robbins. I need to change my behaviour.

Coming weekend I will be father a child, but I still myself feel like a child. I still need to mature a lot. Till now I dont have Vision and Mission. I need to start with a Vision statement for my life.

Vision - What would I be after 5 years from now ?

I see myself as
* Good programmer (only C, C++ & Perl) nothing else
* Good Debugger (In my work, Fix more bugs)
* Good husband (Few Fights, more understanding)
* Good Dad (Good caring)

Mission - What are the steps I will be taking to achieve it ?
* Read books on programming (General, C/C++/Perl)
* Start solving problems in ACM
* Start reading documents on my work
* Serious abt Professional Growth
* Speak to Juliet (1 hr atleast)
* Play with & Care my Pappukudi
* Blog my growth daily

Dont Do List
=========
* Stop beating the bushes (no more book collecting)
* Stop skip reading books