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
*/
package com.training;

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.start();

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

selenium.stop();
}
}


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:

http://edwin.quita.googlepages.com/Maven2HowTo.doc

and the archetypes here:

http://edwin.quita.googlepages.com/portlet-archetype.zip
http://edwin.quita.googlepages.com/service-archetype.zip

Note:
you have to integrate some i18n features yourself.

p.s.
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.

C:\>imp

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

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

Username: pde
Password:

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

C:\>

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