Posts

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...

ActionResults in ASP.NET MVC 5

In ASP.NET MVC 5  ActionResult  classes are used to return data from the controller classes to the views. There are 15 different sub classes that can be used in various situations depending on your scenario...

Scripting Database Table Create SQL using Powershell

PowerShell is quite high on my list of languages that I dip in and out of without really knowing nearly well enough. One of things that I have found myself doing quite regularly is trying to script SQL for creating tables. This is quite straight forward using Sql Server PowerShell