code-o-rama
code that won't rust, bust, pick-up dust, burst, buckle or bend
Browse by Tags
All Tags
»
coding
(RSS)
.net
.net 2.0
.net 3.5
assembly
bugs
c#
c++
macro
microsoft
performance
probing
team system
vista
visual basic
visual studio
vs
windows
xp
Correct Comparisons for files and paths in .NET
01 February 08 12:36 PM
|
john
|
0 Comments
So exactly how should you compare file and path names in .NET programs? Ordinal case insensitive comparisons are the correct approach according to this MSDN article .
Read More...
Dynamic Code Generation in .NET
05 January 08 03:08 PM
|
john
|
0 Comments
I recently had the need/desire to dynamically generate some code in .NET. It's not something you tend to do a lot unless you are creating a compiler, so it was an interesting experience. In the end it didn't solve my problem, but it was educational none-the-less.
Read More...
More .NET Custom Configuration Madness
09 December 07 04:46 PM
|
john
|
0 Comments
I have to blog about this before I do anything else. I just found out that if you specify a configSection in your .exe.config file it must come as the first element in the configuration section! I had done this: <? xml version ="1.0" encoding ="utf-8"
Read More...
Outlook macros for processing e-mail
24 July 07 05:48 PM
|
john
|
0 Comments
I don't write many Outlook macros primarily because I don't have time to learn the CDO document model. But once upon a time I wrote a couple of macros that have become invaluable to me ever since. Some background. I process my e-mail roughly like this:
Read More...
Getting accurate per thread timing on Windows
17 July 07 05:04 PM
|
john
|
2 Comments
If you need to accurately time operations in Windows, you're usually directed to the QueryPerformanceCounter API. This API is also neatly wrapped in .NET under the Stopwatch class. Indeed, this is this is simplest way to get reasonably accurate timings
Read More...
Reading Custom Configuration Sections in .NET 2.0
22 March 07 09:35 AM
|
john
|
2 Comments
I just spent an annoying amount of time figuring out how to do this because sadly our documentation is so bad. So I'm going to blog it quickly so that I at least have a record of what I did and hopefully someone else will find it useful. Thanks go to
Read More...
Search
Go
This Blog
Home
Tags
.net
.net 2.0
.net 3.5
2003
assembly
bugs
c#
c++
coding
command line
console
coverage
debugging
dll
dvorak
editing
ethereal
fonts
fun
funny
hardware
help
ide
instrumentation
internet explorer
keyboard
macro
microsoft
msbuild
mstest
mvid
network
nunit
packet
performance
points
powershell
probing
profiling
refactor
registry
safe code
screen saver
security
side-by-side
strong name
sxs
tcptrace
team foundation
team system
test signing
tfs
tips
tracing
tweaks
unit test
validating reader
vb
vista
visual basic
visual studio
vs
windows
windows installer
winpcap
wix
xbox 360
xml
xp
Navigation
Home
Blogs
Photos
Archives
February 2008 (2)
January 2008 (2)
December 2007 (1)
October 2007 (6)
September 2007 (1)
July 2007 (7)
May 2007 (3)
April 2007 (2)
March 2007 (5)
February 2007 (3)
January 2007 (3)
December 2006 (2)
November 2006 (2)
May 2006 (1)
January 2006 (3)
December 2005 (2)
August 2005 (3)
Useful Links
C# Code Format
Director of Random Technologies
Syndication
RSS 2.0
Atom 1.0