Friday, April 28, 2006
Thursday, April 27, 2006
Random Google Image
Wednesday, April 26, 2006
Cop Lets Seven Year Old Play With Loaded Gun
Monday, April 24, 2006
Happy Sweeet Sixteen!
Friday, April 21, 2006
Speaking of Freedom of Speech...
Bill of Rights vs. Federal Law
Thursday, April 20, 2006
Who do you trust?, Part 2
Democrats and Republicans
Common Good
Friday, April 14, 2006
Have we learned anything?
I believe it was Ben Franklin who said "The definition of insanity is doing the same thing over and over and expecting different results." With the centennial anniversary of the 1906 earthquake in San Francisco approaching and New Orleans and the surrounding area still devastated I began to wonder what we have actually done to make sure we are more prepared than we were in 1906 and 2005.
Most Californians don't have earthquake insurance. I have personal reasons for not debating whether they should or should not. Even if I were to debate it, insurance is something you cannot always predict a need for. Typically you "need" insurance when an unexpected event occurs, or when you are obligated to purchase it by a contract or law. According to a recent Reuters article, "Were a temblor similar to the 1906 earthquake to strike the area there would be estimated insured property losses of $80 billion and total property losses would top $300 billion". That leaves $220 billion to be picked up by individuals, companies, government and charities. Can we handle a crisis of that scale?
The San Francisco bay area is not the only issue. Los Angeles is the number one port in the nation in total foreign trade value
(http://www.aapa-ports.org/pdf/2003_US_PORT_RANKINGS_BY_CARGO_VALUE.xls).
If that isn't enough, Long Beach is number three. A quake on the scale of the 1906 quake near those ports would be equally if not more devastating than the same scale of quake in the Bay Area. The traffic could be rerouted to Oakland, Tacoma, Seattle, Portland and San Diego. That would suffice if all of those ports could handle greater than three times the traffic they currently have, the next closest port in the top twenty is New Orleans. I doubt New Orleans can handle a massive increase in traffic at this time.
When the next big quake hits L.A. or the Bay Area, the media will blame the current political administration. That's the way it works. The blame really falls on us, the citizens. We can force the politicians to make it a priority, or we can choose not to. We can prepare individually for the inevitable, or we can choose not to.
Wednesday, April 12, 2006
Irresponsible Journalism
The Washington Post is reporting that is talked to six of the nine US and UK officials and experts involved in a classified mission. That is a cause for concern in and of itself. First those six should lose their security clearance. Second if you are talking to someone about something that you know is classified (the Washington Post reported that it is classified so I assume they know it is classified) is reporting it to the world the right thing to do? I don't think so. The Washington Post should have alerted the US government about the security leak. Then there is the question about validity. Do you place a lot of trust in someone's statements when they are giving you details on something that is classified? Giving a reporter details about something that is classified is dishonest. It's equal to or approaching treason. That should make you question the accuracy of the information. Knowing that the Washington Post is more concerned with publishing a story than national security should make you question the accuracy of the Washington Post.
Normally I link to the original story when it's not too much hassle. The Washington Post requires registration to read a story so here's a link to the BBC News story:
http://news.bbc.co.uk/2/hi/americas/4903592.stm
Tuesday, April 11, 2006
How trigger a JavaScript function from a server-side control in ASP.NET
I had a situation where I wanted an ASP.NET server-side control to launch a JavaScript function, as well as launching the VB.NET code in the code behind. I read a few articles on the web about it and the approach I used is based mainly on information from an article I found on Builder.com.
I prefer keeping JavaScript in a separate file so I can use it for multiple pages without rewriting it. If you need the code on one page, you will eventually need it on another. I used the following line of code in the <head> section of the aspx file to load the JavaScript:
<script language="JavaScript" type="text/javascript" src="script/somescript.js"></script>
This made any and all functions within the JavaScript file available to me.
The key to this method is to add an attribute to the control. You have to add the attribute after the code behind is compiled so I added it on the Page_Load event. The code looks something like this:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
btnSubmit.Attributes.Add("onClick", "return someFunction();")
End SubYou could pass a parameter to the JavaScript function this way:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
btnSubmit.Attributes.Add("onClick", "return someFunction(parameter);")
End Sub

