
Sunday, July 28, 2013
Steps to install Tortoise svn plug-in for Eclipse

In this post, we are going to see how to install tortoise svn plugin for eclipse.Steps to install Tortoise plug-in for Eclipse:Requirement:JDK 1.5 or laterTortoise SVN [Download]Eclipse 3.xSteps:Install:1. Open Eclipse IDE.2. Open plug-in folder.[ex: D:\eclipse-jee-juno\eclipse\plugins]3. Download and extract the plugin...
Read and Display the Properties from a Properties File
In this post, we are going to see how to read a properties from a Properties file.Project Structure:=======================================================ReadingProperties Src com.ranga ReadProperties.java login.properties=======================================================ReadProperties.javapackage com.ranga;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.util.Properties;/** * @author Ranga Reddy...
Saturday, July 27, 2013
10 Ways to Boost Up Your Coding Productivity with Eclipse

10 Ways to Boost Up Your Coding Productivity with Eclipse 1. FindHuman eyes can't be trusted, and prone to errors. To search strings always use the FIND feature.In eclipse, this feature is even so powerful. Here what we can do in Eclipse:search in the entire workspace, workset, project, or selected resourcessearch with regular expressionsearch within files with a defined pattern2. Find and ReplaceImagine that you have to edit texts in some files...
Saturday, July 20, 2013
org.apache.ibatis.exceptions.TooManyResultsException:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2Example is : while fetching by name, name founds in two times.ID NAME DESCRIPTION 1 Test ...
How Connect to Oracle when you forgot your Password
Reset Oracle Password Step1: Open SQL Command Line and enter the following command:SQL> conn sys/manager as sysdba;Connected.Step2: To reset the password of the SYSTEM password (or any other user password), run the following query: SQL> alter user sys identified by manager;User altered.OrYour password file should be under <orahome>\database\PWD<SID>.ora. Delete it and run the Oracle password utility from the command prompt: c\:Oracle\ora92\database>ORAPWD file=PWD<SID>.ora password={password}...
Friday, July 19, 2013
Singleton Design Pattern Example Program in Java

Definition: The singleton pattern is one of the simplest design patterns: it involves only one class which is responsible to instantiate itself, to make sure it creates not more than one instance; in the same time it provides a global point of access to that instance. In this case the same instance can be used from everywhere, being impossible to invoke directly the constructor each time.Implementation:1. Private static variable of the same class...
Wednesday, July 17, 2013
CRUD operations using JDBC

CRUD(Create, Read, Update and Delete)operations using JDBC=============================================== CRUD stands for Create, Read, Update, Delete.Student Table CREATE TABLE STUDENT(StudentID NUMBER PRIMARY KEY, StudentName VARCHAR2(30), Age NUMBER(3));Create Statement: INSERT INTO STUDENT(StudentID, StudentName, Age) VALUES(1, 'Ranga', 24);READ Statement: SELECT * FROM STUDENT WHERE StudentID = 1;UPDATE Statement:UPDATE STUDENT SET...
Sunday, July 14, 2013
Write a Program to find the longest palindrome in a given String
Write a Program to find the longest palindrome in a given StringProgram: Output:String: HYTBCABADEFGHABCDEDCBAGHTFYW12345678987654321ZWETYGDELongest Palindrome: 12345678987654...
Saturday, July 13, 2013
If given a 15 digit number whats the best way to find the next palindrome?
If given a 15 digit number what is the best way to find the next palindrome? for example what will be the next palindrome of: 134567329807541?Algorithm:Step1: Split the number into three parts, head, mid, tailnumber = 134567329807541count = no. of characters = 15head = number.substring(0, count / 2) = number.substring(0,7) = 1345673mid = number.substring((count / 2), (count / 2) + 1) = number.substring(7,8) = 2tail = number.substring((count / 2) + 1) = number.substring(8) = 9807541head mid ...
Wednesday, July 10, 2013
Reset forgotten Linux Root Password
Reset forgotten Linux Root PasswordClick HereReset forgotten Linux Root PasswordReset forgotten Linux Root PasswordReset forgotten Linux Root Passw...
Saturday, July 6, 2013
Ten Technologies Every Java Developer Should Know
At least one MVC Framework like JSF, Struts, or Spring MVCHibernate or JPADependency Injection (as demonstrated in Spring or Java EE through @Resource)SOAP based Web Services (JAX-WS)Some build tool (Ant, Maven, etc.)JUnit (or other Unit Testing framework)Version controlJSTLApplication server/container configuration management and application deployment (whether it is WebSphere, Tomcat, JBoss, etc. you need to know where your application runs and how to improve its execution).AJAXSource: http://www.intertech....