What’s Trace Got To Do With Culture?

Saturday, March 29, 2008

I really don't know the answer to that question, but we've hit the strangest issue. The following code runs well when <trace enabled="true"> is set on web.config, but throws FormatException when it's set to false. DateTime.Parse(DateTime.Now.ToString()); We're thinking that somehow trace affects the system's culture, causing the code work. But it still doesn't make any sense to us. Looking in debug, it seems that DateTime.Now.ToString returns "DD" instead of the day, altought the current culture is "en-US". Can you make anything of it? Oh, and I should mention, this happens only on Windows 2000 Professional. When...
no comments

No Excuse

Friday, February 9, 2007

Recently, I've encountered the following code, in a commercial API for a software that costs dozens of thousands of dollars. Now you don't need to know what this method is supposed to do, all you need to know is that Geometry is an abstract base class for all types of, well, geometries, and Point inherits from Geometry. public DataTable Identify(Geometry geom) { //... Do some stuff ... if (!(geom is Point)) ...
tags: ,
one comment

Wiz Kid

Saturday, February 3, 2007

Check this out. This 14 year old kid called Shachar has lectured about Windows Vista in front of a crowd of grown-up professionals at the Microsoft Developer Academy a few days ago (which I attended and really enjoyed). Man, when I was 14 I barely knew what an operating system does. And they say today's youth spend all their time watching TV and IM-chatting...
tags:
no comments