Archive

Archive for April, 2007

Cup of Joy – The Invincible Australian Team with Indomitable Spirit

April 29, 2007 abr3 1 comment

I  have not seen any individual in the game of cricket to let his mouth as well as his  profession do the talking.  The He that I’m referring to is none other than the Great Mr.Glenn McGrath.

He is an amazing bowler who bowled with a lot of discipline, here is a quote -

McGrath bowled an unremitting off-stump line and an immaculate length, gained off-cut and bounce, specialised in the opposition’s biggest wickets

I have rarely seen him straying on the leg stump, the channel that he used to bowl was something special, Just outside the off stump always luring the batsmen to edge to the slips or to the keeper, every single delivery that he bowled was virtually unplayable ones, he made it a point that the batsmen should invest a lot of effort to earn a single run, there are many batsmen who have scripted success stories against Mr. McGrath but I still feel that it was Mr. VVS Laxman, a very very special player indeed. Here is a quote by the invincible Australian Team -

“The Australians, who have suffered more than most, paid the highest compliment after India’s 2003-04 tour Down Under by admitting they did not know where to bowl to him.”

But I will always enjoy the contest when it comes to Mr. Lara Vs.  Mr. McGrath. No one can forget a sequence of 213, 8, 153 not out and 100 made by Mr. Lara, against the Mighty Australians during 1998-99 season.

As the adage goes there is always an end to a beginning. To me the World Cup 2007  left a lot of unsavory memories

[+]  Sad demise of the Great Cricketing Mind Mr. Bob Woolmer.

[+]  Infamous but the Inevitable exits of the Giants – Indian Team & Pakistan Team

[+] Retirments of the Great Players Mr. Anil Kumble, Mr. Inzamam Ul Haq, the enigmatic genius Mr. Brain Charles Lara, finally the Gaint amongst the Men Mr. Glenn McGrath.

 
Categories: My Perspicacity, My Way

Want to Take The Diagonal Elements From A Square Matrix

April 28, 2007 abr3 Leave a comment

Myself and My Colleague were doing some bug fix, simultaneously we were writing a simple JDBC code, at that time my colleague caught up something interesting.

Yes if you ever wanted to print out or take out the diagonal elements from the Square Matrix, bear it in mind the code given below is applicable only  for the Square Matrix (To Know More about Square Matrix) .

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.

Read more…

Categories: Geek, Informative, Technology

How to Configure DataSource for Struts based Web Application

April 21, 2007 abr3 Leave a comment

Finally after a big battle I shouldn’t say it as a Battle got to say it was a War. I was able to run a web application done in struts framework, and based on my success story I’m just putting forth my views as to how to run the struts based web application.

(1) Nothing can teach as a documentation which is bundled along with the product, so what I did was I went through the docs provided by the Apache Tomcat and figured out as to how to configure / write context.xml files, first comes first.

You need to allow your web application to connect to your Database (MySQl / MS SQL / HSQL / DB2 / Oracle or x..y..z..) by means of DataSource interface of the JNDI which can be achieved by DBCP (DataBase Connection Pooling).

Download the Read Me File  for configuring / writing the Context.xml file.

(2) Struts Libraries, mostly to avoid the incompatibility always go for a stable version I prefer 1.1 or 1.2.9 do not go for any other versions, always remember that your Web Application should be a plugin pattern, so create a folder ‘ lib‘ inside your web application and put all the dependent libraries for the web application in that folder also put your entire ‘lib ‘ of struts distribution inside that framework this solves most of the problems.

(3) Always write Ant Scripts for your web application which will make life simple for compiling java files of your web application.

Categories: Geek, Informative, Technology

A simple JDBC connection tester Cont’d

April 11, 2007 abr3 Leave a comment

In my earlier article I tested the JDBC using the DataSource Interface but in this article I’m going to test it using DataSource Interface with MysqlConnectionPoolDataSource.

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 more…

Categories: Geek, Informative, Technology

A simple JDBC connection tester Cont’d

April 8, 2007 abr3 1 comment

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 more…

Categories: Geek, Informative, Technology