Tuesday, February 23, 2010

Steve & Me - Terri Irwin

I started the year with this book.Great book to start.Its biography of Steve Irwin of Crocodile Hunter fame by his wife Terri Irwin.My family used to watch his program almost daily in Animal planet and Discovery channel.I love him so much,i liked the way he handles the wild animals specially snakes.He made me to love even the most horrible looking creatures.Thanks to him.

Terri shares their life in this book.The way they got married, she is from US and he from Australian outback.Both have a common interest wild life.She was doing his research and helping Cougars and he was working in his family zoo.This book is something i will treasure for a long time , i liked everything about them.Apart from
their crocodile and other desert and outback exploits Terri shares how they were in boy child diet this is interesting i have never heard anything like that before.

Steve's passion for wild life was/is contagious , he died as a wild life warrior.
Whenever i see something related to zoo or animals i'm thinking Steve only.Now Irwin
family still runs the Australian Zoo but without its charismatic Steve.Their life was very simple - unconditional love for each other and for wild life.
Hats off to them.

Friday, September 25, 2009

The daily decalogue of Pope John XXIII

The daily decalogue of Pope John XXIII

1) Only for today, I will seek to live the livelong day positively without wishing to solve the problems of my life all at once.

2) Only for today, I will take the greatest care of my appearance: I will dress modestly; I will not raise my voice; I will be courteous in my behaviour; I will not criticize anyone; I will not claim to improve or to discipline anyone except myself.

3) Only for today, I will be happy in the certainty that I was created to be happy, not only in the other world but also in this one.

4) Only for today, I will adapt to circumstances, without requiring all circumstances to be adapted to my own wishes.

5) Only for today, I will devote 10 minutes of my time to some good reading, remembering that just as food is necessary to the life of the body, so good reading is necessary to the life of the soul.

6) Only for today, I will do one good deed and not tell anyone about it.

7) Only for today, I will do at least one thing I do not like doing; and if my feelings are hurt, I will make sure that no one notices.

8) Only for today, I will make a plan for myself: I may not follow it to the letter, but I will make it. And I will be on guard against two evils: hastiness and indecision.

9) Only for today, I will firmly believe, despite appearances, that the good Providence of God cares for me as no one else who exists in this world.

10) Only for today, I will have no fears. In particular, I will not be afraid to enjoy what is beautiful and to believe in goodness. Indeed, for 12 hours I can certainly do what might cause me consternation were I to believe I had to do it all my life.

Tuesday, September 22, 2009

The Living Flame of Love


The Living Flame Of Love




1. O living flame of love
that tenderly wounds my soul
in its deepest center! Since
now you are not oppressive,
now consummate! if it be your will:
tear through the veil of this sweet encounter!

2. O sweet cautery,
O delightful wound!
O gentle hand! O delicate touch
that tastes of eternal life
and pays every debt!
In killing you changed death to life.

3. O lamps of fire!
in whose splendors
the deep caverns of feeling,
once obscure and blind,
now give forth, so rarely, so exquisitely,
both warmth and light to their Beloved.

4. How gently and lovingly
you wake in my heart,
where in secret you dwell alone;
and in your sweet breathing,
filled with good and glory,
how tenderly you swell my heart with love.

                         - St.John Of the Cross

Monday, July 6, 2009

Running a simple Java Program in PDA

The PDA which im using is Motorola MC55.I was able to run a simple java program successfully after number of attempts.The things which i have done are

1.Check whether IBM J9 is installed or not.If not install.
2.Write java program in any IDE or notepad in your PC. (SamplePDA.java)

import java.awt.*;
public class SamplePDA {


public static void main (String [] args) {

Frame frame = new Frame ("Main Screen");
Label jl = new Label("My First PDA program..");

frame.add(jl);
frame.setSize(180,80);
frame.setVisible(true);

System.out.println("My First PDA Program..");
}

}

3.Compile the program with JDK1.4 or below.

4.Create a jar file with the class file.(SamplePDA.jar)

5.Create a shortcut file.(sample.lnk)

255#"\Program Files\J9\PPRO10\bin\j9.exe" "-jcl:ppro10" -cp \Sample\SamplePDA.jar SamplePDA


6.Sync the PDA and place the jar in particular location you want.I have placed the SamplePDA.jar in Sample folder.

7.Place the shortcut file(sample.lnk)on the start menu,so that we can execute
application from the start menu.

8.Click the shortcut file(sample.lnk) to run the application.

9.Now you will see a Frame displaying "My First PDA program".

When i tried to use Swing components it shown some error.!!!

Thursday, June 25, 2009

Connecting Java to MySql database

This is the first time im trying to connect MySql from Java.I knew very little about MySql.Previously i have used Oracle,MS Access and Sql Server.Following are the things i have done .

1. First i have created a database with a name 'sample'

mysql>create database sample;
mysql>use sample;

2.create a table 'first' with the following fields.

mysql>create table first(id int,name varchar(20));
enter some values, in my case
>insert into first values(1,'Lara');
>insert into first values(2,'Sachin');

Now your database/table is ready.
Im in 'root' user and my password is 'password'.
Before start writing Java code, first get the MySql Connector/J . I have downloaded it from MySql site .Click here
Unzip the folder mysql-connector-java-5.1.7 and check for the jar file mysql-connector-java-5.1.7-bin.jar.Now set this jar file in the classpath.

Setting ClassPath:
Go to Environment Variables in the System Properties.
Select CLASSPATH and click edit.(if there is no classpath variable create one)
in my case i already set one path so what i did was i added a ; and given my new path.

.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\mysql-connector-java-5.1.7\mysql-connector-java-5.1.7-bin.jar

classpath have been set and now we can write the java code.Below is the sample java code:

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.*;
public class SampleMysql
{
public static void main(String[] args)
{
Connection conn=null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn =DriverManager.getConnection("jdbc:mysql://localhost/sample?" +"user=root&password=password");
System.out.println("Connection established...");
Statement stmt = conn.createStatement();
ResultSet rs =stmt.executeQuery("Select id,data from first");
while(rs.next())
{
int id = rs.getInt(1);
String name = rs.getString(2);
System.out.println(" "+id+" "+name);
}
}
catch (Exception ex) {
System.out.println("SQLException: " + ex.getMessage()); }
}
}

After executing the output was:
1 Lara
2 Sachin