Monday, November 10, 2008

my weird looking desktop

wallpaper from interfacelift
desktop enhancements from HUD.Vision and Rainmaker

Wednesday, October 8, 2008

my first Selenese test case!

i managed to squeeze some time to check out web automation testing using google's Selenium package.

here's the sample code:

* JSF-Spring Integration Training
* Copyright MyCompany 2008

import junit.framework.TestCase;
import com.thoughtworks.selenium.DefaultSelenium;

* A Simple Unit Test using Selenium
* @author kits
public class SimplePageTest extends TestCase {

protected DefaultSelenium createSeleniumClient(String url) throws Exception {
return new DefaultSelenium("localhost", 4444, "*firefox", url);

public void testSomethingSimple() throws Exception {
String url = "http://localhost:8010/clocator/faces/pages/index.jsp";
DefaultSelenium selenium = createSeleniumClient(url);


selenium.isTextPresent("Hello JSF!!!");


and here's the dependency in my project's pom.xml:

and some plug-in configuration:

that's all there is to it... no sweat! =P

new LAF(look and feel) for my blog!

nerdy looking skin huh? but i like it! =)

managed to have a new template together with SyntaxHighlighter, this cr*p took me 3hrs to have it working =P

Monday, September 29, 2008

work and play

i'm enjoying my new toy (hp pavilion dv2915nr) and here's a snapshot of my current desktop and system tray

Monday, September 8, 2008

Hands Dirty with Java and Open Source

in case someone is in need of a guide on how to get up-to-speed with portlet development (JSR-168) using the struts2 mvc framework, spring, and maven, i have written here a How-To guide:

and the archetypes here:

you have to integrate some i18n features yourself.

here's an HTML version of the document provided by google:

Friday, September 5, 2008

things to ponder with JEE application development

1. User/Business Defined Exceptions are handled inside Service or Business Layer and is added in a info/error message map.

2. Messages should be stored and retrieved in a property file when support for internationalization is required.

3. A Global Constant Java file should be used to hold page forwards, default row-per-page, fixed-drop-down list of values, etc.

Friday, August 1, 2008

importing data dump in Oracle XE - ORACLE error 12560

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.


Import: Release - Production on Fri Aug 1 16:48:43 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Username: pde

IMP-00058: ORACLE error 12560 encountered
ORA-12560: TNS:protocol adapter error
IMP-00000: Import terminated unsuccessfully


solution to this problem is to go directly to the bin folder of your XE install folder and execute 'imp' there.

hudson dependencies

to have a basic hudson instance, the pre-requisites are:

1. CVS/SVN client
2. Tomcat (as service preferred)
3. Maven2

Thursday, July 31, 2008

a buggy ant in hudson

ant 1.7.0 had some issues with long diretory names in windows which affects hudson's build when resolving maven's repository folder.

to fix this, edit your maven's settings.xml and update the entry below:



how to add code/scripts in your blog postings:

here's a live example! =)

package com.walgreens.sysconf.dao;

import java.util.List;

import com.walgreens.sysconf.domain.AbstractDomain;
import com.walgreens.sysconf.domain.AppEvent;

* Standard DAO Interface for AppEvent Domain Object
* @author Edwin Quita
* @version 1.0
public interface AppEventDAO {

* Inserts an AppEvent Record
* @param ad AppEvent Domain Object
public void insert(AbstractDomain ad);

* Updates an AppEvent Record
* @param ad AppEvent Domain Object
public void update(AbstractDomain ad);

* Deletes an AppEvent Record
* @param id Record Id
public void delete(long id);

* Retrieves an AppEvent Record
* @param id Record Id
* @return AbstractDomain AppEvent domain object
public AbstractDomain findById(long id);

* Retrieves a List of AppEvent Records
* @return List A List of AppEvent domain objects
public List<AppEvent> findAll();

* Retrieves a List of AppEvent Records using AUTH_ID as filter
* @return List A List of AppEvent domain objects
public List<AppEvent> findAllByAuthId(String authId);


package sources in maven

so this is how you package sources in maven:




first post

this is my attempt to journalize my adventure in the java wonderland although i have been playin' around with it for the past 9 years =)

here it goes...