வீரப் பயணம்!!!

நம் இந்திய சரித்திரத்தில் இரு வேறு பக்கங்களை எதிர்கொண்ட புராணங்கள்: இராமாயணம் மற்றும் மகாபாரதம். இராமாயணம் கடல் கடந்து நடந்த மாபெரும் போராட்டம்.  இப்புராணமோ ஒரு முழு நிறைவான சிறந்த கொள்கை உடைய மனிதனின் தன்மையை எடுத்துக்காட்டும். மற்றொரு புராணமான மகாபாரதம் நியா தர்மங்களை  புகட்டும். இந்த இரு புராணங்களுக்கும் ஒரு ஒற்றுமை என்றால் அது இராமர் மற்றும் கிருஷ்ணர்(விஷ்ணுவின் அவதாரங்கள்) தெய்விகதன்மையை உணர்த்தும் செயல்பாடுகள்.

இப்பதிப்பின் முலம் ஒரு மறக்கப்பட்ட, சில வாசகங்களில் மட்டும் தோன்றும் வீரச் சரிதிரத்தை உங்களுக்காக வழங்குகிறேன். பதினெட்டு நாட்கள் நடந்த குருஷேக்திர போரில், பாண்டவர்கள் வெற்றி பெற்றது அனைவரும் அறிந்ததே. கால போக்கில் பாண்டவர்கள் எவ்வாறு வெற்றி பெற்றனர் என்பது மண்ணோடு மண்ணாகி விட்டது. பாண்டவர்களுடன் கிருஷ்ணர் இருந்ததே வெற்றியின் காரணமாக சில புராணத்தில் கூறபடுகிறது. ஆனால் கிருஷ்ணரோ தேவகியின் மகன்தான். அவர் கடவுளாக எங்கும் தோன்றவில்லை. இந்நிலையில் வெற்றி பெற்றதுக்கு பெரிதும் உதவியாக இருந்தது ஒரு உயிரின் முடிவு. அவன்தான்  அரவான்.

அரவான் என்றால் முப்பற்றிரண்டு பல்வேறு பண்புகளுடைய துணிவான இளைஞன். அந்த இளைஞனின் கசபேறிய ஏகாந்தம் இது. அம்பெரிதலில் திறமை வாய்ந்த அர்ஜுனனின் மகன்தான் அரவான். அர்ஜுனன்க்கு அரவான் என்று ஒரு மகன் இருந்தது ஆச்சிரியம் என்றால், அரவானின் தாயார் மற்றொரு அதிர்ச்சி. அர்ஜுனன் மீது காதல் கொண்ட நாக வம்சத்தின் ராஜகுமாரியான உலுப்பி என்றே நாக பெண்மனியே அரவானின் தாயார். சில வருடங்களில் குருஷேக்திர போர் ஆரம்பிக்கவிருந்தது.

இச்சமையத்தில் நாம் அறிந்து கொல்ல வேண்டிய ஒரு விவரம் உள்ளது. ‘களபலி’. முன்பு அரசர் ஆட்சியில் போருக்கு தயாராகும் விதமாக, போர்களத்திற்கு பலி குடுக்கும் வழக்கம் இருந்து வந்தது. இதில் பலியாகும் உயிர் மோச்சமடையும் என்றும் ஒரு நம்பிக்கை தொண்டு தொட்டு வருகிறது.

போருக்கு சில நாட்கள் மட்டுமே இருந்த நிலையில், பாண்டவர்களில் ஒருவரும் கைதேர்ந்த சோதிடருமான, சகாதேவனிடமிருந்து களபலி, மறு நாளான அம்மாவாசை அன்று, குடுபதற்ககான உகர்ந்த சமயம் என்பதினை அறிந்து கொள்கிறான்.

எனவே, அரவானை பலியாளாக சம்பந்தம் கோரினான். அரவான் ஒப்புகொண்டான். இதை அறிந்த கிருஷ்ணர், அரவானை கௌரவர்களுக்கு இல்லாமல் பாண்டவர்களுக்காக பலி குடுப்பதே மேல் என்று உணர்ந்து, திடம் தீட்டி சம்பதிக்க வைத்தார். யுதிச்டரிடம் இதனை சுட்டிகாட்டி, காலிக்கு ஆயுதபூஜை அன்று அரவானை பலி குடுகும்படி எடுத்துரைத்தார்.

அனால் பெருந்தேவனார் எழுதிய மகாபாரதத் தமிழ் பதிப்பான பாரத வெண்பாவில் கௌரவர்கள் அம்மாவாசை அன்று ஒரு வெள்ளை யானையை பலி குடுத்தனர் என்கிறது. இதனை எப்படி ஈடு செய்வதென்று தெரியாமல் இருந்தனர் பாண்டவர்கள். அப்போது கிருஷ்ணர், இரு உயிரினகளின் பிறப்பான அரவானை பலி குடுக்கும்படி யோசனை கூறுகிறார்.

அரவானின் மரணமும் பல்வேறு வடிவங்களில் சொல்லபடுகிறது. ஒவ்வொன்றாக காணலாம்.

பதிப்பு ஒன்று: அரவான் கிருஷ்ணரிடம் தான் போர்க்களத்தில் ஒரு சிறந்த வீரனால் வீர மரணம் அடைய வேண்டும் என்ற வரத்தை வேண்டியதாக கூறப்படுகிறது. அவ்வாறே அரக்கன் அலம்பூசன் அரவானை கொல்கிறான்.

பதிப்பு இரண்டு: தான் பதினெட்டு நாள் நீடிக்கும் போரினை காண வேண்டும் என்பது அரவானின் ஆசை. எனவே அரவானின் தலை கொய்யப்பட்டு போர்களத்தில் வைக்கபடுகிறது.

பதிப்பு மூன்று: தான் பலியாக போகிறோம் என்று அறிந்த அரவான், தான் இறக்கும் முன்பாக திருமணம் செய்து கொல்ல வேண்டும் என்று ஆசை படுகிறான். இந்த ஆசையை நிறைவேற்ற கிருஷ்ணர் மோகினி என்ற பெண்ணாக அவதரிக்கிறார்.

இப்போது அரவான் என்பவர் யாரென்று அறிந்து கொல்லும் சமயம். இவர் நம் எல்லோருக்கும் அறிந்தவரே. கிருஷ்ணரின் உத்தரவின்படி அரவான் தலை வெட்டப்பட்டு கரபரிகா  என்ற ஆற்றில் எறியப்பட்டது. அதில் குழைந்த வடிவம் பெற்று காரபாலனாக சந்திரகிரி நகரின் அரசனால் வழக்கபட்டார். பின்னர் அரக்கன் கூத்தசூரனயை கொன்றதன் மூலம் கூவகம் எனும் ஊரில் கூத்தாண்டவராக காட்சி அளிக்கிறார்.

இவ்வாறு ஒரு கதையை படமாகியமைக்கு இயக்குனர் வசந்த பாலன் மற்றும் கதையாசிரியர் ச.வெங்கடேசனுக்கும் நன்றி!!!

English – version: Journey of Valor

The view of Fate upon us..

Its been a long time since I wrote on this page. Now I am back because to share what I had felt over a few days now. Everyone of us have at some point of time called some event is purely due to fate that has been written long back when we were born. May be this is an excuse for people to justify our actions. The fact we miss is that ‘Every event is triggered by an action’. An action is set of subsequent activities that a person does with all his conscious.

Where does this fate come in when the person, who does the activities, decides what is to be done? Is there any fate at all in first place? Everyone in this universe is given choice to be made. A wise person chooses appropriately and the remaining chooses wrongly and is been driven away in name of fate. Choices are provided only when we yearn for choices. Choices made are responsible for our fate.

Are we all given the same choices to make in all circumstances? For example, what if a person is locked up in a room with no doors full of deadly poisonous reptiles? Is this really what fate means? But then having a life full of choices doesn’t make senses. Sometimes we do end up with no choice but to do what we do better. What we do when we are cornered with nothing else to do. Take a strong decision with the available choice though life-threatening.

Will is the energy what makes us take action. Action depends on choices made. A right choice creates the energy of Will. This circle of life defines the fate. Rightly said, “Life is a circle. Everyone has to come back to start. The way we come back defines us.”

Happy Independence Day :)

This very day, 64 years ago, a light with three colors was lit up over our country which continues to glow in everyone’s heart to this day. It was a torch that was taken with peace and endurance and has guided us through lot of struggles and people have shed  blood to secure it. But there are 1.2 billion in this country, do all of us really get this freedom and savour the Independence got? Certainly not.

When God forgot to give a switch to those lights and people forgot to pour in oil preventing it from going out. Still the page in The Hindu reads, ‘We’re Independent, yet many shackles’. Though it is pathetic to hear this, this is true that many do not really cherish the independence but think it was a baton passed various hands and still some can’t see the light and feel it is far from achieving it.

Anna Hazare stated, “People of India still have not got independence after 64 years”. Till now, there is lot of children still roaming in streets with no proper education. Child employment, yet prevails.  Worst of all, sati and Infanticide are practiced in most part of rural areas and has become part of their killings. Corruption has become part of everyone’s life everyday. Power and Money has driven people lunatic.

Is this just a day to celebrate and cherish. This is a day when we feel from our heart that we are free. This is the day we should be proud of our ancestors who have made this country what it is today. Happy Independence day to all Indians around…. Live
and Let Prosper!

Is my nation corrupt – Part II?

Hi everyone, I am now going back to complete my first blog. To complete the events that went by a month back. Every system was unstable to become stable. Are we really stable now or atleast moving towards being stable? We will see in another month or so. Will we get our second independence as Anna says, or is it prompt to call it second freedom movement?

The sequence of dramatic events which influenced the entire country, with an intense publicity to Baba Ramdev was the worst implication of Country India. Baba got a red carpet welcome when he reached Delhi through a chartered flight. The government made all measures to withdraw his call on fasting till death against corruption. The Finance minister, Pranab even negotiated with him. But Baba never moved, He started fasting.

Two days through the fast, government agreed to give a written assurance. But the written form didn’t attribute anything towards the Black money issue. Does that mean government is not ready to take away the black money? So Baba resisted to call-off the fast. Finally the police raid at Ramila grounds at midnight removed Baba from his fast, but not before a struggle. Baba tried escaping from the scene disguising as a hurt lady in a white salwar kameez. But he was taken away with force to Haridwar where he fasted for 6 more days before his health got deteriorated.

How the whole scene got politicized? The ramila grounds incident was highly politicized by BJP and BSP. They announced a Dharna at Rajghat where Sushma Swaraj danced for a song. Congress capitalized on it saying, she insulted the place. Sushma came back with a reply as she danced to a patriotic song.             So Congress when organized for a press meet after the incedent, Dwivedi came out to speak. A Jaipur school teacher, disguised as a journalist, hits him with the shoe. He also exclaimed at Congress, for not having a strong opposition party in the country. The congressmen beating the school teacher was rejoiced by the BJP when it was broadcasted.

Congress came out with some weird explanations for their acts. They called Anna and Ramdev to be faces of RSS. When Kiran called Anna as Mahatma, Congress perceived it as an insult to Gandhiji.  Anna termed the government’s draft of Lokpal to be a joke on People of India. At this phase, India is through its monsoon session where the Lokpal is expected to be showcased or the government meets Anna in the battle of Freedom and Corruption.

But are we all corrupt free? A licence requires just 500 and a House registration requires 10k. And people are ready to give it to make the process faster. With such a condition prevailing around, When will be actually corrupt-free? People see it as a facilitator and the corruption is a leverage given. So, why will we need this when the process automatically happens faster? But, Why doesn’t this happens fast? Who is the reason? Is it our system or our Government or the people running the government? THINK.

A World of Pointers, though a small one

This is my first technical post in this series of the blogs. Hope everyone gets something out of it. I chose this topic because this is been my favourite and my inspiration to explore the course I am pursuing currently. For some it may seem like a well well-dug by himself to fall inside. To some it is walking on thorns. People have far gone to even write books called ‘Pitfalls in pointers’. Whenever I read this title, I really enjoy what pointers have done to people. Now, Let us start with the basics of pointers.

In any programming language, they are variables which are to be stored in memory during the execution. These variables are the data values used by the program and occupy a memory location. Each of these memory locations has an address. Each address is specific to a single byte. Whenever a variable is accessed, the data is getting accessed from this addressable memory (forget about caching). ‘Is there any way to access this memory location without accessing the variable?’ is the question to be asked to get the answer as ‘Pointers’.

So, what is a pointer? A pointer is a variable which stores address of other variables instead of data values. But what is the use of this? This pointer variable points to the memory location to which it has been initialized or assigned.

Simple example:
int n = 10;
int *ptr = &                     //this means the address of variable ‘n’ is assigned to ptr

Now we can access the variable ‘n’ either by using ‘n’ or ‘*ptr’.

Operators

The * is called the dereference operator, returns the value pointed by the variable. The & is called the address of operator, returns the address location occupied by the variable. Both of these are unary operators. So, &n returns the address of the variable ‘n’ and it is been assigned to the pointer variable ‘ptr’. Just ‘ptr’ returns the address of ‘n’ whereas ‘*ptr’ returns the value stored in the variable.

Pointer Types

1)     int *p;                  //A normal pointer which can point to a integer variable.

2)     void *p;                //A  pointer which can point to any data type.

3)     int *p[10];           //An array of pointers. This declaration consists of 10 pointers which can point to 10 other variables.

4)     int (*p)[10]         //A pointer that points to an array of 10 elements.

5)     int **p;                 //A ‘double’ pointer points to another pointer variable which in turn points to a normal variable. This is double dereferencing. This can be extended to any levels.

Poniters and Functions

1)     int *func(char c);           //A function that takes a character as input and returns a pointer to an integer.

2)     int func(char (*c)[]);       //A function taking argument as a character pointer pointing to a character array.

3)     int (*func)(void);           //A pointer to a function which takes no argument and returns an integer.

                    Example:
                         int normal_function(void);
                         func = normal_function;
                         int n = (*func)();

4)     int (*func[10])();         //An array of function pointers.

Pointers and Arrays

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

&a[0], a, &a gives the address of the first element. *a, a[0] gives the value of first element.

2)     Arrays are passed in function as references.

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

a, a[0], &a[0], &a, *a gives the address of the first element of first row. *(a+1), a[1], &a[1], a+1 gives the address of the first element of second row.

4)     int a[2][3] = {1, 2, 3, 4, 5, 6}; int *p = a;

p points to first element of the array. Since it is a single pointer, it is treated as pointing to one-dimensional array.

Pointer Arithmetic

Example:
int n = 10;
int *p = &n;

1)     *p++;                    //returns the value pointed by p and increments the address in p.

2)     (*p)++;                 //returns the value pointed by p and increments the value in p.

3)     *++p;                    // increments the address in p and return the value pointed by p.

4)     ++*p;                    //increments the value pointed by p and returns that value.

5)     P++;                       //increments the address in p.

The address increment increments based on the pointer type. For integer, it increments by 2 bytes.

Pointers and Pitfalls

So I am ending this post with what I started. Whether these pitfalls considered are really pitfalls. Why and Why not?

1)     Dangling Pointer
Suppose a pointer is pointing to some memory location and that variable is getting deleted. What happens to the pointer variable? It still contains the address to which previously it was pointing. That is, the pointer is pointing to a location which is not available. This is called dangling pointer. This can be solved by assigning NULL to the pointer and then deleting the variable.

2)     Wild Pointer
A pointer which just gets declared without any initialization points to some random memory. This is called wild pointers. This often leads to segmentation fault. Always initialize the pointers with a NULL.

3)     Pointers and NULL

           Example:
           int *n = NULL; char *str = NULL;

Both these pointers point to nothing, yet it stores a value 0x0000. Accessing them leads to either a null reference error or a segementation fault. This depends on the platform used.

PS: Hope the above things are correct to my knowledge. If anything you find intriguing, leave me a message.

Missing You Guys :(

Hi people, This is a blog post which I am writing on my return journey from Hyderabad to Coimbatore. Its been after two  wonderful months at Microsoft, I am getting back to my college. Its been an awesome experience. Loved every part of it. This is would be a small note of my memoirs with awesome eight people at Microsoft other than work part.

Thanks to Sudharsan, Rohan, Harini, Nidhi, Sharavani, Bhumil, and Swati who had made it a most memorable internship as a  whole. In my initial days, I was hesitant about the social friendliness amongst people. I thought it not even my place to be. But these people had proved me wrong. Everyone had great impression about Microsoft except me:D As time went by, We all became very close and we enjoyed the internship thoroughly. I am happy at the end to be with you guys.

The best hangout spot for all of is the Pool table at 7th or 8th floor. We never knew the rules of pool except some, neither i played it as a sport. Never can forget that all happened at pool table. Either Sharavani wanted the play the opening shot. Nidhi wants to play for both the team. Swati, who rarely comes to play. Harini, the player who perfected her play with each shot. Sudharsan who wanted to claim continuous streak of balls, aiming for second ball before playing the first. Bhumil, the unsung hero, played at his
best. And the real Hero, Rohan, whose aim was always been middle pocket which has been a doom to me. The pool games everyday after lunch provided a platform for us to know eachother.

The next important and funniest moments is our travel. We always travel about 22kms from Microsoft to watch movie. So, with eight of us, The best vehicle we could hire was an auto 😛 Six to eight in auto for more than a hour travel really proved a enjoyable ride. This is the place all nonsense talks goes on the ramp. Everyone’s imagination would beat Microsoft’s best inventions
of this era. Harini’s interpretation of any tamil sentence. The place where everyone tries to tease others safe-guarding them. But as time passed, they wanted to teased with other persons. Harini and Sharavani’s vocal proved worthy to hear.

This is just an abstract of whatever came to my mind in a surge. Seriously missing you all. 😦 Hope we meet really really soon.

Is our nation so corrupt? – Part 1

This blog is supposedly a sequence of events that made a wave across the country a week back. Just months after 2G scam rocking the whole of India, social activist, Anna Hazare made the nation and the government realize the corruption in our country, by his fasting, Here is another person with lot of following in north India fasted for the same reason. None other than Baba Ramdev himself.

Anna implied the importance of Lokpal bill for our country, while the latter wanted to create a ‘sena’ (Army) to make a defense. Is he building his defense army to overthrow the government and It would act as a blockade when the police come into  party during Baba’s fasting. It all started with the world-famous loot by Mr. Raja, the then telecom minister of whopping 1.70 lakh crore rupees. He and his acquaintance may be in Tihar jail. But the issue is not settled as every man in India has realized the capability of the ministry on board. This has triggered people like, Anna, Kiran Bedi to fight against corruption. The UPA government is ready to pass the Lokpal bill by the end of this parliamentary session.

Suddenly a yoga master, Baba Ramdev, emerges from nowhere and asks for certain rights which can be never possible in any of the country. [http://www.thehindu.com/todays-paper/article2072503.ece].For example, Death for corrupt. Our country is a place known for its ahimsa. Here a guru, a preacher asking for death sentence.

Next one, everyone is gonna love it. Bringing income-tax details under the right to information act. Baba charges money
for appearances, close meeting, to be a guest at one’s home. The rate ranges from 10000 to one crore rupees. Kolkata industrialist Hariram Garg, a follower of Baba since 1986, reveals some shocking facts. “If you want blessings from the Baba within close proximity, it will cost you Rupees 10,000 to Rupees 50,000. If you want him to distribute prasad at your home, be ready to pay somewhere between Rupees 50,000 to Rupees 1 lakh. The icing on the cake is that if you want him to stay at your house, you don’t get rent, instead he will have to be paid anything from Rupees 5 lakh to Rupees 20 lakh. Moreover, to be a part of a shivir, the charge is Rupees 1 crore.” Moreover He doesn’t have proper accounts for it. He always uses a chartered flight to travel places. How come a yoga guru earn this much and have no proper accounts. And he asks for openness. [http://ibnlive.in.com/news/ramdev-charges-for-blessings-exfollowers/158028-3.html]

PS: This issue needs a lot more parts to complete the blog. wait for updates.