Eclipse Surround with option

Eclipse IDE provides a one of finest tip for all Developer to make their coding easy and make their life easy.
In this post we will try to understand “surround with” option, in this option mainly we focus on customizing the template with respective code.

HPROF A Heap / CPU profiling Tool

HPORF is actually used to work out which parts of a program are using the most memory or processor time.  To improve the efficiency of our application we should know what part of the code are using large amount of memory and CPU resource.

Built-in function in Python Script

Python has a few other built-in functions for working with numeric types they are listed below.

  • Absolute value—abs
  • Convert two numbers to a common type—coerce(x, y)
  • Quotient and remainder—divmod(a, b)
  • Power—pow(x, y [, z])
  • Round—round(x [, n])

Numeric Operator in Python script

We can use these Python operators when we work with numeric data types.

 List of the Numeric Operators

Numeric Types in Python

Python has four built-in numeric data types they are integer, long integer, floating point numbers and imaginary numbers.

How to read GC Logs

Let see how to read GC logs. In this post we will see how to get GC logs with following debug flags like -verbose:gc and  XX:PrintGCTimeStamps compare the GC output.

Starting J2EE App with Eclipse IDE

When we are talking about the J2EE Application it can be Enterprise application, EJB and web application etc.

In this post we will try to see how to create Enterprise application and include a web application.

Jstack- Stack Trace

Jstack  prints Java Stack traces of java Threads for a given java process or core file or a remote debug server.  For each java frame, the full class name, method name, byte code index and line number, if available are printed.  With the –m option, jstack prints both Java and native frames of all threads along with the program counter.  


TCP/IP is standard protocol for all type of communication between computers.  IP (Internet Protocol) provides functionality at the network layer (addressing and routing) while TCP (Transmission Control Protocol) provides (virtual) end-to-end connectivity.  The TCP/IP family includes a host of other useful protocols such as ICMP (Internet Control Message Protocol), IGMP (Internet Group Management Protocol) and UDP (User Datagram Protocol).  But majority of today’s networks use TCP/IP only. 

Netstat (Network Statistics)

Netstat is a command line utility to display network connections (Incoming and Outgoing), routing tables, and a network interface statistic.  This Utility available on Unix, Unix-like and Windows-NT based OS.

How to repair and do recovery when LDAP corrupted

Most of the times we experiencing LDAP errors like authentication fails or any application reports “Cannot connect to LDAP Servers!”) and most of the time we tried to restart the LDAP server by running “/etc/init.d/ldap” but we miss recovery pattern.

Debugging Stand alone code using Eclipse

Debugging stand alone code using eclipse

Users who are very much new to java and its development and they want to know how to trace the code and its behavior then I recommend to use Debug Mode while using Eclipse IDE.

JDK Security Debugs

Security Debugging

The Java security packages include debugging code that you can enable via a system property.

The property in question is, and it may be set to the following values:

Eclipse Shortcut Keys

Let see few Short-cut keys used in Eclipse IDE.
Note: Few keys will vary from different type of Eclipse Editors.
Eclipse Shortcut Keys

Eclipse Open Perspective

Lets see how to change Eclipse perspective for Java and J2ee type of eclipse.

  • To check Open Perspective we need to move for following direction

How to run simple java code using eclipse IDE

Steps to follow

·         First Download eclipse
·         Write a very simple Hello world java code.

Let start Journey:

Memory Mapping with jmap

jmap [ option ] pid
jmap [ option ] executable core
jmap [ option ] [server-id@]remote-hostname-or-IP

How to analyze the core dump of IBM JVM

How to Aanalyze core dump of IBM JVM 

In order to analyze a coredump you will need to run the Dump Analyzer plugin from IBM Support Assistant (ISA). The dump report will tell you the details of the JVM that dumped core, the heap contents and the javacore. This will help you determine the culprit component faster.


JVM command-line options in IBM AIX JVM

  •   -Xaggressive  (AIX 32-bit, Linux PPC32 and Windows 64-bit only) Enable performance optimization's that are expected to be the default in future releases.

Debugs of Sun JDK

JVM Debug Options for Sun JDK.

Debugging Option 

  • -XX:-CITime  Prints time spent in JIT Compiler. (Introduced in 1.4.0.)

Identifiers in Python


Lets take looks on Identifiers and Operators mostly used in Python script.

Variable names and Identifiers in Python are similar to those in many other languages they will start with letter (A-Z or a-z) or an underscore(_).  Their length is limited only by your eagerness to type, and they are case-sensitive like kalgyan and Kalgyan are two different identifiers.  Regardless of length, choose identifiers that are meaningful.

Variable and Expressions in Python

Variable and Expressions in Python

Python’s syntax for variables and expressions is close to what you would see in C or Java, so you can skim this section if it starts looking familiar. However, you should take note of Python’s loose typing (see below).

Python Interpreter

We can start the Python interpreter from the command line.

Change to the directory where the interpreter lives, or add
the directory to your path. Then type


Importance of Python

Large scale deployment of embedded systems demands inexpensive components. Considerations such as small size, high reliability and low power consumption are also very important. Specialized processor chips, called microcontrollers, have been developed to meet these goals. Combining CPU, memory and peripherals (such as UARTs) on a single chip, modern microcontrollers are marvelous devices. These features, however, come at a significant price. A typical microcontroller has only a few hundred bytes of RAM, several K of ROM (to store the program) and orders of magnitude less processing capability than a conventional desktop microprocessor. Hardly an environment for running Python!

Features of Python

Python is a simple and minimalistic language. Reading a good Python program feels almost like reading English, although very strict English! This pseudo-code nature of Python is one of its greatest strengths. It allows you to concentrate on the solution to the problem rather than the language itself.

History of Python Scripting Language

Python was conceived in the late 1980’s and its implementation was started in Dec 1989 by Guido Van Rossum at CWI in Netherlands as a successor to the ABC programming language capable of exception handling and interfacing with Amoeba operating system.  Van Rossum is Python’s Prinicpal author and his continuing central role in deciding the direction of Python is reflected in the title given to him by the Python community.