Wednesday, July 15, 2009

Rainmeter and HUD.Vision weather plugin update

for those having problems getting their weather plugin working, here's an update to the weather.ini file:

you can change the XOAP in the URL for XML

Example:
From this:
CODE: SELECT ALL
Url=http://xoap.weather.com/weather/local/#dest#?cc=*&unit=#SCALE#&dayf=10


to this
CODE: SELECT ALL
Url=http://xml.weather.com/weather/local/#dest#?cc=*&unit=#SCALE#&dayf=10



source: http://www.rainmeter.net/forum/viewtopic.php?f=4&t=622#p4214

Sunday, July 5, 2009

robust architecture pointers

From our point of view, there are three fundamental characteristics of design you need to remember every day to build flexible architectures: understandable, loosely coupled and free of redundance. There are many well-known design principles that helps you to build such systems. Keep them in mind, build loosely coupled components, think about good APIs between them - and you are on the right track to build flexible applications and flexible architectures.

Thursday, July 2, 2009

my first python app in GAE


it's so easy it's just like stealing candy from a baby :p

Sunday, June 21, 2009

to agile or not to agile

for those folks who are zealous about adopting/advocating agile/XP in their workplace, just a couple of reminders here.

Tuesday, June 16, 2009

Java - the new language to run on top of GAE

ever wanted to deploy a webapp written in Java but can't find any reliable and cheap hosting companies?

today, i saw the clouds parted and rays of light shine down on earth!!!

well, not exactly :p Java geeks can now deploy Java applications on top of the "Cloud" aka Google App Engine baby!



here's the announcement of GAE's blog:
http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html

Tuesday, May 19, 2009

maven and selenium in linux

i'm currently coding selenium scripts for automating our tests for a portal application.

here are the pom.xml customizations for using selenium server and client




4.0.0
com.spongeduke.tws.portal.webtests
com.spongeduke.tws.portal.webtests
jar
1.0-SNAPSHOT
com.spongeduke.tws.portal.webtests
http://maven.apache.org


1.0-beta-1
2.5.6
4.4






org.openqa.selenium.client-drivers
selenium-java-client-driver
${selenium.version}
test


org.springframework
spring
${spring.version}
test


junit
junit
${junit.version}
test








maven-compiler-plugin

1.5
1.5




org.codehaus.mojo
selenium-maven-plugin



xvfb
pre-integration-test

xvfb


:1




pre-integration-test

start-server


4447
true






org.apache.maven.plugins
maven-surefire-plugin


true



integration-test

test


false










openqa-releases
Openqa Release Repository
http://nexus.openqa.org/content/repositories/releases
default

false


true



openqa-snapshots
Openqa Snapshot Repository
http://nexus.openqa.org/content/repositories/snapshots
default

true
daily
ignore


false








and here's the sample unit test:


/**
* spongeduke (c) 2009
*/
package com.spongeduke.tws.portal.webtests;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestCase;
import com.thoughtworks.selenium.Selenium;

/**
* Sample Selenium Test
*
* @author ctract2
*/
public class SampleSeleniumTest extends SeleneseTestCase {

private Selenium selenium;

public void setUp() {
selenium = new DefaultSelenium("localhost", 4447, "*firefox", "http://localhost:8080");
selenium.start();
}

public void testShouldShowWelcomePage() throws InterruptedException {
selenium.open("/portal");
selenium.waitForPageToLoad("5000");
verifyEquals("spongeduke DevPortal", selenium.getTitle());
verifyTrue(selenium.isTextPresent("spongeduke"));
}

public void tearDown() {
selenium.stop();
}

}


two ways of running the test:

1. using maven
$ mvn integration-test

2. using JUnit Runner in eclipse:
a. start Selenium Server: java -jar selenium-server.jar -port 4447
b. run Selenium Unit Test in eclipse using JUnit Runner

required selenium distribution: selenium-remote-control-1.0-beta-2-dist.zip
and can be downloaded from http://seleniumhq.org/download/

that's all folks!

Monday, May 18, 2009

export command not found

if the command export is not installed in your linux machine, try this:

1. edit .personal file

2. edit and add the following at the end of the file

setenv M2_HOME /usr/share/apache-maven-2.1.0

alias mvn '$M2_HOME/bin/mvn'

3. save the file and launch a new terminal session