JSF is too fat, Struts is too heavy, Spring MVC is light, but Java is too verbose….

May 31st, 2012 by Terrence Miao 5 comments »

JSF is too fat, Struts is too heavy, Spring MVC is light, but Java is too verbose. Then there come Groovy language and Grails framework.

Hate Java, love Groovy; wish Struts to die quickly, hope long live Spring MVC.

Grails is actually Spring MVC application in disguise.

Shout out for Mr. Pie.

May 31st, 2012 by Terrence Miao No comments »

Creativeness on unnoticed things surround your every day's life.

In album Things you didn't think of that (12 photos)

» Read more: Shout out for Mr. Pie.

Beer 101 – Beer Education for dummies

May 31st, 2012 by Terrence Miao No comments »

No matter how much beer you have drunk in your life.

Reshared post from +Michael Poloni

Where does beer come from??

Check out this clever little animated presentation from Little Creatures on how beer is made.

https://littlecreatures.com.au/ingredients_process

#twitter [ https://twitter.com/LtCreatures/status/208030276427849729 ]

Embedded Link

» Read more: Beer 101 – Beer Education for dummies

A functional test in Groovy to test Autofocus, Escape key capture and page redirection

May 27th, 2012 by admin No comments »

In my last post, I showed a solution how to autofocus, Escape key capture and page redirection in jQuery. So there is a quest how to automatically test it?

In the following codes snippet of the functional test in Groovy, a rapid script language of its uncle Java, showing how to achieve this in a simple straight-forward way. The codes is based on Selenium library.

package somewhere.in.the.rainbow

import static org.junit.Assert.assertThat
import static org.junit.Assume.assumeTrue as assume

import static org.hamcrest.CoreMatchers.*

import org.junit.Test
import org.junit.Ignore

import org.openqa.selenium.Keys
import org.openqa.selenium.By
import org.openqa.selenium.WebElement

import somewhere.in.the.rainbow.pages.BarcodeEntryPage
import somewhere.in.the.rainbow.pages.LoginPage
import somewhere.in.the.rainbow.pages.OtherServicesPage
import somewhere.in.the.rainbow.Constants

» Read more: A functional test in Groovy to test Autofocus, Escape key capture and page redirection

My Future Australia – Winner of Doodle 4 Google National 2011

May 27th, 2012 by Terrence Miao No comments »

Read more – http://www.google.com.au/doodle4google/vote.html#d=d3-2

In album I.T. (1 photo)

Wien says that the eurozone can be divided into those countries that run a trade…

May 27th, 2012 by Terrence Miao No comments »

Wien says that the eurozone can be divided into those countries that run a trade surplus (such as France, Germany, the Netherlands, Finland and Luxembourg), and the deficit countries of Greece, Portugal, Spain and Italy.

But he points out that the deficits of Spain and Italy are relatively modest. “Spain and Italy have viable economies and they’re able to export products that people want to buy. So I think that Spain and Italy are salvageable. I’m not sure that that’s the case for Greece and Portugal.”

Wien says he agrees with comments made by Greece’s former prime minister, Lucas Papademos, that a Greek exit from the eurozone would be “catastrophic” for the country. The country, he says, will get little benefit from returning to a devalued drachma. "What are they going to compete on? Olive oil and tourism?”

Embedded Link

A bright market vision for dark times | Karen Maley | Commentary | Business Spectator
Blackstone investment strategist Byron Wien predicts the euro will survive, with or without Greece, and markets will turn up in the second half of this year.
» Read more: Wien says that the eurozone can be divided into those countries that run a trade…

Quote of the day – "The stock market is an unknown and full of opportunity

May 27th, 2012 by Terrence Miao No comments »

Quote of the day – "The stock market is an unknown and full of opportunity. The next Paladin is right in front of us somewhere. So is the next disaster. You have to love this game. There is no better playground for your intellect, or your money."

Marcus Padley

Photo of the day – Sex, Politics and Gun, an American style

May 26th, 2012 by Terrence Miao 1 comment »

Read more: http://www.jmg-galleries.com/blog/2008/09/11/an-interview-with-the-creator-of-the-sarah-palin-bikini-gun-photo/

In album Political Satire (1 photo)