A simple JDBC connection tester Cont’d

8 04 2007

In my earlier article I tested the JDBC using the DriverManager but in this article I’m going to test it using DataSource Interface, this interface uses the Java Naming and Directory Interface (JNDI) to store Logical Name for the Data Source instead of using the driver name to connect to Data Source.

A small requirement urged me to write the below code, I got to thank the requester.

For running the below code I used MySQL - Version 5.0.16 as the Database and Eclipse SDK - Version: 3.2.2.

Also do replace the following: DB_USER_NAME, DB_PASSWORD, DB_NAME, DB_TABLE_NAME, DB_TABLE_COLUMN_NAME

Read the rest of this entry »





He Came, He Saw, He Unveiled

5 04 2007

In my earlier article I clearly stated that the Entire System in India Lacks Professionalism, if any confirmation is required then the best possible example could be this one, Mr. Greg Chappell quitting as coach of Indian Cricket Team.

I just want to put forth my views regarding this issue and before doing that I want to add this

Disclaimer: Things mentioned below are my personal views and I believe this is neither going to be inflammatory against any individual nor it will be holding prejudices.”

Here is My Four Point Theory

[+] We Love Trouble!: Don’t we, we (Indian cricketers) asked for a foreign coach and I don’t think he (Mr. Chappell) was best suited for the existing system that is present in India. Reasons are umpteen in number for this, he is an Australian and what can you expect from an Australian,

‘..to me they are the most aggressive sportsmen on earth, they play on your weakness, they are mentally tough and can even sledge any player on the field it is not that they want to show off but they just prove their mettle and above all it is the sense of pride, self-esteem that creeps in any player who performs remarkably well that’s why you call them as the invincible. Let me confirm I’m not a die hard Australian Supporter but just an admirer. I love the way they play the game of Cricket, anyone can say that Cricket is a Gentleman’s game and Australians are not trying to be fair on the field since you see a lot of sledging or scathing remarks being made on the opponents or on any of the high profile players but at the end of the day they will be sharing the lighter moments, I have to appreciate the way they greet or congratulate the opponents when the opponent player scores a century because they play it on the true spirits. So cricket is just a mind game like chess where strategy is of great significance, a lot of psychological thing is attached to it.’

Coming back to Mr. Chappell, honestly speaking he proved that he is a true Australian, autocratic, ruthless, unyielding, authoritarian in his very approach to the game (’this could have been experienced by most of the Indians when The Great Captain Mr. Sourav Ganguly was ousted from both forms of the game but he was a true warrior who accepted the challenge and fought his way back to the Indian Team in an emphatic way though it was unacceptable to treat a player so shabbily but he (Mr. Chappell) brought the best out him (Mr. Ganguly) ‘), but this is not the way we are brought up, we are brought up by a tried and tested democratic set up or I can even call a diplomatic system which has failed miserably on all the fields. We know the problem and I feel we shouldn’t be blaming Mr. Chappell, because we know he is going to be very clinical in his procedures and would show a lot of professionalism which will not be appreciated by us. In short we were asking for trouble.

[+] Entire System Lacks Professionalism: The existing system which is spread far and wide across the country in all the fields has failed miserably, and ultimately the commoners are the sufferers. After all, all these things are the subsets of ‘corrupt bureaucratic society which lacks a lot of professionalism‘. ‘The system doesn’t give assurance, the commitment, does not take the responsibility but the system promises only disappointments‘.

‘ ..to me we don’t need leaders with political background to run an academy or a board for you need professionals in the form of former players or cricketers who have played the game who just know what the system demands and how it can be met, the system needs to bridge the gaps between the demands and supply. For this the board should have stringent policies in restricting the endorsements signed by players, finalizing on player contracts, and induction of young, energetic, talented, committed sportsmen across the entire country. The system should give credits only for meritocracy.

But.. “It is really frightening since we deem it as a very right that our country is a sovereign, democratic and republic one, but the stark reality is, these are just being called out during some rare occasions, for we can never feel it “.

So at the wake of this current crisis we have another problem and this time it is with the system. The system’s inefficiency to handle situations and their significant weakness has been exposed.

[+] Nothing sells better than controversies: This is, one big problem where media takes utmost liberty or privileges of bringing about controversies to limelight but they play it very safe by leaving to the viewers’ discretion or judgment. They (media) are responsible for any sportsman’s / businessman’s success or failure(s).

‘..I still remember The Great Indian Maestro Mr. Sunil Gavaskar quoted this “that you need a big Big BIg BIG heart” to accept accusations, or anything which is pushed at you which is totally unacceptable, this was quoted when India and Pakistan played the test match in Chennai and the Pakistan wicket keeper who kept the wickets for the entire day in a fabulous way failed to collect or pouch a dolly when the spin bowler bowled a wide delivery. In real life one needs a big Big BIg BIG heart, so the Legend of the Cricketers Mr. Sachin Tendulkar could have waited for the reports and could have come out with much more stronger statements once it (report) was produced in black and white but all is well ends well, I really appreciate his straight talking but now he needs a big Big BIg BIG heart to digest all the controversies swirl around him.

[+] Finally the public: Cricket is just another game but we say it is our religion and the players are Gods, this expresses the passion towards the game but we can not have emotional things running into anything. I was disgusted and it was of great disgrace that the Indian public went to an extent of doing the final rights for the player’s effigies this is something unethical and uncalled for. I don’t know whether the same treatment is given to a leader who fails to keep his words or promises. But after all it is system which makes the commoners to feel that the ‘ethics are something which is stuck up on bulletin board and they are not the ones to be practiced but to be preached’.

So what we need is a radical change and it is proving to be a million dollar question as to whether we can witness that change in all the aspects’.





Finally I own a Digital Audio Player

30 03 2007

I can say it was my dream, to own a Digital Audio Player and I had a thought in my mind that I could not have trusted any one I mean the manufacturers except for the makers of the Flash Drives. So why not buy a Digital Audio Player manufactured by the company which designs and markets flash memory card products. It is none other than SanDisk Corporation (To know more).

I got to thank them for producing a gem of a Digital Audio Player - The e270 a new Rhapsody enabled player, is the top-of-the-line product from the Sansa series (To know more), and the features are as listed below:

  • 1.8” (4.6 cm) TFT color display and can display album cover art.
  • Enables the user to view pictures and MJPEG encoded QuickTime videos through conversion on the Sansa Media Converter.
  • User replaceable and rechargeable lithium ion battery, microSD expansion slot, FM tuner, FM recording and voice recording.

So what else can I ask for, it is one awesome Digital Audio Player which looks cool, made up my mind and bought it.

Here is a snapshot of it…

Read the rest of this entry »





Entire System Lacks Professionalism

24 03 2007

It is thoroughly disappointing and it is not something new to the whole of India, but it is a verifiable fact that the entire system is a complete failure and no one is able to question it.

The existing system which is spread far and wide across the country in all the fields has failed miserably, and ultimately the commoners are the sufferers. In my earlier article I quoted this,

It is really frightening since we deem it as a very right that our country is a sovereign, democratic and republic one, but the stark reality is, these are just being called out during some rare occasions, for we can never feel it “.

Injustice is served to the people, to the common man in every form and ‘even the employees of the organization are not spared‘. The reason for all these things is just that ‘we do not have any professionalism‘ and most importantly no one understands that ‘It is not the quantity that matters the most, it is the Quality‘.

We can’t expect things to get any better for we live in a ‘corrupt bureaucratic society which lacks a lot of professionalism‘.

There are many number of case studies that can be put forth but the best could be attributed to it is yesterday’s game which confirmed the ‘early exit of the Indian team from the world cup‘, reasons for this are many in number but to quote a few it is ‘again the system which is a complete failure‘, the board, selection committee, team management, coach and not forget the players.

After all, all these things are the subsets of ‘corrupt bureaucratic society which lacks a lot of professionalism‘. ‘The system doesn’t give assurance, the commitment, does not take the responsibility but the system promises only disappointments‘.

So what we need is a radical change and it is proving to be a million dollar question as to whether we can witness that change.





Importance of Collection Classes cont’d

4 03 2007

In this article it is going to be with the help of SubList, and with the help of ListIterator we can limit or set the boundary condition for number of Object’s references to be taken from the Vector which is filtered into another sub list. Read the rest of this entry »