Questions asked in interview are getting tougher and tougher

April 18th, 2014 by Terrence Miao No comments »

Have a look the latest I.T. Consultant's exam:

Q1. How do you put a giraffe into a refrigerator?
(Answer: Open the refrigerator, put in the giraffe, and close the door. )

This question tests whether you tend to do simple things in an overly complicated way.

Q2. How do you put an elephant into a refrigerator? (and No, it is not "Open the refigerator, put in the elephant and close the refrigerator?")
(Answer: Open the refrigerator, take out the giraffe, put in the elephant and close the door.) This tests your ability to think through the repercussions of your previous actions.

Q3. The Lion King is hosting an animal conference. All the animals attend, except one. Which animal does not attend?
(Answer: The elephant. The elephant is in the refrigerator.) This tests your memory.

Okay, even if you did not answer the first three questions correctly, you still have one more chance to show your true analytical abilities.

Q4. There is a river you must cross but it is used by crocodiles, and you do not have a boat. How do you manage it?
(Answer: You just jump into the river and swim across. All the crocodiles are attending the Lion King's Meeting.)

Google+: View post on Google+

A novice was trying to fix a broken Lisp machine by turning the power off and on…

April 18th, 2014 by Terrence Miao No comments »

A novice was trying to fix a broken Lisp machine by turning the power off and on.

Tom Knight, the inventor of Lisp machine, seeing what the student was doing, spoke sternly: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."

Knight turned the machine off and on.

The machine worked.

Google+: View post on Google+

Saying that Java is nice because it works on every OS is like saying that anal sex…

April 18th, 2014 by Terrence Miao No comments »

Saying that Java is nice because it works on every OS is like saying that anal sex is nice because it works on every gender.

When your hammer is C++, everything begins to look like a thumb.

If you put a million monkeys at a million keyboards, one of them will eventually write a Java program. The rest of them will write Perl programs.

A Cobol programmer made so much money doing Y2K remediation that he was able to have himself cryogenically frozen when he died. One day in the future, he was unexpectedly resurrected. When he asked why he was unfrozen, he was told: "It's the year 9999 – and you know Cobol."

Embedded Link

What is your best programmer joke?
When I teach introductory computer science courses, I like to lighten the mood with some humor. Having a sense of fun about the material makes it less frustrating and more memorable, and it’s even motivating if the joke requires some technical understanding to ‘get it’! I’ll start off with a couple of my favorites: Q: How do you tell an introverted computer scientist from an extroverted computer scientist? A: An extroverted computer scientist lo…
» Read more: Saying that Java is nice because it works on every OS is like saying that anal sex…

This is a joke

April 18th, 2014 by Terrence Miao 3 comments »

Can you get it?

This is a joke. Can you get it?

Google+: View post on Google+

Some Kim Jong-un cut for all men

April 16th, 2014 by Terrence Miao No comments »

Read more: Barber visited by angry North Korean officials after displaying poster mocking dictator's haircuthttp://www.mirror.co.uk/news/uk-news/kim-jong-uns-men-visit-3416262

Some Kim Jong-un cut for all men

Google+: View post on Google+

You can’t kiss all the girls, and it only leads to trouble if you try

April 13th, 2014 by Terrence Miao No comments »

Fortunately, the universe of possible speculations is so vast, it simply doesn’t matter if someone else beats you to any particular one; there will always be another to ask for the next dance. Bide your time, and make your move only when all of the above is on your side.

Embedded Link

Doug Casey’s 9 Secrets for Successful Speculation | Casey Research

Google+: View post on Google+

Using Java JConsole connect to remote WebLogic JMX server

April 13th, 2014 by admin No comments »

WebLogic farm, one Admin Server, two managed servers.

MBean defintion:

mdcsObjectName: com.auspost:Name=mdcsNfr,Type=PostNfr,Location=wlsa_mdcs_pdev_admin
mdcsObjectName: com.auspost:Name=mdcsNfr,Type=PostNfr,Location=wls_mdcs_pdev1
mdcsObjectName: com.auspost:Name=mdcsNfr,Type=PostNfr,Location=wls_mdcs_pdev2

Connect MBean Server with JConsole:

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45
set WL_HOME=C:\bin\wls1036\wlserver
“%JAVA_HOME%\bin\jconsole.exe” -J-Djava.class.path=”%JAVA_HOME%\lib\jconsole.jar;%WL_HOME%\server\lib\wljmxclient.jar” -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote -debug

Admin Server
service:jmx:t3://hx549:3101/jndi/weblogic.management.mbeanservers.domainruntime
wladmin/Welcome123

Managed Server 1
service:jmx:t3://hx549:3102/jndi/weblogic.management.mbeanservers.runtime
wladmin/Welcome123

Managed Server 2
service:jmx:t3://hx749:3103/jndi/weblogic.management.mbeanservers.runtime
wladmin/Welcome123

Attributes with Internal suffix are used and kept its own node’s information. NO internal attributes keep / sync between all nodes information.

Picture (Device Independent Bitmap)

» Read more: Using Java JConsole connect to remote WebLogic JMX server

JavaScript world is a bit insane for the moment

April 12th, 2014 by admin No comments »

Have a look Meteor - https://www.meteor.com/, an “ultra simple”, “database everywhere”, “data on the wire”, “real time”, and another pure JavaScript web application framework. Meteor even makes Angular.js so yesterday.

Just like this great country, politicians fight election campaign on popularities, not on issues. Programming today has become a pop culture. Every JavaScript web framework try to make themselves Rails like. Maybe it’s better wait for all nuclear fallout to settle and learn something far more better, stable and rewarding … …