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

Guys..

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
   https://www.google.co.in/maps/dir/Bengaluru,+Karnataka/Melukote+Cheluvarayaswamy+Temple,+Melukote,+Karnataka/Sri+Ranganathaswamy+Temple,+Srirangapatna,+Karnataka/Nimishamba,+Srirangapatna,+Karnataka/Mysore,+Karnataka/Nanjangud,+Karnataka/Himavad+Gopalaswamy+Hills+Rd,+Sri+Hangala,+Karnataka+571126/Bandipur+National+Park,+Mysuru,+Karnataka/Ooty,+Tamil+Nadu/Guruvayoor,+Kerala/@11.8463656,75.6350386,8z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3bae1670c9b44e6d:0xf8dfc3e8517e4fe0!2m2!1d77.5945627!2d12.9715987!1m5!1m1!1s0x3baf9004a4f71985:0x6545f5e47c813e14!2m2!1d76.647588!2d12.660288!1m5!1m1!1s0x3baf77070f7b1b0f:0xab35be62cadfe767!2m2!1d76.679249!2d12.424884!1m5!1m1!1s0x3baf768d3561c657:0x137675ab70a94aa7!2m2!1d76.710668!2d12.418754!1m5!1m1!1s0x3baf7010988f73e5:0x7b92fb661b13ee09!2m2!1d76.3637285!2d12.1873152!1m5!1m1!1s0x3baf682bfe1f29eb:0xd1e5927b3c8e5f8!2m2!1d76.680093!2d12.1199769!1m5!1m1!1s0x3ba8b2a757c9da1f:0x735e4c4bcd5c4f9e!2m2!1d76.6463081!2d11.7448446!1m5!1m1!1s0x3ba8aaa8dde6363b:0x120624bbcf55937b!2m2!1d76.631913!2d11.667945!1m5!1m1!1s0x3ba8bd84b5f3d78d:0x179bdb14c93e3f42!2m2!1d76.7!2d11.41!1m5!1m1!1s0x3ba79461cd1b5745:0x96c6ecd0de2d2b4!2m2!1d76.0362579!2d10.5952496!3e0?hl=en
   
   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
   https://www.google.co.in/maps/dir/Guruvayoor,+Kerala/Trivandrum,+Kerala/Suchindram,+Tamil+Nadu/Kanyakumari,+Tamil+Nadu/Thiruchendur,+Tamil+Nadu/Kovilpatti,+Tamil+Nadu/Srivilliputhur,+Tamil+Nadu/Rameswaram,+Tamil+Nadu/Madurai,+Tamil+Nadu/Palani,+Tamil+Nadu/@9.3418568,76.4855903,8z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3ba79461cd1b5745:0x96c6ecd0de2d2b4!2m2!1d76.0362579!2d10.5952496!1m5!1m1!1s0x3b05bbb805bbcd47:0x15439fab5c5c81cb!2m2!1d76.9366376!2d8.5241391!1m5!1m1!1s0x3b04f181ad3eabdf:0x4dc8897d102ae0d0!2m2!1d77.465!2d8.155!1m5!1m1!1s0x3b04ed3d2a087861:0x1e790e896aeffaa0!2m2!1d77.5384507!2d8.0883064!1m5!1m1!1s0x3b0390118f119e01:0xb9bc989564965383!2m2!1d78.1250848!2d8.4963081!1m5!1m1!1s0x3b06b26570998f29:0xd95cda8fab23619b!2m2!1d77.87!2d9.17!1m5!1m1!1s0x3b06dcb7c2dc05ed:0x85ab3be7b79f6af2!2m2!1d77.6340859!2d9.5121365!1m5!1m1!1s0x3b01e3c4e61cf2b3:0xd667f9b98bbd63a1!2m2!1d79.3129291!2d9.2876254!1m5!1m1!1s0x3b00c582b1189633:0xdc955b7264f63933!2m2!1d78.1197754!2d9.9252007!1m5!1m1!1s0x3ba9de87ad84703f:0x15eb8f900655b911!2m2!1d77.5209392!2d10.4489188!3e0?hl=en
   
   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
   https://www.google.co.in/maps/dir/Palani,+Tamil+Nadu/Srirangam,+Tiruchirappalli,+Tamil+Nadu/Thiruvanaikovil+Jambukeswarar+Akilandeswari+Temple,+Single+Street,+Srirangam,+Tiruchirappalli,+Tamil+Nadu/Thanjavur,+Tamil+Nadu/Kumbakonam,+Tamil+Nadu/Thirunallar,+Puducherry/Mayiladuthurai,+Tamil+Nadu/Sirkazhi,+Tamil+Nadu/Chidambaram,+Tamil+Nadu/Thiruvannammalai,+Tamil+Nadu/@12.4763253,77.2993263,8z/data=!4m62!4m61!1m5!1m1!1s0x3ba9de87ad84703f:0x15eb8f900655b911!2m2!1d77.5209392!2d10.4489188!1m5!1m1!1s0x3baaf5d38807dbd3:0x6fc3d1a428e19458!2m2!1d78.6965972!2d10.8560297!1m5!1m1!1s0x3baaf42daec2b661:0x17fb7103d4fdb225!2m2!1d78.705457!2d10.853232!1m5!1m1!1s0x3baab89cea453039:0xe113da9b1f632be6!2m2!1d79.1378274!2d10.7869994!1m5!1m1!1s0x3a5532b360353419:0x9ecb5d94413ad35!2m2!1d79.3881132!2d10.9616945!1m5!1m1!1s0x3a5516f7ab3be1db:0x92ef1e1bb6f4746d!2m2!1d79.791667!2d10.925556!1m5!1m1!1s0x3a5526c731f25c21:0x4339eccad0b5866a!2m2!1d79.6522218!2d11.1018399!1m5!1m1!1s0x3a54de1af2991ed9:0x13e9ce3a26f66c3b!2m2!1d79.7361217!2d11.2390878!1m5!1m1!1s0x3a54c23aa1bce10b:0xe1a29e91a8ec81aa!2m2!1d79.6953594!2d11.3981936!1m5!1m1!1s0x3bacc0852cd3d6cd:0x74002b16e5bac856!2m2!1d79.0746957!2d12.2252841!3e0?hl=en
   
   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/
   https://www.google.co.in/maps/dir/Thiruvannamalai,+Tamil+Nadu/Thennangur,+Tamil+Nadu/Kanchipuram,+Tamil+Nadu/Thiruthani,+Tamil+Nadu/Nagalapuram,+Andhra+Pradesh/Srikalahasti,+Andhra+Pradesh/Tirupati,+Andhra+Pradesh/Kanipakam,+Andhra+Pradesh/Vepanjeri,+Andhra+Pradesh/Ponnai,+Tamil+Nadu/@12.9878451,78.8253873,9z/data=!3m1!4b1!4m62!4m61!1m5!1m1!1s0x3bacc0852cd3d6cd:0x74002b16e5bac856!2m2!1d79.0746957!2d12.2252841!1m5!1m1!1s0x3a5326fdaef0e41f:0x62e2615fc9f0c2e9!2m2!1d79.613011!2d12.5549484!1m5!1m1!1s0x3a52c2f7e0c7f12d:0xde5f8682b1cb2a4d!2m2!1d79.7036402!2d12.8341735!1m5!1m1!1s0x3a52a4e88096e81b:0x3f117fe0519ba508!2m2!1d79.6109049!2d13.1758491!1m5!1m1!1s0x3a4d610798df206d:0x3a5f49a106d2ab7e!2m2!1d79.7988547!2d13.3857837!1m5!1m1!1s0x3a4d3e543dbbc769:0xc759d83ecf891652!2m2!1d79.7037255!2d13.7520171!1m5!1m1!1s0x3a4d4b0f88620427:0xcf4152d1daca0cac!2m2!1d79.4191795!2d13.6287557!1m5!1m1!1s0x3bad5fc3f84b4515:0xca0fe629c03660ef!2m2!1d79.035548!2d13.2775912!1m5!1m1!1s0x3bad5732d9eb328f:0xa72d524ae299d191!2m2!1d79.2313697!2d13.2237561!1m5!1m1!1s0x3bad4e2928504f65:0x202bfd089d47f4bf!2m2!1d79.2535725!2d13.1241046!3e0?hl=en
   
   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.setDefaultLookAndFeelDecorated(true);

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

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

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

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

    pane.add(button);

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

    pane.add(label);

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

    frame.getContentPane().add(pane);

    frame.pack();

    frame.setVisible(true);

  }

 

  public static void main(String[] args) {

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

      public void run() {

        createAndShowGUI();

      }

    });

  }

}

Output:

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/