Welcome Message

"The difference between a successful person and others is not a lack of strength,
not a lack of knowledge, but rather a lack in will."
-Vince Lombardi

October 10, 2019

500 Years Calendar download

500 Years Calendar

March 7, 2015

South India 10 days trip - Great temples


Visit the famous temples mentioned below. Given as a route map where you can follow the same.

Start from Bangalore.. you can change based on your location.

Cover Tamil Nadu and Andhra Pradesh more... Temples

Start: Bangalore
   1) Melukote ( Cheluva narayana swami, narasimha swami) - http://en.wikipedia.org/wiki/Melukote
   2) Sri Rangapatna (Ranganatha swami) - http://en.wikipedia.org/wiki/Srirangapatna
   3) Sri Rangapatna (Nimishamba temple)  - http://en.wikipedia.org/wiki/Nimishambha
   4) Mysore (Chamundi hills, Mysore Palace) - http://en.wikipedia.org/wiki/Mysore
   5) After mysore 5kms Datta Peetam ( Dattatreya temple) - http://www.dattapeetham.com/     http://en.wikipedia.org/wiki/Ganapathi_Sachchidananda
   6) Nanjangud (Lord shiva temple) - http://en.wikipedia.org/wiki/Nanjangud
   8) Bandipur national forest - http://en.wikipedia.org/wiki/Bandipur_National_Park
   9) Ooty (doddabetta, park, climate ) - http://en.wikipedia.org/wiki/Udhagamandalam
   10) Guruvayoor (Lord Krishna Temple and Shiva temple) - http://en.wikipedia.org/wiki/Guruvayur
   11) Kochi (Optional) - http://en.wikipedia.org/wiki/Kochi
   12) Trivendram (Anantha Padmanabhsyamy Temple and kovalam beach) - http://en.wikipedia.org/wiki/Thiruvananthapuram
   13) Suchindram (Big Anjaneya temple) - http://en.wikipedia.org/wiki/Suchindram
   14) Kanya kumari (Amman temple - sun rise view and Boating to Vivekananda rock) - http://en.wikipedia.org/wiki/Kanyakumari
   15) Tiruchendur ( Lord subramanya swamy (Kumara swamy) temple) - http://en.wikipedia.org/wiki/Thiruchendur
   16) Kovilpatti (Big ganapathi temple) - http://en.wikipedia.org/wiki/Kovilpatti
   17) Srivilliputtur (Andal Amman temple (Maha lakshmi) birth place) - http://en.wikipedia.org/wiki/Srivilliputhur
   18) Rameshwaram (Lord Shiva temple - worshipped by lord rama and lord rama sea bath) - http://en.wikipedia.org/wiki/Rameswaram
   19) Madurai ( Meenakshi amman temple) - http://en.wikipedia.org/wiki/Madurai
   20) Palani (Lord subramanya swamy temple) - http://en.wikipedia.org/wiki/Palani
   21) Srirangam (Lord vishna - ranganatha swamy big temple) - http://en.wikipedia.org/wiki/Srirangam
   22) Thiruvanaikovil (Jambukeswaram - Lord shiva in water - Jala linga) - http://en.wikipedia.org/wiki/Jambukeswarar_Temple,_Thiruvanaikaval
   23) Tiruchy (Uchi pillayar temple on hill) - http://en.wikipedia.org/wiki/Tiruchirappalli
   24) Thanjavur ( Big shiva temple - Main entrance monumental tower's shadow will not appear at any time)   - http://en.wikipedia.org/wiki/Thanjavur
   25) Kumbakonam (Lord shiva and other 4 temples)   - http://en.wikipedia.org/wiki/Kumbakonam
   26) Thirunageswaram (Lord Rahu Temple) - http://en.wikipedia.org/wiki/Thirunageswaram
   27) Oppiliappan (Lord maha vishu and prahlad - food offered without salt to god) - http://en.wikipedia.org/wiki/Uppiliappan_Temple
   28) Nachiyar Koil (Lord Maha vishnu with garuda vahana) -  http://en.wikipedia.org/wiki/Nachiyar_Koil
   29) Koothanur (Lord Saraswathi temple) - http://en.wikipedia.org/wiki/Koothanur
   30) Tirunallar (Lord seneswara planet temple) - http://en.wikipedia.org/wiki/Thirunallar
   31) Mayiladuthurai (Lord shiva) - http://en.wikipedia.org/wiki/Mayiladuthurai
   32) sirkazhi (Lord parvathi devi - Milk given to poet) - http://en.wikipedia.org/wiki/Sirkazhi
   33) Chidambaram (Akasa linga) - http://en.wikipedia.org/wiki/Chidambaram
   34) Thiruvannamalai (Lord shiva as agni linga and as mountain) - http://en.wikipedia.org/wiki/Tiruvannamalai
   35) Thennangur (Lord panduranga swami temple) - http://en.wikipedia.org/wiki/Thennangur
   36) KanchiPuram (Lord kamakshi amman, ulagananda perumal (Vamana Avatara),  Lord ekambareswar (shiva) , Lord varadarajaswamy temple)
   37) Thiruttani (Lord subramanya swamy temple) - http://en.wikipedia.org/wiki/Thiruttani
   38) Nagalapuram ( Lord venkateswara) - http://en.wikipedia.org/wiki/Nagalapuram
   39) Sri kalahastri (Lord shiva - Vayu(air) linga) - http://en.wikipedia.org/wiki/Srikalahasti
   40) Tirupati (Tirumala - Lord venkateswara) and In Tirupati (Govindaraja swamy temple, kodanda rama swamy temple, kapila teethram (shiva) , iskon temple)
   41) Tiruchanur (Padmavathi amman(devi) temple - wife of lord venkateswara)  - http://en.wikipedia.org/wiki/Tiruchanur
   41) Kanipakam ( Lord ganapathi temple) - http://en.wikipedia.org/wiki/Kanipakam
   42) Vepanjeri (Lord Lakshi narayana temple and astha lakshmi temple) - http://www.vepanjeri.com/
   44) Aragonda (Lord anjaneya temple) - http://en.wikipedia.org/wiki/Aragonda
   45) Mulbagal (Lord anjaneya temple) - http://en.wikipedia.org/wiki/Mulbagal
   46) Kurudumale (Lord maha ganapathi temple)  - http://en.wikipedia.org/wiki/Kurudumale
 End : Bangalore

famous temple trips, andhra pradesh temples, tamil nadu temples, temple trip, great temples in south india.

April 9, 2013

Executable Java Jar File and Windows Exe File Creation

How to create an executable java jar file? I want to just double click the jar file and the application should run, please help me. I want to convert my java application to a windows exe file, how can I do it? These are two frequently asked questions.

For you guys who know about these things already you may skip this article, as there is no surprise element embedded. For us who are interested in learning new things go ahead, anything new adds up.

How to Create an Executable JAR File?

JDK gives us a tool to create jar files.

Before creating a java jar file, we need to create a java manifest file.

Command to create an executable java jar file:

jar -cvfm BundleExample.jar manifes 
t.txt com/javapapers/corejava/*.class

How to create a java manifest file?

Generally we will have the manifest file located in,

  • META-INF/manifest.mf

This manifest file contains information about the jar file. Information like which is the main java class to be executed, who created the application, version of the application, etc.

It is a regular text file. Remember to press enter at the end of each line and importantly in the last line.

So with respect to creating an executable java jar file, we need to add the main class of the application using which it can be launched. Our example manifest file is like below,

Main-Class: com.javapapers.corejava.JavaBundleExample 

This is the only line I have and that is sufficient for our purpose.

Sample Application

We need a sample java application to enjoy this. Lets create a simple hello world type swing application.

package com.javapapers.corejava;


import java.awt.GridLayout;


import javax.swing.BorderFactory;

import javax.swing.JButton;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JPanel;


public class JavaBundleExample {


  private static void createAndShowGUI() {



    JFrame frame = new JFrame("Bundle Example");


    JPanel pane = new JPanel(new GridLayout(0, 1));

    JButton button = new JButton("Dummy Button!");


    JLabel label = new JLabel("Example for Bundling JRE with Java Class");


    pane.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));






  public static void main(String[] args) {

    javax.swing.SwingUtilities.invokeLater(new Runnable() {

      public void run() {







Just execute the following line (command) to create the jar file, you should have added JDK to PATH.

jar -cvfm BundleExample.jar manifes 
t.txt com/javapapers/corejava/*.class

Now we can double click the jar file and the application will launch and run.

How to Create a Windows Exe file?

If we create a windows native exe file, then we loose the platform independent-ness.

Let us use a tool called Launch4J. It’s a nice tool, works good and easy to use.

Its core features are,

  • creating lightweight Windows native EXE
  • JRE version control
  • app icon
  • splash screen
  • process name
  • Java download page

Download Launch4J and use the GUI to create the windows/Java exe file. Launc4J creates an XML file to save the configuration.

  • I have specified the output file, this is the name of the exe file to be created.
  • Jar is the input file which we want to bundle as an exe file. Lets use the Java JAR which we created in the previous step.
  • In JRE tab, we can specify the Min JRE version required. So this will detect the JRE available in the system and verify if the version is sufficient.
  • Click the cog wheel icon from the menu to generate the exe file.

Source: javapapers.com

April 4, 2013

Ant Colony Optimization in Java

Long back I introduced Wordle word clouds as part of Java gallery and then completely forgot about the gallery category. Today I was reading about ant colony optimization and came across a nice implementation of it in Java. Thought of sharing this Java application to you as part of Java gallery.

Ant colony optimization is an awesome algorithm inspired by ant’s natural intelligence. Like cockroaches, ants are extremely successful insects surviving for millions of years. Ants live in colonies and they have hierarchies among them. Physical castes are, like worker ants have responsibilities divided based on their size.

Ants communicate within themselves effectively. Their form of communication is efficient enough to help them survive for millions of years. Apart from sound, touch they use a secreted chemical called pheromone to communicate. Ants go out in search of food and once it finds a food source, on its return back to home ants spit pheromone on the trail. If it comes across obstacles during its way back, the group gets dispersed to find a shortest route.

Ants use pheromones to find the shortest path between home and food source. Pheromones evaporate quickly. Assume that there are two path trails formed by ants between its home and food source. When an ant walks out looking for food, it will choose the path where the pheromone is denser. Since the shortest path will have denser pheromone.

Christian Borgelt has created a nice implementation of ant colony optimization in Java. It is worth having a look at it. He has used Java Swing, Awt, for UI using which the traversal for shortest path is shown.


Source: javapapers.com

February 25, 2013

What is National Drug Code (NDC)

What is a National Drug Code (NDC)?


The NDC, or National Drug Code, is a unique 10-digit, 3-segment number. It is a universal product identifier for human drugs in the United States. The code is present on all nonprescription (OTC) and prescription medication packages and inserts in the US.


The 3 segments of the NDC identify the labeler, the product, and the commercial package size. (Please refer the below example NDC Image)


The first set of numbers in the NDC identifies the labeler (manufacturer, repackager, or distributer).

The second set of numbers is the product code, which identifies the specific strength, dosage form (i.e, capsule, tablet, liquid) and formulation of a drug for a specific manufacturer.

Finally, the third set is the package code, which identifies package sizes and types. The labeler code is assigned by the FDA, while the product and package code are assigned by the labeler.

Example NDC


Find the codes in http://www.findacode.com/