Generating clients for your APIs with AutoRest

When building Web APIs it's often required to provide client adapters between various programming stacks and raw HTTP REST APIs. These 'clients' can be built manually but it's often a rather tedious task and it adds to your development efforts as you need to keep the clients in sync with your services as you evolve them. There had to be »

Disable SSL certificate validation during development

Every so often when I need to run some code that communicates with remote components over HTTPS in my development environment with a test or self-signed cert I run into an error saying that the certificate validation failed. I remember there is a way to override the check in .NET by subsribing to an event but it always takes me »

JVM 6 and Minsk time zone

I lost some time today… No, I’ve lost shit load of time today figuring out why my fresh installation of TeamCity doesn’t respect the time zone setting on my server. The server is configured for my local time zone (Minsk) as any other machine in our network but TeamCity kept insisting that the server time zone was America/ »

Cryptographic failure while signing assembly… Access is denied.

I have just completely reinstalled my laptop and was going to work on a project when suddenly I found out it woudn't build. For every assembly I was getting the following error: Cryptographic failure while signing assembly 'path\to\your.dll' -- 'Error signing assembly -- Access is denied. It didn’t’ take long to discover the problem is well-known »

‘ProjectTypeGuids’ node in VS project files

I wanted to create a WPF resource dictionary and put it in a separate assembly for a certain purpose. I started up by creating  a regular class library and was about to add a new item to it when I was puzzled – I couldn’t find a proper template anywhere in the UI the Visual Studio provided to me. It »

SQL Server ‘Auto Close’ and ‘Auto Shrink’ properties

One day I got really annoyed by my laptop performing sluggishly. It was strange and annoying and wasn’t fun and I had no idea what was causing it. I have a lot of stuff installed for my development needs but no shitware and other pop-up-tray-assistance-wizards. And I have SQL Server Express that I use as a repository for Vault »

Reading ad-hoc JSON string in .NET

If you’re a web developer you’re probably familiar with System.Web.Script.Serialization.JavaScriptSerializer that's heavily used by ASP.NET AJAX framework and of course you can use it to convert managed objects to JSON so it can be consumed by JavaScript. Also, since .NET 3.5 there is System.Runtime.Serialization.Json namespace that includes DataContractJsonSerializer that »

Ouch! CallbackOnCollectedDelegate was detected.

I was in the middle of refactoring of the core component of my Power Video Player when I hit this error during a test run. It said the following: A callback was made on a garbage collected delegate of type 'napi!Dzimchuk.Native.WindowsManagement+WndProc::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged »