Posts

Showing posts from December, 2007

When debugging, watch your watches

I should know better. We had a section of code where a new 'document' was created in our web app. A document in this app consists of data in various tables. So, what happens is, we start adding rows to the tables in the dataset, but before we add any rows, we turn off EnforceConstraints for the dataset. Later, right before we Save the dataset, we run a method, IsValid, which turns EnforceConstraints back on, and checks the dataset's HasErrors. So, our flow works like this: CreateButton.Click   EnforceConstraints = False   ... add a bunch of rows, which may at times have Nulls where their shouldn't be.   ... Nulls get filled in.   IsValid     EnforceConstraints = True     ... If HasErrors, throw exception.   Save End Method Now, what would happen if you put IsValid in the Watch window? That's right, EnforceConstraints would be set to True very frequently. I'll go bandage the hole in my foot now.

A new idea in music.

At least it is to me. http://www.yourmusic.com/ It sounds like, you pay $6.99/month, and then order the CDs you want. Has anybody tried this or investigated?

In regards to my last post

Some may dislike my comments on a custom that many people cherish. Everybody has beliefs. Some people base their beliefs on how they were raised. Some base them on what they hear at a church. The interesting thing is, many people do not question their beliefs honestly and openly very often. I feel that I have based my beliefs on facts. Facts that I have seen with my own two eyes. There is nothing wrong with being presented with facts and coming to believe as the presenter, as long as your are testing their facts for truthfulness. My parents will confirm, I test. I have come to believe, through non-biblical sources as well as the 'Good Book' itself, that the bible is the inspired word of god. ( 2 Tim. 3:16 ) (also see New American Standard Bible ) Why You Can Trust the Bible I have come to see that if you do not believe the entire bible, or add to it, you might as well not believe any of the bible. ( Galatians 1:6-9 ) (see also New International Version ) ( 1 John 4:3 ) (see als...

My thoughts exactly

I had to post this. See more at http://www.dilbert.com/ >>> Dear Dogbert, How do holiday traditions get started? I mean, who goes first? Brian Dear Brine, Traditions are started by attractive people who are not too bright. Ugly people can’t start trends, with the obvious exception of scrapping, because no one wants to do what ugly people do. And smart people are unlikely to come up with ideas such as killing a perfectly good tree, covering it with crap, and keeping it in the living room for a month. Sincerely, Dogbert

Cancer and Nuclear Power Plants

I thought I learned about this in elementary school. Child cancer risk higher near nuclear plants: study

Up to date

To keep everybody up to date: Circuit Assembly was great. Steph is ok. She was only in the emergency room for 2 - 2 1/2 hours. They gave her an IV because she was dehydrated, and some medicine to settle her stomach. The doctor said it was a stomach virus and would run it's course. She's feeling better but week. It's important to keep things up to date. But that can be hard when you have tons of links scattered throughout your blog. Like this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/persistappsettnet.asp from a post on January 10, 2005. The page doesn't exist. However, the page did once exist, and the Wayback machine helped me find it with this link: http://web.archive.org/web/20050909193245/http://msdn.microsoft.com/library/en-us/dndotnet/html/persistappsettnet.asp I'm taking some of the content, and I'm going to put it on my site, since it was so helpful to me.