Sep 18, 2008

The difference between LIBERAL and CONSERVATIVES

I found a good movie article in TED.
It is about politics and psychology.

Jonathan Haidt: The real difference between liberals and conservatives
Now we found a connection between psychology and politics based on human nature.
I think this is great.

Sep 16, 2008

EJB ( Enterprise Java Bean )

I have heard about EJB all the time since 5 years ago.
And yesterday I have found what it is.
It was actually not so complex.

I though it was a big library collection like STL or MFC.
But it wasn't.

The EJB technique reminded me of the memory pool technique in C++.
EJB container instantiates some of Bean classes, which is Business logic classes.
And then it manage them, allocate them, and release them.

There are three different types of beans: stateless, statefull and message driven.
I don't know the details for each one yet. But it must be basically same.

One can find good tutorial Here:
http://java.sun.com/javaee/5/docs/tutorial/doc/bnblt.html

I recommend one see the example files first:
http://java.sun.com/javaee/5/docs/tutorial/doc/bnbnb.html

Sep 13, 2008

Checking capital characters for password.

One of my favorite web site is We Disk: http://global.wedisk.co.rk
One day I have typed in Captial characters as my password, and the web site showed this pop-up message.
The meaning is that
if your "Caps lock" is turned on, password will be wrong.
I think some of people might intentionally use "Caps lock" when they type in password. But it is good to notice the users all the time.

In addition, I like the simple image that the pop-up message uses. It is instinctive.

Sep 11, 2008

No end in sight, 2007

This is summary of the documentary, "No end in sight, 2007". This is for Iraq war.

US army didn't stop Looting. Army stand in each intersection and do nothing but saying that we are here not for stopping lotting. It encouraged robbery to other places.

In side of US government, they didn't communicate well. People who are charged in significant role had no experience, no plan, no frequent communication. And they most of time stay in Washington not in Iraq.

CPA made three bad decisions.
  1. Stopping the formation of an interim Iraq government.
  2. De-Ba'athification.
  3. Disbanding the iraqi Military.

Baath Party had played significant role for Iraq society in education and techniques. But since they are founded and supported by Saddam, CPA dismissed the party and all of them become unemployed.

Soldiers are suddenly unemployed. Iraq become worse not only in the sense of security but also in the sense of economy. There was demonstration by former soldiers, and become more violent. Their way for insurgency is professional: bombing and ambushing.

$18 billion in reconstruction money was made available on Oct 1, 2003 by congress. One year later, only $1 billion had actually been spent. There are a lot of corruption and wasting.

US soldiers arrest a lot of Iraqis. Even in mid night when people hear sound of helicopter or tanks, they wake up and prepare to be investigated. Many of them are just missing or die. Army doesn't disclose the number of Iraqis arrested or detained in Iraq since 2003 and even now.

All of this kind of insurgency result in the growth of religious group can giving them political power. They are explosive and aggressive to America.

Security is horrible. Kidnapping, bombing, and killing are happening. Kidnapping is not only for one or two people, but for group of people. Violent gangs or private security guards just kill people on street. Some of them made a home video that shows just killing people in cars without any reason.

Direct war cost to date: 379 Billion.
Future military operating costs: 389 Billion.
Veterans health care and lost productivity: 482 Billion.
Other defense equip and personnel cost: 160 Billion.
Oil price effects: 450 Billion
Total costs of Iraq war: $1.860 Trillion

Sep 5, 2008

Why is summer hotter than winter?

I have found a interesting question at TED site.
Why is summer warmer than winter?
Is it because during summer, the earth gets closer to sun?
Then you might imagine ellipse shape of the path of earth around sun like this:
But actually it is not true. It is not ellipse.
In fact it never gets closer at all like this:

The real question is that why do we come up with the ellipse shape for the path?
I think it is because we have never experienced about solar system ever.
Or we have not had any chance to think about the path.
I have never seen the Mars by my eyes.
I have never checked any path of any star.

Lack of experience stupifys us.