Learn Perl in 2 hours: hour-1

Introduction: Perl was originally developed for string manipulation and unix scripting in 1987, since then it has evolved and now its mainstream programming language which is used for a wide range of tasks including system administration, web development, network programming and GUI development. The best thing about Perl is that it's easy to use, efficient and complete. It supports both procedural and object-oriented programming (OOP), it has powerful built-in support for text processing as well and it also has impressive collections of third-party modules. Perl comes per-installed on unix systems, if its not or you are using windows system then download its installer and make sure that perl can be found in your system classpath. In this tutorial I have provided enough example code with...
Read More

Logging in java Part-2

In the Part-1 I discussed about different logging frameworks in java. In this part I'll discuss about setting up slf4j and logback in your project. Maven dependencies: slf4j-api: Contains interfaces for LoggerFactoryBinder, MDCAdaptor and MarkerFactoryBinder which will be implemented by any slf4j compatible logger service like logback. slf4j-api also contains implementation of some features which actual logging framework might not have like MDC. logback-core: It contains classes and utilities with default and abstract level implementation which is used in logback-classic. logback-classic: Implementation of slf4j-api, logback-core and logback-classic can be used without slf4j-api in a project just like log4j. jcl-over-slf4j: Implementation of commons-logging to forward logging statements...
Read More