installing IntelliJ on Ubuntu

Reading Time: 1 minute decompress the downloaded archive tar -xvf ideaIU-13.1.3.tar.gz sudo mv idea-IU-135.909 /opt/idea13 cd /usr/share/applications sudo gedit idea.desktop copy the below content and save [Desktop Entry] Name=IntelliJ IDEA Type=Application Exec=/opt/idea13/bin/idea.sh Terminal=false Icon=/opt/idea13/bin/idea.png Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=IntelliJ IDEA sudo desktop-file-install idea.desktop source ~/.bashrc and type in you will see intellij installed

Increasing Websphere heap size

Reading Time: 2 minutes Hi At work I was dwelling on uploading a big fat war file on websphere application server, and ended up facing perm gem space out of memory error. Finally I ended up finding out the solution to prevent this issue. Fire up your websphere web server and launch the administration console   Here navigate to

Reading columns of a table

Reading Time: 1 minute String jdbcDriver = "oracle.jdbc.driver.OracleDriver"; String dbConnection = "xxx"; try { OracleDataSource oracleDataSource = new OracleDataSource(); oracleDataSource.setURL(dbConnection); connection = oracleDataSource.getConnection(); String selectQuery = "SELECT * FROM TABLENAME"; Statement statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(selectQuery); ResultSetMetaData resultSetMetaData = resultSet.getMetaData(); int col = resultSetMetaData.getColumnCount(); for (int i = 1; i <= col; i++){ System.out.println( "Column name: "+