Month: September 2012

The markup Each image will need it’s only container. I’ve used a header div and a content div. <html> <head> … </head> <body> <div> … </div> <div> … </div> </body> </html> The CSS Now you assign each image as the background image of each div. The positioning should always be the same, and background-attachment should be set…

it is somewhat weird that Maven uses java1.3 for default compile. So if you use generics or some other “new” features in the later java version, you will probably got such error : could not parse error message: (use -source 5 or higher to enable annotations) add the following to the pom xml to…

The setting path is: Windows > Preferences > Java > Code Style > Code Templates > Comments Select Types and edit the template to insert another value the system value format is like: ${date} Then before the declaration of the class, just type /** and ENTER.

For Subclipse plugin proxy setting in eclipse You need to open C:\Documents and Settings\<user_name>\Application Data\Subversion\servers Note: for windows 7 this could also be found in c:\Users\<user_name>\AppData\<Roaming\Local>\Subversion\servers In this file you need to uncomment few line under global [global] # http-proxy-host=proxy1.some-domain-name.com # http-proxy-port=80 # http-proxy-username=blah # http-proxy-password=doubleblah # http-timeout=60

GWT and JSF are very different technologies and one of the major differencies is in server state : in GWT is generally none and in JSF full. That means that JSF in one request/response perform on server component tree build and this build takes some time. GWT normally holds complete state in client (in compiled…

TextFX To Indent a XML file in notepad++, TextFX > TextFX HTML Tidy > Tidy Reindent XML If the TextFX menu does not exist, you need to download & install the plugin. Plugins->Plugin Manager->Show Plugin Manager and then check the plugin TextFX Characters. Click ‘install,’ restart Notepad++. libTidy.dll might not be included in the new version of NPP. Solution…

Hibernate Criteria API is a more object oriented and elegant alternative to Hibernate Query Language (HQL). It’s always a good solution to an application which has many optional search criteria. Example in HQL and Criteria Here’s a case study to retrieve a list of StockDailyRecord, with optional search criteria – start date, end date and volume,…

Windows: The SetX command would do so: setx /M JAVA_HOME “C:\Program Files (x86)\Java\jdk1.6.0_17” /m means machine level. To check the settings, use “set” command for all the variables. Use “echo %JAVA_HOME%” to check it specifically. To append to the PATH: setx path “%PATH%;c:\home” /m Here is a good site for windows commands Unix In Unix, go…