Monthly Archives: April 2009

We Really Are In The Best Of Hands

The mayor of New York and that city’s health com­mis­sioner have decided to pres­sure city restau­rants to lower the amount of salt in food they serve by half over the next decade even though the sci­ence behind the deci­sion is ambigu­ous and uncer­tain. On top of that, low­er­ing salt in your diet may lead to

Silverlight Gotcha Of The Day

If you have an Item­sCon­trol that is throw­ing an excep­tion telling you the col­lec­tion is read-only when you call Clear() on the Items prop­erty before reset­ting the data bind­ing, try set­ting the ItemsSource prop­erty to null instead.

A Reason To Love Silverlight

I finally found a rea­son that I can really get into Sil­verlight. This site should be enough rea­son for most devel­op­ers out there. May or may not be SFW, depend­ing on where you work and who’s behind you right now. I love the arti­cle on the Porsche 924 in the 1980 edi­tion most I think.

When Events Go Bad

Yes­ter­day, I dis­cov­ered the dark, evil, brood­ing side to using lamb­das to hook up events, even though they look so cool. Here’s an exam­ple: pub­lic void GetCustomerOrders(string stor­eId) { Proxy.DocumentDownloadCompleted += (data) => this.HandleCustomerOrders(data); Proxy.GetXML(“customerorderservice.svc/customerorders/” + stor­eId); } All well and good, that works like a champ. Usu­ally. As long as you don’t want to