Category Archives: programming

using a web client in powershell

PowerShell truly is powerful. A few lines of script is all you need to perform an HTTP request in a PowerShell script. If the native commands don’t cut it, it’s pretty easy to reach out and harness the power of the .NET framework instead like in the sample below. As a .NET developer this allows [...]

how to use code analysis in visual studio and not go crazy

Code Analysis in Visual Studio is great to have your .NET code checked automatically against the .NET framework design guidelines, coding standards and good practices. By activating CA, you’ll pick up some of these practices along the way and as a result you’ll be writing better code, aided by this automated tool. The downside is [...]

feed your brain with some interesting podcasts

Podcasts are a great way to pass the time while doing semi-automated and/or boring tasks like gardening, driving your car to work and back, or chores related to keeping your house nice and tidy. As long as the tasks don’t take up too much of your active grey-cell CPU you can devote those free cycles [...]

square brackets not working in visual studio 2010 and how to fix that

Have that thing where your square brackets (aka the [] thingies) don’t work any more when you want to access an indexer in Visual Studio 2010? It’s your shortcut keys that are messing with your keyboard I tell ya! So to fix this very annoying little side effect, you go to Tools > Options > [...]

WAS crashes IIS 7 while searching for unexisting services for msmq endpoints

And now: a no thrills .NET WCF technology post in the hope of saving some developer’s time while trying to figure out wtf is going wrong. The problem looks like this: Your w3wp process crashes, or your IIS application pool gets stopped for no clear reason. Restarting it only causes it to stop again after [...]

how to safely run destructive sql statements

This tip is one of those “Why didn’t I think of that before” things when I saw it being used first. You see, sometimes you’re on this production database and you need to run some SQL statements in Microsoft SQL Management Studio. Statements that if you mess them up will end up ruining your customer’s [...]

WCF service throws an msmqBinding error on a http binding

So you have this WCF service with a typical HTTP binding on it. When you try to use it with a client, or when you simply open up the .svc file link in your browser, it throws an error message telling you your MSMQ binding is incorrect. MSMQ! Contract requires TwoWay (either request-reply or duplex), [...]