Archive for the ‘Programming Skills’ Category
An overview of Computer Programming !!
August 15, 2010What is the difference between “overloading” and “overridding”?
December 10, 2009Function Overloading is the implementation of static polymorphism where same function name having different defenitions for different uses. Function overriding is applicable for dynamic polymorphism where where the function name and the definition are same but the function call is decided at the run time according to the type of object reference.
ABC to Convert Integers to Strings in C++
June 23, 2009I was solving a problem in TopCoder. It required a conversion of integer to a string. This is simple in Java but a little complicated in C++. So, I am jotting down here some of the link that helped me. I will also try to make a mention of the problem associated with them. The [...]
ABC to Import a jar file in Netbeans 6.5
June 17, 2009If you want to import a jar file in NetBeans, I guess I can help you out. Using the following procedure, you can import folders as well as other projects to the project you desire. I wanted to use the log4j for using logger in my application. So I had to import a jar file [...]
How to use scanf to read Strings with Spaces ?
June 10, 2009I knew this for two years now, but it dint strike me before to put it up in the blog; don’t know why ? Its easy and simple, I don’t think I need to explain. Only the syntax needs to be remembered. scanf(” %[^\n]s”,a); May be you get a question in your mind. What does [...]
Types of Log Appenders in log4j
June 3, 2009Types of log appender An appender specifies where your log messages are written to. There is a wide choice of appenders available. All appenders are direct or indirect subclasses of the AppenderSkeleton. Therefore we can find all options on the following API page: http://logging.apache.org/log4j/docs/api/org/apache/log4j/AppenderSkeleton.html The console and the file appender are a subclass of WriterAppender. [...]
How to set precision in C++
June 1, 2009In C++, you can use the ‘precision’ function to set the precision of the output. The function ‘precision’ is present in the header file ‘iostream.h’. The following, cout.precision(n); will have totally print ‘n’ d igits in the output with the decimal point in between(say ‘x’ before the decimal and ‘n-x’ after the decimal. The value [...]
Download and Install JDK !
May 23, 2009Download jdk-6u14 for Suse 11.1, Download-6u14 jdk for linux, How to install jdk
Is PERL installed in Suse 11.1
May 15, 2009My hands on Perl, Perl for beginners
Download and Install log4j / Log for Java
May 1, 2009Log for java aka log4j is a library. Its a small software that need to be downloaded an installed. The installation which I am going to illustrate if for Linux and a similar procedure can be followed for windows. It can be downloaded from the following link – http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.15/apache-log4j-1.2.15.tar.gz Download the tar file and extract [...]

