Rev. Fr. Francis Thamburaj, SJ

Splendour of Meditation

WMeditation

I am very much interested, deeply committed, and greatly practicing ZaZen meditation.
My Meditation journey is quite a long chain of foot-prints of forty years.
My Zen master is Gen-Un Ken, popularly known as Fr. AMA Samy whom I know for about forty years.
Gen-Un Ken is residing in Bodhi Zendo at Perumalmalai Kodaikanal, Tamilnadu, India.
I am teaching ZaZen and other types of meditations to thousands of students in many colleges.

ZEN MEDITATION

Walking is Zen. Talking is Zen. All acts are Zen. The whole life is Zen.
To know more about Zen click here …. Zen Meditation

ZAZEN MEDITATION

Zazen literally means the seated meditation. Zazen is considered as the heart of Zen Buddhist practice. It is a meditative discipline practitioners perform to calm the body, the mind and the heart, and be able to concentrate enough to experience insight into the nature of existence and thereby gain enlightenment. The aim of zazen is just sitting, that is, suspending all judgmental thinking and letting words, ideas, images and thoughts pass by without getting involved in them.
To know more about Zazen click here ….

Francis Meditating Forest Scope

Fragrance of Soft Skills

almond-blossom-5378_192011

My Skill Sets


Skill is better than strength ……. Skill is only a rumour until it reaches the muscle ……. Knowledge comes with learning; Skill comes with experience ……. Learning to learn is the most important skill ……. Technical skills may get you the job, but soft skills can make you or mar you ……. When love and skill work together, you can expect masterpiece ……. It is the skill, not strength, that governs a ship ……. Giving skill is better than offering millions of gold coins ……. ……. …….

Computer Programming Skills

  • Basic Language<\li>
  • Fortran Language<\li>
  • COBOL Language<\li>
  • Pascal language<\li>
  • C Language<\li>
  • C++ Language<\li>
  • Java Language<\li>

Web Scripting Skills

  • HTML – Hyper Text Markup Language<\li>
  • CSS – Cascading Style Sheet coding<\li>
  • JavaScript Coding<\li>
  • JQuery Coding<\li>
  • Bootstrap Coding<\li>

 

Joy of Writing

WTeaching





Java Duke Ani 02

Java Data Base Connectivity

There are following six steps involved in building a JDBC application:

  1. Import the packages . Requires that you include the packages containing the JDBC classes needed for database programming. Most often, using import java.sql.* will suffice.
  2. Register the JDBC driver . Requires that you initialize a driver so you can open a communications channel with the database.
  3. Open a connection . Requires using the DriverManager.getConnection() method to create a Connection object, which represents a physical connection with the database.
  4. Execute a query . Requires using an object of type Statement for building and submitting an SQL statement to the database.
  5. Extract data from result set . Requires that you use the appropriate ResultSet.getXXX() method to retrieve the data from the result set.
  6. Clean up the environment . Requires explicitly closing all database resources versus relying on the JVM’s garbage collection.

Program

//STEP 1. Import required packages
import java.sql.*;

public class JDBCExample {
   // JDBC driver name and database URL

   //static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";  
   //static final String DB_URL = "jdbc:mysql://localhost/EMP";

   static final String JDBCDriver = “oracle.jdbc.driver.OracleDriver”;
   static final String DB_URL = " jdbc:oracle:
	thin:@192.168.1.1:1521:orcl";

   //  Database credentials
   static final String USER = "username";
   static final String PASS = "password";
   
   public static void main(String[] args) {
   Connection con = null;
   Statement stmt = null;
   try{
      //STEP 2: Register JDBC driver
      Class.forName(JDBCDriver);

      //STEP 3: Open a connection
      System.out.println("Connecting to database...");
      con = DriverManager.getConnection(DB_URL,USER,PASS);

      //STEP 4: Execute a query
      System.out.println("Creating statement...");
      stmt = con.createStatement();
      String sql;
      sql = "SELECT id, first, last, age FROM Employees";
      ResultSet rs = stmt.executeQuery(sql);

      //STEP 5: Extract data from result set
      while(rs.next()){
         //Retrieve by column name
         int id  = rs.getInt("id");
         int age = rs.getInt("age");
         String first = rs.getString("first");
         String last = rs.getString("last");

         //Display values
         System.out.print("ID: " + id);
         System.out.print(", Age: " + age);
         System.out.print(", First: " + first);
         System.out.println(", Last: " + last);
      }
      //STEP 6: Clean-up environment
      rs.close();
      stmt.close();
      con.close();
   }catch(SQLException se){
      //Handle errors for JDBC
      se.printStackTrace();
   }catch(Exception e){
      //Handle errors for Class.forName
      e.printStackTrace();
   }finally{
      //finally block used to close resources
      try{
         if(stmt!=null)           stmt.close();
      }catch(SQLException se2){       }// nothing we can do
      try{
         if(conn!=null)           conn.close();
      }catch(SQLException se){
         se.printStackTrace();
      }//end finally try
   }//end try
   System.out.println("Goodbye!");
}//end main
}//end JDBCExample




C:\>java FirstExample
Connecting to database...
Creating statement...
ID: 100, Age: 18, First: Zara, Last: Ali
ID: 101, Age: 25, First: Mahnaz, Last: Fatma
ID: 102, Age: 30, First: Zaid, Last: Khan
ID: 103, Age: 28, First: Sumit, Last: Mittal
C:\>

All of you should write these in your note book without fail. I will check it in the next class. Those who have not written will be punished and marked absent.

Java Cup

Java Threads

Thread Synchronization

When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issue. For example if multiple threads try to write within a same file then they may corrupt the data because one of the threads can overwrite data or while one thread is opening the same file at the same time another thread might be closing the same file.

So there is a need to synchronize the action of multiple threads and make sure that only one thread can access the resource at a given point in time. This is implemented using a concept called monitors. Each object in Java is associated with a monitor, which a thread can lock or unlock. Only one thread at a time may hold a lock on a monitor. Java programming language provides a very handy way of creating threads and synchronizing their task by using synchronized blocks. You keep shared resources within this block.

Program

class AC{
    private int balance=0;
    synchronized void credit(int amount){balance += amount;}
    void dispBalance(){System.out.println("Balance = "+balance);}
}
class ACH extends Thread{
    AC ac;
    ACH(AC ac){this.ac=ac;}
    public void run(){
        for(int j=0;j<10000;j++) ac.credit(10);
    }
}
public class ThreadSyncCredit {
    static int numACHolders=3;
    public static void main(String[] args){
        AC ac = new AC();
        ACH achs[] = new ACH[numACHolders];
        for(int k=0;k < numACHolders;k++){
            achs[k] = new ACH(ac);
            achs[k].start();
        }
        for(int i=0;i < numACHolders;i++){
            try{
                achs[i].join();
            }catch(Exception e){}
            ac.dispBalance();
        }
    }
}

All of you should write these in your note book without fail. I will check it in the next class. Those who have not written will be punished and marked absent.

Java Cup

Answers for Multiple Choice Questions

aaadacbba
Hiiiiiiiii ................. How is it?

Research Post

WResearch





BarAni15

FlowerAni02 FranMorph15

A Short Note on My Research

I am working as Assistant Professor in Department of Computer Science, St. Joseph’s College, Trichy, Tamil Nadu, India. I have obtained the Master of Computer Applications degree in 1987 and Master of Philosophy degree in 2001 from Bharathidasan University, Trichy. I have 25 years of experience in teaching Computer Science.

I am a researcher in Computer Science and my active research domain is Software Metrics. The specific area is Object-Oriented Cognitive Complexity Metrics. My former research domain is Artificial Neural Networks. The specific area of the former research domain is Self-Organizing Feature Map. I have published many research articles in the National and International journals and conferences. Notably, in 2011, I have chaired a session and presented a research paper in the World Congress in Computer Science, Computer Engineering, and Applied Computing (WORLDCOMP’11), Las Vegas, USA. In 2015, I have chaired sessions in the International Conference, World Academy of Science, Engineering and Technology (WASET), Kyoto, Japan and also presented a research paper on cognitive weighted polymorphism factor. A list of my research articles can be found below as well as in Google Scholar website. I am currently pursuing research in Cognitive Complexity of Object Oriented Software Metrics.

Back 01





BarAni16


1 2