Thursday, July 17, 2008

40 Tips for Better Living

  1. Take a 10-30 minutes walk every day. And while you walk, smile.
  2. Sit in silence for at least 10 minutes each day..
  3. Sleep for 7 hours.
  4. Live with the 3 E's -- Energy, Enthusiasm, and Empathy.
  5. Play more games.
  6. Read more books than you did in 2007.
  7. Make time to practice meditation, yoga, and prayer. They provide us with daily fuel for our busy lives.
  8. Spend time with people over the age of 70 & under the age of 6.
  9. Dream more while you are awake.
  10. Eat more foods that grow on trees and plants and eat less food that is manufactured in plants.
  11. Drink plenty of water.
  12. Try to make at least three people smile each day.
  13. Don't waste your precious energy on gossip.
  14. Forget issues of the past. Don't remind your partner with his/her mistakes of the past. That will ruin your present happiness.
  15. Don't have negative thoughts or things you cannot control. Instead invest your energy in the positive present moment.
  16. Realize that life is a school and you are here to learn. Problems are simply part of the curriculum that appear and fade away like algebra class, but, the lessons you learn will last a lifetime.
  17. Eat breakfast like a king, lunch like a prince and dinner like a beggar.
  18. Smile and laugh more.
  19. Life is too short to waste time hating anyone. Don't hate others.
  20. Don't take yourself so seriously. No one else does.
  21. You don't have to win every argument. Agree to disagree.
  22. Make peace with your past so it won't spoil the present.
  23. Don't compare your life to others'. You have no idea what their journey is all about. Don't compare your partner with others.
  24. No one is in charge of your happiness except you.
  25. Forgive everyone for everything.
  26. What other people think of you is none of your business.
  27. GOD heals everything.
  28. However good or bad a situation is, it will change.
  29. Your job won't take care of you when you are sick. Your friends will. Stay in touch.
  30. Get rid of anything that isn't useful, beautiful or joyful.
  31. Envy is a waste of time. You already have all you need.
  32. The best is yet to come.
  33. No matter how you feel, get up, dress up and show up.
  34. Do the right thing!
  35. Call your family often.
  36. Your Inner most is always happy. So, be happy.
  37. Each day give something good to others.
  38. Don't over do. Keep your limits.
  39. When you awake alive in the morning, thank GOD for it.
  40. Please Forward this to everyone you care about


I'm publishing this post using XP Word. Try it out, its cool.

Meditate Online

Meditation is for me is:

The Path of enlightenment
Cannot be charted or measured:
Highest of the high,
Vast beyond limit,
Deepest of the deep,
Profound beyond fathoming,
Big enough to contain
Heaven and earth,
Small enough to enter
An infinitesimal point,
Thus it is called the Path

- Records of the Lanka

I usually Meditate in the office for 5 to 10 minutes mostly after lunch(I don't have heavy lunch these days). I sit in my chair and play Tibetan Bells Music and open the Online Meditation Link. This has a good effect on me. Try it if you have time.

Last week, I have completed reading Sabriel by Grath Nix. I like that book, I have also some of my already read book into Shelfari(bookshelf plug-in in the left).

Wednesday, July 02, 2008

Anger and Love (No Limits...)

While a man was polishing his new car, his 4 yr old son picked stone & scratched lines on the side of the car.

In anger, the man took the child's hand & hit it many times, not realizing he was using a wrench.

At the hospital, the child lost all his fingers due to multiple fractures. When the child say his father.... with painful eyes he asked "Dad when will my fingers grow back?"

Man was so hurt and speechless. He went back to car and kicked it a lot of times. Devastated by his own actions...... sitting in front of that car he looked at the scratches, child had written "LOVE YOU DAD".

The next day that man committed suicide...

Anger and Love has no limits, so let the river of life flow in Limits so that this fresh water stream is never scattered.

Thanks to Srini.

Monday, June 30, 2008

The Taste of Biriyani

Biryani is one of the dish I like most since my childhood. My mom don't know how to cook Biryani. But my kids have better luck than me, My wife knows how to cook Biryani. She makes one of the Best Biryani, I have ever tasted.

In the early days of my marriage life, My Wife don't know cooking at all. I usually didn't liked her cooking, that's the reason why we often used to dine outside. After 2 years of our married life, She is improved her cooking skills drastically. Thanks to My mother-in-law and Chef Dhamodaran (Achi Masala samayal Programme).

Now-a-days, I like her non-veg dishes than any other restaurant's. Don't forget to ask for "Chicken Biryani" when anyone visit my home.

Wednesday, June 25, 2008

Pointer to functions - Simplified

Here is the code


1 #include < iostream >
2
3 using namespace std;
4
5 int add(int a, int b) {
6 return a+b;
7 }
8
9 int sub(int a, int b) {
10 return a-b;
11 }
12
13 // typdef pointer to a function
14 typedef int (*fpp)(int, int);
15
16 // Array of pointers to function
17 fpp fp[2];
18
19 // Function returning a pointer to a function
20 int (* getfp(int i) ) (int, int) {
21 if(i==1) return & add;
22 else return & sub;
23 }
24
25 // Pointer to a function returning a pointer to a function
26 int (* (*fgetfp)(int)) (int, int);
27
28 int main() {
29
30 fgetfp = &getfp;
31
32 fp[0] = (*fgetfp)(1); // same as fgetfp(x)
33 cout<<"10 + 20 = "<< fp[0](10,20)<< endl;
34
35 fp[1] = fgetfp(2);
36 cout<<"10 - 20 = "<< fp[1](10,20)<< endl;
37 return 0;
38 }
39

Thursday, June 19, 2008

The Little Prince

Today, I have completed reading "The Little Prince" written by aviator Antoine de Saint Exupéry. It is one of the short children book. I love this book next to Alice in the wonderland and Looking through the Glass.

The book comes under the category of novella(a short novel). It is children book but with lot of insights for adults.

The novella is about a Little Prince, who lives in a Asteroid name B612, which has 3 volcanoes and 1 Flowering plant.

I recommend it for all. Enjoy reading.

Here is an introduction in WiKi Link

Wednesday, June 18, 2008

Epictetus: The Art of Living

Two days back, I completed reading a translation of Epictetus. Epictetus is a 3rd century Stoic philosopher. He was born as a slave and later he became a Stoic philospher. The book is very small and it's very good to read.

Jacob anna and Santo, it is a highly recommended book. I want you to enjoy it.

Here is a classic translation of "The Enchiridion"

Here is some of his quotes:(collected from http://www.brainyquote.com/quotes/authors/e/epictetus.html)

First learn the meaning of what you say, and then speak.

First say to yourself what you would be; and then do what you have to do.

God has entrusted me with myself.

He is a wise man who does not grieve for the things which he has not, but rejoices for those which he has.

If evil be spoken of you and it be true, correct yourself, if it be a lie, laugh at it.

If you want to improve, be content to be thought foolish and stupid.

It is impossible to begin to learn that which one thinks one already knows.

Men are disturbed not by things, but by the view which they take of them.

No greater thing is created suddenly, any more than a bunch of grapes or a fig. If you tell me that you desire a fig, I answer you that there must be time. Let it first blossom, then bear fruit, then ripen.

No man is free who is not master of himself.

Practice yourself, for heaven's sake in little things, and then proceed to greater.

Silence is safer than speech.

Whenever you are angry, be assured that it is not only a present evil, but that you have increased a habit.

Friday, June 06, 2008

Paradoxical Commandments

The Paradoxical Commandments by Dr. Kent M. Keith

People are illogical, unreasonable, and self-centered.
Love them anyway.

If you do good, people will accuse you of selfish ulterior motives.
Do good anyway.

If you are successful, you will win false friends and true enemies.
Succeed anyway.

The good you do today will be forgotten tomorrow.
Do good anyway.

Honesty and frankness make you vulnerable.
Be honest and frank anyway.

The biggest men and women with the biggest ideas can be shot down by the smallest men and women with the smallest minds.
Think big anyway.

People favor underdogs but follow only top dogs.
Fight for a few underdogs anyway.

What you spend years building may be destroyed overnight.
Build anyway.

People really need help but may attack you if you do help them.
Help people anyway.

Give the world the best you have and you’ll get kicked in the teeth.
Give the world the best you have anyway.

Wednesday, June 04, 2008

Programming & Maths

Programming Books
=================
http://www.amazon.com/gp/richpub/syltguides/fullview/13FHH28JQNLRD/ref=cm_syt_dtpa_f_1_rdssss0?pf_rd_p=253457301&pf_rd_s=sylt-center&pf_rd_t=201&pf_rd_i=0139798099&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=0E0JVZ79T9VVSWCWE296

1. Structure and Interpretation of Computer Programs by Harold Abelson
2. Art of Computer Programming - D.E. Knuth
3. Computer Organization and Architecture by William Stallings
4. C Programming Language
5. Advanced Programming in the UNIX Environment
6. Thinking in C++


Mathematical Books (for Programmers)
==================
http://www.amazon.com/exec/obidos/tg/guides/guide-display/-/3MLMYHG1P537N/ref=cm_bg_em_vg_htm_btm/

1. Polynomials (Problem Books in Mathematics) by E.J. Barbeau
2. Calculus, Vol. 1 by Tom M. Apostol
3. Calculus, Vol. 2 by Tom M. Apostol
4. How to Solve It: A New Aspect of Mathematical Method by G. Polya
5. Basic Notions of Algebra by I.R. Shafarevich
6. Discrete Mathematics and Its Applications by Kenneth H. Rosen
7. Mathematical Analysis by Tom M. Apostol
8. Introduction to Analytic Number Theory by Tom M. Apostol

Tuesday, June 03, 2008

My Physics Interest

One of the subject which I love during my school days is Physics. And One of the Subject I love during my college days is Maths (esp. Calculus). But If you ask me what is my score in these subjects in my 10th and +2, I'm a very below average performer.

When I ask myself why I was not able to perform much in my school days, I could say that its the teachers fault in my school. I thinks it is the same fate with every school in India.

Why do one LEARN ? For me "To Learn is to understand." But in schools esp. in India "To Learn" is to "To Memorize." This is the same reason, why I'm able to shine better in Computer Science, because I Understand What I learn. I was able score good marks passed with distinction in my B.Sc (Computer Science) and M.C.A. by understanding.

As a Science subject, Physics is more interesting to me than Chemistry. My interest are more into Astronomy (yes, I know how to identify Big Dipper and Little Dipper. I learned it from a Russian Books (Ursa Major, Ursa Minor)) and Relativity Theory. Here are some of the Good Links for understanding Physics (which I browsed today):

http://www.einstein-online.info/en/elementary/index.html
http://staff.washington.edu/aganse/blog/files/relativityintro.html
http://staff.washington.edu/aganse/blog/files/centrip.html

Wednesday, May 21, 2008

C/C++ If statement

Lately, I was been reading C/C++ Coding Styles. It talks about parenthesis-ing, spacing, alignment, etc...

I also recommends some common software practices, such as putting the numerical constant first in the comparison statements like if, while, for and ?:

for example:


if (1000 < stack_size) {
...
}

while (10 != num) {
...
}


for (int i=0; 20 == value; ++i) {
...
}


Why does it emphasize this rule ? It will help you to avoid ambiguous assignments in the conditional statements.

A common mistake in for loop
=====================


for(int i=0;i < X; i++)

whenever we write "for" loop we are tend to use the post-fix operator ++ instead of pre-fix ++. First one need to understand what is the difference between i++ and ++i, and when to use what.

i++ is more complex and takes more clock cycles than ++i. So please make it a habit to use ++i instead of i++, this may make your code a little bit faster.

Monday, May 19, 2008

My Birthday and Pat & Stan

I have done my birthday shopping last weekend. Tomorrow (21-may) is my 30th birthday. hmm...

I feel good,

Miles to go before I sleep,
Miles to go before I sleep ....


My kid Rohan and myself love watching The Owl and Pat&Stan from JetX Channel. The imaginative work involved in these cartoons are very cool. I have a Pat&Stan singing "In the jungle" in my blog.

I'm making steady progress in my goals and objectives in my life. It is very slow, but very steady.

1. I'm doing meditation on the weekends
2. Solved 1 ACM (2062) last week
3. Reading The C++ Programming Language

Wednesday, May 14, 2008

Make "make" work for you

Make - tool to control the compilation and creation of executables. I was hacking into this tool for quite sometime. I feel "make" is good for all the linux/unix c/c++ programmers.

Here is a simple Tutorial of Make:

source file (helloworld.c)
========
#include ...
int main() {
using namespace std;

cout<<"hello world\n"; return 0;
}
simple makefile(gnumakefile/makefile)
===========
helloworld: helloworld.c
TAB g++ -o helloworld helloworld.c

TAB - is important, otherwise gnumake will prompt for error.

command
=======
make TARGET

make helloworld

Example 2
========

/* sum.c */

int sum(int a, int b) {
return a+b;
}

/* diff.c */

int diff(int a, int b) {
return a-b;
}

/* main.c */

int main() {
...
c=sum(20,30);
...
d=diff(30,23);
...
}

/* Make file */

CC = g++ /* which compiler*/
CFLAGS = -Wall -g -ansi /* compiler flags */

sum.o: sum.c
$(CC) $(CFLAGS) -c -o $@ $<
diff.o: diff.c
$(CC) $(CFLAGS) -c -o $@ $<
main: sum.o diff.o main.c
$(CC) $(CFLAGS) -o $@ $^
clean:
-rm core *.o main
Special Tags
=========
$@ -- current target name
$LT -- First name of the prerequisite
$^ -- List of all prerequisite
$* -- List of all prerequisite (without prefix)

So, dudes, start using make. It is cool, it makes life a lot easier for c/c++ programmers.

Monday, May 12, 2008

My Study on Virtue

We use some words without knowing what is the exact meaning of it. One such word is Virtue, What does it mean ?

Virtue - it stands for Moral Excellence of a person.

The four cardinal (hinge) virtues are
1. Justice
2. Courage
3. Wisdom
4. Moderation

The four classic Western cardinal virtues are:
1. Temperance - Self discipline
2. Prudence - Wisdom
3. Fortitude - Courage
4. Justice

Buddhist practice as outlined in the Noble Eightfold Path can be regarded as a progressive list of virtues.

1. Right Viewpoint - Realizing the Four Noble Truths
2. Right Values - Commitment to mental and ethical growth in moderation
3. Right Speech - One speaks in a non hurtful, not exaggerated, truthful way
4. Right Actions - Wholesome action, avoiding action that would do harm
5. Right Livelihood - One's job does not harm in any way oneself or others; directly or indirectly
6. Right Effort - One makes an effort to improve
7. Right Mindfulness - Mental ability to see things for what they are with clear consciousness
8. Right Meditation - State where one reaches enlightenment and the ego has disappeared

The Four Noble Truth:

1. The Nature of Suffering
2. Suffering's Origin
3. Suffering's Cessation
4. The Way Leading to the Cessation of Suffering - (It is the Noble Eightfold Path)

Capital Vices

1. Pride or Vanity — an excessive love of self
2. Avarice (covetousness, Greed) — a desire to possess more than one has need
3. Lust — excessive sexual desire. "lust detracts from true love".
4. Wrath or Anger — feelings of hatred, revenge or even denial, as well as punitive desires outside of justice
5. Gluttony — overindulgence in food, drink or intoxicants, or misplaced desire of food as a pleasure for its sensuality
6. Envy or jealousy - resentment of others for their possessions "Love of one's own good perverted to a desire to deprive other men of theirs")
7. Sloth or Laziness - idleness and wastefulness of time allotted. Laziness is condemned because others have to work harder and useful work can not get done.

----- Collected from Wiki ----

Wednesday, April 23, 2008

Breaking and Building

Again, It has happened, I have broken the trust of my wife. Why is it happening like this, my relationship with my wife is growing to heavens. But all of a sudden, it is broken. This is happening for the 3rd time in my marriage life.

Now, I have to start from the first. I have to start building my trust from the ground level. It is a Himalayan Task, it requires lot of Patience. Everything is because of my troubled Childhood.

But, whatever happens, her trust will return to me. Because "I Love Her" so much.

Monday, April 21, 2008

Good Quote

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Stephen Hawkings is one of the scientist I like to meet in my life time. Some of the Important Scientist whose writings I live to read:

1. Albert Einstein
2. Donald Knuth
3. Steven Pinker
4. Roger Penrose
5. Douglas P.Hofstadter
6. Richard P.Feynman
7. Oliver Sacks
9. Maryanne Wolf
10. Grady Booch

Thursday, April 17, 2008

Aathichuvadi

Do you remember Aathichuvadi ? If not please read it here.

Self-help - currently the western world is looking into it. I have read lot of self-help books, ranging from Robin Sharma to Tony Robbins. Tamil literature has also donated the world with its irreplaceable Thirukural written 2nd BC. It is also donated Aathichuvadi, written by Aavaiyyar (a female poet).

அறம் செய விரும்பு (Be desirous of doing virtue)
ஆறுவது சினம் (It is the nature of anger to temper in time)
இயல்வது கரவேல் (Do what "you can do") (Never stop learning)
ஈவது விலக்கேல் (Always be charitable) (Don't prevent charity)
உடையது விளம்பேல் (Don't advertise of your possessions)
ஊக்கமது கைவிடேல் (Don't give up perseverance)
எண் எழுத்து இகழேல் (Don't despise learning)
ஏற்பது இகழ்ச்சி (Acceptance (begging) is despicable)
ஐயமிட்டுண் (Eat after donating to the needy)
ஒப்புர வொழுகு (Act virtuously)
ஓதுவது ஒழியேல் (Don't give up reading)
ஒளவியம் பேசேல் (Don't carry tales)

Tuesday, April 15, 2008

ID, Purse and Mobile

"ID, Purse and Mobile" - I hear this phrase daily. My wife used to ask me everyday "Have you taken ID, Purse and Mobile ?". She knows I'm an absent-minded professional. But there is a philosophy behind it.. I'm not a philosopher or something like that, but it is just a metaphor.

ID (Identity Card), signifies your Identity in this world (Your Self). Purse, of course, is your financial status, how do you manage your money(mere earning is no enough, one should know how to manage it) . Mobile is the communication quality, how you communicate with the outside world.

Your world revolves around these 3 important things.

LOL...

Wednesday, April 09, 2008

A PSALM OF LIFE

A PSALM OF LIFE

WHAT THE HEART OF THE YOUNG MAN
SAID TO THE PSALMIST

TELL me not, in mournful numbers,
Life is but an empty dream ! —
For the soul is dead that slumbers,
And things are not what they seem.

Life is real ! Life is earnest!
And the grave is not its goal ;
Dust thou art, to dust returnest,
Was not spoken of the soul.

Not enjoyment, and not sorrow,
Is our destined end or way ;
But to act, that each to-morrow
Find us farther than to-day.

Art is long, and Time is fleeting,
And our hearts, though stout and brave,
Still, like muffled drums, are beating
Funeral marches to the grave.

In the world's broad field of battle,
In the bivouac of Life,
Be not like dumb, driven cattle !
Be a hero in the strife !

Trust no Future, howe'er pleasant !
Let the dead Past bury its dead !
Act,— act in the living Present !
Heart within, and God o'erhead !

Lives of great men all remind us
We can make our lives sublime,
And, departing, leave behind us
Footprints on the sands of time ;

Footprints, that perhaps another,
Sailing o'er life's solemn main,
A forlorn and shipwrecked brother,
Seeing, shall take heart again.

Let us, then, be up and doing,
With a heart for any fate ;
Still achieving, still pursuing,
Learn to labor and to wait.

Monday, April 07, 2008

Life is a Binary Search

“Life is a Binary Search” - Meaning you keep oscillating between extremes until you find your niche in life.

- Donald E.Knuth

Monday, March 31, 2008

"Auto" Expeience...

Today, while I'm coming to office, I saw a quote written on back on an Auto Rickshaw.

"Money, youthfulness, beauty ... are temporary things"

"Simplicity, patience, honesty ... will move you forward in life"


Great insight .....

Wednesday, March 26, 2008

My New Company ....

This is my first posting from My New Company. Everything looks cool and neat, I have to start from the Fundu.

I joined on 19-Mar-08. After 3 days of Introduction and Induction process, I've started reading manuals of WiMax (Wireless Broadband).

Monday, March 10, 2008

about gperf

gperf - generate a perfect hash function from a key set

>gperf
one
two
three
four
five
six
seven
eight
nine
ten
/* C code produced by gperf version 3.0.1 */
/* Command-line: gperf */
/* Computed positions: -k'3' */

#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646. */
error "gperf generated tables don't work with this execution character set. Please report a bug to ."
#endif


#define TOTAL_KEYWORDS 10
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 5
#define MIN_HASH_VALUE 3
#define MAX_HASH_VALUE 18
/* maximum key range = 16, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
hash (str, len)
register const char *str;
register unsigned int len;
{
static unsigned char asso_values[] =
{
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 15, 19, 10, 19, 19, 19, 19, 19, 19,
5, 10, 19, 19, 5, 19, 19, 10, 0, 19,
0, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19
};
return len + asso_values[(unsigned char)str[2]];
}

#ifdef __GNUC__
__inline
#endif
const char *
in_word_set (str, len)
register const char *str;
register unsigned int len;
{
static const char * wordlist[] =
{
"", "", "",
"six",
"five",
"seven",
"", "",
"ten",
"nine",
"three",
"", "",
"two",
"four",
"eight",
"", "",
"one"
};

if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = hash (str, len);

if (key <= MAX_HASH_VALUE && key >= 0)
{
register const char *s = wordlist[key];

if (*str == *s && !strcmp (str + 1, s + 1))
return s;
}
}
return 0;
}

Sunday, March 09, 2008

Inspirational Websites & Links

Meditation Music:

http://www.esnips.com/web/arrtidpatel-Meditation/

Other Websites:

http://www.thewinningmovie.com

http://www.212movie.com

http://www.themythsmovie.com

http://www.natureofsuccessmovie.com

http://www.the-race-movie.com

http://www.lightmovie.com

http://www.innerguidancemovie.com

http://www.makeadifferencemovie.com

http://www.inspirationjunction.com/skyquestcom/community/ij/asp/ijmain.asp?root=&langid=2&txtPage=1

http://www.thedontquitpoem.com/

http://www.xehupatl.com/oldschool.htm

http://www.esnips.com/web/selfhelp2

http://www.esnips.com/web/Power123

http://www.esnips.com/web/suneil-spiritual

http://www.esnips.com/web/BrianTracy-PhoenixSeminar

www.positivepause.com

http://www.natureofsuccessmovie.com/

http://www.the-race-movie.com/

http://thegoodnessoflife.com/

http://awaken.greatday.com/

http://wonderofitall.com/

http://www.thethrivemovie.com

Friday, March 07, 2008

First Programmer of the World

I hear and I forget. I see and I remember. I do and I understand.

-- Confucius (Chinese Philosopher) 551-479 B.C.

Thursday, March 06, 2008

One Minute Manager

For the past few days, I'm reading "One Minute Manager balances Life & Work".

The four Parameters (Stress Moderators) are:

1. Autonomy : The availability of many choices that give good control in life
2. Connectedness : Strong positive relationship at home, at work and in the community
3. Perspective: The direction, purpose and passion about what one is doing.
4. Tone: The feeling about the body, energy level, physical well being and appearance.

If you lack in any one of these parameters, It will seriously affect the other parameters(domino effect).

Wednesday, March 05, 2008

Mind, Intellect & Ego

For the Past 2 Weeks, I'm taking Meditation Classes. These are some of the things which I learned from my Guru.

Introduction

In vedic times yogis investigated the deepest nature of human being. They developed a coherent filosophy on human extistence on the material, psychological and spiritual levels. The vedic model of human psychology consists of five concentric circles or koshas representing body, mind, ego, intellect, and self. The model introduces basic concepts for the understanding of human consciousness and various branches of yoga.

Body

The cerebrospinal system is the first part of the organism to be developed after conception. From it the entire bodily form comes out. This system is a great generator of electrical energy that is constantly supplied to the internal organs by a network of nerves that serve as connectors. All the cells in the body are kept alive by a flow of energy (prana). Nerves connect the brain and spine with the five sense organs (eyes, ears, nose, tongue, skin), and the five work organs (anus, genitals, legs, hands, vocal chords). The functiong of the entire human body is controlled by the cerebrospinal system, and the psychic centers are located in it.

Mind

The combination of brain, breath, nerves, sense organs, and work organs functions as a unit inside the body which is working with the mind. Mind is the tool of consciousness that enables perception through the senses. Mind uses brain to process the signals that are coming in through the senses, but mind is not a product from the brain. This is illustrated by organisms that have no real brain but still they have a mind that enables them to sense changes in the environment.

Mind is very active and associative, it can jump from present to past and from one situation to another. If you have tried to sit and remain silent inside you have experienced that many thoughts arose no matter how much you tried to be without them. These thoughts sprout from the activity of the mind. The activity of the mind is closely related with the pattern of breathing. The science of controlling breath is known as pranayama, a branch of Hatha Yoga. By practicing pranayama, the breath becomes calm, images do not disturb the mind, and the internal dialogue stops

Ego

Ego is the illusion that I exist as a separate individual being. Ego is the one which assumes the responsibility for the body and identifies with the body. When the body breathes, he says, "I am breathing". Ego takes a name, and becomes Mr. such and such and all social relations are acted out by ego. Whereas mind is very daring, ego is very much afraid for death. Whenever any problem comes to the body, ego becomes very alert and remains in the body. And the more there is danger of existence, the more strong the ego becomes. There are stories of children who were completely neglected and left behind. They developed into some kind of chivalrous fighting heroes, and they also became masters in certain subjects and people of great intelligence. Most of the time, only for survival of their ego, they had to struggle, and they learned from their struggle how to be strong. This way, ego is the one that creates strength. All strength that I have comes from my ego. This part of the ego which gives this strength is called will.

Modern school has become a training place for creating more and more ego, because there is competition all the time. Who does it first? Who is the best? Ego always tries to say, "I am better than you", "I am holier than you". In ancient days they had an education system that did not let the ego grow beyond a particular limit. The child had to go and live with the family of a teacher as a member of the family (gurukul). The wife of the teacher was responsible for providing all food, and nobody was allowed to bring other food. And parents were not allowed to bring gifts in order to treat all pupils equal, and make them feel that everyone is equal.

Intellect

Intellect is the tool of consciousness that contains knowledge that is accumulated in this live and in past life, and by seven previous generations as well. Intellect carries with it the past and the present, and also speculates about the future. Intellect helps ego with advice and information but the final decision comes from ego. Ego can say, "I like it" and although intellect may disapprove ego may decide "O.k., I don't believe that this is right, but I don´t want to follow all these rules and regulations, I'll break the law". If intellect is too much dominating then information in books is considered more important than own experience.

Mind and Intellect serve Ego

When ego is the king in the body, intellect is the prime-minister, and mind is the public relation officer, roaming here and there, making contacts, gathering information. Most of the time only mind is dominant. But sometimes ego is also very dominant. And intellect is only in the beginning, when you start, at that time it comes and tries to show you how you go. But after that, mostly it is the mind which takes the lead.

Self

There is a divine spark of consciousness in each of us, the innermost center of the 5 koshas. This divine spark or self is in bliss, untouched by any of the events that happening around. Animals, plants, and even objects, have such a spark in them. In deep sleep and in samadhi, mind, ego and intellect are inactive. Therefore, deep sleep and samadhi are very similar, however, in deep sleep we are not conscious of anything whereas in samadhi consciousness remains during the absence of mind, intellect and ego. The self likes to enjoy the drama of life. It is because of unfulfilled desires of ego that the combination of self, intellect, ego and mind incarnate over and over again, until the ultimate desire to merge with god is fulfilled. Then all individuality, including the individual self, is dissolved into the cosmic consciousness.

Courtesy: http://www.sanatansociety.org/yoga_and_meditation/ego_mind_intellect_yoga.htm

C++ Standard: C++0x

A talk on C++0x given by Bjarne Stroustrup at the University of Waterloo

Link: http://www.csclub.uwaterloo.ca/media/C++0x%20-%20An%20Overview.html

Tuesday, March 04, 2008

SuperbTips for an Exceptional & Powerful Life!

1.) Take a 10-30 minute walk every day. And while you walk, smile. It is the ultimate antidepressant.
2.) Sit in silence for at least 10 minutes each day. Buy a lock if you have to.
3.) Always pray and make time to exercise.
4.) Spend more time with people over the age of 70 And under the age of Six.
5.) Eat more foods that grow on trees and plants And eat less foods that are manufactured in Plants.
6.) Drink green tea and plenty of water. Eat broccoli, almonds & walnuts.
7.) Try to make at least three people smile each day.
8.) Clear your clutter from your house, car, desk and let new and flowing energy into your life.
9.) Don't waste your precious energy on gossip, issues of the past, negative thoughts or things you cannot control.
Instead, Invest your energy in the positive present moment.
10.) Realize that life is a school and you are here To learn. Problems are simply part of the curriculum
That appear and fade away like algebra class .......but the lessons you learn will last a lifetime.
11.) Eat breakfast like a king, lunch like a prince And dinner like a college kid with a maxed out charge Card.
12.) Life isn't fair, but it's still good.
13.) Life is too short to waste time hating anyone.
14.) Don't take yourself so seriously. No one else does.
15.) You don't have to win every argument. Agree to disagree.
16.) Make peace with your past so it won't screw up the present.
17.) Don't compare your life to others'. You have no Idea what their journey is all about.
19.) No one is in charge of your happiness except you.
20.) Frame every so-called disaster with these Words: 'In five years, will this matter?'
21.) Forgive everyone for everything.
22.) What other people think of you is none of your Business.
23.) Time heals almost everything. Give time, time!
24.) However good or bad a situation is, it will Change.

Courtesy: Orkut [Self-Help books & material Community]

Monday, March 03, 2008

Meditation Links

http://www.shanemagee.com/
http://www.srichinmoybio.co.uk/blog/

Wednesday, February 27, 2008

Buddist Meditation

Buddhist Meditation: http://www.audiodharma.org
Meditation: http://www.srichinmoybio.co.uk/blog/

Sunday, February 24, 2008

Emotional Intelligence

http://webhome.idirect.com/~kehamilt/ipsyeq.html

http://eqi.org/

http://eqi.org/eqe96_1.htm

Friday, February 22, 2008

Coding Books

Books About Coding
===================

* Beautiful Code
* The Best Software Writing
* Programmers at Work
* Out of their Minds
* Code Complete
* Zen of Assembly Language (Michael Abrash)

You Name It....

The train has started moving. It is packed with people of all ages, mostly with the working men and women and young college guys and gals. Near the window, seated a old man with his 30 year old son. As the train moves by, the son is overwhelmed with joy as he was thrilled with the scenery outside..

" See dad, the scenery of green trees moving away is very beautiful"

This behavior from a thirty year old son made the other people feel strange about him. Every one started murmuring something or other about this son."This guy seems to be a krack.." newly married Anup whispered to his wife.

Suddenly it started raining... Rain drops fell on the travelers through the opened window. The Thirty year old son , filled with joy " see dad, how beautiful the rain is .."

Anup's wife got irritated with the rain drops spoiling her new suit.

Anup ," cant you see its raining, you old man, if ur son is not feeling well get him soon to a mental asylum..and dont disturb public henceforth"


The old man hesitated first and then in a low tone replied " we are on the way back from hospital, my son got discharged today morning , he was a blind by birth, last week only he got his vision, these rain and nature are new to his eyes.. Please forgive us for the inconvenience caused..."

Categorized Books To Be Read ...

BOOKS: LIFE
+++++++++++
Anthony Robbins: Unlimited power
Anthony Robbins: Awaken the Giant Within
Anthony Robbins: Inner Strength
Barry Schwartz: The Paradox of Choice: Why More Is Less (P.S.)
Bijan Anjomi: Absolutely Effortless Prosperity
Bill McKibben: Enough: Staying Human in an Engineered Age
Bill McKibben: The End of Nature
Carl Honore: In Praise of Slow
Carlos Castaneda: The Art of Dreaming
Carlos Castaneda: Fire from Within
Carlos Castaneda: Power of Silence
Carlos Castaneda: Separate Reality
Carlos Castaneda: The Active Side of Infinity
David Myers: The Pursuit of Happiness
David Simon: The Ten Commitments
David Simon & Deepak Chopra: Return to Wholeness
Deepak Chopra: The Seven Spiritual Laws of Success
Deepak Chopra: The Seven Spiritual Laws of Success
Deepak Chopra: Creating Affluence
Deepak Chopra: Peace Is the Way
Deepak Chopra: Perfect Health
Don Miguel Ruiz: The Four Agreements
Eckhart Tolle: The Power of Now
Gregg Michael Levoy: Callings
Helen Keller: To Love This Life
Helen Keller: Optimism
Homer: Odyssey
Irini Rockwell: Five Wisdom Energies
James Collins & Jerry Porras: Built to Last
James Redfield: The Celestine Prophecy
Jim Collins: Good to Great
Jim Loehr and Tony Schwartz: The Power of Full Engagement
John Gray: What You Feel You Can Heal
Lao Tzu & Stephen Mitchell: Tao Te Ching: An Illustrated Journey
Larry Bossidy: Execution: Discipline of Getting Things Done
M. Scott Peck: The Road Less Traveled
Marshall Rosenberg: Nonviolent Communication
Michael J. Gelb: How to Think like Leonardo da Vinci
Oliver Sacks: Awakenings
Paulo Coelho: The Alchemist - DONE
Pema Chodron: Awakening Loving Kindness
Pema Chodron: Comfortable With Uncertainty
Pema Chodron: When Things Fall Apart
Robert Aziz: Jung's Psychology of Religion & Synchronicity
Robert Moss: Conscious Dreaming
Sakyong Mipham: Ruling Your World
Sidney Rosen: My Voice Will Go With You
Spencer Johnson: Who Moved My Cheese? - DONE
Stephen Covey: The 7 Habits of Highly Effective People
Sulak Sivaraksa : Seeds of Peace
Sulak Sivaraksa : Conflict, Culture, Change
Sulak Sivaraksa : Loyalty Demands Dissent
Susan Schutz: Reach Out for Your Dreams
Thomas Peters: In Search of Excellence
Vernon Howard: Esoteric Mind Power
Vernon Howard: Your Power of Natural Knowing
Vernon Howard: Secrets for Higher Success
Vernon Howard: Pathways to Perfect Living
Vernon Howard: Inspire Yourself
Wayne Dyer: Your Sacred Self
Wayne Dyer: The Power of Intention
Wayne Dyer: Change Your Thoughts, Change Your Life
Wayne Dyer: Inspiration
William Martin: The Sage's Tao Te Ching

BOOKS: NOVELS
+++++++++++++
Aldous Huxley: Brave New World
Alexander McCall Smith: The Number 1 Ladies Detective Agency
Alistair MacLeod: No Great Mischief
Andre Brink: Dry White Season
Andre Brink: The Other Side of Silence
Andre Brink: Imaginings of Sand
Andre Brink: The Rights of Desire
Andre Brink: Rumours of Rain
Andre Brink: Devil's Valley
Anita Diamant: The Red Tent
Anthony Burgess: A Clockwork Orange
Ayn Rand: Fountainhead - DONE
Ayn Rand: Atlas Shrugged - DONE
Barbara Kingsolver : The Poisonwood Bible
Breyten Breytenbach: The True Confessions of an Albino Terrorist
D. H. Lawrence: Sons and Lovers
D.H. Lawrence: Women in Love
Daniel Mason: The Piano Tuner
Dashell Hammett: Red Harvest
Doris Lessing: The Golden Notebook
Doris Lessing: Prisons We Choose to Live Inside
Doris Lessing: The Grass is Singing
Doris Lessing: In Pursuit of the English
Doris Lessing: The Four Gated City
E.M. Forster: A Passage To India
Ernest Hemingway: Moveable Feast
F. Scott Fitzgerald: The Great Gatsby
George Orwell: Nineteen Eighty Four
George Orwell: Animal Farm
Graham Greene: England made me
Graham Greene: The Quiet American
Graham Greene: The Ministry of Fear
Harper Lee: To Kill A Mockingbird
Ian McEwan: Amsterdam
Jack Kerouac: On The Road
Jack London: The Call of the wild
James Joyce: Ulysses
John Berger: Pig Earth
John Steinbeck: The Grapes of Wrath
Joseph Conrad: Heart Of Darkness
L. Ron Hubbard: Fear
Leo Tolstoy: Anna Karenina
M. Coetzee : Disgrace
Margaret Atwood: The Handmaid's Tale
Margaret Mitchell: Gone with the Wind
Mario Puzo: The Family
Milan Kundera: Unbearable Lightness of Being
Nadine Gordimer: Crimes of conscience
Oscar Wilde: The Picture of Dorian Gray
Penelope Fitzgerald: Innocence
Richard Russo: Empire Falls
Scott Fitzgerald: Tender is the Night
Sinclair Lewis: Main Street
Thad Carhart: The Piano Shop on the Left Bank: Discovering a Forgotten Passion in a Paris Atelier
V.S. Naipaul: India: A Wounded Civilization
V.S. Naipaul: In a Free State
V.S. Naipaul: A Bend in the River
Vivian Gornick: Approaching Eye Level
Vivian Gornick: Fierce Attachments
Walker Percy: The Moviegoer
Wallace Stegner: Crossing to Safety
Wallace Stegner: Angle of Repose
William Faulkner: As I Lay Dying
Yann Martel: Life of Pi
+++++++++++++++++++++++++++++++++++++

Productivity, Time Management, Effectiveness
+++++++++++++++++++++++++++++++++++++
The 7 Habits of Highly Effective People by Stephen Covey (personal effectiveness)
Getting Things Done by David Allen (workflow and productivity)
Maximum Achievement and Time Power by Brian Tracy (time management)
The Autobiography of Benjamin Franklin by Benjamin Franklin (personal effectiveness)
Organizing From the Inside Out by Julie Morgenstern (getting organized)
Now, Discover Your Strengths by Marcus Buckingham (finding your strengths)
Is Your Genius at Work? by Dick Richards (finding your genius, book review)


Success, Behavior, Victory
+++++++++++++++++++++++++++++++++++++
Unlimited Power and Awaken the Giant Within by Tony Robbins (achievement and NLP)
Using Your Brain for a Change by Richard Bandler (NLP)
Learned Optimism by Martin Seligman (optimism)
The Now Habit by Neil Fiore (overcoming procrastination)
Feel the Fear and Do It Anyway by Susan Jeffers (overcoming procrastination)
The Art of War by Sun Tzu (slaughtering your enemy efficiently)
The 48 Laws of Power by Robert Greene (ensuring your enemy doesn’t slaughter you first)
The Psychology of Winning by Denis Waitley (victory)


Consciousness, Awareness, Spirituality
+++++++++++++++++++++++++++++++++++++
Power vs. Force by David Hawkins (levels of consciousness)
Ask and It Is Given and The Amazing Power of Deliberate Intent by Esther Hicks (manifesting intentions)
The Power of Now and A New Earth by Eckhart Tolle (consciousness and awareness)
The Seven Spiritual Laws of Success by Deepak Chopra (manifesting intentions)
The Celestine Prophecy by James Redfield (consciousness and awareness)
Way of the Peaceful Warrior by Dan Millman (inner peace)
Cosmic Trigger Vol I, Vol II, and Vol III by Robert Anton Wilson (”weird” doesn’t begin to describe it)
A Course in Miracles by the Foundation for Inner Peace (channeled teachings from Jesus)
The Disappearance of the Universe by Gary Renard (awareness and forgiveness)
Bringers of the Dawn by Barbara Marciniak (channeled teachings of the Pleiadians)
Operation Terra by Sara Lyara Estes (channeled messages)


Meaning, Purpose, Fulfillment
+++++++++++++++++++++++++++++++++++++
There's a Spiritual Solution to Every Problem, The Power of Intention, and Inspiration by Wayne Dyer (spiritual problem solving, finding your purpose)
Man’s Search for Meaning by Viktor Frankl (finding meaning in the Holocaust)
Anne Frank: The Diary of a Young Girl by Anne Frank (Holocaust story)
A Child Called It, The Lost Boy, and A Man Named Dave by Dave Pelzer (abuse and recovery)


Philosophy, Wisdom
+++++++++++++++++++++++++++++++++++++
The Prophet by Kahlil Gibran (wisdom)
As You Think aka As a Man Thinketh by James Allen (power of thought)
Tao Te Ching by Lao Tsu (wisdom)


Psychic Development, Astral Projection, Dreams
+++++++++++++++++++++++++++++++++++++
Lucid Dreaming and Exploring the World of Lucid Dreaming by Stephen LaBerge (lucid dreaming)
Talking to Heaven, Reaching to Heaven, and Heaven and Earth by James van Praagh (mediumship, psychic connection)
Trust Your Vibes and Ask Your Guides by Sonia Choquette (psychic development, Ask Your Guides review, Sonia Choquette interview)
Far Journeys by Robert Monroe (astral projection)


Wealth, Business
+++++++++++++++++++++++++++++++++++++
The Type-Z Guide to Success With Ease (ebook) and The Millionaire Course by Marc Allen (Type-Z Guide review, Marc Allen interview)
Think and Grow Rich by Napoleon Hill (wealth)
Rich Dad, Poor Dad by Robert Kiyosaki (wealth advice)
Built to Last and Good to Great by Jim Collins (business)


Relationships
+++++++++++++++++++++++++++++++++++++
How to Win Friends and Influence People by Dale Carnegie (social skills)
Nonviolent Communication by Marshall Rosenberg (communication)
Men Are From Mars, Women Are From Venus by John Gray (male-female communication)
Too Good to Leave, Too Bad to Stay by Mira Kirshenbaum (diagnosing relationship issues)
Should I Stay or Go? by Lee Raffel (healing or ending relationships)


Health, Medicine
+++++++++++++++++++++++++++++++++++++
The China Study by T. Colin Campbell (health, book review)
Diet for a New America and The Food Revolution by John Robbins (health and ethical food choices)
Mad Cowboy by Howard Lyman (why a cattle rancher won’t eat meat)
The Egoscue Method of Health Through Motion by Pete Egoscue (pain-free structural alignment)
Anatomy of an Illness by Norman Cousins (laughter as medicine)
Vegan Family Favorites by Erin Pavlina (easy and delicious vegetarian recipes)


Mental Development, Intelligence, Science
+++++++++++++++++++++++++++++++++++++
The Memory Book by Harry Lorayne (develop a superior memory)
Creative Visualization by Shakti Gawain (visualization exercises)
Brain Building in Just 12 Weeks by Marilyn vos Savant (boosting your intelligence and mental clarity)
Chaos and Genius by James Gleick (chaos science and fractals; Richard Feynman bio)
The Tipping Point and Blink by Malcolm Gladwell (social and mental phenomena)


Fiction
+++++++++++++++++++++++++++++++++++++
Atlas Shrugged and The Fountainhead by Ayn Rand (philosophy of objectivism)
Brave New World by Aldous Huxley (the insanity of social conditioning)
Catch 22 by Joseph Heller (the insanity of war)
Incarnations of Immortality by Piers Anthony (fascinating fiction series): On a Pale Horse (Death), Bearing an Hourglass (Time), With a Tangled Skein (Fate), Wielding a Red Sword (War), Being a Green Mother (Nature), For Love of Evil (Satan), And Eternity (God)
The Iliad and The Odyssey by Homer (the Trojan War and classic Greek mythology)
Lord of the Flies by William Golding (stranded boys turn into savages)
Mark Twain: Four Complete Novels by Mark Twain (a true literary genius)
Jonathan Livingston Seagull by Richard Bach (outgrowing your old self)

Wednesday, February 20, 2008

EBooks

Some Interesting Links
======================
http://www.fortunecity.com/roswell/vortex/401/library/library.html

http://www.dailyzen.com/

http://www.srichinmoybio.co.uk/blog/

http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%_toc_start

http://www.htdp.org/2003-09-26/Book/curriculum-Z-H-1.html#node_toc_node_chap_Temp_1

http://www.rheingold.com/texts/tft/1.html

What is Lost ... ?

I heard this saying when I was a Kid, in my schooling days.

When Wealth is Lost ...
Nothing is Lost !!!

When Health is Lost ...
Something is Lost !!!

When Character is Lost ...
Everything is Lost !!!

I have seen it my life. It is very much true.

Just a thought:
===============

Plants are the only living beings which is qualified to live in Planet Earth. Animals too is some sense, can be qualified to live in this planet. The organisms which are deadly to Earth are...
* Virus
* Bacteria
* Parasites
* Humans...

Yes, Humans are not qualified to live this planet. He is a Parasite, he is a virus. I still remember Agent smith talking to Morpheus in Movie "THE MATRIX"

Agent Smith: I'd like to share a revelation during my time here. It came to me when I tried to classify your species. I realized that you're not actually mammals. Every mammal on this planet instinctively develops a natural equilibrium with the surrounding environment but you humans do not. You move to an area and you multiply and multiply until every natural resource is consumed. The only way you can survive is to spread to another area. There is another organism on this planet that follows the same pattern. Do you know what it is? A virus. Human beings are a disease, a cancer of this planet. You are a plague, and we are the cure.

Sunday, February 17, 2008

Well said

Some day, in years to come, you will be wrestling with the great temptation, or trembling under the great sorrow of your life. But the real struggle is here, now, in these quiet weeks. Now it is being decided whether, in the day of your supreme sorrow or temptation, you shall miserably fail or gloriously conquer.

Character cannot be made except by a steady, long continued process.

-- Phillips Brooks (1835-1893) American Bishop

Sunday, February 10, 2008

Linux Kernel

Linux is Unix-like operating system. It is released under GNU GPL (General Public License). Linux Kernel was originally developed by Linux Trovalds. Linux is written in C Programming Language(GCC).

Simplified Linux Kernel
=======================
http://upload.wikimedia.org/wikipedia/commons/2/28/Linux_kernel_diagram.png

Linux Kernel Map
================
http://www.makelinux.net/kernel_map

Thursday, February 07, 2008

Bahut Shukriya Badi

Bahut Shukriya Badi - This is one of the Hindi Song which I love to hear in my Teenage days.



Don't ask me the meaning of this, I like this Song. I don't know Hindi.

I also love to hear a song which goes like ...

'BADE ACCHE LAGTE HO....YEH NADIYA..YE MAUSUM..YE RENA OR OR TUM..'- I don't know the movie name, couldn't find it in the internet .... :-(

If someone finds it let me know, a nice song to hear.

Wednesday, February 06, 2008

A-weema-weh A-weema-weh

Want to stay relaxed, watch this:

Some people say, it is Stalin & Me, others say it is PVK & Me. Guess for yourself...




A-weema-weh A-weema-weh A-weema-weh A-weema-weh
A-weema-weh A-weema-weh A-weema-weh A-weema-weh
A-weema-weh A-weema-weh A-weema-weh A weema-weh
A-weema-weh A-weema weh A-weema-weh A-weema-weh

In the jungle, the mighty jungle
The lion sleeps tonight
In the jungle, the quiet jungle
The lion sleeps tonight.

A-weema-weh A-weema-weh A-weema-weh A-weema-weh
A-weema-weh A-weema-weh A-weema-weh A-weema-weh
A-weema-weh A-weema-weh A-weema-weh A weema-weh
A-weema-weh A-weema weh A-weema-weh A-weema-weh

Near the village, the peaceful village
The lion sleeps tonight.
Near the village, the quiet village
The lion sleeps tonight.

Monday, February 04, 2008

MONEY !!! Do you deserve it !!!

Money, Money, Money !!!

Give me the Money !@!@!@ Jokes apart...

Do you Deserve the Money you Earn ? If YES... Don't spent it lavishly...

Will you buy a Reynolds ball pen for Rs.100, obviously NO. Then, why are you renting a house for Rs,15,000 per month which is not worth that Money.

Don't buy anything which is not worth that money you pay for it. If you do so, then it is 100% sure that YOU DON'T DESERVE IT !!! IT IS NOT HARD EARNED !!!

Please, please, please make sure that you pay what anything is worth, not a penny more, not a penny less.

Master the Art of Buying !!! the Art of Negotiation !!! Make the seller know that you value your Money, and you can't pay more than what the thing worth.

IF YOU PAY MORE THAN IT'S WORTH !!!!
YOU DON'T DESERVE THE MONEY !!! (YOU DON'T WORTH YOURSELF)

What will happen, if there is going to be one more down fall of IT Industry ? Will they pay back your Money !!! The contractor from whom you the bought the Flat will not pay the EMI for your 50 Lakhs double bedroom flat.

BEWARE !!! BEWARE !!! BEWARE !!!

Thursday, January 31, 2008

Vanishing NEWS

Cat Vanish in Magic ....
Rat Vanish in Magic ....

Goat Vanish in Magic ....
Boat Vanish in Magic ....

Even, Taj Mahal Vanish in Magic ....

But, NEWS Vanish in Real-life ....

Wednesday, January 23, 2008

Knuth and Turing

Most of the Software Engineers don't know who is Donald Knuth and Turing. Oh ... God, have pity on them.

Last week on 10-Jan-08, I thought of writing an article about D.E.Knuth, who is one of my guru. Don't ask me whether I have read and understood any of his books, I was able to completely able to read and understand any of his books.

D.E.Knuth is one of the greatest Computer Scientist alive. He is the famous author of the famous book "The Art of Computer Programming". One of my life-time goal is to read his books and understand what is in it.

He is called as the father of "Algorithm Analysis". In 1971, Knuth was the recipient of the first ACM Grace Murray Hopper Award. He has received various other awards including the Turing Award, the National Medal of Science, the John von Neumann Medal and the Kyoto Prize(noble prize in Japan).

-- I will write about Alan Turing on some other day.

Ayn Rand's Principle

"You must be the kind of man who can get things done. But to get things done, you must love the doing, not the secondary consequences."
-- Ayn Rand

Contradictions do not exist. Whenever you think you are facing a contradiction, check your premises. You will find that one of them is wrong.
-- Ayn Rand

Evil requires the sanction of the victim.
-- Ayn Rand

Happiness is that state of consciousness which proceeds from the achievement of one's values.
-- Ayn Rand


The purpose of morality is to teach you, not to suffer and die, but to enjoy yourself and live.
-- Ayn Rand

The truth is not for all men, but only for those who seek it.
-- Ayn Rand

When I die, I hope to go to Heaven, whatever the Hell that is.
-- Ayn Rand

Tuesday, January 22, 2008

A simple fact abt Arrays

Consider the following array:

int a[5]={1, 2, 3, 4, 5};

a[i] == * (a + i)

* (a + i) == * (i + a)

* (i + a) = i[a]

yes, a[i] == i[a], both are same.

In this example 'a' is not a pointer the array. 'a' is just a value or constant. A pointer is an Variable, it means it's value can be modified.

'a' is a pointer constant, it is an address. That's why you can't put 'a' in the left hand side of the equation. 'a' is not an L-value.

Thursday, January 17, 2008

Short, But Sweet

I've read lot of books ranging from Any Rand to P.G.Wodehouse. But there are very few books which are very Short But Sweet:

Here is my list:
* Anthem by Ayn Rand
* Jonathan Livingston Seagull by Richard Bach
* Eaters of the Dead (Michael Crichton)
* Who Moved My Cheese
* Fish Tales
* Alchemist (I love this)

Monday, December 31, 2007

Zen Story - 4

Obedience

The master Bankei's talks were attended not only by Zen students but by persons of all ranks and sects. He never quoted sutras nor indulged in scholastic dissertations. Instead, his words were spoken directly from his heart to the hearts of his listeners.

His large audiences angered a priest of the Nichiren sect because the adherents had left to hear about Zen. The self-centered Nichiren priest came to the temple, determined to debate with Bankei.

"Hey, Zen teacher!" he called out. "Wait a minute. Whoever respects you will obey what you say, but a man like myself does not respect you. Can you make me obey you?"

"Come up beside me and I will show you," said Bankei.

Proudly the priest pushed his way through the crowd to the teacher.

Bankei smiled. "Come over to my left side."

The priest obeyed.

"No," said Bankei, "we may talk better if you are on the right side. Step over here."

The priest proudly stepped over to the right

"You see," observed Bankei, "you are obeying me and I think you are a very gentle person. Now sit down and listen."

All the Zen Stories posted here, come from www.101zenstories.com.

Friday, December 28, 2007

Zen Story - 3

Is That So?

The Zen master Hakuin was praised by his neighbors as one living a pure life.

A beautiful Japanese girl whose parents owned a food store lived near him. Suddenly, without any warning, her parents discovered she was with child.

This made her parents very angry. She would not confess who the man was, but after much harassment at last named Hakuin.

In great anger the parents went to the master. "Is that so?" was all he would say.

After the child was born it was brought to Hakuin. By this time he had lost his reputation, which did not trouble him, but he took very good care of the child. He obtained milk from his neighbors and everything else the little one needed.

A year later the girl-mother could stand it no longer. She told her parents the truth - that the real father of the child was a young man who worked in the fishmarket.

The mother and father of the girl at once went to Hakuin to ask his forgiveness, to apologize at length, and to get the child back again.

Hakuin was willing. In yielding the child, all he said was: "Is that so?"

All the Zen Stories posted here, come from www.101zenstories.com.

Sunday, December 23, 2007

Zen Story - 2

Finding a Diamond on a Muddy Road

Gudo was the emperor's teacher of his time. Nevertheless, he used to travel alone as a wandering mendicant. Once when he was on his was to Edo, the cultural and political center of the shogunate, he approached a little village named Takenaka. It was evening and a heavy rain was falling. Gudo was thoroughly wet. His straw sandals were in pieces. At a farmhouse near the village he noticed four or five pairs of sandals in the window and decided to buy some dry ones.

The woman who offered him the sandals, seeing how wet he was, invited him in to remain for the night at her home. Gudo accepted, thanking her. He entered and recited a sutra before the family shrine. He then was introduced to the woman's mother, and to her children. Observing that the entire family was depressed, Gudo asked what was wrong.

"My husband is a gambler and a drunkard," the housewife told him. "When he happens to win he drinks and becomes abusive. When he loses he borrows money from others. Sometimes when he becomes thoroughly drunk he does not come home at all. What can I do?"

I will help him," said Gudo. "Here is some money. Get me a gallon of fine wine and something good to eat. Then you may retire. I will meditate before the shrine."

When the man of the house returned about midnight, quite drunk, he bellowed: "Hey, wife, I am home. Have you something for me to eat?"

"I have something for you," said Gudo. "I happened to get caught in the rain and your wife kindly asked me to remain here for the night. In return I have bought some wine and fish, so you might as well have them."

The man was delighted. He drank the wine at once and laid himself down on the floor. Gudo sat in meditation beside him.

In the morning when the husband awoke he had forgotten about the previous night. "Who are you? Where do you come from?" he asked Gudo, who still was meditating.

"I am Gudo of Kyoto and I am going on to Edo," replied the Zen master.

The man was utterly ashamed. He apologized profusely to the teacher of his emperor.

Gudo smiled. "Everything in this life is impermanent," he explained. "Life is very brief. If you keep on gambling and drinking, you will have no time left to accomplish anything else, and you will cause your family to suffer too."

The perception of the husband awoke as if from a dream. "You are right," he declared. "How can I ever repay you for this wonderful teaching! Let me see you off and carry your things a little way."

"If you wish," assented Gudo.

The two started out. After they had gone three miles Gudo told him to return. "Just another five miles," he begged Gudo. They continued on.

"You may return now," suggested Gudo.

"After another ten miles," the man replied.

"Return now," said Gudo, when the ten miles had been passed.

"I am going to follow you all the rest of my life," declared the man.

Modern Zen teachers in Japan spring from the lineage of a famous master who was the successor of Gudo. His name was Mu-nan, the man who never turned back.

All the Zen Stories posted here, come from www.101zenstories.com.

Thursday, December 20, 2007

Zen Story - 1

A Cup of Tea

Nan-in, a Japanese master during the Meiji era (1868-1912), received a university professor who came to inquire about Zen.

Nan-in served tea. He poured his visitor's cup full, and then kept on pouring.

The professor watched the overflow until he no longer could restrain himself. "It is overfull. No more will go in!"

"Like this cup," Nan-in said, "you are full of your own opinions and speculations. How can I show you Zen unless you first empty your cup?"

All the Zen Stories posted here, come from 101 Zen Stories.

Wednesday, December 19, 2007

My First Lisp Program

For the last few days, I'm reading the famous book name "Structure and Interpretation of Computer Programs" by Harold Abelson and Gerald Jay Sussman. The books is available online: Link

This is my first lisp program to compute Factorial:

(define (fact x)
(cond
((= x 1) 1)
((> x 1) (* x (fact (- x 1))))
)
)

Want to See My Friend Stalin ....

I'm getting addicted to Kolangal(Sun TV Serial). It is mainly because of Stalin.

Yes.... He is coming there, I could see his Big Fat, Black, Half-Clown face in it. He is coming as Tholar Balakrishnan. He talks in pure Tamil and talks a lot abt Classical Tamil, Social Worker.

Anybody who has seen Stalin will agree with me. Now, Stalin will be in some remote corner of U.S.A. hacking into his computer. Not aware of whom I'm comparing him with.

Monday, December 17, 2007

The Three Ants

Three ants met on the nose of a man who was asleep in the sun. And after they had saluted one another, each according to the custom of his tribe, they stood there conversing.

The first ant said, "These hills and plains are the most barren I have known. I have searched all day for a grain of some sort, and there is none to be found."

Said the second ant, "I too have found nothing, though I have visited every nook and glade. This is, I believe, what my people call the soft, moving land where nothing grows."

Then the third ant raised his head and said, "My friends, we are standing now on the nose of the Supreme Ant, the mighty and infinite Ant, whose body is so great that we cannot see it, whose shadow is so vast that we cannot trace it, whose voice is so loud that we cannot hear it; and He is omnipresent."

When the third ant spoke thus the other ants looked at each other and laughed.

At that moment the man moved and in his sleep raised his hand and scratched his nose, and the three ants were crushed.

The Two Learned Men

Last Week I got a Omnibus of Khalil Gibran, at a random read I got this.

The Two Learned Men
==================

Once there lived in the ancient city of Afkar two learned men who hated and belittled each other's learning. For one of them denied the existence of the gods and the other was a believer.

One day the two met in the marketplace, and amidst their followers they began to dispute and to argue about the existence or the non-existence of the gods. And after hours of contention they parted.

That evening the unbeliever went to the temple and prostrated himself before the altar and prayed the gods to forgive his wayward past.

And the same hour the other learned man, he who had upheld the gods, burned his sacred books. For he had become an unbeliever.

Thursday, December 13, 2007

Programming Books with Category

From the Bottom Up

This list is in the best reading order I could find. It’s not necessarily easiest to
hardest, but based on subject matter.

• Programming from the Ground Up by Jonathan Bartlett
• Introduction to Algorithms by Thomas H. Cormen, Charles E. Leiserson, and Ronald L. Rivest
• The Art of Computer Programming by Donald Knuth (3 volume set - volume 1 is the most important)
• Programming Languages by Samuel N. Kamin
• Modern Operating Systems by Andrew Tanenbaum
• Linkers and Loaders by John Levine
• Computer Organization and Design: The Hardware/Software Interface by David Patterson and John Hennessy

From the Top Down

These books are arranged from the simplest to the hardest. However, they can be
read in any order you feel comfortable with.

• How to Design Programs by Matthias Felleisen, Robert Bruce Findler, Matthew Flatt, and Shiram Krishnamurthi, available online at http://www.htdp.org/
• Simply Scheme: An Introduction to Computer Science by Brian Harvey and Matthew Wright
• How to Think Like a Computer Scientist: Learning with Python by Allen
Downey, Jeff Elkner, and Chris Meyers, available online at http://www.greenteapress.com/thinkpython/
• Structure and Interpretation of Computer Programs by Harold Abelson and Gerald Jay Sussman with Julie Sussman, available online at http://mitpress.mit.edu/sicp/
• Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides
• What not How: The Rules Approach to Application Development by Chris Date
• The Algorithm Design Manual by Steve Skiena
• Programming Language Pragmatics by Michael Scott
• Essentials of Programming Languages by Daniel P. Friedman, Mitchell Wand, and Christopher T. Haynes

From the Middle Out

Each of these is the best book on its subject. If you need to know these languages,
these will tell you all you need to know.
• Programming Perl by Larry Wall, Tom Christiansen, and Jon Orwant
• Common LISP: The Language by Guy R. Steele
• ANSI Common LISP by Paul Graham
• The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie
• The C++ Primer by Stanley Lippman
• The C++ Programming Language by Bjarne Stroustrup
• Thinking in Java by Bruce Eckel, available online at http://www.mindview.net/Books/TIJ/
• The Scheme Programming Language by Kent Dybvig
• Linux Assembly Language Programming by Bob Neveln

Specialized Topics

These books are the best books that cover their topic. They are thorough and
authoritative. To get a broad base of knowledge, you should read several outside of
the areas you normally program in.
• Practical Programming - Programming Pearls and More Programming Pearls by Jon Louis Bentley
• Databases - Understanding Relational Databases by Fabian Pascal
• Project Management - The Mythical Man-Month by Fred P. Brooks
• UNIX Programming - The Art of UNIX Programming by Eric S. Raymond, available online at http://www.catb.org/~esr/writings/taoup/
• UNIX Programming - Advanced Programming in the UNIX Environment by W.Richard Stevens
• Network Programming - UNIX Network Programming (2 volumes) by W.Richard Stevens
• Generic Programming - Modern C++ Design by Andrei Alexandrescu
• Compilers - The Art of Compiler Design: Theory and Practice by Thomas Pittman and James Peters
• Compilers - Advanced Compiler Design and Implementation by Steven Muchnick
• Development Process - Refactoring: Improving the Design of Existing Code by Martin Fowler, Kent Beck, John Brant, William Opdyke, and Don Roberts
• Typesetting - Computers and Typesetting (5 volumes) by Donald Knuth
• Cryptography - Applied Cryptography by Bruce Schneier
• Linux - Professional Linux Programming by Neil Matthew, Richard Stones, and 14 other people
• Linux Kernel - Linux Device Drivers by Alessandro Rubini and Jonathan Corbet
• Open Source Programming - The Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary by Eric S. Raymond
• Computer Architecture - Computer Architecture: A Quantitative Approach by David Patterson and John Hennessy

Further Resources on Assembly Language

In assembly language, your best resources are on the web.
• http://www.linuxassembly.org/ - a great resource for Linux assembly language programmers
• http://www.sandpile.org/ - a repository of reference material on x86, x86-64, and compatible processors
• http://www.x86.org/ - Dr. Dobb’s Journal Microprocessor Resources
• http://www.drpaulcarter.com/pcasm/ - Dr. Paul Carter’s PC Assembly Language
• http://webster.cs.ucr.edu/ - The Art of Assembly Home Page
• http://www.intel.com/design/pentium/manuals/ - Intel’s manuals for their processors
• http://www.janw.easynet.be/ - Jan Wagemaker’s Linux assembly language examples
• http://www.azillionmonkeys.com/qed/asm.html - Paul Hsieh’s x86 Assembly Page

The Argument

An interesting argument.... between XXX and YYY ....

Guess, who is XXX and YYY ..... ?

XXX (1:34:20 PM): Do not deceive yourselves. If any one of you thinks he is wise by the standards of this age, he should become a "fool" so that he may become wise. 19For the wisdom of this world is foolishness in God's sight.
YYY (1:34:57 PM): All I'm talking is science
YYY (1:35:04 PM): nothing more than that
XXX (1:35:18 PM): yes you're talking about unprovable science
YYY (1:35:49 PM): I don't believe in any Dogma
XXX (1:36:51 PM): I don't believe in any science that is unprovable and is only a theory
XXX (1:37:24 PM): And dont call theory as a science. its theory and NOT science
YYY (1:37:31 PM): yes, every scientist/science had this problem
YYY (1:37:58 PM): people just want to stick to thier confortable thinking
XXX (1:38:08 PM): Yes thats what I say to you too
YYY (1:38:10 PM): they just don't think out of the box
XXX (1:38:23 PM): You wouldn't like to consider what I am saying bgut stcking on to your own
XXX (1:38:52 PM): And I say again, if you have verifiable proof to what you say I will consider. But talk theory as science
XXX (1:39:00 PM): I mean Dont talk
YYY (1:40:07 PM): once upon a time, man going to moon is also called impossible and not proven
YYY (1:40:15 PM): but time changed
XXX (1:40:19 PM): Yea talk it after you prove
XXX (1:40:28 PM): dont talk before you prove
YYY (1:40:32 PM): It is not for you
YYY (1:40:51 PM): you should have common sense to buy it or not
XXX (1:41:19 PM): You told about science and what you're saying is only theory
XXX (1:41:42 PM): I just need common sense to differentiate what u're talking is science or theory
YYY (1:41:54 PM): yes, first it will be theory and then it will become science
XXX (1:41:54 PM): And call theory as theory and science as science. dont mix both
XXX (1:42:06 PM): Hmm...
YYY (1:42:13 PM): se the history
XXX (1:42:21 PM): Good hope...
YYY (1:42:26 PM): for you too
XXX (1:42:39 PM): what shud I see in history?
YYY (1:42:45 PM): atleast science can be proven
YYY (1:42:52 PM): but not god
XXX (1:42:58 PM): yea thats what I say prove it
YYY (1:43:01 PM): god can't be proved
XXX (1:43:12 PM): Dont force your thing on others before u prove
YYY (1:43:36 PM): there is no god
XXX (1:43:46 PM): There is no evolution
YYY (1:44:49 PM): XXX, did you have biology in your studies ?
YYY (1:45:00 PM): in 10th standard
YYY (1:45:09 PM): which group in +2 are you ?
XXX (1:45:17 PM): why u're asking
YYY (1:45:31 PM): for "XXX (1:43:46 PM): There is no evolution"
XXX (1:45:42 PM): Yes there is no evolution
XXX (1:46:07 PM): Thats because it appears in some science text books, it is not science
YYY (1:46:13 PM): go back to your schooling
XXX (1:46:23 PM): I was never given proof
YYY (1:46:35 PM): did you write the exam ?
XXX (1:46:41 PM): yes...
YYY (1:47:00 PM): did you give the answer abt evolution ?
XXX (1:47:11 PM): No, it wasn't asked :)
YYY (1:47:11 PM): or you answered it differently ?
YYY (1:47:26 PM): ok, atleast you studied
XXX (1:47:32 PM): No either
XXX (1:47:41 PM): I asked you for proof you have any?
YYY (1:48:14 PM): Answer: go for schooling
YYY (1:48:18 PM): one more time
XXX (1:48:20 PM): It requires me great faith to believe something came out of nothing than to believe something came out of something
YYY (1:48:51 PM): it is not something came out of nothing
XXX (1:49:11 PM): mmm
XXX (1:49:20 PM): How did the universe came into existence then?
YYY (1:49:33 PM): then god is also nothing ????
YYY (1:49:53 PM): God came from Nothing ?
XXX (1:50:41 PM): God created time, space, matter. All that I see now. God hasn't given me the intelligence to comprehend beyond this. When I meet him I will find it out
YYY (1:51:08 PM): my question is simply
YYY (1:51:15 PM): who created GOD
YYY (1:51:31 PM): do you have answer ?
XXX (1:51:35 PM): My question is who created universe?
XXX (1:51:39 PM): do you have answer?
YYY (1:52:24 PM): Universe came out of Big Bang
YYY (1:52:47 PM): do you have any such theory ?
YYY (1:52:50 PM): for GOD
XXX (1:53:06 PM): who created big bang?
XXX (1:53:15 PM): Or who initiated
XXX (1:53:24 PM): and how did matter come into existence
YYY (1:53:32 PM): XXX, I answered yours
YYY (1:53:37 PM): you answer mine
XXX (1:53:39 PM): Not yet
YYY (1:53:43 PM): who create GOD
XXX (1:53:46 PM): Who initiated big bang
XXX (1:53:56 PM): How did matter come into existence
YYY (1:53:57 PM): atleast give some theory ?
XXX (1:54:14 PM): You didn't answer mine.
YYY (1:54:15 PM): you don't have any ?
XXX (1:54:22 PM): you answer me then I will
XXX (1:54:52 PM): You give me a thory for big band and the existence of matter then I will
YYY (1:55:03 PM): XXX
YYY (1:55:15 PM): the basis of any religion is GOD
XXX (1:55:22 PM): forget that
XXX (1:55:31 PM): I am talking abt big bang and matter
XXX (1:55:34 PM): tell me first
YYY (1:55:36 PM): but you don't know who create your GOD
XXX (1:55:51 PM): And you dont know how matter came into existence
YYY (1:55:52 PM): does it not given in your Book ?
XXX (1:56:09 PM): tell me first
XXX (1:56:44 PM): Is there any proof in the entire universe where matter came out of nothing?
XXX (1:56:55 PM): You at least need a photon dude!
XXX (1:57:12 PM): And how did the first photon originate?
YYY (1:57:12 PM): at least Science have some answers, but religion dont have any ???
XXX (1:57:20 PM): What answer??
XXX (1:57:30 PM): You asked me abt God and I asked you about matter
XXX (1:57:43 PM): It is more correct to say that both have no answer
YYY (1:58:27 PM): atleast science is digging deeper
YYY (1:58:32 PM): but religion is not
YYY (1:58:39 PM): it is blind
XXX (1:58:41 PM): yes dig deep and tell me how matter came into existence
XXX (1:58:58 PM): Atleast science is blind too in terms of origin of matter
XXX (1:59:04 PM): That is primary to any science
YYY (1:59:07 PM): atleast you can see matter
YYY (1:59:17 PM): but can you see god ???
YYY (1:59:23 PM): ok
YYY (1:59:27 PM): I don't see any god
XXX (1:59:29 PM): I am not asking abt matter, I am asking abt its origin
XXX (1:59:39 PM): I can see God's creation for sure
YYY (2:00:00 PM): but who is god ?
YYY (2:00:07 PM): do you say
YYY (2:00:14 PM): MATTER = GOD ?
XXX (2:00:16 PM): Isn't it best to conclude that both of us follow religion
XXX (2:00:21 PM): NO
XXX (2:00:31 PM): Matter is God's creation
YYY (2:00:35 PM): GOD create WORLD
YYY (2:00:49 PM): WORLD is made up of MATTER
YYY (2:00:58 PM): so GOD = MATTER
XXX (2:01:04 PM): Hey I admit mine is religion will you admit yours? If not give me proof of origin of matter
YYY (2:01:43 PM): matter and energy always existed
YYY (2:01:47 PM): like your GOD
XXX (2:01:50 PM): hmm
XXX (2:01:55 PM): Isn't it religion
XXX (2:02:07 PM): aren't both of us following religion?
YYY (2:02:10 PM): if it is religion
XXX (2:02:14 PM): Why do u call ur religion science?
YYY (2:02:18 PM): you will chatting like this
YYY (2:02:33 PM): there might have been no invention
YYY (2:02:36 PM): nothing
XXX (2:02:38 PM): hmm
YYY (2:02:45 PM): we will in complete darkness
XXX (2:02:47 PM): Isaac Newton wrote abt God more than science
YYY (2:03:11 PM): and Einstien also
YYY (2:03:16 PM): carl sagan also
YYY (2:03:26 PM): everybody
YYY (2:03:29 PM): I also
YYY (2:03:31 PM): I say
YYY (2:03:36 PM): MATTER = GOD
YYY (2:03:51 PM): Matter create the world
XXX (2:03:53 PM): This is ur assumption dude
XXX (2:03:58 PM): Who created matter
XXX (2:04:28 PM): I dont know who created God and you dont know the origin of matter
YYY (2:04:35 PM): does your God is male or female ?
XXX (2:04:36 PM): We both are following religion
XXX (2:04:54 PM): That doesn't matter and it is outside of our context
YYY (2:05:03 PM): what is he made out of
YYY (2:05:10 PM): flesh ?
XXX (2:05:21 PM): Man answer mine I already told you I dont know
XXX (2:05:38 PM): Now only you'd have to admit you dont know too
YYY (2:05:52 PM): are you making any progress to research into
XXX (2:06:02 PM): Are you?
YYY (2:06:16 PM): we we are researching into matter
XXX (2:06:23 PM): hmm any findings?
YYY (2:06:25 PM): are you researching into god ?
YYY (2:06:27 PM): yes
YYY (2:06:29 PM): a lot
XXX (2:06:33 PM): tell me whats latest
YYY (2:06:50 PM): read abt String Theory
YYY (2:06:56 PM): what abt god ?
XXX (2:07:02 PM): hmm
XXX (2:07:13 PM): what does it tell about the origin of matter?
YYY (2:08:33 PM): matter composed of bosons, Glue balls
YYY (2:08:34 PM): etc
YYY (2:08:42 PM): what is God made up of ?
XXX (2:08:52 PM): how did boson originate
YYY (2:08:54 PM): water
YYY (2:08:56 PM): fire ?
YYY (2:09:00 PM): earth
YYY (2:09:10 PM): which chemical compoent
XXX (2:10:12 PM): how diod boson originate
XXX (2:10:21 PM): and which chemical component it contains?
YYY (2:10:32 PM): now, tell me something abt your god
YYY (2:10:52 PM): do he eat to live
YYY (2:10:53 PM): ?
XXX (2:10:58 PM): I said I don't know. Only you seem to be telling you know everything. Thats why I am asking you
XXX (2:11:14 PM): how did boson originate?
YYY (2:11:19 PM): research it
XXX (2:11:19 PM): What it is composed of?
YYY (2:11:35 PM): XXX, as I told you
YYY (2:11:47 PM): scientist are studing it
YYY (2:12:00 PM): we still have long way to go
XXX (2:12:26 PM): hmm... we've already researched for 100 years and still we dont know how matter and God originated
XXX (2:12:35 PM): I mean life, not god
XXX (2:12:53 PM): And any chances of finding that are 50/50
XXX (2:13:15 PM): Say for now that whatever you have is theory and don't claim it as science
YYY (2:13:59 PM): atleast we are going into that path of finding the origin of matter
XXX (2:14:20 PM): But where are you getting at?
YYY (2:14:21 PM): can you tell me, is there is any research going on for GOD
XXX (2:14:22 PM): No where
XXX (2:15:07 PM): Scientists would never even accept the notion of God existing and how do you expect them to research God?
YYY (2:15:19 PM): atleast did you make any attempt ??
XXX (2:15:20 PM): But if you want you can individually research him
YYY (2:15:36 PM): oh .. my god
YYY (2:15:49 PM): you don't know anything abt god
XXX (2:16:06 PM): I can tell you God exists and I spoke to him today morning but you wont believe it unless you know it personally
XXX (2:16:16 PM): And yes you dont know anything about the origin of matter
YYY (2:16:17 PM): thru phone ?
YYY (2:16:27 PM): do you have his number ?
YYY (2:16:36 PM): do you cann heaven ?
YYY (2:16:54 PM): do you call heaven ?
XXX (2:16:55 PM): Do you really think you're speaking logic?
YYY (2:17:03 PM): LOGIC
YYY (2:17:06 PM): my god
YYY (2:17:16 PM): XXX is speaking abt LOGIC
XXX (2:17:29 PM): Yes YYY too is talking abt it.. My God
YYY (2:17:30 PM): LOGIC says GOD=NOTHING
YYY (2:17:37 PM): do you take it ?
XXX (2:17:47 PM): Logic says something should create something
YYY (2:17:54 PM): It take SCIENCE=NOTHING
XXX (2:17:55 PM): do u take it?
YYY (2:18:00 PM): what abt you ?
YYY (2:18:07 PM): I take it
YYY (2:18:12 PM): science=nothing
YYY (2:18:17 PM): do you take
YYY (2:18:22 PM): god=nothing ?
YYY (2:18:27 PM): by LOGIC
XXX (2:18:37 PM): what do u mean by science is nothing?
YYY (2:19:29 PM): XXX, do you believe in miracles ?
XXX (2:19:45 PM): do you?
YYY (2:19:59 PM): answer me, first
YYY (2:20:04 PM): do you or not
XXX (2:20:07 PM): yes
YYY (2:20:10 PM): ok
YYY (2:20:18 PM): then don't talk abt LOGIC
XXX (2:21:23 PM): ok I never said I believe in logic. But since you believe I asked whether the questions you asked are logical?
YYY (2:24:41 PM): XXX, you are a contradiction
YYY (2:24:48 PM): either you hold
YYY (2:24:53 PM): Miracle
YYY (2:24:57 PM): or hold
YYY (2:25:06 PM): Logic
XXX (2:25:13 PM): ok do u believe in logic?
XXX (2:25:24 PM): Anyway we are deviating from topic
YYY (2:25:27 PM): ha ha ha ...
XXX (2:25:47 PM): You asked me some questions and I asked you whether they were logical
YYY (2:25:54 PM): Science created logic
XXX (2:26:06 PM): And of course u're definition of logic is different from mine
YYY (2:26:17 PM): No way
YYY (2:26:25 PM): Logic is same for all
XXX (2:26:35 PM): No it depends on your belief
YYY (2:26:38 PM): there is no Your Logic and My Logic
YYY (2:27:00 PM): do interchange Logic and Belief
XXX (2:27:01 PM): I believe God is all powerful and all knowing. He can do miracles. And that is logical
XXX (2:27:18 PM): If you belive in God it becomes logical if not it isnt
YYY (2:27:28 PM): Miracle is not Logical
XXX (2:27:44 PM): God does miracle because he has power and this is logical
YYY (2:28:33 PM): how many watt power ?
YYY (2:28:54 PM): you said:XXX (2:17:47 PM): Logic says something should create something
YYY (2:29:17 PM): now you say God can create something without something
YYY (2:29:30 PM): I mean Miracle
XXX (2:29:34 PM): But I said I dont believe in ur opinion of logic
YYY (2:29:47 PM): there is no "opinion of logic"
YYY (2:29:52 PM): there is only Logic
XXX (2:30:01 PM): The power is not measured by watts... It is similar to ur brain power
XXX (2:30:08 PM): hmm
YYY (2:30:10 PM): either you tautologies or contradict
XXX (2:30:17 PM): If God is all powerful he can do miracles
YYY (2:32:00 PM): Brain is a matter XXX
YYY (2:32:12 PM): it has chemical reaction
YYY (2:32:31 PM): what is that "Powerful" means
XXX (2:32:53 PM): Powerful to do anything
XXX (2:33:08 PM): Now if you ask me about Go, I have already told you I dont know.
XXX (2:33:27 PM): I believe he is all powerful all knowing and with that I can logically conclude he can do miracles
XXX (2:33:38 PM): But only you're not trying to admit you dont know
XXX (2:33:45 PM): Mine is a religion I admit
XXX (2:33:52 PM): And yours?
YYY (2:34:08 PM): You mean he is a Super computer who create the world
YYY (2:34:17 PM): and controls all events ?
XXX (2:34:17 PM): I said I dont know
YYY (2:34:28 PM): may be he is ?
XXX (2:34:34 PM): Since you seem to know everything can we talk about yours?

"Silence is an argument carried out by other means."
- Che Guevara (favorite Quote of Karadi)

Wednesday, December 05, 2007

Good Prayer for Daily Use

Good Quote

"Anything is possible. You can be told that you have a 90-percent chance or a 50-percent chance or a 1-percent chance, but you have to believe, and you have to fight."

Lance Armstrong

(Very good for my present situation)


Monday, November 26, 2007

Problems

Common Sense is not Common

There were once four learned and accomplished men. One day they said to themselves, "Of what use is all our learning if we do not seek the employment of a great king?" Accordingly, they set out for the capital.

Now among these four, three were particularly brilliant. The fourth was far inferior to the others in intellect, but he was the one with the most sense.

On the road, they came upon the skeleton of a lion. "Let us bring this lion back to life," proposed the first. "Yes, this will bring us great fame," agreed the second and third. The fourth one said, "If you bring this lion back to life, he will attack and devour you."

"Don't interrupt!" cried the first, who already used his superior knowledge to put flesh on the bones. The second quickly introduced blood, and the third was about to breathe life into the lion.

"We should think of safety," said the fourth.

"Quiet!" said the third from the depths of his labor.

"Well, then, I shall go sit in this tree," said the fourth. "Just in case."

The lion came back to life and killed the wise men. The only one who survived was the man with common sense.

Courtesy: Link

Sunday, November 11, 2007

This Week Quotes

To be alive, to be able to see, to walk,...it's all a miracle.
-- Arthur Rubinstein (1887-1982) Polish Pianist

"The more you praise and celebrate your life, the more there is in life to celebrate."
-- Oprah Winfrey

People call me an optimist, but I'm really an appreciator....When I was six years old and had scarlet fever, the first of the miracle
drugs, sulfanilamide, saved my life. I'm grateful for computers and
photocopiers...I appreciate where we've come from.

-- Julian Simon (1933-1998) American Academic

"At the center of your being you have the answer; you know who you are and you know what you want."
-- Lao Tzu

A prudent man will think more important what fate has conceded to him, than what it has denied.

-- Baltasar Gracian (1601-1658) Spanish Philosopher

"Nothing is worth more than this day. You cannot relive yesterday. Tomorrow is still beyond your reach."
-- Johann Wolfgang Von Goethe

"A real decision is measured by the fact that you've taken a new action. If there's no action, you haven't truly decided."
-- Tony Robbins

Wednesday, November 07, 2007

Spiral Matrix Program

My Spiral Matrix Program

#include < stdio.h>

#define UP 0
#define LEFT 1
#define DOWN 2
#define RIGHT 3

int getele(int *arr, int x, int y, int size) {

int pos=(x*size)+y;
return arr[pos];
}

int setele(int *arr, int x, int y, int data, int size) {

int pos=(x*size)+y;
arr[pos]=data;
}

void setspiral_worker(int *arr, int x, int y, int data, int size, int dir) {

if(data==1)
setele(arr, x, y, data, size);
else {
setele(arr, x, y, data, size);
dir=check_change_dir(arr, x, y, size, dir);
if (dir == UP) {
x--;
} else if (dir == LEFT) {
y--;
} else if (dir == DOWN) {
x++;
} else if (dir == RIGHT) {
y++;
}
setspiral_worker(arr, x, y, data-1, size, dir);
}
}

void setspiral_driver(int *arr, int size) {

setspiral_worker(arr, size-1, size-1, size*size, size, UP);
}

int check_change_dir(int *arr, int x, int y, int size, int dir) {

if (dir == UP) {
x--;
} else if (dir == LEFT) {
y--;
} else if (dir == DOWN) {
x++;
} else if (dir == RIGHT) {
y++;
}

if (x>=0 && x<=size-1 && y>=0 && y<=size-1
&& getele(arr, x, y, size) == 0)
return dir;
else
return (dir+1)%4;
}

int main() {
int oper=UP;
int size;
int i,j;

int *matrix;

printf("Enter the size:");
scanf("%d", &size);

matrix=malloc(size*size);

for(i=0; i < size ;i++)
for(j=0; j < size;j++)
setele(matrix, i, j, 0, size);
setspiral_driver(matrix, size);
for(i=0; i < size;i++) {
for(j=0; j < size;j++)
printf("%4d\t",getele(matrix, i, j, size));
printf("\n");
}
return 0;
}