Browse by Tags

Related Posts

  • Using WMI to monitor process creation, deletion and modification in .NET

    WMI is a powerful tool and I have just recently discovered some of its power. Previously I though the only way to detect process creation was by creating a windows hook but now I know it is fairly simple to due with .NET using the Windows.Management namespace. Below is simple ProcessWatcher class that...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 02-11-2006, 12:00 AM
    Filed under: Windows, .NET, Code
  • VS 2005 Debugging Tips

    Jim Gries has posted a number of excellent "Debugger Tips, Tricks and Tools". Two that I've found very useful and use quite a bit now in my day-to-day debugging are: Debugger Tips, Tricks and Tools #3 - Use tracepoints to log execution flow and even modify it. No more debug print statements and the trick...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 12-24-2005, 12:00 AM
    Filed under: .NET, Code
  • String Streams in .Net

    I while ago (almost 2 years) I posted a way to create a string stream in .Net. There has been a number of new comments added to that post recently so I figured I needed to update that example. Most API's that look for a Stream will also allow either a TextReader or TextWriter depending on the context...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 09-04-2006, 12:00 AM
    Filed under: Tips and Tricks, .NET, Code
  • nContract - Quick Start Guide

    The purpose of this quick start guide is to step through a simple but complete example of how to create a third party component with configurable run-time checks of a contract specification using nContract. To fully follow along with this example you will need to download nContract QuickStart . Create...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 09-05-2006, 12:00 AM
    Filed under: .NET, nContract, Tools, Code
  • CodeHTMLer plugin for Windows Live Writer

    I've started using Windows Live Writer as my primary blogging tool. So far I like it. However, it was missing an easy way to insert highlighted code into posts. I know there are a few other plugins that can insert highlighted code, but since I'm the author of a syntax highlighting tool named CodeHTMLer...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 10-30-2006, 12:00 AM
    Filed under: .NET, Tools, Code, CodeHTMLer
  • How do I access my Outlook contacts from my web application?

    Question How do I access my Outlook contacts from my web application? Short Answer You don't, well at least you shouldn't (It is theoretically possible to access Outlook data from a web application, assuming Outlook is installed and the profile you wish to access data from is setup on the web server...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 01-30-2007, 12:00 AM
    Filed under: Tips and Tricks, .NET, Code, Outlook
  • Retrieving your Outlook appointments for a given date range

    Before we dive into the code sample lets take a quick look at what it means for an appointment to fall into a given date range. When you compare an appointment with a given date range (or any two time intervals) there are the 6 possible outcomes displayed in the diagram above. Usually as a first attempt...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 03-21-2007, 12:00 AM
    Filed under: .NET, Code, Powershell, Outlook
  • Powershell script to find strings and highlight them in the output

    After reading about Brad 's find script I starting thinking about how cool it would be if I could highlight the search pattern in the output. So I wrote my own custom Find-String script to highlight the results. Find-String.ps1 # Find-String.ps1 # Wrapper around dir | select-string which will highlight...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 03-23-2007, 12:00 AM
    Filed under: .NET, Code, Powershell
  • Powershell script to find strings and highlight them in the output

    After reading about Brad 's find script I starting thinking about how cool it would be if I could highlight the search pattern in the output. So I wrote my own custom Find-String script to highlight the results. Find-String.ps1 # Find-String.ps1 # Wrapper around dir | select-string which will highlight...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 03-23-2007, 12:00 AM
    Filed under: .NET, Code, Powershell
  • Retrieving your Outlook appointments for a given date range

    Before we dive into the code sample lets take a quick look at what it means for an appointment to fall into a given date range. When you compare an appointment with a given date range (or any two time intervals) there are the 6 possible outcomes displayed in the diagram above. Usually as a first attempt...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 03-21-2007, 12:00 AM
    Filed under: .NET, Code, Powershell, Outlook
Page 1 of 7 (61 items) 1 2 3 4 5 Next > ... Last ยป