Archive for November, 2008

Hugo Award Winners

November 21st, 2008

A few weeks ago I became interested in trying to find some good sci-fi books to read.  I had been reading Culture books by Iain M. Banks.  At some point I lost interest in that fictional universe, and started looking for something else.

The idea occurred to me that I should read recent Hugo Award winning novels.  Like any good netizen, I looked up the list of winners on Wikipedia and found that I had already read several recent winners:

In addition to these fine book, I had purchased American Gods by Sandman writer Neil Gaiman on vacation last year and had not managed to finish it.  So I selected it as my first book to continue with, and purchased Spin by Robert Charles Wilson, which should be arriving today.  If I should happen to get through even the most recent 10 or 20 winners, there are a lot of older books going back to 1953, and plenty of nominees as well.

Frank TV: Behind the Scenes

November 20th, 2008

Not Safe For Work (lots of cursing):

Fix My Computer

November 16th, 2008

Fix My Computer

XName.Get(): The Function I May Never Call Again

November 10th, 2008

I love the new System.Xml.Linq namespace. Building and consuming XML is so much easier with the new XDocument, XElement, and other XLinq classes. But one thing that has bugged me was the need to generate a tag name with XName.Get(“TagName”). For example:

XElement element = new XElement(XName.Get(“TagName”));

This statement seems to go against the spirit of the XLinq classes: simplicity. Why do I have to use the XName class just to name my tag? Well, as it turns out this is more than is needed. On a wild hunch I ripped open XName in Reflector today found an implicit operator to cast from string to XName. Damn! So all this time I could have been writing:

XElement element = new XElement(“TagName”);

And the XName implicit operator would have cast it to XName for me automatically.

Throwing multiple exceptions in .Net/C#

November 10th, 2008

I posted a question on Stackoverflow about throwing multiple exceptions.  Here is part of the question:

"In an application I work on, any business logic error causes an exception to be thrown, and the calling code handles the exception. This pattern is used throughout the application and works well. I have a situation where I will be attempting to execute a number of business tasks from inside the business layer. The requirement for this is that a failure of one task should not cause the process to terminate. Other tasks should still be able to execute. In other words, this is not an atomic operation. The problem I have is that at the end of the operation, I wish to notify the calling code that an exception or exceptions did occur by throwing an exception."

A New Science in America

November 7th, 2008

No matter what you politics are, it is hard not to admit that the Bush administration really went to war on the scientific establishment in this country.  From his interference in reasearch at NASA to his idiotic view on Stem Cell Research, Bush has tried to hamper or politicize science in the United States.

ABC News has a great article about the changes the science community are hoping for under Obama.  A number of famous and Nobel prize wining scientists endorsed Obama based on his voting record on science matters.