Posts

Setting up Rhino Mock Stubs

A quick template below for the basic setup of Rhino Mocks Stubs...

Shrinking log files on SQL Server 2008 R2

You know your having a bad day when you have to logon to a server to start running SHRINKFILE commands to free up disk space. Recently our Team City builds will start failing because an application API is down and when we track that through, we find that a Sql Server has run out of disk space. Doh!

Auto suggest with Twitter typeahead

Image
Twitter's typeahead JQuery plugin provides excellent auto suggest functionality that you can use on text boxes. It transforms a rudimentary lookup facility into a very useful search tool. There's a great example on the project homepage ...

Enabling Nuget Automatic Restore

Image
There are three ways that Nuget updates packages: Automatically MSBuild-Integrate Using the command line

Calling Web APIs with Powershell

You go along way by calling apis at the command line. Powershell provides the following methods that you will find useful...

Using HttpClient to access API resources

Oftentimes we will have the need to call into an API to load resources. HttpClient class provides in the System.Net namespace provides all the required functionality to interact with an API in the usual ways.

Protecting against Cross Site request Forgery (CSRF)

Image
Cross Site Request Forgery, or CSRF as its often known, is a common security vulnerability which describes an attacker attempting to cause state changes on a server by tricking a victim into sending an undesired request from an authenticated session without them knowing. Well thats all great, but what does it actually mean...