Friday, October 21, 2005

The other day I ran across DebugView by Sysinternals. After playing with it for a few I suddenly had a re-found love for System.Diagnostics.

“DebugView is an application that lets you monitor debug output on your local system, or any computer on the network that you can reach via TCP/IP. It is capable of displaying both kernel-mode and Win32 debug output, so you don’t need a debugger to catch the debug output your applications or device drivers generate, nor do you need to modify your applications or drivers to use non-standard debug output APIs.” from Sysinternals

This means you have a nice little exe you can carry on a thumb drive and collect those trace events at runtime on from any machine. Let’s look at some code.

First define a TraceSwitch. This switch gives you the ability to determine when to throw an event. You can define multiple switches.

public static TraceSwitch GeneralTraceSwitch = new TraceSwitch(”General”, “My Trace Switch”);

if ( GeneralTraceSwitch.TraceError )
  Trace.TraceError( “YOUR ERROR MSG” );

Now let’s setup configuration. There are two major sections, listeners and switches. Listeners define where System.Tracing should send your events. The example below sends events to both the EventLog and a text file. Having said that has no influence on DebugView, you do not have to define a listener for DebugView to pick them up. The switches section defines the level of events to throw. 1 is the minimal number of events, while 4 is everything.


<configuration >
 <system.diagnostics >

  <trace autoflush=”true” indentsize=”0″ >
    <listeners >
      <add name=”EventLogTraceListener” type=”System.Diagnostics.EventLogTraceListener” initializeData=”Team Build”/>
      <add name=”TextWriterTraceListener” type=”System.Diagnostics.TextWriterTraceListener” initializeData=”.\ci.log” />
    </listeners >
  </trace >

  <switches >
    <add name=”General” value=”4″ />
  </switches >
 
 

</system.diagnostics >
</configuration >

posted on Friday, October 21, 2005 9:15:26 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
 Thursday, October 20, 2005

Stumbled across a command line tool ( MSTest ) which executes your VSTS test list. You can call if from a Visual Studio command prompt or @ C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

Upon execution this will create the same output as if you executed your tests inside of Visual Studio.

posted on Thursday, October 20, 2005 9:11:48 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
 Wednesday, October 19, 2005

Creating MSN Desktop shortcuts is easy. The following is an example which creates a shortcut which will search a particular SharePoint site.

Copy this into the desktop search box…
@someweb,http://someweb/search.aspx?k=$w

Now you can search SomeWeb by typing:
someweb search_string

Thank you to Elizabeth Caley for sharing the tip.

posted on Wednesday, October 19, 2005 9:11:24 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
 Sunday, October 09, 2005

Looking for a simpler MSN Search interface http://search.msn.com/.

Still not convinced about MSN search, try this site the next time you are searching http://www.addysanto.com/dualsearch.htm

posted on Sunday, October 09, 2005 9:10:57 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
 Wednesday, October 05, 2005
Add this to your toolbox http://vstsplugins.sourceforge.net
posted on Wednesday, October 05, 2005 9:10:34 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
I recently had an itch to play with InfoPath. I created a simple XSD schema and then started to build a form on top of it. Shortly after I found myself fixing the schema but I couldn’t figure out how to refresh the schema. MSN search pointed me to the answer .
posted on Wednesday, October 05, 2005 9:10:09 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
 Sunday, September 11, 2005

On your phone enter **7284. This is a short cut that takes you to the Data Connection screen which offers three options:

  • As the modem through USB
  • As the modem through Bluetooth
  • Internal Data Call

    Select the first choice and your PC will now recognize it as a modem. ** NOTE ** Every time you change your battery this reset to its default ( Internal Data Call ).

    Next install the drivers and create a new dial up modem network connection. Get the latest Samsung CDMA drivers at the Samsung Drivers Page. Use the same dial up settings your phone is using.

  • posted on Sunday, September 11, 2005 9:09:40 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
     Friday, August 26, 2005

    First let me say this book is very well written. Throughout my career I have read a large number of books, publications and whitepapers and nothing has read as well as this. The content is very well organized and the material is illustrated in such a way where it can be read by all levels of technical staff. Anyone who has any SOA involvement be it development to management should read this book before doing anything. The use of case studies really relates the entire book to ones own organization where they can start to compare and contrast either how they have implemented SOA or might like to. As I was reviewing this book I in fact started to re-architect SOA systems I was building.

    More information can be found at ServiceOriented.ws

    Add it to your library from either Amazon or bookpool. ISBN 0131858580

    I would like to send a personal thank you to Thomas Erl for the opportunity to participate as a technical reviewer.

    posted on Friday, August 26, 2005 9:09:10 AM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback