Thursday, February 23, 2006

Amazing Muslims

The Muslim world never ceases to amaze me.  An obscure newspaper publishes cartoons that are considered offensive to Muslims, they portray Muslims as being violent, and months later Muslims around the world protest violently.  Terrorists in Iraq bomb mosques and the only protests are in Iraq.

I'm Christian and I'm offended more by the bombing of a mosque that I would be by a cartoon of Jesus with a bomb shaped turban. I believe Jesus would also be more offended by the bombing.  In fact, if all it took to stop the violence in The Middle East was a few cartoons poking fun at Jesus, Jesus would probably endorse them. I've never been crucified, but I've been made fun of.  I'm certain crucifixion is much much worse. 

I don't know enough about the teachings of Mohammad (please forgive my ignorance if I misspelled his name, my spell checker gave me three choices) to speak intelligently about him or his teachings. I do find it hard to believe that he would rather have his followers killed, in his name by another group of his followers, as they worshiped in a building dedicated to the religion he founded than see a cartoon poking fun at him than.

The radical Muslims really need to drop the "Let's kill everybody" philosophy if they expect the rest of the world to treat them as anything other than murdering terrorists. The biggest victims, aside from those harmed by the violence, are the normal Muslims who are as appalled by the violence as the rest of us.

Wednesday, February 22, 2006

Pressure

The pressure's too great

The pain is too real

Sometimes I wish I'd lose

My ability to feel

Tuesday, February 21, 2006

"more smarter writing"

If you’re tired of people bashing the American educational system, this story is for you. University “lecturer” tells student to present "more smarter writing". When questioned about why she gave the student a bad grade she had a colleague, Dr Ali, grade the paper. He questioned the use of the words “Yin” and “Yang” stating they should be listed as references in the bibliography. When he was later questioned about it “Dr.” Ali stated he has “no idea” what the terms mean and thought they were people’s names. To defend his ignorance he stated "We don't go into the deeper meaning,"

No Mums allowed

Apparently in the UK stores will ban you for looking “suspicious” or for having a bad hair day.

Wednesday, February 15, 2006

Slow DataReader

I’m working on an app that has to iterate through hundreds of thousands of records in a SQL database. Since VB.NET isn’t my strongest skill, and is required by the organization paying me to write it, I decided to look for suggestions on how exactly to do it. I initially thought I’d need to use a Do While Loop. I Googled for an example and found an article by Microsoft that seemed to have a good way to iterate through the records. It works great, as long as speed isn’t a priority. If you need speed, try a DO WHILE Loop. In my testing I found that it’s about 10x faster than the For Next loop. The sample code below may have some formatting issues due to text wrapping. Also I left out the declarations. Here’s the sample code I used to test the For Next loop: objSQLCmd = New SqlCommand("SELECT [Territory], [Company],” & _ “[Policyno], [Module], [Covatot], [CovctotS], [CovdtotS], [CovetotS],” & _ “[Yearbuilt], [Consttype], [Stories], [retrofit], [Covaded], [Term],” & _ “[TermS], [poltype1] FROM [DataBaseName]", objSQLConn) objSQLConn.Open() objSQLRdr = objSQLCmd.ExecuteReader While objSQLRdr.Read() Dim i As New Integer For i = 0 To objSQLRdr.FieldCount - 1 varTPErr = System.DateTime.Now.ToString("HH:mm:ss.ffff", Nothing) & _ "Testme" & " " varKeyCompany = objSQLRdr("Company") varKeyPolicyno = objSQLRdr("Policyno") varKeyModule = objSQLRdr("Module") 'begin Write objSQLCmdW = New SqlCommand("UPDATE “ & _ “[DataBaseName] SET [TerrErr] = @varTPErr” & _ “WHERE [Company] = @Company AND [Policyno] = @Policyno” & _ “AND [Module] = @Module", objSQLConnW) objSQLCmdW.Parameters.Add("@varTPErr", varTPErr) objSQLCmdW.Parameters.Add("@Company", varKeyCompany) objSQLCmdW.Parameters.Add("@Policyno", varKeyPolicyno) objSQLCmdW.Parameters.Add("@Module", varKeyModule) objSQLCmdW.Connection.Open() objSQLCmdW.ExecuteNonQuery() objSQLCmdW.Connection.Close() 'end Write Next End While objSQLRdr.Close() objSQLConn.Close() Here’s the sample code I used to test the Do While Loop: objSQLCmd = New SqlCommand("SELECT [Territory], [Company], [Policyno], [Module], [Covatot], [CovctotS], [CovdtotS], [CovetotS], [Yearbuilt], [Consttype], [Stories], [retrofit], [Covaded], [Term], [TermS], [poltype1] FROM [DataBaseName]", objSQLConn) objSQLConn.Open() objSQLRdr = objSQLCmd.ExecuteReader If objSQLRdr.HasRows Then Do While objSQLRdr.Read() varTrace = varTrace + 1 varTPErr = System.DateTime.Now.ToString("HH:mm:ss.ffff", Nothing) & " Testme" & " " & varTrace varKeyCompany = objSQLRdr("Company") varKeyPolicyno = objSQLRdr("Policyno") varKeyModule = objSQLRdr("Module") 'begin Write objSQLCmdW = New SqlCommand("UPDATE [DataBaseName] SET [TerrErr] = @varTPErr WHERE [Company] = @Company AND [Policyno] = @Policyno AND [Module] = @Module", objSQLConnW) objSQLCmdW.Parameters.Add("@varTPErr", varTPErr) objSQLCmdW.Parameters.Add("@Company", varKeyCompany) objSQLCmdW.Parameters.Add("@Policyno", varKeyPolicyno) objSQLCmdW.Parameters.Add("@Module", varKeyModule) objSQLCmdW.Connection.Open() objSQLCmdW.ExecuteNonQuery() objSQLCmdW.Connection.Close() 'end Write Loop Else Console.WriteLine("No rows returned.") End If objSQLRdr.Close() objSQLConn.Close()

Google vs Microsoft

I searched Microsoft Access's help file for "integer field size" (no quotes) and received a lot of useful information on how to change the field size and why you should use one data type or another, but nothing that gave me information about the specs for the integer field size. So I did what I normally do when I want useful information, I Googled it. As usual I found the information I needed.   That is why Google is beating Microsoft in the search engine market.  Google retrieves relevant data, Microsoft does not. No, I didn't try MSN. If Microsoft Office Online can't find information about Access field size specs, why would I expect anything better from MSN?

Tuesday, February 14, 2006

Ted Ligety Wins Gold

OK, I can see why the press might pay some attention to Bode Miller. I think it's lame when a story with the headline, "American Ligety, 21, wins combined gold medal" is primarily about how Bode Miller did. It's rude and disgraceful. I'm not trying to say anything bad about Bode Miller but Ted Ligety won the gold medal. Bode Miller was disqualified. Good job Ted.

Monday, February 13, 2006

American Air Power

It's fitting that a country known for its air superiority would win gold and silver in both the men's and women's halfpipe.