Search This Blog

Pages

Friday, September 30, 2016

Petrol vs CNG vs Diesel….What type of car to go for?

http://economydecoded.com/2013/01/petrol-vs-cng-vs-dieselwhat-type-of-car/

Tuesday, July 19, 2016

How to enable FINEST logging of SQL Server JDBC Driver

Add following code snippet in constructor of your class that serves as interface to the SQL Server JDBC driver which is typically where you pass the connection credentials of your SQL Server database.
===============
        java.util.logging.Logger jlogger = java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc");
        java.util.logging.FileHandler jfh;

        try
        {
            // This block configure the logger with handler and formatter
            jfh = new java.util.logging.FileHandler("C:/temp/java-sqljdbc-driver.log");
            jlogger.addHandler(jfh);
            java.util.logging.SimpleFormatter jformatter = new java.util.logging.SimpleFormatter();
            jfh.setFormatter(jformatter);
            jlogger.setLevel(java.util.logging.Level.FINEST);

            // the following statement is used to log any messages
            jlogger.info("MY FIRST TEST LOG MESSAGE");
        }
        catch (SecurityException e)
        {
            e.printStackTrace();
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
===============

In above example the logging level is set to FINEST, but it can be set to FINE and FINER as well. On execution of your test program FINE level logging to file "C:/temp/java-sqljdbc-driver.log" is enabled. This file comes handy for debugging issues due to bugs in JDBC driver.

Thursday, May 19, 2016

E-book: How to retire early in India

Excellent - download the pdf ebook and take a look!
http://freefincal.com/e-book-retire-early-india/ 

Some home truths: Highs and lows of the realty sector

 Read more: http://forbesindia.com/article/real-estate-special/some-home-truths-highs-and-lows-of-the-realty-sector/43175/1#ixzz494tgYh3Z

Tuesday, May 17, 2016

CPI in India from 1980 to 2015: 8.23

Interesting data - the average consumer price inflation (CPI) in India from 1980 to 2015 comes out to be 8.23. Useful data for personal financial planning.

https://data.oecd.org/chart/4x2A