Updated dot net groups
A quick note to say I updated the groups archives a bit. Hopefully the changes are welcome. A test link or two: one and two
Continue ReadingBlog test for <pre> vs <code> tag
I put a lot of code snippets into my blogs, so I’ve been using <pre> a lot, but I was wondering if I should use <code> instead (or in addition […]
Continue ReadingHtmlEncode data in your ASP.NET DataGrid
OK, I didn’t know this, but I found out that a DataGrid BoundColumn will not automatically HtmlEncode your data. So if the data contains HTML entities (e.g. “hello this is […]
Continue ReadingRecursively List Virtual Directories in IIS with C# and DirectoryServices
You’ve probably seen a lot of VBScript scripts that manage IIS via ADSI objects, but let’s say you want to write something in .NET. Maybe C#? Maybe compiled code, with […]
Continue ReadingReducing the .net WinForms memory footprint
WinForms applications sometimes take up a lot of memory for JIT, memory that isn’t needed once your application gets going. You can reduce the amount of memory being used by […]
Continue ReadingSearch and Replace with Perl
A quick update to my older blog about using Perl to do a very very fast find & replace on files. for /R c:path %i in (*.htm *.gif) do @c:perlperl.exe […]
Continue ReadingProgramatically configure Windows Processor Scheduling for Applications or Background Services
Sometimes you might want to programmatically switch processor priority for applications vs services. You can do it via the Control Panel applet (System->Advanced->Performance Tab->Settings->Advanced Tab->Processor Scheduling). Or, do it in […]
Continue Reading