Posts

Showing posts from July, 2008

http://www.java-tips.org/ - A Good site for a real quick help in java

A very useful and good site for basic things for a quick review for basic and advanced java stuff. http://www.java-tips.org/

Execute .sql script file using java

A few days back I tried to execute our database scripts file using java in a plain way but I am not sure how good it is? but I am done with my work with no known issues but still I'm thinking is that right way to parse entair .sql file and pass the each line to JDBC API and ask JDBC API to execute that line of SQL? Here it is the method I used... public boolean executeDBScripts(String aSQLScriptFilePath, Statement stmt) throws IOException,SQLException { boolean isScriptExecuted = false; try { BufferedReader in = new BufferedReader(new FileReader(aSQLScriptFilePath)); String str;StringBuffer sb = new StringBuffer(); while ((str = in.readLine()) != null) { sb.append(str + "\n "); } in.close(); stmt.executeUpdate(sb.toString()); isScriptExecuted = true; } catch (Exception e) { System.err.println("Failed to Execute" + aSQLScriptFilePath +". The er...

How Hard Could It Be?: Five Easy Ways to Fail...

As useal I was surffing net and I found a very good article a must read one by Joel Spolsky is the co-founder and CEO of Fog Creek Software. Here it goes... http://www.inc.com/magazine/20071101/how-hard-could-it-be-five-easy-ways-to-fail.html?partner=fogcreek How ever I copied to here as it moves off A huge number of technology projects go wrong. This is news to no one. Whether you run a software company with a number of ongoing development efforts or you have a nontech company that hires consultants here and there to provide systems integration, chances are you've bumped up against this problem. Delays, blown budgets, and outright failures are so common in the software world, in fact, that it's hardly newsworthy when a project is years late and millions over budget. In 2003, for example, I flew out to Los Angeles for one of those conferences that Microsoft (NASDAQ:MSFT) occasionally puts on for software developers. At the event, Microsoft made a lot of exciting announcements a...

Not the User's Fault from Jono at Mozilla Labs

I found this on Internet worth to read it...I think Author is from Mozilla Labs. These things I believe. These things I believe about software development and user-interface design. 1. Why write code? Software is for humans, not for computers. Software is only as good as the improvement it makes to a human being’s life. Are we making someone’s job easier? Letting them have more fun? Helping them learn? Helping them keep in touch with friends and family? Are we making the world a better place? 2. What do people want? Most people do not want a computer. They don’t even want software. For us software developers, this is a painful truth. If people don’t want a computer, why do they use one? * Email — for writing to other people. * Instant messaging — for talking to other people. * The web browser — for reading what other people have written. * Word processing — for writing something you’re going to print out and show to other people. * Graphics — for creating artwork. To show to ot...

The Funeral...

One day all the employees reached the office and they saw a big notice on the door on which it was written: "Yesterday the person who has been hindering your growth in this company passed away. We invite you to join the funeral in the room that has been prepared in the gym". In the beginning, they all got sad for the death of one of their colleagues, but after a while they started getting curious to know who was that man who hindered the growth of his colleagues and the company itself. The excitement in the gym was such that security agents were ordered to control the crowd within the room. The more people reached the coffin, the more the excitement heated up.Everyone thought: "Who is this guy who was hindering my progress? Well, at least he died!" One by one the thrilled employees got closer to the coffin, and when they looked inside it they suddenly became speechless. They stood nearby the coffin, shocked and in silence, as if someone had touched the deepest part...

One paragraph that explains LIFE!

Image
Arthur Ashe, the legendary Wimbledon player was dying of AIDS which he got due to infected blood he received during a heart surgery in 1983. From world over, he received letters from his fans, one of which conveyed: "Why does GOD have to select you for such a bad disease"? To this Arthur Ashe replied: "The world over... 50 million children start playing tennis, 5 million learn to play tennis, 500,000 learn professional tennis, 50,000 come to the circuit, 5000 reach the grand slam, 50 reach Wimbledon, 4 to semi final, 2 to the finals, when I was holding a cup I never asked GOD 'Why me?'.And today in pain I should not be asking GOD 'Why me?' " "Happiness keeps you Sweet, Trials keep you Strong, Sorrow keeps you Human, Failure keeps you humble and Success keeps you glowing, but only Faith & Attitude Keeps you going...

Love

No Limits for Love....... While a man was polishing his new car, his 4 yr old son picked stone & scratched lines on the side of the car. In anger, the man took the child's hand & hit it many times, not realizing he was using a wrench. At the hospital, the child lost all his fingers due to multiple fractures. When the child say his father.... with painful eyes he asked "Dad when will my fingers grow back?" Man was so hurt and speechless. He went back to car and kicked it a lot of times. Devastated by his own actions...... sitting in front of that car he looked at the scratches, child had written "LOVE YOU DAD". The next day that man committed suicide. . . Anger and Love have no limits, Choose the later to have a beautiful & lovely life ....