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.
Monday, July 27, 2009
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:
About the comment in the left: I BEG TO DIFFER.
Look, JSP looks like java, and it should be.
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.
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.
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
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
Subscribe to:
Posts (Atom)