Monday, April 20, 2009
Vikram and Baetal - Through the looking glass
A long time ago , in the illustrious kingdom of Ujjaini lived the ascetic Dayananda that exuded sanctity that he was fabled to levitate during his meditation. One day during his meditation, his soul left his body and astrally projected itself, and in this state of enlightenment, he could travel without boundaries, uninhibited by physical barriers to the very ends of the cosmos. He decided to use his power for the good of the village and its people.
One day a woman came to him holding her daughter in her arms; the child was sick and unconscious. Dayananda consoled the mother and began to meditate, he reached the point of astral projection and left his own body and entered the child's mind. He cleansed the child from her illness and she slowly opened her eyes. Dayananda who was still inhabiting the child's body could now see, hear, touch and sense the world through the girl. It was as if Dayanada suddenly had a little girl for his body. Dyananda was on a higher plane of existence now, where he could experience the world as another being. He could see his own body though the girl's eyes, sitting in meditation just a few feet away. He quickly noticed that something was not right, it was his robe, and it was green. He knew he was wearing a saffron robe, but it somehow appeared green to him, or to the girl rather. As he looked around, he noticed that all colors seemed wrong; Trees seemed to have blue leaves, Milk seemed to be red like blood and sandal wood seemed to be purple. Intrigued, he left the girl's being and projected his soul into the mother perceiving the world from the mother's eyes. To his amazement, the colors were again different, but this time different from the child's perception too. His yellow robe now looked red, and the trees had white leaves, Milk was blue. Suddenly his train of thought came to an abrupt halt and asked himself, "What does 'Yellow' really mean ?"
Thus Baetal concluded his story and turned to Vikram " Oh great King of Ujjaini, riddle me this, What does 'Yellow' really mean ? "
( Based on the "Mary's Room" thought experiment first proposed by Frank Jackson in his article "Epiphenomenal Qualia" [1982] )
What exactly do words mean ? We use it to describe the world in and around us; our thoughts and feelings; sights and sounds around us. It is taken for granted, this interface though which we collaborate and express the myriad and ever changing landscape of our lives. Magical as it may seem at first, a closer look at the use of language tells us that it is limited to perspective. What that means is that ultimately a person using words is merely enunciating how things appear to him/her alone. The difference between using language to communicate as opposed to truly conveying what one feels and thinks without the limitation of words and symbols is the slight gap between the notion of words themselves and the meanings they carry. When one says that the tomato is red and another agrees, they share an idea, perceive a certain quality of color in the tomato that both call red. They express what they perceive using the same words, but they may not necessarily experience it the same way.
The human brain interprets color based on the wavelength of light emitted or reflected by an object. Humans are classified as Trichromats in color perception, and it is now argued that we are in fact blocked tetrachromats. Regardless how the retina works, the manner in which retinal stimuli is interpreted by the brain is what constitutes visual perception, and it is this very notion of visual perception that is in question. How can we be sure that the same wavelength is perceived by two brains in the same way, causing the same visual perception ?
The idea pursued is that how can one trust one's senses, and if they are to be assumed true, how true is "truth" ? It is possible to make a counter argument that if the all brains did not process the wavelength similarly, we could never identify color blind people. In reality though, color blindness reinforces the notion that visual perception may be different for the same color, because color blindness is detected by a person's inability to distinguish between certain colors, and not the inability to perceive any one given color. A color blind person cannot distinguish between shades that are close to each other in greyscale, but far apart in the trichromatic spectrum.
When two people see the same color, they are infact just percieveing a commonality. For the same reason, two people who dont speak the same language can tell the color of an object and translate the word for the color in to thier own language. But are they translating correctly ?
Furthermore, what does correctness mean in this context ? They both see the same object, but if they percieve it differently, who is right ? and is there a right at all ?
This paradox appears in other situations unrelated to visual perception as well. When a patient tells the doctor, he/she has a "shooting pain" or "dull headache" what do they mean ? There is no way for a doctor to truly understand them without experiencing it by himself. Touching a red hot object hurts, it burns; but what does it feel like, and do everyone feel it the same as you do ? It seems the world we live in purely based on perspectives. How true are universal truths ? What is truth but a perception of a person, living or dead, that another simply accepts to be his own ? What does "Yellow" mean ?
Tuesday, February 24, 2009
Vikram & Baetal - Ice that wasn't
Once upon a time in Ujjaini, there was a great drought that lasted for several centuries. The people of Ujjaini over the time had become nomadic, always traveling in search of water and resources. It was the 312th year of the draught, and all but the elders had forgotten how it used to be a prosperous populace.
Savitri was the village seeress, and today she was was rejoicing her brother Hima's return from his decade long journey from the unknown far away lands. He brought with him stories of many magical sights, mystical creatures, impossible adventures and many strange tribes. Among the many wonders that he had seen was a magical and magnificent crystal brilliant as a diamond, colder than a desert night and amazingly changed into water when you held it. The townsfolk were baffled by this new and unimaginably wonderful treasure that Hima had witnessed. Hima explained to the townsfolk that there were regions in the northern wastelands that were so cold that the river water stops flowing and
turns in to a solid translucent block. Everyone except Savitri was overcome by awe hearing about solid water. Savitri just said it was a lie, and it could not exist. The law of the gods forbade it.
Savitri challenged her brother in public, and asked him to prove it. Hima said that when it becomes warm, the solid water turns back in to liquid, so by the time he would bring back the magnificent crystal, it would be nothing but water. Savitri mocked him and said
"Ha ! So you cant bring it when asked, and you ask me to believe this? Why brother, such tall tales? Whats next? Dragons that breathe fire? Pigs that Fly? You seem to underestimate the intelligence of our people. We may not have gone beyond our tribe in search of adventure, but our wisdom is one that has grown over the centuries and we have not lost the capacity to reason !".
Hima was lost for words.
Thus concluded Baetal's story and he asked
"Oh ! Great King, Vikram the wise of Ujjaini, what would you advise your citizen Hima to do ?"
( Based on Chapter 10, 'On Miracles' from 'An Essay on Human Understanding' by David Hume, 1748. )
Vikram pondered over the question and replied, "Savitri is right in not believing everything that has been told to her, as more often than not, it is just an exaggeration. But at the same time, we know that Hima was speaking the truth and Savitri was being beligerent in accusing Hima of making up the story of Ice. We know this because we know that ice exists. It is not a tale of fantasy for us, it is just a plain everyday fact.
Savitri is right in questioning an unknown, unproved claim, but she also has to accept the fact that she never witnessed it. The flaw is that she was excreting something which she could not disprove either. Had she made the journey with Hima, and saw and experienced the same sights and adventures, she had the grounds to refute him.
Does this mean that one should experience everything to make up one's own mind about something ? Not really, but the fact is that we often do this unknowingly, and attach skepticism to only those ideas that are not easily tested. Most trivial comments like the question of splendid mangoes from a particular tree in the village attracts less criticism, because at one time or the other the listener has had or will have an opportunity to experience it. But the story of a distant tree across the mountains and beyond the seas, that bears diamonds as fruit is bound to raise eyebrows, and soft chuckles.
Within the more serious realms of faith and beliefs too it holds good. Believers have a hard time convincing non-believers the "truth" and vice versa. Miracles are attributed to divine intervention. Within the social fabric weaved through with a notion of a supreme being, another explanation is heretic. Theories of faith are not easily proved, but faith has a tricky way of not requiring proof, it is what quantifies it.
Had Hima met a saint who took him in to the future, to discover the great truths about life and the world we live in, which were, suppose, against the prelevant notions of the day, he would have been greeted with a similar response, for the simple reason that his notions would have been far too much against the common wisdom of the time and its people.
This does not mean that Hima's story about ice is to be believed blindly. People need to make the decision for themselves; I believe, it is that capability within us, which enables us to choose our own truths that make us human. The only thing that Savitri needs to remember is to to keep an open mind, and not jump to conclusions just because opposing a radical idea maybe be simpler, or because an idea may compromise her own faith in her beliefs."
Beatal laughed at the king, "Vikram, you are indeed wise, but we are not yet out of the forest, and you have run out of words. You have broken the promise you made, that you'll keep the journey light with your wisdom..."
Beatal flew back to the forest on to his tree, and resumed his inverted stance. Vikram, ran to get him back...
[to be continued]
Wednesday, October 15, 2008
Vikram and Beatal [part 1]
Long time ago, in far away the kingdom of Ujjaini, was the most noblest of kings, Vikramaditya. Vikram the wise, as he was called by many, was well known for his generosity and wisdom. So it happened one day, that he received a mango from a merchant. It came with complements and a note to the king to give it to the poorest family in the country, and so the king did. The next day, he again received a mango with from the same merchant and the king grew curious, but the merchant simply said the king had inspired him to help the needy. The mangoes kept coming and one day, the king decided to eat one. He cut it open and out fell a ruby, so bright and so perfect and was the size of a lotus bud. The king was deeply moved by the kindness of the merchant and considered himself in debt to the merchant. It was then that the merchant transformed in to the demon Mara, and demanded the life of the king's son, the crown prince. The king ,not able to take back his promise begged the demon to ask not so high a price. The demon considered and said that he would spare the prince, if the king would undertake a quest and travel to the northern wastelands and hunt down Beatal, an undead corpse of lore.
The journey took the King forty days and forty nights across dark forests, deep mines and barren plains to the icy peaks of the northern wastelands. Ghouls roamed free and goblins hid in the shadows, but the Vikram never once faltered. He finally found Beatal, hanging upside down from a peepal tree. He had silver locks flowing free, deep set dark eyes that seemed to peer out from two caves, a hooked nose and blood red lips. Vikram walked up to him and untied him from the tree, then placing him on his shoulder Vikram started his return journey. Beatal was furious and immediately flew back to the tree resuming his inverted stance. Vikram approached and Beatal hissed "Stop where you are ! Why do you bother me in my eternal slumber ?"
The King taken aback for a while at the talking corpse, narrated his predicament.
Betal after hearing the story considered a moment, and then said "So Mara hunts me in the after life too; so be it, I shall come with you, but I have certain conditions" Beatal paused and continued " The journey back is long and I cannot set foot on earth, so you have to carry me on your back. I am of a loquacious disposition too so I shall narrate story to lighten the journey. You shall remain silent and listen to it; If I ask you a question you can tell me an answer, but otherwise, if I hear a word out of you, I shall return to my tree." Vikram agreed and hoisted up the corpse again and started the journey back to Ujjaini.
[To be continued...]
Wednesday, June 18, 2008
The curious case of the FedEx package
New York, in an alternate today, stolen from the noir thirties' peak of the industrial revolution. A lightning flashes, unmasking the art-deco Manhattan skyline stolid in the smog, painted in the color of morbid steel and rain drenched in the twilight. City lights and luxury cars line Broadway, not too afar a few homeless hunch around a bonfire in a decrepit alley bounded by brick walls covered in old nineties gang graffiti. A few floors up the run down apartment building, a lighted window, the dim glow of a shaded incandescent lamp within. The pale blue smoke from a cigarette, idle on the ashtray, bleeds in to the air, slowly filling the room in a dull haze. Jazz from a radio elsewhere is indistinctly overheard. An empty pocket flask lies beside the chair, smelling faintly of cheap whiskey.He laid stretched back, resting his feet on the table , with a loose tie and his fedora over his eyes.With a half open eye he noticed a silhouette on the smoked glass of the front door to his office. Distinctly feminine, flowing curls and a seductive stance, the woman had trouble written all over her.Her hand moved slowly caressing her thigh, bending down ever so slightly, he saw the shadow of her lips across the letters on the door that read "Alex Irons : Private Investiga..." a 9mm came off her , and within a split second smashing the glass, he saw a bullet right between his eyes...
Bright light. The smooth jazz screeched in to an annoying ring and his head hurt, real bad. After a couple of seconds Alex Vaeliyil Chandy woke up with a heavy hangover to another Saturday afternoon, this time due to the relentless doorbell. Alex stumbled in the general direction towards his front door, with reasonable success, to find not an enchantress from a film noir alter ego, but as it happened, the FedEx guy.
Alex is a mallu in the US of A, dreaming big, and well er.. he is yet to get past the dream phase. Alex opens the package and finds the tickets for his India vacation inside. He immediately calls home to let his mom know the news of his homecoming and she responds with great enthusiasm about the girl his aunt Jessy was mentioning the other day. If I were a cartoonist, I could have drawn a dark cloud pouring down on Alex's previously ecstatic face.
In the 25 and above adult Male's constant battle with the pandemonium of nuptial decision making, the first straight jacket comes in the form of mothers, aunts, uncles and elder cousin sisters thinking its time you got married and started a 'normal' life. "How is life ? and when are you getting married ?" asks every other aunt in the family. Conversations between mothers and aunts are even worse, "Alex is coming down for a vacation " tells his mom to the next door neighbor. "I have a niece who will be a good match for him" she responds back. I can only imagine what goes in spas and salons, matchmaking at a pace that would put NYSE to shame. Jim Crammer does not even come close. The expectation that once you are married, the relationship will bring order to your life is beguiling, forcing unspoken accords of nuptial compromises in each other's lives and the expectation that both sides will understand and honor it. The priorities and perspectives of people differ and that is what makes us human; retaining the human element, making room for another person in your life means accepting another person's priorities and perspectives, even when they are in contrast to your own. The effort required to do this is an often underestimated fact. On the other side, if you have to make conscious efforts to accommodate a perspective contrasting your own, are you being untrue to yourself ? Does it mean the significant other is pushing their ideas and dogmas down your throat and you accept it just for the sake of being nice or for the sake of the relationship ? The equation is not as simple as two people and what transpires between them. There is of course the society which constantly expects people to behave in a stereo typical fashion, there are relatives that expect to see the couple living in harmony. When was the last time you did something just because it was expected out of you ? Would you like to do it again ? How about doing it every day for the rest of your lives ? For some, this means to stop being themselves and living lives that they are expected to live, losing themselves, sacrificing their individuality. This minority is the few who have chosen not to follow,but clear their own path; taken time for some soul searching and and are in search for their own answers. The ones that refuse to be just another brick in the wall.
Don't get me wrong dear reader, I want to get married; but not at the cost of living a compromised life. Whom to marry and when to marry are crucial decisions that Alex's aunts can possibly know nothing about. They don't know Alex to begin with, they know what he should be but not what he is. Society is at the heart of humans' success on this planet as a species, and it fuels itself by forming stereotypes. The ones that do not fit in are also stereotyped as free thinkers or soul searchers just the odd balls. For the great majority of beings, society is a boon freeing them from thought which can be painful and focusing themselves elsewhere, making the cogs turn and the process of civilization move forward.For them entertaining thoughts outside their system breaks the system down, it is incomprehensible. Alas, but they would never know the joy of reassembling themselves to live life on one's own terms.
For Alex, who admittedly breaks the mould and finds the answers presented to him as inadequate, still searching for his own, its important to find a mate who can accept him the way he is, and see things clear. This does not mean accepting Alex's perspective as their own, but merely accepting that an alternate perspective is possible and co-existing with it, if it is at all possible. This acceptance can be achieved with anyone within the system of society as they are taught to be respectful and accommodating, but a problem is encountered in this process. The one who 'accommodates' is compromising. They are becoming something else for the sake of the relationship and what is expected out of them. Even one who is taught to be cognizant of and comprehending the needs feelings, problems and views of another, would sooner or later hit a point where a further compromise would put their own identity at risk. These compromises are minimized when the perspectives match and are on similar veins. For the majority, identities are shaped by society , which does an excellent job of moulding a person's mental make up for maximum compatibility. But then again, I forget what it was that made hand crafted limited editions so special when put against the mass produced ones. When the compromises are minimized, people focus less on the relationship and it just becomes an after thought. This would be the perfect relationship when its so perfect it is not even noticeable.
It is achieved when two individuals have world views that are perfectly synchronized, an impossibility theologically and scientifically, excluding clones maybe. But a higher understanding just short of perfect harmony is possible, better clarity can be achieved. It is definitely not spot free, but the possibility of seeing above imperfections subjugates whatever blemishes that exist. Besides perfection rarely works, its the imperfections that make us humane. It is enlightenment in a way, born out of respect, understanding and acceptance that is mutually reciprocated. An almost perfect animal of the human kind. For Alex this boils down to a woman who understands, for lack of a better term, him in what he believes in, and finds it possible and acceptable, sinless if you will, to let him follow his thought. As for Alex himself he should be ready to accept such a person in to his own, with full understanding that he has to afford the very same liberties to his mate. It becomes a dance where the dancers are letting go, taking in every minute, perfectly coordinated, absolutely un-rehearsed and living the music, as opposed to two people attempting to make put up a performance, trying not to step on each other's toes. For the dancers, the method of the dance itself fades in to the background, but for the viewer it becomes the most exemplary performance. Or simply put, Alex looks for a such a girl that they can simply enjoy each other's company.
Alex was lost in thought for a while, and missed whatever his mother was saying. She continued " ... and shes a well brought up god fearing child with excellent moral values. So what do you think Mone(son) ?"
"Huh ..!!!" after a few disconnected seconds, was all Alex could muster. This was not the first time a girl was being described to Alex, but invariably the descriptions included such phrases as " good family, well behaved, god fearing". To Alex they sounded like sales pitches, like saying 33% Free ! or Two months free subscription ! For Alex, the only thing missing was a 90 day return policy. Alex remembered when he was shopping for an iPod, walking down a Walmart aisle stock full of Chinese knockoffs stickered with offers. The iPod itself carried no frills, no free subscription and the packaging had no words on it; just a picture of whats inside. But this time around, once you selected the iPod, iPod had to select you. Alex preferred the Apple packaging style on his own carton, just a picture of whats inside, and no great offers. This is where he met his second dilemma once he got inside the carton, his aunts stared sticking offers on him, and by the time they were done, he looked like a knock off just as any other. But to himself, he wasn't one and the packaging slammed on him was not truly representative of him. Made him wonder, if the descriptions he heard were equally mutated. It suddenly hit him that he might be actually missing out on a lot of great women with similar tastes out here just because they were represented by people who knew not them, trying to appeal to the widest audience. To Alex, this meant that finding his mate would have to actively involve himself.
On another facet lingered another problem, religion. Alex's parents and family doing the match making on his behalf would certainly end up with a list exclusively of his own religion. Alex's breed is rare, and on top of that, miss out on like minded people in the name of religion? Religion plays no role in his own belief system, and Alex himself couldn't care less. Alex was no renegade heretic; he simply chose what be believed in, and had his own reasons for it. One of the things he believed in was making people happy if it were within his power to do so. Alex could make his parents happy, but not at his own peril. This would be dicey as a woman of Alex's own predilections was sure to be prejudiced upon by his close family. Where does he draw the line, or does there need to be a line at all ? It depends on what happiness means to the one experiencing it. If Alex's parents find happiness in shaping him in to something that he is not, is it real happiness ?; and in turn how can his parents be happy in his misery ? It seemed like a vicious cycle that started with how he was brought up. If his parents took the attitude that they have done everything in their power to endow him with knowledge and the capacity to think for himself, they would not have to worry because they would be able to respect a decision he makes for himself.
He was off the phone now, and his head hurt more than before. He tossed the envelope on to his desk among the pile of other garbage already there and thought that he should avoid thinking too much in to anything. He collapsed on to his couch, through the rabbit hole and in to the enchanted kingdom of Xandraena. The vast meadows blushing in the spring time flowers dancing to the tune of butterflies. The children playing were distracted by the bell sounding in the high tower of the castle. The young prince Alexius returns to Xandraena after his conquest in the icy northern wastelands of Stormholm. Welcomed as a hero, the land knew not that he was consumed by evil and his soul lost to the blade he wielded, the JadeDawn. Alexius brushed away the rose petals showered on him and walked in to the throne room in his battle armor emblazoned with the skulls of his foes, and knelt before his father the king. The JadeDawn, now a part of him, hungered for the throne and ordered its keeper to claim it for itself. In one fell swoop, the blade struck down the court and the ministers. Alexius ascended the steps to the throne and his father cried "Alex! what are you doing !". The JadeDawn soared high in to the air and came thundering down on the king's throat as Alexuis breathed his words in malice "Succeeding you..."
Sunday, April 20, 2008
Depths of reminisense
Scales that tip in no ones favor
A journey without destination
Dolphins against the wind
Downward spiral, depths unknown
Shackles broken , secrets forgotten
Lightning awakens within
Wednesday, February 27, 2008
Back 2 Basics : RMI
Intro and Basics
RMI forms the basis for Java's own remoting capabilities. RMI makes remoting transparent by making remote objects look like local objects. The only difference from a user of a remote service's user's perspective would be how the object itself is obtained. RMI is based on 3 abstraction layers.- Stub / Skeleton layer
- Remote Reference layer
- Transport layer
Stubs and Skeletons
Stubs and skeletons are special objects that make remoting with RMI possible. The client actually invokes the method on the client side object called Stub, though this is transparent to the client, since the client uses an interface type. The method call and the parameters are intercepted by the Stub, marshalled (something like serialized) across to the Skeleton, a server side object which un-marshalls (deserializes) the method call and parameters and makes the call to the actual object. The return value is intercepted by the skeleton and sent back to the Stub, who in turn returns it to the client. The stub is a proxy on the client side and the skeleton is a helper class that acts as liaison or connector between the Stub and the actual object. The Stub passes the data to the remote reference layer, which hands it to the skeleton.Remote Reference Layer
The remote reference later defines the semantics for remote object references. It connects the and governs the communication between the the Stub and the Skeleton. Its is JRMP specific and defines classes like RemoteRef which are used by the Stub to get data across to the Skeleton. From Java 2, remote reference layer adds semantics for activatable objects. Another example of the semantics defined and managed by this layer is Multi-cast , in which the method is invoked on several remote implementations and he first response to return is used.The Transport Layer
The transport layer is responsible for the low level connection between the two JVMs, and management of these connections. RMI defines a wire level protocol called JRMP, JRMP is on P/IP and also provides some firewall penetration strategies. JRMP was updated in java 2, to eliminate skeletons and to use reflection instead.Looking up Remote objects
A client can use either JNDI or the more simpler RMI registry to look-up the remote objects. We will not discuss JNDI here. The RMI registry itself is a remote object., and implements the interface java.rmi.registry.Registry. RMI registries can be started as a separate process or in a programmatic way, by an object itself, and by default runs on the port 1099. Starting a registry means exporting the remote object that implements the Registry interface, that is the actual resgisty itself is a remote object. Once a remote object is bound to a registry under a public name, a client can look-up the registry for a remote object based on the name with which it was bound. Here's what happens :- The client tries to get a registry, which gets him a Stub that acts as the client proxy to the registry, [This step is usually transparent because JDK classes d the job of getting the registry]
- The client makes a "look-up" on the registry with the pubic name with which the remote object was bound
- A Stub to the remote object is returned to the client.
- The client can now invoke methods on the remote object just as if it were a local object.
Parameter Passing
With RMI we have three types of parameters :- Primitive params : these are passed by value , just like any other primitive parameter.
- Object parameters : Since references in one JVM are meaningless in another JVM, objects are serialized and passed by value. So changing the properties of an object in the remote JVM does not make those changes visible to the local JVM.
- Remote Params : Remote params are params that happen to be remote objects themselves. When a remote object is used as a parameter or a return type, the JVM passes the stub to the remote object and not the remote object itself. Under the covers the JVM checks the parameters and return types. if any of them is an instance of Remote, then its stub is fetched, serialized and sent across, instead of the actual remote object. this rule applies to all references, including say, retuning 'this' from a remote object.
Distributed Garbage Collection
RMI provides a distributed garbage collector to gc the remote objects. GC in RMI is more complex because there may not be any local references to an object. Internally, the JVM keeps track of clients requesting access to a remote object, and marks that object as dirty. When the remote reference is dropped, the object is marked clean; all clean objects are eligible for garbage collection when the DGC runs. In addition to the reference counting mechanism, there is a lease mechanism, which basically means that even if a client requested access to a remote object, unless the client is actively using the connection, the connection has a timeout associated with it (default 10 mins), and when the timeout has been reached, the object is marked clean. Like the finalize() method, RMI has an interface Unreferenced, with a single method unreferenced() that is invoked when there are no more clients holding a live connection to the remote object. Remember that the registry itself is a client to the remote object and the unreferenced method on a remote object(should it choose to implement Unreferenced) will not be invoked if the registry is holding a reference to it.Dynamic Class Loading
Normally the clients needs to have the remote interface type class files available on the client JVM so that they can use it to cast the resulting stub from from a look-up and invoke methods on it. However, RMI support dynamic class loading as an alternative to this static approach. Dynamic class loading in RMI works similar to applets; a system property for a codebase is set and the required class definitions are downloaded on demand from that code base. the property is java.rmi.server.codebase and is a URL that can be accessed with file:// ftp:// or http:// protocols. note that though we say "client jvms download the class def" its not restricted to client JVMs. server JVMs can also use a code base to download other remote object definitions or client side classes for callbacks. When an object is bound in the registry, the code base is also saved with it.When a client requests a remote object, the registry returns a stub to the remote object, and the client JVM looks for the class definition of the stub in its CLASSPATH and if it does not find it there, it uses the code base from the registry, to download the definitions. RMI has its own Security manager, the RMISecurityManager and the VM will not download any files unless the security manager is present.Advanced RMI
Object Activation
One of the downsides to RMI is that the remote objects have to be accessible at all times, including when clients are not executing or requesting their services, and eats up a lot of resources. To solve this problem object activation was introduced. This is similar to having the remote objects on an "as required" basis, and can be though similar to lazily instantiated references. All the magic happens in the Remote reference layer, and the stub given to client is not connected to a live remote object or its skeleton, instead its connected to the activation system, that transparently makes resources available when the stub is actually being used. Tha activations system is a complex ecosystem and core t it is an RMI daemon 'rmid' which is able to startnew VM instances for the required remote objects 'On Demand'.
Activatable Remote objects extend from the abstract class Activatable(no this is not an interface) and not from the usual UnicastRemoteObject. The process of registering an activatable remote object is also considerably different, though the client does not see any difference. The steps are :
- install the SecurityManager - RMISecurityMananger
- create an ActivationGroup - which is an object that keeps a collection of activatable objects
- create an ActivationDesc - or ActivationDescriptor instance, that provides all information to the rmid (the Activator) to create a new instance of the Implementation class.
- register the remote interface with the Activativator - Activatable.register() registers the Remote interface with the rmid
- bind the stub that was returned as a result of register() with the RMIRegistry.
once this rig is setup, Activation process works like this :
- The Stub for the Activatable object contains special information like the ActivationID that idetifies an Activatable.
- The stub uses this ActivationID to call on the Activator (rmid) to activate the object.
- The activator (rmid) uses the ActivationDescriptor to find the JVM in which the object is to be activated.
- The activator locates the ActivationGroup and if the ActivationGroup does not yet exist, then a new JVM is created for the AcivationGroup to run in and the request for the object's activation is forwarded to the ActivationGroup.
- The ActivationGroup loads the class and creates a new instance of the remote object.
- The live reference of the real remote object is returned to the Activator , which records the ActiovationID and reference pairing and the live reference is returned to the stub.
- The stub now forwards all method invocations to the remote object via the live reference.
HTTP Tunneling
Firewalls prevent application / non-standard ports from being opened up in a public network, we can use HTTP tunneling to get RMI working. Tunnelling is essentially wrapping up the RMI calls inside an HTTP POST request. Its the responsibility of the Transport layer to do this wrapping. There are two ways to do this :
- HTTP to port : Used when the client of an RMI service is behind a firewall. The JRMP call data is automatically wrapped in an HTTP POST and sent to the proxy server on the client. This proxy server is the http proxy server the client uses to connect to the public network. The only config required to do this is to set the proxy server settings via java system properties.
- HTTP to CGI : is used when the the server is behind a firewall and cannot accept incoming connections. Here the transport layer redirects http wrapped JRMP calls to a cgi script running in a webserver. This cgi script is java-rmi and is a part of the JDK ( see bin directory). A servlet version of the cgi is also available. The cgi intercepts requests coming on 80, which is intended for a non-default port (the client transport layer embeds this info if its wrapping up the JRMP call in http) and forwards the call to the local port.
Although tunnelling is a very attractive solution to the problem of firewalls, they should be carefully used because there will be severe performance degradation, and the cgi script is actually a security hole and tunneled applications cannot use callbacks.
RMI IIOP - CORBA Interoperability
RMI-IIOP was designed to make RMI applications interoperable with CORBA applications. This involves supporting both the RMI's own wire protocol JRMP s well as CORBA's wire protocol IIOP. The interoperability is achieved by letting java developers use a Java interface and the CORBA developers use the IDL for coding. With an RMI-IIOP server, the remote interface can be used to generate the corresponding IDL for a CORBA C++ Client. The clients can also use a IDL to java conversion to convert IDL to a Java Interface, enabling the RMI-IIOP client to connect to a CORBA server. The stubs for an RMI-IIOP Client should be generated with the -iiop option so that they can use the IIOP protocol.CORBA compliant remote objects are derived from the PortableRemoteObject and they need to be rmic'd with the -iiop option to tell the compiler to generate Stubs and skeletons that can speak RMI-IIOP. They form the foundation for the enterprise level distributed computing in java and the heart of the EJB programming model, though EJBs would make most of this transparent to the developer. Another crucial difference is that in a plain vanilla RMI-IIOP environment, the rmi registry is replaced by JNDI using a COS Naming Service like tnameserv or an LDAP server. Distributed garbage collection is not supported by CORBA, which means objects have to be created and destroyed explicitly. The RMI activation system is replaced by the PortableObjectAdaper and the remote references have to be down cast using the OPrtablRemoteObject's narrow() method and not using a normal java cast.
Sunday, February 03, 2008
Riders
The wind caressed it, the dry leaves fluttering
the stars like Christmas lights
The cactus bushes stood ignorant and
across the canyon rode the rider.
Relentless and unforgiven
Hollow and void
his sights set deep in to the night
he passed the cactus bush
The very same one he passed
he never knew how many times
he had stopped counting after the first few
Tired but still resolute
he looked toward the horizon
the one thing that still eluded him
Friday, February 01, 2008
CDMA
I admit. I really don't get it. Being a Desi in the states has brought its share of confusion in me. After much rumination I am sorry to say the confusion is not going to go away. What I have ascertained causes much despair as its neither going to change soon, nor is it going to be easy to see the light. We seem to be hard wired to certain ideas, belief systems and a way of thinking, what we call a mindset. Desi's in the US come in many flavors, the americanized ones who after an year of getting off the boat , all of a sudden seem to think that India is a village and crack jokes about it with his new homies in da 'hood [I call these the fresh dawgs ], or the more commonplace "OMG that coffee is 3 bucks .. thats like 120 Rupees. I'm NOT drinking THAT !" kind [the constant calculator], then we have the ever so common "Wanna screw white chicks, but I'll marry only a 'good girl' from India" type [the horny chauvinist ] and thats just a broad generalization.
Simon lives in an apartment and shares place with 3 other guys and cant find enough time to explain why India is still a frigid old village and how the American life has made him see the light. It was a Saturday night and like every other Saturday night he goes out to a club. Inside the club the American Desi faces a dilemma, the brown skins are outnumbered and his new found culture and lifestyle don't seem to stand a chance with the real thing. The first thing that he does is to scope out the place. Not for low hanging fruits but simply for prey looking the other side. The target is locked, he runs. Like an F-22 re-fueling in mid-air, he tries to connect his nozzle to the rear of his prey. The unsuspecting girl shrieks and jumps ! Simon engages the cloaking device called "run the hell outta there" and moves in to stealth mode. Bogie one is down. Between a couple of beers he hunts down another couple more targets. Mission accomplished, Simon returns to base before lights come on and blows his cover. At home he found the (single) bedroom locked, from the inside and yells "Sridhar, make it fast. I've got to sleep, gotta go to the church tomorrow"
Sridhar is working for an Indian software company and has been here for just about two months now on an on site assignment. He does not join Simon in his club quests since the entry fee is 10 bucks and thats like 400 rupees. Simon chuckles as an apparently exhausted Sridhar opens the door ... "dude ... get a life man. get a lap dance instead of a laptop. You stupid Indians ... break out of that shell man... taste the real life like me...". Poor Sridhar makes the mistake of asking Simon how the night went. "Dude ... cool man... I danced with at least 5 chicks man... I was grinding so hard with the third chick, I almost messed up my trousers man...hahaha...So you decided on what laptop you wanna buy ? " Sridhar's time once he got back from work was divide between searching for laptop deals, checking the USD to INR conversion rate every other minute and watching porn. "The Dell has a new coupon and I get it for 15 bucks less than the HP with the same config. But I'm still undecided if I want to go for a 2.0 GHz one and pay the extra 100 bucks. Or maybe I should go for that VAIO, it looks so sexy. I'd love to have that MacBook but nothing runs on it. Sim..."
Simon is heartily snoring by now lying next to Jinesh who was already dead asleep, and Sridhar ponders if wants to watch more porn or search for more deals, he starts by hitting finance.yahoo.co.in and checking the Dollar rate now. "Damn! down 15 paise again..."
Earlier that day Jinesh was out and his phone rings. "Hello Amma... ... Yeah I'm doing okay ma... How is everything there... okay... what ? the proposal ?... okay did you see the girl's photo ? okay... Is she fair ? how fair ? and did you like her ma ? .... Whats she doing ma ? what ? ... shes a fashion designer ? No ma... I told you na.. nothing but IT people please.. Its very hard to find job openings in these professions here, IT is easy and how do you think two people can survive here without a double income ? ... No ma... Plus you have absolutely no idea what goes on in these colleges ma... I'm sure she's had an affair and all... ... No ma ... I told you na... Look for only software engineers and girls who went to colleges nearby their homes, and not hostels... Okay ma... I'm in the midst of some work here, I'll call you back ma.. Yeah... I'm staying late in the office today, lot of work to do...Okay...bye." Jinesh puts the phone away and deftly slides a dollar bill in to Eva's g-string as she purrs in her Scandinavian accent "ready for your next lapdance... baby ?" somebody would have to wipe the smile off his face now.
But all this boils down to some simple facts. Simon has a confused identity, Sridhar, a confused bank statement and Jinesh, confused morality. But how should I explain myself as the guy who sat in the living room all the while just blogging about it ?
Thursday, January 10, 2008
Back 2 basics : JDBC Re-visited
Types of drivers
- Type 1 : JDBC:ODBC bridge. These are to be used as a temporary solution to connect to databases and are inherently un-scalable and non-performant. they may also be feature limited.
- Type 2 : Native API. These Drivers depend on native libraries to communicate with the DB. They are basically a thin Java wrapper around the Native code using JNI. They perform better than Type 1 but the portability is a problem as the native library may not be available for certain platforms.
- Type3 : Net Protocol, they are fully Java drivers that expose the DB operations in a net friendly way. They also perform well and the portability is not much of an issue since there is no client side installation.
- Type4 : thin drivers. These are 100% Java drivers and communicate with the DB using the DB's native protocol. They perform the best nowadays and being 100% Java they are very portable.
DriverManager and Connections
You can register a driver by
- Creating an instance of the Driver (impl) class , and using DriverManager.registerDriver()
- Setting the property jdbc.drivers (pass -Djdbc.drivers=
) Loading the driver class (Class.forName( )).
DataSources have the capability for Connection Pooling and is usually configured in a vendor specific way. DataSources are mostly accessed though a naming service like JNDI.
bind the DataSource to a JNDI context under a name.
Application 2 / client app
lookup the DataSource from the JNDI using the name used to bind it.
call getConnection on the DS.
Statements and ResultSets
There are 3 flavors of Statement objects and they are basically a pipeline to send an SQL statements to the DB and get results back in a ResultSet object. All the statement objects re obtained fro the Connection object.
Transactions and Batch Processing
The most primitive way to control transactions is to use the setAutoCommit method. enabling auto commits forces a database commit after each operation. Its usually best to set this to false and deal with commits , though its more coding. It gives more control and often better performance. But remember to invoke the commit method once the db operation is done and rollback if an exception was caught.
Batch processing is essentially like transactions, but they are limited to a single Statement. use the method Statement.addBatch() and executeBatch()
RowSets are a new spec and they can be seen as ResultSets that can be used like JavaBeans. Some kinds of RowSets can be disconnected, ie, they cache all the data and they need not be backed by a live connection to the database, making them ideal to encapsulate data and pass them around.
Q&A
How to find the number of rows returned?
In most cases a better soln will be to issue a second SQL with a count(*).
ResultSet navigation does not seem to work.
if using JDBC 2.0 navigation methods , make sure that the driver supports the methods.
Why is it unsafe to pass Resultset objects around?
What are invalid cursor state error messages?
How to handle nulls?
How to handle BLOBS and CLOBS ?
the new MySQL and Oracle 10 drivers provide the getString() method that can return the whole CLOB .
What is the best collection class to store ResultSet data ?
ArrayList has a constant 'average' cost for appending to the end of the list as the backing array may sometimes require re-allocation. Linked lists have the constant cost.
insertions in random locations are better with LinkedLists as the cost is constant. ArrayLists require to shift the following elements.
ArrayLists incur space overhead in the form of reserve space at the end of the array. Linked Lists incur even more space overhead for Entry objects(this is per element).
Depending on the usage, a Map may be a relevant too.
Wednesday, November 07, 2007
The American Shopping List
I could never find a shopping list that did justice to Indians, anywhere on the net so heres a list of things to pack when you get on that plane from India to the US.
Assuming : You are probably allowed 2 pieces of check-in luggage of 32 kilograms each.
What to Buy
-----------
Two big and strong suitcases, that can hold 32+kgs and can take quite a beating, as these would be tossed around by many hands.
I prefer Hard-Top suitcases, but soft tops would do just fine, as long as they are sturdy enough. The total dimension of the suitcase would be mentioned by the airline and it varies. check with your airline(call thier airport office and ask).
One smaller suitcase, this is hand baggage. make sure this is just the right size so that you can carry some stuff. again check max dimensions with airline.
Passport wallet. Buy a passport bag/wallet or a small bag that you can hang from your neck safely, for the passport and a bit of cash. Use this for putting things you need frequently during the flight.
A college-bag/backpack. This comes in handly once you are here, so get one from india if possible. Its better to pack this inside the checkin/hand baggage, so that it does not become an extra piece of baggage.
Dollars. get at least 2000 bucks from the nearest bank. get 1500 and travelers cheques(note the numbers down and keep them separately, in case you get robbed, the cheques can be canceled if you have the numbers). 500 dollars in cash. get at least 100 bucks in small notes(less than 50) and change.(banks might not have small notes or change, visit relatives or something ?)
The important stuff -
- All your certificates, educational and employment related documents.
Tax stubs(form 16), pan card, and photocopies
Investment records in India
The visa and immigration documents
Offer Letters, LCA, educational evaluation, i797 approval notice
drivers license, and any other photo ID you have.
credit cards and bank info, including statements for the last 3 months
(The originals go in the hand baggage, one set of copies go in each of the suitcases)
Utensils-
Okay, chances are that you are not going to cook here(at least initially), but in case you do try to get these.
A small pressure cooker(smallest you can find)
Two vessels for cooking, medium size, with at least one lid.
A plastic tumbler
A plate(melamine ware)
spoon and a fork
A big spoon for curries, and a wooden spatula
Food stuffs
Do not carry much food stuffs. most of the stuff you can buy here. only carry what you feel is most required.
Pickles
chutney powder
any such preservable stuff. do not carry raw food/meat/veggies. Or curries/cooked food. they will be thrown out by the authorities.
Supplies
Slippers, light weight ones
a good pair of sandals
sneakers
black formal shoes
black / brown everyday casual shoes(leather)
wallet. buy a good wallet that has enough spots for credit cards and cash.
Belt. buy at least 3-4. buy the expensive ones, like bullchee or peter england. (you'll know what expensive means once you get here ;) )
spectacles, buy 2 spare specs and get a written presciption. visiting a doc for a prescription is very expensive.
Toilette(try to cut down on weight here)
Soap(just one please!)
Soap dish
a small mirror
comb/hair brush
shaving gel, small tube
razor
toothbrush
toothpaste
hair gel, if you have hair.
A good perfume/body spray(or more , its expensive here)
Clothes
Buy a good blanket,(the one thats not wool but feels like it, its thick but light.)
bring lots of socks. (LOTS)
undergarments(the more the merrier)
Thermals (buy the ones with long sleeved t shirts, about 4 pairs seem sensible )
Shirts, as you please
trousers , as you please
Ties , bring 3
Suit. Just one, really good formal suit. Go to raymonds and they'll fix you up.
Medicines
Visit a doctor. tell him you are travelling, and he'll give you a better list.
Always get a prescription. Its very important here, without a presciption, you cannot have medecines here.
Buy any medicines you regularly take , for any condition you might have.
General Medecines :
Crocin a couple of strips
1 small bottle cough syrup
medicines for vomiting, a laxative, and something to inhibit loose motion.
Utilities
Scotch Tape
Hangars, plastic, a dozen
A portable hard disk, with all your data
i pod/Walkman if you are inclined that way
An international credit card with at least 40-50 k credit limit(it'll take time for you to get a credit card here and sometimes they are required.)
General
Have a skype account and set it up at home so that you can communicate easily with your family. Teach them how to use it.
Get to the airport early. airports may have delays.
When checking in you baggage, be very careful. if you have two pieces of check-in baggage, make sure that they put bag tags on both of them
make sure that the corresponding bag tag counterfoils are stuck on your boarding pass.
cross verify this that the bag tags on your boarding pass match the ones on the baggage
baggage stealing is a very common thing in India and this happens frequently.
always have your passport, a copy of your DS-156,157 in hand(not in your hand baggage, you will need to use this in the flight).
use the passport wallet or a hip pouch for this.
always have a pen with you(you will need to fill out immigration forms during the flight).
try to sleep as much as possible during the flight.
before boarding its a good idea to have a peg or two. not more. It helps you sleep.
if drinks are offered on the plane, have it. helps you doze off again.
have food. the timings will be awkward and you wont be hungry when they serve and they wont serve when you are hungry. live with it.
during the last leg of the flight you will be offered forms to fill out for the immigration procedure
you need to get the form called I-94 . Once you get here, this piece of paper is more important than your visa or your passport.(this proves that you are a legal alien in the country, and gives the date till when you can be in the country legally.)
The name you write on this is important as that will be the official name from now on.(make sure you get the first,middle and last names right on this.)
Once you get here
Mostly everything will be(should be) done by your employer.
Its good to carry small change with you, for public phones if you have to call the employer to pick you up or something. (don't ask me where to get small change, buy a coffee from the airport or something)
If you take a taxi to the place where you are going, give a 15% tip to the cab driver(15% is the minimum) and ask for a receipt.
sleep as much as possible.
Open a bank account asap. you can do it with just your passport. the big banks here are bank of America, chase bank, wachovia, PNC etc.
You might need to buy a laptop. I leave this to you, dell sells only online, and the big electronics shops here are BestBuy, CircuitCity, CompUSA etc. the really good ones cost money, but keep in mind that if you just plan to use it for email, reading books, watching movies then you dont need such a good one.(I made this mistake). check the site www.deals2buy.com before you make the purchase, they'll have the deals listed.
Friday, September 07, 2007
Spider
Her hand moved over his back, pressing... slightly massaging his shoulders. He felt relaxed and eased. She was an angel, he thought himself lucky to have her. She always cared for him and made love to him so fiercely and silently. He was lucky to have her.
He turned back, scooped her up in his arms and kissed her; threw her in to the bed , she was only too pleased. The evening sun gave her skin a creamy glow, she would taste like buttered cookies he thought. She always tasted good. It gave him a sense of power to command the woman a that, it filled his ego. Maybe the only thing that could fill his ego. All his life he got bullied upon and was unable to stand his ground, ever. He grapsed her and made love to her. Having her subdued in his arms like a kitten, it made him feel good. It made him feel like the bully.
She closed her eyes in bitterness, it was a nice little arrangement, a part she played well. She could have had better men in her life,and she did. But this one was an emotional fool and she just had to play along, a smile here and a tear there. She could have her own puppet doing her will. Like a spider she wrapped him up in her cocoon. He felt warm in his angel's embrace.
Tuesday, July 24, 2007
Second Chances
She was decisive in every action she took, yet there was something that unsettled her.
Some word spoken, long ago, the fire of which was dead and the ashes blown away. She tried to reason with it, to justify herself. She tried to escape from it, with no avail. She regretted it , the one thing. She wanted life to be simple and live it simply. The thought descended upon her like a black cloud, it consumed her. She never believed in second chances, but she wanted one, desperately.
She was always of stone and she knew that. She knew she could never be loved, and she could live with that. But that was until she had a pet, the jewel. It loved her unconditionally. But emotions were unknown to her. She never asked to be loved, but still got aplenty from the jewel. The feeling was addictive, ecstatic. But her roots never changed. It was her precious, only hers to admire and to own. But the jewel was not stone like her, it had a heart, and a soul. It gave her its love, and now she wanted to control it, wanted all for herself. The price she paid to learn that she could not own a heart , and a soul was that in itself. In a frenzy of anger she cast it to oblivion and cursed it for being so.
When the looming dark clouds had passed ,she felt a change in her a loss. She realized that it had changed her. She was not of stone anymore. she felt. She wanted to escape, to be stone again. She wanted a second chance. But she never believed in them.
Friday, July 20, 2007
The cigarette
He was a sensible man, helpful and kind. That lie was so ingrained in him that he himself forgot what was beneath and believed it. Beguiled by himself, he had a spiteful rotten heart that could not bear the thought of being not loved. He had to be loved. When he felt that need for the first time, maybe he was a mere child, but who could do it , and worse how would he know it , if it ever happened ? He never knew what it meant to be loved, he could never feel it. The lack slowly turned to frustration, he wanted more , he was selfish and greedy, always wanting more. Insatiable.
Consumed by that greed he refused everything and decided to create his own world, where he would be respected and loved and cared for. Where he was important. One by one he closed the doors on himself. Always the kind golden heart that he had was helping others sacrificing his own joy for them. The wicked darkness in him smiled, he loved being able to fool himself, it made him feel important , and respected and loved.
When the alcohol hit the bloodstream, it must have washed away the thin veil, he saw for himself the creature. But how could he not love it, he wanted to be loved, it was all he ever wanted. Unsettled him, to think of himself like that.The cigarette was almost over, may be a couple more puffs. He puffed hard, hoping the nicotine could knock him out. Slightly burned his lips. He swayed inside. Empty bed. Slowly got on in a closed his eyes. He wished he never woke. This was the problem with the drink he thought made him lose his sleep, made him com out of the sweetness of his own shade. His thoughts drew thin, slipped away in to sleep.
Monday, October 16, 2006
iPod Mania
Personally I never really liked the idea of a personal mp3 player with tight integration with a particular software product. I'd prefer putting my own mp3s to the USB device, crating playlists on the device and I'd be happy about it. I bought the iPod nano for its size, and its rechargability, and of course, I fell in love with the looks. For 2006, they are definitely sharp. The biggest flaw was that i could not have total control over the mp3s, but it did let me use it as a USB mass storage device.
Two weeks later, I got a message that I had unused icons on my desktop. My trusty old winamp ? Could'nt believe it. but then i realized, nowadays I exclusively use iTunes, I sync my playlists and I'm happy about it.. Wow ! Winamp... could'nt believe it. With a bit of guilt I relaized, iTunes was good. really good. It not just plays songs, but it did actually made life easier with its sync with my iPod. Thumbs Up !
So I too am on the accessory lookout like anybody else... sa these cool clips on youtube...
And heres whats probably going on at the Microsoft camp...
Why South Indian men dont get any...
Yet another action packed weekend in Hyderabad, full of fun, frolic and introspection. I have learnt many things. After spending much time in movie theatres, cafes and restaurants I have gathered many insights into the endless monotony that is the love life of south Indian men. What I have unearthed is most disheartening.
Disheartening because comprehension of these truths will not change our status anytime soon. However there is also cause for joy. We never stood a chance anyway. What loads the dice against virile, gallant, well educated, good looking, sincere mallus and tams? (Kandus were once among us, but Bangalore has changed all that, and Telegus were never really southies at heart.)
Our future is shot to hell as soon as our parents bestow upon us names that are anything but alluring. I cannot imagine a more foolproof way of making sure the child remains single till classified advertisements or that maternal uncle in San Francisco thinks otherwise. Name him " Parthasarathy Venkatachalapthy " and his inherent capability to combat celibacy is obliterated before he could even
talk.
He will grow to be known as Partha. Before he knows, his smart, seductively named northy classmates start calling him Paratha. No woman in their right minds will go anyway near poor Parthasarathy . His investment banking job doesn't help either. His employer loves him though. He has no personal life you see. By this time the Sanjay
Singhs and Bobby Khans from his class have small businesses of their own and spend 60% of their lives in discos and pubs. The remaining 40% is spent coochicooing with leather and denim clad muses in their penthouse flats on Nepean Sea Road. Business is safely in the hands of the Mallu manager. After all with a name like Blossom Babykutty he cant use his Rs.50000 salary anywhere. Blossom gave up on society when in school they automatically enrolled him for Cookery Classes. Along with all the
girls.
Yes my dear reader, nomenclature is the first nail in a coffin of neglect and hormonal pandemonium. In a kinder world they would just name the poor southern male child and throw him off the balcony. "Yes appa we have named him Goundamani..." THUD. Life would have been less kinder to him anyway.
If all the women the Upadhyays, Kumars, Pintos and,god forbid, the Sens and Roys in the world have met were distributed amongst the Arunkumars, Vadukuts and Chandramogans we would all be merry casanovas with 3 to 4 pretty things at each arm. But alas it is not to be. Of course the south Indian women have no such issues. They have names which are like sweet poetry to the ravenous northie hormone tanks.
Picture this:
"Welcome, and this is my family. This is my daughter Poorni (what a sweet name!!) and my son Ponnalagusamy (er.. hello..).." Cyanide would not be fast enough for poor Samy. Nothing Samy does will help him. He can pump iron, drive fast cars and wear snazzy clothes, but against a braindead dude called Arjun Singhania he has as much chance of getting any as a Benedictine Monk in a Saharan Seminary. Couple this with the other failures that have plagued our existence. Any attempt at spiking hair with gel fails miserably. In an hour I have a crown of greasy, smelly fibrous mush. My night ends there. However the northy just has to scream "Wakaw!!!" and you have to peel the women off him to let him breathe. In a disco while we can manage the medium hip shake with neck curls, once the Bhangra starts pumping we are as fluid as cement and gravel in a mixer. Karan Kapoor or Jatin Thapar in the low cut jeans with chaddi strap showing and see through shirt throws his elbows perfectly, the cynosure of all attention. The women love a man who digs pasta and fondue. But why do they not see
the simple pleasures of curd rice and coconut chutney? When poor Senthilnathan opens his tiffin box in the office lunch room his female coworkers just dissappear when they see the tamarind rice and poppadums. The have all rematerialised around Bobby Singh who has ordered in Pizza and Garlic bread. (And they have the gall to talk of
foreign origin.)
How can a man like me brought up in roomy lungis and oversized polyester shirts ever walk the walk in painted on jeans (that makes a big impression) and neon yellow rib hugging t shirts?All I can do is don my worn "comfort fit" jeans and floral shirt. which is pretty low on the "Look at me lady" scale, just above fig leaf skirt and feather headgear a la caveman, and a mite below Khakhi Shirt over a red t
shirt and baggy khakhi pants and white trainers a la Rajni in "Badsha".
Sociologically too the tam or mallu man is severely sidelined. An average tam stud stays in a house with, on average, three grandparents, three sets of uncles and aunts, and over 10 children. Not the ideal atmosphere for some intimacy and some full throated "WHOSE YOUR DADDY!!!" at the 3 in the morning. The mallu guy of course
is almost always in the gulf working alone on some onshore oil rig in the desert.
Rheumatic elbows me thinks.
Alas dear friends we are not just meant to set the nights on fire. We are just not built to be "The Ladies Man". The black man has hip hop, the white man has rock, the southie guy only has idlis and tomato rasam or an NRI account in South Indian Bank, Ernakulam Branch. Alas as our destiny was determined in one fell swoop by our nomenclature, so will our future be. A nice arranged little love story. But the
agony of course does not end there. On the first night, as the stud sits on his bed finally within touching distance and whispers his sweet desires into her delectable ear, she blushes, turns around and whispers back "But amma has said only on second Saturdays..."
Ouch !
Wednesday, July 12, 2006
Bombs cannot kill our spirit
Even if you are not reading this we don't care. Time and again you tried to disturb us and disrupt our life - killing innocent civilians by planting bombs in trains, buses and cars. You have tried hard to bring death and destruction, cause panic and fear and create communal disharmony but everytime you were disgustingly unsuccessful. Do you know how we pass our life in India? How much it takes for us to earn that single rupee? If you wanted to give us a shock then we are sorry to say that you failed miserably in your ulterior motives. Better look elsewere, not here.
We are not Hindus and Muslims or Gujaratis and Marathis or Punjabis and Bengaliies. Nor do we distinguish ourselves as owners or workers, govt.
employees or private employees. WE ARE INDIANS. We will not allow you to disrupt our life like this. On the last few occassions when you struck (including the 7 deadly blasts in a single day killing over 250 people and injuring 500+ in 1993), we went to work next day in full strength. This time we cleared everything within a few hours and were back to normal - the vendors placing their next order, businessmen finalizing the next deals and the office workers rushing to catch the next train. (Yes the same train you targetted)
Fathom this: Within 3 hours of the blasts, long queues of blood donating volunteers were seen outside various hospital, where most of the injured were admitted. By 12 midnight, the hospital had to issue a notification that blood banks were full and they didn't require any more blood. The next day, attendance at schools and office was close to 100%, trains & buses were packed to the brim, the crowds were back.
The city has simply dusted itself off and moved on - perhaps with greater vigour.
We are Indians and we live like brothers in times like this. So, do not dare to threaten us with your crackers. The spirit of India is very strong and can not be harmed. Ever heard of the phrase 'Unity in diversity' ? Why dont you buy your family clothes for winter or give them daily bread instead of making bombs while your brethen die of hunger ? Why dont you give you child education outside terrorist camps, and make them real men instead of a bunch of deluded youths ?
With Love,
From the people of India
Friday, June 23, 2006
Coffee Break I
I SEE THE LIGHTS ARE TURNING
AND I LOOK OUTSIDE THE STARS ARE BURNING
THROUGH THIS CHANGING TIME
IT COULD HAVE BEEN ANYTHING WE WANT
IT’S FINE SALVATION WAS JUST A PASSING THOUGHT.
DON’T WAIT ACT NOW
THIS AMAZING OFFER WON’T LAST LONG
IT’S ONLY A CHANCE TO PAVE THE PATH WE’RE ON
I KNOW THERE ARE MORE EXCITING THINGS TO TALK ABOUT
AND IN TIME WE’LL SORT IT OUT
AND THOUGH THEY SAY IT’S POSSIBLE TO ME
I DON’T SEE HOW IT’S PROBABLE
I SEE THE COURSE WE’RE ON
SPINNING FARTHER FROM WHAT I KNOW
I’LL HOLD ON
TELL ME THAT YOU WON’T LET GO
TELL ME THAT YOU WON’T LET GO
AND TRUTH IS SUCH A FUNNY THING
WITH ALL THESE PEOPLE
KEEP ON TELLING ME
THEY KNOW WHAT’S BEST
AND WHAT TO BE FRIGHTENED OF
AND ALL THE REST ARE WRONG
THEY KNOW NOTHING ABOUT US
AND THOUGH THEY SAY IT’S POSSIBLE TO ME
I DON’T SEE HOW IT’S PROBABLE
I SEE THE COURSE WE’RE ON
SPINNING FARTHER FROM WHAT I KNOW
I’LL HOLD ON
TELL ME THAT YOU WON’T LET GO
TELL ME THAT YOU WON’T LET GO
I’M NOT ALRIGHT…
THIS COULD BE SOMETHING BEAUTIFUL
COMBINE OUR LOVE INTO SOMETHING WONDERFUL
BUT TIMES ARE TOUGH I KNOW
AND THE PULL OF WHAT WE CAN’T GIVE UP TAKES HOLD
Friday, June 16, 2006
Kilulil Pamparam
kilukil parabaram thiruyum maanasam
ariyaaathambili mayangu vavavooo
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
panineer chandrike iniyee poonkavil
kuliril melle nee thazhugu vavavooo
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
meeda manjum moodiyee kunnum poykayum
paalnilavin shayayil mayangum veelayil
thaalam poya ninnil meeyum noovumaye
thaane veenurangu thennal kanyake
thaarakangal thunnumi raavin meenavil
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
kilukil parabaram thiruyum maanasam
ariyaaathambili mayangu vavavooo
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
eethuvavin kouthugam mizhiyil vaangi nee
eethu poovin sourabam thanuvil thaangi nee
thaane ninte oormathan chaayam maanjatho
kaalam neetha jaalamo maaya jaalamo
theenju poya thingale vavo vavavoo
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
panineer chandrighee iniyee poonkavil
kuliril melle nee thazhugu vavavooo
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
mmmmmmmmmmm [chamchakom]
Wednesday, June 14, 2006
Naalikerathinte Naattil...
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
oru naazhi idangazhi mannundu
athil narayana kili koodu pole uloru naalu kaal-ola purayundu
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
oru naazhi idangazhi mannundu
nombum nolttenne kaathirikum vaazha koombu pol-ulloru pennundu
champa-kka chundulla... chandana kavil ulla... chattuli kannulla pennundu
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
oru naazhi idangazhi mannundu
valiya penunnalu vannappol annoru velli nilaavulla rathriyil
kallu vettam kuzhi-kkakkare vech ennod-ullu thuranathin sheshame
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
oru naazhi idangazhi mannundu
neerunna novumaye ninne kina-kandu doorathu vazhunnu njaan innum
or-oro thee vandi odi ethumbozhum odunnu muttathu nee innum
or-oro thee vandi odi ethumbozhum odunnu muttathu nee innum
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
athil narayana kili koodu pole uloru naalu kaal-ola purayundu
naalikerathinte naattil enikkoru naazhi idangazhi mannundu
oru naazhi idangazhi mannundu