Monday, April 18, 2011

Must know java Concepts

Annotation  - Annotation is one of the features which (are being and) would be extensively used in various java frameworks and technologies.  Below links provide overview of Annotation -

Annotation in EJB-
Metadata Annotation -
Java ee 5 Annotation -

Wednesday, April 13, 2011

Using POSIX (Portable Operating System Interface [for Unix])

POSIX (Portable Operating System Interface [for Unix])  -

Cygwin - Cygwin is -
  • a collection of tools which provide a Linux look and feel environment for Windows.
  • a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality. 
more details for cygwin can be found in the below link -

Setting path in Cygwin -
Converting windows & unix paths -
Why not install Cygwin in c -
Updating home variable -
Registry information of cygwin -
Checking Cygwin version -
Accessing drives using Cygwin -
Copy and paste in Cygwin -
How does Cygwin work -
Updating log on information -

Cygwin/X "X Windows - on Windows!" -  More info about it can be found at below link -

Wednesday, April 6, 2011

Useful links for creating client side (web-browser) utilities

Links for tutorial -
Java Script -
Links providing re-usable code

Creating Sliding form effects using J-Query -

Dom drag and drop script -

Imbeding Google Map Selector-

Creating pi graph-

Creating line graph-

Tic Tak Toe-

Zooming the image-

gAjax RSS Pausing Scroller

Performing get and post from Ajax-

Using Object detection to sniff out different browsers -

AutoSelect Increment Search

Dojo UI Widgets -

Field selection or identifying the start/end position in text area

Making the webpages non copiable

Adding encrypt or decrypt capability in web app using java Script  -

Implementing various widgets using Dojo - 
Tree -
Grids & Chart  -
Various Widgets -

Other useful information -
  1. Changing the mouse cursor type in runtime using javascript
  2. Changing the mouse cursor type using CSS

Sunday, April 3, 2011

Setting up development environment

Spring Tool Suite - Spring tool suite is eclipse based IDE, which is 100% open source comes with integrated plugins to easy development of spring based apps, m2 eclipse and tomcat optimized for spring apps. As underlying platform is eclipse,one can integrate any plugins that they were fond of using in eclipse.
Download -

Useful plugins -
MoreUnit -
Eclemma -
junithelper -
sql explorer -
Eclipse Bulk Import -
m2eclipse -
AnyEdit Tools -
Spring IDE -
Subclipse -
Eclipse Color Theme -
Eclipse Metrics -
Tane (refactoring) -
Infinitest  -
Struts Tools -
JBoss Tools (Helios - jsf, hibernate, Freemarker, ESB) -
WindowBuilder Pro GUI Designer -
jd- eclipse (java decompiler) - 
Google Web Toolkit SDK 2.0.0, Google Webtoolkit(GWT) Tooling, Google Plugin for Eclipse 2.2  - These are plugins for GWT, available at eclipse market places
Groovy eclipse plugin -
Springsource tool suits

 JDT Decompiler

Selecting the jvm to be used to run eclipse -
eclipse -vm "C:\Program Files\Java\jdk1.7.0_06\bin\javaw"

It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.

Providing proxy settings in Helios- Settings can be edited at the following path - Windos -> Preferences  -> General -> Network Connections
Firefox - As a developer you will need the following add Ons - Fastest Fox, Firebug, IE Tab, IE View, iMacros , YSlow, JavaScript Debugger, View Source Chart,Web Developer,Toggle Web Developer Toolbar,ColorZilla,FlashFirebug,XPath Checker (For xpath with name space),FirePath (Xpath without name space),fox tab, themes menu, MacOSX Theme,printpdf, save as pdf., memory fox, Easy YouTube Video Downloader 6.4

MS DOS - Command to view the value of a system variable - echo %jvariable_name%
    Command to set the value of a system variable  - set  variable_name  "variable_value"
    Command to view the value of all the variables  - set

Tools - Fiddler (Tool to log Http(s) traffic), windows grep (To use grep in windows), sdedit (Tool to create sequence diagram)

Useful info -
  1. Converting html pages to PDF
  2. Creating eclipse templates of toString, equals, hashCode and compareTo implementation using org.apache.commons.lang
  3. Identifying whether RAM upgrade is needed

Friday, April 1, 2011

Creating mock objects for Test Driven Development

EasyMock - EasyMock provides Mock Objects for interfaces (and objects through the class extension) by generating them on the fly using Java's proxy mechanism. Due to EasyMock's unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development.

Mockito - Mockito library enables mocks creation, verification and stubbing.

JMock- JMock is a library that supports test-driven development of Java code with mock objects.