Monday, July 27, 2009

All American Tragedy

This is a horrible piece of news about grandfather shooting wife and grandchild.

"This was an all-American family" says the police. The article ends with "All I know is ... depression. Who knows?"

Look, guns in the house can lead to family violence, whatever reason it may be, "who knows?". This really is an all-American tragedy. If a burglar comes in, let him take the cash and call the police ok? Not very likely you can defeat a well prepared burglar anyway. (He is in the LIGHT, you are in the DARK)

Gun control will never proceed in congress because congressman are supported by guys who are pro guns. Congressmen cannot afford to lose their votes. We can simply HOPE gun violence doesn't happen to you.

Friday, July 24, 2009

JSP vs JSTL

JSTL is java standard tag library. Trend of modern programming: it is not cool if it does not look like XML. (I beg to differ).

I found an excellent book covering features of Java. This is what copied right of there, about JSTL:



Using scriptlets

<html>
<head>
<title>simple example<title>
</head>
<body>
<%
for(int i=0; i<5; i++) {
%>
<%= i %> <br/>
<% } %>
</body>
</html>
The above JSP code is hard to read and maintain.

Using JSTL tags
<%@ taglib prefix=”c”
uri=”http//java.sun.com/jstl/core”>
<html>
<head><title>simple example<title></head>
<body>
<c:forEach var=”i” begin=”1” end=”5” step=”1”>
<c:out value=”${i}”> <br/>
</c:forEach>
</body>
</html>
The above JSP code consists entirely of HTML & JSTL tags (in bold).


About the comment in the left: I BEG TO DIFFER.
Look, JSP looks like java, and it should be.

Lost of Math Section

At Borders on State street, on 3rd floor, there used to be a small bookshelf dedicated to mathematics. Some are study guides (practice problem books), some are "All You Ever Need To Know About Math" books with very elementary school stuff, some are very advanced stuff that I can hardly make any sense of. (Yes, for most people, elementary school stuff is really all you need)

A few weeks ago I went there all the books are gone, the shelf is there with a sign saying "this section is under re-arrangement" or something like that. A few days ago, the shelf is totally gone, replaced by a bench. Looks like they simply get a carpenter and turn the shelf into the bench. I can't find the math section anymore. It is gone. Oh, are the books in the discount bin? Nope, didn't see either.

That means there are so few customers for that section that the bookstore decide to eliminate it. Oh well. I'll look elsewhere.

Outrageous Corruption

Here is shocking news to me about big-scale corruption in New Jersey. These guys are "washing money", black marketing kidney and more.

Is it tip of iceberg?

Some guys are just greedy and evil.

Thursday, July 23, 2009

Excellent Spring Tutorial

Java programming on the web used to be simple and you can have lots of freedom: create your own servlets and jsps. Every programmer should know the MVC pattern (at least know how to talk about it in an interview)

People want frameworks, that usually means a single entry servlet. XML configuration so that it will direct to your controller class. Your controller class feed some data, and the view worries about how to display it.

Spring is a popular framework, but yikes it has a lot of things and looks tough to master.

Fortunately, I found an EXCELLENT tutorial!
http://maestric.com/doc/java/spring

Monday, July 20, 2009

Transformers - Revenge of the Fallen

I finally get to see the new Transformers movie. Before the movie, what I've heard is this: it is just Megan Fox running around and nobody even would care about robots clash. Well it wasn't that bad.
Actually I think it is better than the first movie. The first movie has so many useless human characters. This time the humans have better chracters. Yes, this movie's storyline is a lot of nonsense.

The first movie was all about the "All Spark" cube, this time we have the leadership matrix! Yikes, this matrix looks like a boomerang or some sort, or the symbol of a hurricane, oh and this thing is not inside Prime?

Yes, a lot of actions take place but it is so hard to see who is fighting whom when all look like scrap parts. Look at the original cartoons! The transformers do not look like scrap metals.
The autobots have a symbol and the Decepticons have a symbol: they are clearly marked. Ouch they just have to kill Optimus Prime in the movie. It is wrong for Prime to go alone in that forest scene (Prime should know better). Primes' death deserves slow motion, and tears of Daniel in 1986 movie and the shaking head of Perceptor. The music of the 1986 movie was so remarkable. New movies neglect that.
I am so glad that Prime came back alive. I would be depressed for two years until the next movie if he doesn't come back.

The autobots
There are SO FEW autobots in the movie! Yikes, don't blow up Arcee! Besides Bumblebee and Prime there are two annoying idiots who follow Bumblebee. That's about it. Come on! There should be more autobots. The movie guys don't get it: the autobots is a great team, each one has its own powers and characteristics, along with a caring and powerful prime.

The bad guys
"The Fallen" is roughly equivalent to the Quintessons? It is a prime? Come on! "Prime" is the title of the autobot leader! They misused this sacred title. Megatron in this movie has no character. Starscrem is so ugly.
What makes the Decepticons evil is that they can be hostile to each other, what about Starscream's never ending desire to overthrow Megatron? I don't see that in the movie. Yikes Devastator looks so ugly like an ant-eater! Deavastor should be BIG and FEARSOME.

The humans
The military guys in the first movie runs around for nothing in the first movie, and of course, human weapons are supposedly useless against the Transformers. After all, why do you need the autobots if you can fight the Decepticons yourself? This time the human weapons have got much better. But the movie guys don't get it: we want to see Autobots fight the Decepticons. Stay out of the way.
Mikaela is beautiful, and her lipsticks never run out of color. Sam's classmates are beautiful too(except that Decepticon girl)! You will never find this many pretty girls in Astronomy 101. How come my university does not have this many pretty girls :)
Yikes, a decepticon can transformed into a girl? This is so wrong! Look: the them is Robots in Disguise, in the form of cars, trucks, even radio, or planes, not girls.

Wednesday, July 15, 2009

We want straight answers, candidate for Supreme Court

News is all over the first hispanic candidate for the supreme court.

The constitution's Check and Balance system demands senate approval of the president's pick. So senators ask her questions, straight questions: such as what is your view on abortion? She side stepped and side stepped. (like playing the games like Tekken or Soul Edge). Come on!

Well Obama didn't ask? Well the rest of the nation ask.

No straight answer => a no to nomination, if I can vote

Monday, July 13, 2009

CNN's list of Best Place to Live

Let's see how Chicago compares with the Best Places to Live
http://money.cnn.com/magazines/moneymag/bplive/2009/snapshots/PL1714000.html

Yikes, our job growth is so low, yikes our reading and math scores are so low!
Yikes our crime is so high!

Wednesday, July 8, 2009

Urumqi Unrest

There are currently riots in Urumqi, the western minority city of China.
The name sure doesn't sound so Chinese isn't it? because it is not the Han ethnic group who mostly live there. These "Chinese" have Turkish origin.

This unrest seems pretty major, but is not a top story of CNN, which only contain things that Americans are interested in.

You may read about the details in Time, or read about it in some other news

Frequently there are separatists, unjust arrests, riots, revenges.... there are never ending conflicts. No way Beijing will allow any part of China to separate. Can we live peacefully together?

Goodbye Michael

I only watched some of Michael Jackson's memorial service on CNN during lunch at my workplace yesterday.
Oh, Michael Jackson has a 11-year old daughter? I wasn't even aware.
I am sure her speech touched the heart of millions.

No doubt, Michael Jackson is the king of pops. No one even come close to his achievement. His songs, videos, performances in the 80s are just too excellent. His music shred all boundaries across regions and across ethnic backgrounds.

But after the 80s, his face... look so different! Is it plastic surgery? Just what is going on...
All the cases against him for child sexual abuse... did Michael actually do it? Why would he do such things.
His Neverland... he built one because no one take him to the playground when he was a kid?

I learned one thing about Michael in one interview I watched... his dad abused him a lot... Tied him up and beat him with belt! Ouch. The horrible childhood he had... must have had horrible consequences on his life.
Even millions of dollars and worldwide fame cannot mend the pain of child abuse.

* * *
No one disputes that Michael Jackson has amazing talent. His 1982 Thriller is still the all time best seller. However, in today's digital world, does anyone actually buy albums anymore? Most people now just download. Perhaps one day there will be a singer near the ability of Michael Jackson, will that singer sell as many CD as him?

No one buy CD -> no profit -> no good production -> No one buy CD... This is a vicious cycle.

Tuesday, July 7, 2009

Jury Duty

I got called to Jury Duty again, last time I got called was at least 7 years ago. Last time it was a court close by, and nobody got called and I got released early.

This time I got called to Markham, IL court, way south of Chicago. 159th Street exit of highway 57! So when I got to the jury assembly room I picked a number... after waited about 2 hours my number got called! I watched some Oprah and read a few issues of Times during that 2 hours. Not many Chicagoans are interested in that Scientific American magazine there.
I went to the court room! Then in the court room the judge took attendance, gotta say "here". The last time attendance took place was when I was in high school. Then lunch break took place. There is no restaurant nearby, I grabbed a basic sandwich from a gas station. After the break, 14 individuals got picked to sit on the Jury row. I was the LAST ONE to be called! Then, individually, the judge asked the same set of questions: who do you live with, what do you do for a living. Can you be fair, etc. Quite inefficient if you ask me. Then another break took place. The judge then called out 7 names... I was called, also the last one to be called! Ah it turns out that the ones getting called are not selected. I got out of the court and awarded $17.20. I felt a sense of joy. :) The case was a DUI case, the people vs that driver...

Thursday, July 2, 2009

More virus attacks

I got virus attack again. McAfee only knows how to charge me, it is so ironic to see Windows Defender reported a problem in one window while McAfee says everything is fine.

Unfortunately even Windows Defender can't defend me this time, at least it identify it.

The wacky behavior I saw was: I lost file extensions in Explorer, and there is no Folder Options under the Tools menu!

When I use regedit, it tells me I am not allowed to use it!

I followed links from Windows Defender and end up in Windows Live OneCare that scanned my machine for hours and found many things and it can remove some of the malware things.

McAfee didn't. I am about to delete it.

I THINK I salvaged the machine, Live One Care still says can't fix several things.

The malware hacked my registry quite a bit.

I learned that there is a gpedit command that can be run on Windows->Run that launches the management console and you can tweak settings. Can you believe there is an option to turn OFF Tools->Options->Folder Options? There is never ever a reason to turn that off.