Have you tried turning it off and on again?

October 2nd, 2013 by Terrence Miao 1 comment »

Have you tried turning it off and on again?

Have you tried turning it on and off again?

Google+: View post on Google+

American Government started to shut down

October 2nd, 2013 by Terrence Miao 1 comment »

Not sure what the fuss is. Italian Government shut down about 40 years ago and no one's noticed.

Elizabeth Windsor, Queen UK

Google+: View post on Google+

Why Scala?

October 2nd, 2013 by Terrence Miao 6 comments »

Are you ready all in betting on Scala? James Strachan, the creator of Groovy, described Scala as a possible successor to Java.

Scala can compete directly with Java, and give it a run for its money on almost all aspects. It can't compete in popularity at the moment to Java. Of course, the lack of a strong corporate backing may hinder its acceptance on corporate environments. However, who else do you reckon could be the next corporate language for large business, Groovy, Ruby, Clojure, Haskell, or even old Javascript?

Embedded Link

Scala as the long term replacement for java/javac?
Don’t get me wrong – I’ve written tons of Java over the last decade or so & think its been a great evolutionary step from C++ and Smalltalk (lots of other languages have helped too like JavaScript, Ruby, Groovy, Python etc). …

Google+: View post on Google+

To celebrate Aussies' America's cup win 30 years ago, former Prime Minister…

September 29th, 2013 by Terrence Miao No comments »

To celebrate Aussies' America's cup win 30 years ago, former Prime Minister tells audiences a joke

There's three blokes, a Frenchman, an Englishman and an Aussie, and they’re hiking in the Andes in the middle of summer. It's about 45 bloody degrees. Sweatin' like pigs. The get to the top of this mountain, they look down and there's this most beautiful, pristine lagoon. They go scrambling down the side of the mountain, get their gear off and dive in. Ohhhh, bloody marvellous.

The natives come and grab 'em. Take 'em to the chief. Chief says, "You have broken most sacred law. This our most sacred site. For this you die. When we kill you, we take off skin. Out of skin make canoe! Put canoes on lake. Permanent reminder for all people: never infringe our most sacred site. Tie them up!"

They tie 'em up. He says to the Frenchman, "Before you die, you have one last wish. What your last wish?" And he said, "Eh, I would, ehm, I would like a knife." So they bring him a knife. He says, "I'm not going to die at the hands of you savages. Vive la France!" (stabbing noise) Pchhhhhwwww. And over he goes.

Then he says to the Englishman, "What your last wish?" "Mng, like my friend from across the channel, I too would like a knife." They bring him a knife and he says, "Mng, like my friend from across the channel, I too am not going to die at the hands of you savages. God save the Queen!" (stabbing noise) Pchh, pchwwwww.

Then, say to the Aussie, "What your last wish?" He said, "I want a fork." So they bring him a fork and he goes, (stabbing noises) pchwww, pchwww, pchwww, pchwww pchwww. "There goes yer fuckin' canoe."

Embedded Link

» Read more: To celebrate Aussies' America's cup win 30 years ago, former Prime Minister…

The pleasure of destruction next generation – Apple A7 processor teardown

September 28th, 2013 by Terrence Miao No comments »

The pleasure of destruction next generation – Apple A7 processor teardown

Embedded Link

Apple A7 Teardown
Apple’s A7 processor released September 20, 2013.

Google+: View post on Google+

On  today Aussie Rules grand final day 2013, if you still don't know which two…

September 28th, 2013 by Terrence Miao 1 comment »

On  today Aussie Rules grand final day 2013, if you still don't know which two old foes in the final, and don't bother staying home, spending a few hours in front of TV this afternoon and watching a game you really don't get, you are doing the right thing.

The average Aussie spends more time choosing their footy tips than choosing their investments. Seriously. The winner prize on most footy tipping competitions is a few thousand bucks. The prize for getting your investment right is the SAME a few thousand bucks, but a week or more … 

Google+: View post on Google+

Unix command find directories without specific files

September 28th, 2013 by admin No comments »

In development box already set up Maven local repository. New projects are base on Grails and build with Gradle. Gradle set up to re-use Maven local repository, but Maven repository is NOT as reliable as you expect.

Then come across a problem that Gradle fails to download dependencies if not present in MavenLocal(), i.e., directories have Maven pom.xml but without artifact jar files. This makes Gradle build failed.

http://forums.gradle.org/gradle/topics/gradle_fails_to_download_dependencies_if_not_present_in_mavenlocal

So need to find out these directories:

$ find . -type d -not -empty -links 2 -exec sh -c 'set -- "$0"/*.jar; ! [ -e "$1" ]' {} \; -print

This is how do you feel when you make something to be compatible with legacy app…

September 28th, 2013 by Terrence Miao No comments »

This is how do you feel when you make something to be compatible with legacy applications

Backwards Compatible Migrations

Google+: View post on Google+