Contents tagged with Code
-
Windows Live Writer BlogThis macro for Outlook 2007
If you use Windows Live Writer as your blogging tool and Outlook 2007 as your RSS aggregator then you maybe interested in this VBA macro. It will pull the necessary information from the currently selected RSS Item in Outlook and call the Windows Live Writer BlogThis API to create a new post.
-
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 I figured I needed to write my own plugin.
-
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.
-
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. Therefore, in those cases when you have a string using StringReader or StringWriter is probably better then creating a MemoryStream like in my old example because you don't have to deal with the encoding.
-
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 has events that are triggered when a process is created, deleted or modified. Enjoy!
-
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:
-
Added support for Monad scripts to CodeHTMLer
For all those people posting Monad scripts to their blogs you might be interested in making your scripts look better by using CodeHTMLer. Just paste in your code script and select MSH as the language and it will output some stylized HTML that can easily be copied into your blog post. Of course you can use it to post code for most languages. Its what I use to colorize all my code samples.
-
Monad script to convert your doskey macros to Monad functions
Last week I talked about how I wanted to write a script to convert my doskey macros into Monad functions. I used this opportunity to learn about writing scripts in Monad. I must say I'm impressed so far, it has been pretty easy to pickup. The one thing that I kept getting burned by and that I don't care for much is the comparison operators. I don't like using -lt, -gt, etc, I'm too used to <, >. At anyrate here is the code (keep in mind that I'm new to Monad scripting so if I did something wrong go easy on me ;) with that said I'm open to suggestions).
-
Matching Balanced Constructs with .NET Regular Expressions
I'm reposting some of my favorite posts on my new blog.