Feeds:
Posts
Comments

Archive for the ‘Uncategorized’ Category

Test Version: GWT 2.0 and above

Use of “main” method

Each Java class can include a “main” method to perform class execution. This feature is especially useful for experimenting, testing and debugging the pertaining code within the class without resorting to using helper class. Generally it is more efficient and productive to test a particular class (if one already pinpoint the problematic class) rather than to test a whole application that has more overheads and which takes longer time to run. By including a “main” method in class, other developers can also quickly experiment with different API of the code within the class without creating additional testing helper classes. In addition, it is easier to build a reliable application if the classes that make up the application are reliable themselves. Apart from this, the use of “main” method will also encourage one to design the class to be “simplified” so that it can easily test from “main” method.

public static void main(String[] args) // Java’s main method

That to say that the “main” method is not a replacement for unit testing, and vice versa. Their intent and usage are different. Unit testing is more formal whereas the “main” method is less formal. Many test cases are included in unit testing and is run periodically to ensure that nothing break the code and create bug from modified code as in the case of time-consuming build process. Unit testing is usually automated and does not involve GUI interaction since the unit testing can be invoked in command-line prior to software development process like build process or check perform by version control system after code check-in.

On the other hand, the “main” method does not subject to such intense test and is not run unless one modify that class and want to have a quick test ensure correct behaviour and result. Developers are free to change whatever in the “main” method of the class during development as long as the “main” method of the class is not used to start up the application, and not call by other classes (It is bad practice to reference and use “main” method from other class.).

 

(more…)

Advertisements

Read Full Post »

image

I know exactly what you thinking because it is exactly what I’m thinking when I first see this surreal picture. A picture that is so skillfully doctored to show a large plane landing near to the coastline as short to the start-point of runaway. To created such a illusion with perfectly matched details to thwart even the meticulous critics will require very highly-skilled artist and countless hours of work. Just look at those shadow, lighting and other amazing details that fit so well with the environment, not to even mention that no airline in the world is so sane to put the public in such a dangerous area.

(more…)

Read Full Post »

Do you know what it means to be a innovator ? According to Professors Jeff Dyer image and Hal Gregersen image , it means to develop a set of skills and traits that necessary for creative innovation.

 

Dyer: The first skill is what we call "associating." It’s a cognitive skill that allows creative people to make connections across seemingly unrelated questions, problems, or ideas. The second skill is questioning — an ability to ask "what if", "why", and "why not" questions that challenge the status quo and open up the bigger picture. The third is the ability to closely observe (observing) details, particularly the details of people’s behavior. Another skill is the ability to experiment (experimenting) — the people we studied are always trying on new experiences and exploring new worlds. And finally, they are really good at networking with smart people who have little in common with them, but from whom they can learn.

Fryer: Which of these skills do you think is the most important?

Dyer: We’ve found that questioning turbo-charges observing, experimenting, and networking, but questioning on its own doesn’t have a direct effect without the others. Overall, associating is the key skill because new ideas aren’t created without connecting problems or ideas in ways that they haven’t been connected before. The other behaviors are inputs that trigger associating — so they are a means of getting to a creative end.

Gregersen: You might summarize all of the skills we’ve noted in one word: "inquisitiveness." I spent 20 years studying great global leaders, and that was the big common denominator. It’s the same kind of inquisitiveness you see in small children

To read on, click here

Read Full Post »

imageI am always fascinated by Japan’s history and culture. Not only is the country beautiful, but its historical culture is full of vibrancy and elegance. The author image of this blog (wonder if she is a Japanese) talks everything about Japan, visits the heritage site and narrates the history of events, all accompany by abundance of well-captured photos. Better still, you don’t need to learn Japanese because the blog is written in English. So for those who is interested to find out more about Japan yet without burning your pocket, this site is must-visited site.

Pictureimage, Food image  , building image   , relics  , history image, scenery image . This site has it all (http://mananya.jugem.jp/).

Japan is really a fairy tale to me. Look like I need to start saving up to visit this mystical land one day.

imageTaken from http://1.bp.blogspot.com

Read Full Post »

imageimage Back then in 2003, Toshiba Portege M200 Tablet PC notebook reigns as one of  the most innovative and beautifully designed Tablet PC (TPC)  notebooks. With black-coated magnesium chassis and the highest screen resolution (1400×1050) display housing the state of art components, the attractive-looking Portege M200 is undoubtedly a work of timeless beauty and engineering, which even today continue to attract buyers who want to own a piece of this classic.

However, like any computers, the technological marvel of today will be obsolete tomorrow. Traditionally, the notebook vendors support a computer notebook for 5 years for driver update and repair. Hence, M200 has enjoyed its heyday running Windows XP and Windows Vista. However, with Windows 7 image , Toshiba no longer support M200 in term of updating compatible system software and optimized driver. With no official support, Windows 7 no longer can take full advantage of the hardware capability for performance and functionality.

(more…)

Read Full Post »

imageThe King is dead !
Long live the King !image

It is been more than 3 decades since the slogan is repeated. Last time it is for legendary icon, The King of Rock ‘n’ Roll", Elvis Presley image who passed 42 years old in 1977 due to heart attack. Now 32 years later, history has repeated itself for King of Pop, Michael Jackson image , who died at age of 50 years old due to heart attack.

Even though these legends are no longer with us, they leave behind legacies that will remembered forever.

(more…)

Read Full Post »

The Portraiter site is finally up in GeekyWare.

image

Read Full Post »

Older Posts »