Hi! Welcome!! Thanks for visiting my blog. Feel free to comment, criticize, suggest anything about the blogs. The options and views expressed here are my own and does not reflect my employer's (or my previous employers'). Thanks for visiting and hope that you enjoy your stay here!
Monday, December 31, 2007
A Tale of Two Friends - New Year Gift! (or curse?)
[Disclaimer: Weak hearted, pregnant ladies, Old people please do not read this series as it will be so boring and torture that you may not survive after reading this :D]
I do not want to start the story in this blog itself. Let this only be a build up and a start for the story. What should I name the characters? How many episodes should this come? How long can I write this? I have no idea! Do I know the storyline which I have to write? No!. Do I have a better and a clear script? No!
Then how dare am I going to write such a story? could be your question. Have not you heard about mega-serials? They are my motivation. They prolong the serial for years and years with no story or a nastier-than-a-cow-dung-story. But I promise, my story will not be as bad a bull shit as them. Even if they may be very bad, they wont be pointless, I presume.
Okay, see you all in my A-Tale-Of-Two-Friends blogs. I will post other blogs also in the middle. See you soon!
[P.S.: First I had an idea of asking the reader to tell their comments and start such story only if at least one has interest in and has commented. But I abandoned the idea, as I am quite sure, none will actually post any comments and I do not want to promise-and-withdraw. So, I silently started this!]
Monday, December 24, 2007
பொன்னியின் செல்வன்
மதி மயக்கம் கொள்ள செய்யும் ஒரு அருமையான காவியத்தை, நான் சில நாட்களுக்கு முன்பு படித்தேன். பொன்னியின் செல்வன். தமிழ் மீது காதல் கொள்ள செய்துவிடும் அந்த காவியம். கவிதை மீது காதல் கொள்ள செய்துவிடும் அந்தக் கதை. மற்ற சாதரண கதைகளை காட்டிலும் இக்கதையின் சிறப்பு என்ன? இது நாம் தமிழ்நாட்டின் வரலாறு. ஒவ் ஒரு சம்பவங்களும் நம் தமிழ்நாட்டில் நடந்தவை. தஞ்சை பெரிய கோவில் கட்டிய ராஜ ராஜ சோழனை (அருள் மொழி வர்மன்) பற்றிய கதை. உலக அளவில் அதிசயமாக கருதப்பட்ட பெரிய கோவில் கட்டிய மன்னாதி மன்னனை பற்றிய கதை. ஒவ் ஒரு தமிழனும், குறிப்பாக தஞ்சை மார்க்கத்தில் உள்ளவர்கள் படிக்க வேண்டிய கதை.[என்னடா ஓவரா பில்ட் அப் குடுக்குராநேனு நேனைகுரீங்கள? அப்படிதான் அந்த கதையும் இருக்கும்... ஏக வர்ணனைகள்.. எக்கச்சக்க பில்ட் அப்புகள் அந்த கதையில் இருக்கும் என்பதை உணர்த்தத்தான் அவ்வாறு கூறினேன் (அனால், அக்கதையில் வரும் பில்ட் அப்புகள் ரசிக்கும் படி இருக்கும், இந்த ப்லாக் மாதிரி மொக்கையாக இருக்காது)]
மன்னர்கள் எப்படி மக்களுக்காக உழைத்தார்கள்? மக்கள் எப்படி மன்னர் மீது அன்பு வைத்திருந்தார்கள்? வீரன் என்பவன் எப்படி இருக்க வேண்டும்? அரசன் என்பவன் எப்படி இருக்க வேண்டும்? நாட்டில் குழப்பம் செய்யும் சதிகாரர்கள் எப்படி இருப்பார்கள்? இது மட்டும் அல்ல... கண்டதும் காதல், கேட்டதும் காதல், பழகியதால் வரும் காதல், காதலுக்காக உயிர் விடும் காதல், என்று special attention காதலுக்கும் குடுக்க பட்டுள்ளது.
இதற்கு மேல் என்னால் continue செய்ய முடிய வில்லை. அதனால், இந்த கதையை படிக்க வாய்ப்பு கிடைத்தால் கண்டிப்பாக படித்து பார்க்கவும். இந்த ப்லோகையே இவ்வளவு தூரம் படித்தீர்களானால், கண்டிப்பாக, அந்த கதையை வுங்களால் படிக்க முடியும் என்று உறுதி கூறுகிறேன். இனிமேல் தமிழில் ப்லாக் எழுதினால் கை கால் முறிக்கப்படும் என்று வுங்களில் யாருக்காவது தோன்றினால், கண்டிப்பாக கூறிவிடவும், இல்லையேல், நான் மீண்டும் தமிழில் ட்ரை பண்ணுவேன் என்று எச்சரிக்கை செய்கிறேன்!
Tuesday, November 06, 2007
A Puzzle and A Joke!
The answer is, if you want to take some more time, you can very well think and read further. The next statement will be the answer. Okay? Ready? The answer is, whatever is the number he guesses, he has 1\11 chances of saving his soul. This is because, the result from tossing a dice is 100% random and each and every time, it is tossed, it is a separate and unique event which has no connection with the previous results.
I do not know why, but nowadays, I am little or even more interested in share market. May be it is because my time is becoming bad or because it is becoming worse. This puzzle has a 100% valid connection with share markets. If the market goes up continuously 10 days, we can not be sure that will go up on the 11th day. We can not predict how it will go even within a single day or a single hour or a single minute. For, if anyone could predict that or control that, he\she will or will soon have an own aeroplane. Share market is like a black hole which contradicts a lot of concepts. Calculation, Brilliance, Analysis, Luck, etc. concepts are devoid in share market. For me share market is like a pet lion. It could be your pet for years and years and one day it could kill and eat us.
Lets come to the joke part (it is VVPJ (very very PJ [poor joke])). I and my dad was discussing about a company's share.
My Dad: "We have 500 shares of that company but it does not seem to increase. If a share lingers in a particular price, it is an indication for a break out. Either it could go up rapidly or go down rapidly. But I guess it will go up, but could not say when"
I: "I could say easily dad. If we sell all the shares, it will go up the next minute"
That is all. The joke is over. It was to mean that, we have had a lot of bitter experience that, the moment we sell a share losing the hope, the next minute it will increase and go up rapidly.
I think I will post some more blogs about this lovely killing beast. You may click here to see my first blog about share market. Keep watching both my blog and the market.
Wednesday, October 10, 2007
A Truth About setAccelerator method in JMenuItem - Technical Article in Java
There is a special method called setAccelerator() in JMenuItem which is used to invoke the action listener method of the menu item without navigating through the menus. Simply pressing the key combination would give an effect of clicking the menu item. The most famous accelerators are (ctrl + c, ctrl + v, ctrl + z, ctrl + s, ctrl + a, etc.) which will be available for almost all the applications.
Suppose, if we develop our own application which has a GUI (Graphical User Interface), we will definitely have a menu bar and various menu items placed in different hierarchy of menus. Setting mnemonics is one way to let the user access the menu items without using mouse. But using mnemonics will require the user to navigate through various menus and there could be menus inside menus inside menus, etc. So, for power users, it is best we have this accelerators set.
To do it, we have to use the method setAccelerator() for the particular JMenuItem object. This method takes a KeyStroke object as an argument. This KeyStroke object defines which key stroke combination should be used to activate the menu item. The beauty about this KeyStroke class is that it has various ways to achieve a particular key stroke combination. It has many overloaded methods named getKeyStroke which takes various combination of arguments.
Suppose, if you want to set an accelerator of ctrl+x, if we set the accelerator using menuItem.setAccelerator(KeyStroke.getKeyStroke('x', InputEvent.CTRL_MASK)); it wont work!!! The character argument is considered as an int and it wont work. So, if we use menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_MASK), then it will work fine. But what will we have to do, if we have to set the accelerator based on some runtime input or if we really want to use a character instead of KeyEvent object.
We have one more alternative, and we will be tempted to use KeyStorke.getKeyStroke(new Character('x'), InputEvent.CTRL_MASK). If we use this, we will see that, the accelerator we set, is mentioned in the menu item. But if we use the key combination, it wont work. Because, the key stoke object thus we got is decoded in to "ctrl typed x" but for accelerator it should be "ctrl pressed x". Fortunately, the KeyStroke class one more method which takes a String as an argument. So we will be tempted to use KeyStroke.getKeyStroke("ctrl pressed x"). And the truth is that, even this wont work!!!
The reason is that, we have to give a capital letter for the character and not small letter. So, if you give KeyStroke.getKeyStroke ("ctrl pressed X") will only the accelerator work and there is no documentation which says this, that we have to use capital letter in the key stroke object if we wish to set it as accelerator for a menu item.
So, if you wish to develop an application and then set the accelerator for menu items, and if that does not work, make sure the KeyStroke object that is set has the character "upper cased" and it has "pressed" instead of "typed". If you have had similar kind of technical difficulties and found a way to solve it, you can very well share it here.
P.S.: I am really sorry if this blog has been very confusing and not understandable. [I am editing this blog after some months because, I find that this is the blog which is most viewed, most of the viewers from Google searching about this method. If you find this blog is useful (or useless), please comment about it and let me know how can I improve this or my future blogs]
Wednesday, September 19, 2007
Stock Market!
Stock Market seems to be the future for everyone. Everyone including government employees, house wifes, college students, software engineers, etc. are now in to it. It intrigued me and I learned some thing (which is very very less) about the market and it was intimidating to know how many have lost their life in this game. Game, yes, we can say Stock Market as a game, which is controlled by some one or some thing which in invisible and constantly watching us, for it is the case for almost everyone that, the moment anyone sells a company's stock, the price increases and the moment anyone buys the stock, the price decreases.
The thing which confuses me is that, I have seen lively, no one will be ready to buy stocks of a company, for say, at a particular time, for Rs. X and after some minutes they will be very much ready to buy it for Rs. X+10 (or 20 or 30) and it is the same case for selling also in the negative meaning. Meaning, no one knows the exact price of what they are buying or what they are selling, why they are buying and why they are selling, they simply do as many number of people all over the country do. Do they know that the stock which they buy for 100 or 200 or 500 or 1000 worths only Rs. 10 or even less? Less people will only actually know this and play in Stock Market, but all others just do without even knowing what they are doing.
Some experts say that you have to watch the market constantly to be a millionaire and that expert will not be rich or may even be poor, struggling to get money to invest in it. It is what I have learnt that, knowledge alone will do no good, for you will have to have a lot of money and luck. Luck is needed to help the price increase for the stocks you buy, as there is no way one can predict what the price will be in the market the next minute, otherwise, everyone will earn a lot of money. Money alone can make you earn more money and all other factors like knowledge about the company (whose stock you are going to buy), Predictability, Luck, etc. are secondary things only.
If you want to enter into the share market and if you have a little money, you will surely lose it and if you have money, you will still lose it and if you have more money, you could earn money and if you have a lot of money, you will surely make a lot from it. It is like, grabbing the money from those who have less and give it to those who have more. More over, a statistics says that, 95% of those who do intra-day share meets loss and those who wait (obviously having more money) could gain. Gain more knowledge about share markets before investing much. Much I have told now and you could think all I have said is an utter more bull-shit or some other shit, but these are the things I know with my little knowledge and I may be totally wrong. Wrong or right, I have told my view, and now is your time to share your views...
[P.S.: I have tried much to make every sentence's first word to be the previous sentence's last word. Word used might have given wrong meaning but I just wanted trying. Trying is not a bad thing isn't it?]
Sunday, August 26, 2007
Maturity - Different levels
What I mean by maturity is how one behaves in situations or how one handles situations. There could be various aspects of maturity and various form for it also. Different forms of maturity is like, how one behaves in happy moments, sad moments, frustrated moments, angry moments, etc. What I mean by different levels of maturity is, when they show the matured behavior.
For example, when taking a happy moments, showing maturity will mean not to make promises beyond our capacity, when talking about victorious moments, showing maturity will mean being modest, in angry moments, being mature will mean the ability to keep our mouth shut, etc. I would like the tell my opinion about the last case, different level of maturity in case of anger.
Wednesday, August 08, 2007
Exaggeration a tool for humor and horror.
I remember the word *slapstick* which means the use of exaggerated violence that is intended for humor where if there is no exaggeration, then it will mean a vigorous violence. This is the technique used by many comedians, especially Vadivelu. Even when friends get together and talk about a victim, one among them who will be the target of the speech and will be made fun of, there will be a lot of exaggeration to add masala of the topic they talk about him/her.
On the other hand, when someone is told about someone about something negative, exaggeration will prove to be a drastic tool. A little amount of exaggeration is enough to make adverse effect. Since we always see a lot of people whose habit is to exaggerate even when talking about something which is not for fun, and how we loathe about that and how we always hesitate to believe whatever they say, I always try not to exaggerate things when I talk about serious things. And of course, when I fail and when I exaggerate, I will later despise myself for that, and of course it continues till now.
So, let me try and stop completely to exaggerate; and when I mean stopping, I mean that the exaggerating factor be very very less about +\- 0.0001%, as this is the percentage which will happen without our intention, because of the excitement. What more, let me finish with another PJ (poor joke) which I heard when I was a small kid. 'Three friends are taking and one of them says "I had seen a snake of this much length" and he stretches out his one arm to show the measure. Suddenly the second one says "I had seen a snake of thisss much length" and he stretches both of his arms as wide as possible. Now the third one, slaps hard on the second one's face and says "Now, how can I say a size which is more than yours?, You should have used one and a half arms so that I could have used two arms".'
I could overhear some of you saying, "But you told that you are going to say a PJ?" :D Feel free to comment or tell about your views\experiences.
Wednesday, July 25, 2007
Harry Potter and the Prisoner of Azkaban
Harry is excited to go his school, Hogwards, for the third year, after the adventures he has done in the second year. Harry is now every student's favorite, as what he has done has made the school Headmaster, Professor Dumbledore, to give a school treat of canceling all the exams! Before he is going to start he finds out that a prisoner who is heavily armed has escaped a prison and that everyone in the Muggle world is warned about him.
Disgusting things happen that Harry leaves his aunt's house and soon he finds out that the prisoner who had escaped is not a Muggle but is a very powerful wizard and an expert in dark magic, who had killed 12 people in a single curse. And also this prisoner is the only one who had ever escaped from the Prison of Azkaban, a prison for witches and wizards heavily guarded by Dementors: a magical creature which sucks the happiness out of a person and whose kiss will suck the soul out of the body.
How could anyone escape from such a prison? And in the history, the prisoner is the only one who had ever escaped. And to his horror, Harry finds out that, the prisoner has escaped to kill Harry! Harry is not only chased by this killer, but also by a death omen; a gigantic dog. Prophecy says that Harry has to encounter the Grim (the gigantic dog) and that he is going to die soon! The idea of Hogwards being the safest place also becomes false as the prisoner has already entered into the school and Dementors are guarding the school.
Harry becomes Dementors most favorite target as Dementors easily attack those who have a tragic memory. Harry almost dies in many instances due to the attack of the Dementors and narrowly saved. How Harry is going to tackle the Dementors?, how he is gong to face the Grim?, how he is going to escape from the prisoner? is the rest of the story. An excellent novel with an excellent twist. The story goes slowly in the start and at the end it goes in light's speed. If you have not read this book yet, I strongly recommend you to read it (after reading I and II part) and share your comments.
Saturday, July 21, 2007
Harry Potter and the Chamber of Secrets!
But in the second year there are more dangers and threats awaiting him. Harry faces much more trouble even before going to Hogwards. But soon, a doubt arises to the whole school: "Whether the threat is for Harry or the threat is by Harry". The Chamber of Secret is opened again, which by myth has a dangerous monster locked in it which will kill the enemies of the heir of Slytherin; one of the founder of Hogwards, a very powerful Wizard who dislikes Muggles [non-magic creatures, humans :)]. Strangely those who disturb, or seem to disturb Harry are petrified one by one.
At some point of time, Harry uncovers some truths that make himself to doubt whether he is the heir. All the student fear Harry, talk bad about him, sing bad about him, loathe him. Harry after some efforts find out that, a very trusted staff is the one who has opened the chamber last time! Before he could do any further investigation, his close friend is also petrified. And one more! What happens and what is going to happen then becomes a million dollar question.
How Harry is going to overcome this and how he is going to face the deadly monster that is in the Chamber Of Secret is the rest of the story. A very unpredictable and extremely interesting adventurous story is this. Success of Harry Potter books is that it has many aspects like, sentiment, thrill, horror, who-done-it puzzle, friendship, fight of good and evil, school time adventure, etc. A must read novel! If you find many terms not understandable, it is time you start to read the HP novels. So, read this novel if not already read and comment about this book after you reading it.
Saturday, July 14, 2007
Not a Penny {More/Less} - Jeffrey Archer's First Novel
With little investigation he finds the other three people to be an art dealer Jean-Pierre, a doctor Robin and a land lord, James who wishes to become an actor. Some how he manages to co-ordinate a meeting with all the three and they four decides to cheat Harvey and get all their money back, not a penny more; not a penny less. Though this is some what dramatic, to have mutually unknown persons meet up and agree to take revenge on an expert in swindling, it is acceptable; after all, anyone could be brain washed.
Everyone except James comes with a plan that could get some money from Harvey; when James meets a stunningly gorgeous a-typical-most-beautiful-girl-in-novels and falls in love with her at the first sight. When everyone dies to device a plan to get their money back, James devices plans to attract her and date with her, and like everyone else, he succeeds in his mission.
All the four of this team take part in others' plan and they somehow manage to get 3/4 of their total money loss; only missing the James part of contributing his 1/4 of the money. And James becomes the hero of the novel by an extra-ordinary twist in the end and he manages to get his team his contribution. There are more good news in the ends and the novel ends with a happy ending.
A good novel which is worth of the time spent in reading that. Though all the three plans are somewhat guessable, the twists and turns that happens when the plans are executed and how they fail because of lack of contingency plans and how they recover quickly from that are interesting. So, if possible read this novel and share your comments.
Saturday, June 23, 2007
Idea Aiyasamy - How to blog wihtout going to blogger.com?
Karuththu Kandasamy - Reject any proposal that give you short time to think over. (life lesson)
Mokka Muthusamy: Harry Potter and the Philosopher's Stone
But for a very very close friend of mine who presented me all the six volumes of HP as my birthday gift, I had to start to read HP. The moment I started reading that book, the moment I started liking it. First I thought that having seen the movie, it wouldn't be nice to read that; but that is not true. Reading that book is much more fun and thrill than seeing the movie (but thank God, I have not seen the 2nd and 3rd part of the movies). If you are like me, thinking that reading the book would not be fun after watching the movie, just stop thinking like that and go ahead and read that book. Now that I have finished the first part, in a very less time, in the period I felt ill, in the period I had the most horrible personal problems. Being engrossed in Hogwards School has kept me reading and that relieved me from my personal worries.
After reading that book, I felt very thankful to my friend who had introduced his friend HP to me, and hope that you will also be to me, if this blog made you to read that book. I want to write a lot about this (and I will), how to read HP (similar to the blog Why To Watch Movies) and what will make you like HP (in case you have not read that already). So, what I want to convey from this blog is that, do not be a conservative and refrain yourself from reading it, and do not think that previous knowledge through the movie will lessen the fun of reading and more importantly do not think that HP is for kids (not in the sense that it also has some adult contents ;) but) in the sense that everyone will like it. Read that book (I would prefer to say 'study the book' instead) and share your comments whether, this blog is right or wrong.
Monday, June 18, 2007
Karuththu Kandasamy: Let not the company you work influence your big personal decisions.
I have seen and I am also an example for this (in fact, I could serve as an example for many better-not-to-do to never-ever-do mistakes, and I will tell you all these in blogs-to-come). Buying a house, not in our native place, but near the company we work (at that time) is one such example. As we may not know where we would be after 2 year, or 2 months or 2 weeks. Having got a reasonably satisfying work and a good lead or manager, we tend to think that we will not shift the company and decide to buy a house near the company premise. Later after the company decides to shift to a luxurious premise located 40 KM away from the place, or the lead\manager is changed, or appraisal comes ( :) ), we will have to worry and keep worrying.
The fact that we bought a house will also make you hesitate to shift the company and being restless with the appraisal or the new (Hari Sadu) leads\managers or the new premise located far far away. So, the karuththu I want to say is that, do not make any big decision based on the company and the location of the company you work, including, finding a life partner (fortunately, I do not serve as an example for this :) ). Feel free to tell about your similar mistakes, and share your comments.
Tuesday, June 12, 2007
Mokka Muthusamy: Why to watch movies?
For example: You come to know that your biggest real time enemy enemy is your lover in the internet (You've Got Mail), You can not lie whatever is the question asked (Liar Liar), You find yourself inside the house of cannibals (Wrong Turn), Fighting with your enemy knowing that you will die surely (Troy), You become the God (Bruce Almighty), etc. Such situations could possibly never happen in our life.
So, to experience those feelings and sentiments, we have to watch movies. Movies, which would put us in a situation that might never happen in life (ofcourse not like fighting with 100s of men, making men fly by daringly seeing at them, etc. they are non-sense :) ). This is just a mokkai (meaning useless talk in Tamil (I am talking as though readers from all over the world are reading this :) )) I wanted to share. I will also come up with another mokkai of how to watch a movie.
Monday, June 11, 2007
Karuththu Kandasamy: Say No at the first time!!! (life lesson)
Let me tell you with an example, a real time example, which I had experienced. When I first bought a computer when I was studying in my college, my acquaintances wanted to watch movies in my system. I promised myself when I bought the system that, my system will never be used for entertainment (after all all the computers will have this resolution taken on them :) ). Not able to say *NO* at the first time, I allowed them. Soon before I could recognize, that has become a non-sense to my life. Strangers coming to my room to watch movies, play games etc (that became a non-sense as I love privacy when I am not with my friends).
Hope you understand this: this is a simple example, I am saying. Had I said *NO* at the first time, perhaps, I would have faced a little embarrassed to talk to those acquaintances for some days. I might not have lost my peace and happiness. So, if you are not 100% okay with any proposal, say *NO* at the first time, to avoid a great misunderstanding and fight at the later point. This is one of a life lessons, following will keep you happy throughout the life. Please share your comments on this.
Monday, June 04, 2007
Karuththu Kandasamy: Do not stop a parents who rectify their child's mistake!
One thing here to understand is that, only because it is a child, the parents have to teach moral. The parents will not be able to teach moral when the child becomes a no-longer-a-child. This is a simple example. Be it whatever, please do not stop any parents. In doing so, you will make a to-be-a-good-guy\girl to yet-another-teen.
Tuesday, January 30, 2007
Bloody Diamonds
When ever we buy diamonds we have to know that it has a black history of millions of bullets killing thousands of innocent families completely destroying a lot of villages... So, from now onwards I ain't going to buy diamonds besides the fact that I can not buy them.
To know about the movie Babel, please visit http://shriman.blogspot.com/2007/01/babel-review_116983734784996514.html
Saturday, January 13, 2007
SPHINX
Imagine that you are sealed in a room of pitch-black-darkness, leaving no room to escape, with some people accompanying you, who had come to Egypt for the same purpose of yours, who were dead a two years ago. Imagine that you have found a way-out, by using some matchsticks you luckily had, to another chamber of extreme darkness. You have only a limited number of matchsticks left now and you have found a stick like object. Having the idea of burning it, to illuminate the room, with only a few matchsticks left, you lit a matchstick, and you find a mummified forehand in your hand! -my blood was chilled to read this elaborately for about 5 pages. Read this book and let me know your comments.
Monday, January 08, 2007
Life is [not just] beautiful [it is excellent].
The first half is hilarious and in this the hero marries his princess[ that is how he calls her]. The second half of the movie is full of tragic-comedy and the climax is tragedy. The story baseline is this: The Jews in the Italy are taken by the German troops to do some work in a camp as slaves. The hero is also taken there with his only son of about 5-6 years old: a very cute boy. In order to keep his son happy, the hero says that all this work is done to win a game and the price is a real Tank. Despite all the problem, he manages to laugh and make his son laugh. Till the end, he keeps his son safe and happy.
After seeing the movie anyone will become speechless. The music is also excellent. I can not help having goose flesh in the climax for all the three times I saw the movie. If you have not watched the movie, please watch it and let me know your comments.
Thursday, January 04, 2007
I was in Coma!
The last 100 pages of the story made me to tremble. All the chapters of the books will have the time of happenings. The whole story takes place within 3-4 days (apart from the first chapter). Read the book and give me your comments.
Mutated a long back.
This is a very beautiful story which will not let you put the book down. So, if you ever get a chance to read this book, read it and give me your comments.
Tuesday, January 02, 2007
Free From Gothic!
What? Has Gothic III been released?
:)