Impossible is nothing.

0

Posted on : 24-02-2006 | By : matteosp | In : Uncategorized

U.S. Uses Tsunami to Military Advantage in Southeast Asia.

The tragic and devastating power of 2004’s post holiday tsunami was plastered across the cover of practically every newspaper around the world for the better part of a month. As the death toll rose by the thousands every day, countries struggled to keep pace with the rapidly increasing need for aid across the Indian Ocean Basin.
>At the same time that U.S. aid was widely publicized domestically, our coinciding military motives were virtually ignored by the press. While supplying our aid (which when compared proportionately to that of other, less wealthy countries, was an insulting pittance), we simultaneously bolstered military alliances with regional powers in, and began expanding our bases throughout, the Indian Ocean region…

Sources:
Jane’s Foreign Report (Jane’s Defence), February 15, 2005
Title: “U.S. Turns Tsunami into Military Strategy”
The Irish Times, February 8, 2005
Title: “U.S. Has Used Tsunami to Boost Aims in Stricken Area”
Author: Rahul Bedi
Inter Press Service, January, 18 2005
Title: “Bush Uses Tsunami Aid to Regain Foothold in Indonesia”
Author: Jim Lobe

System.Diagnostics.Trace is not safe.

0

Posted on : 22-02-2006 | By : matteosp | In : .Net Programming

I always thought that methods exposed by System.Diagnostics.Trace class did something like dispatching messages to the OS and/or to the trace listeners configured for the application. And by dispatching I mean a sort of asynchronous and safe (from exceptions in the listeners if any) delivering of messages.

I don’t know exactly why I had this idea in my mind, but in any case it was a wrong idea. The execution of method like Trace.WriteLine(”my message”) is synchronous, and may generate an exception if something goes wrong in one of the trace listeners currently registered.
I think that this can occurs easily because:
- trace listeners can be simply registered by editing the configuration file.
- you can pass to Trace class methods messages in form of objects, not only strings.
- if your are programming a component you may not have envision of the environment in which your code will run.

I have to start enclose calls to those methods in try – catch blocks. I would like to know: does someone (if there is someone that use this class) already do it?