Home
RichardN
Cancel

Pong - Update 2

Following on from my last post I have made some minor tweaks to my pong game, and have addressed some of the issues that I picked up during the first phase of development, namely: Made use of t...

SQLite and Dapper in C#

In this article I am going to cover the basics of running SQLite and Dapper in a C# console application. There is a lot of code below which may be highly opinionated (so please bear that in mind wh...

Pong (or my first attempt at JS game development)

Ever since I was a little boy, I have always been fascinated with computer games and the way they work. How someone could wield a bunch of 0s and 1s into some of the games that shaped my childhood....

Singleton Pattern in TypeScript

Below is an awesome singleton pattern implementation I found deep in the bowels of StackOverflow using TypeScript (adapted from my favourite C# implementation). This works well if you are wanting ...

Adding Castle Windsor to your WebAPI project

This post is meant to serve as a simple guide to get you up and running with Castle Windsor in your next WebAPI project. First you will need to install Castle Windsor - open up the package manager...

Simplest way to access POST data after model binding (Web API)

I am currently in the process of writing a C# wrapper for Kik and needed a way to dump the raw POST body when their service made a callback to one of my WebAPI controllers (after model binding had ...

Find the nth occurrence of a string (JavaScript)

I was playing around in JavScript needing to find 7’th position of a ‘(’ within a long string. Messing about with the indexOf() and substring() methods were a bit too cumbersome so I came up with t...

Hosting Web API and Static Content with OWIN

Setting up the project To begin you will need to create a new console application in Visual Studio. Once your application has been created open the Package Manager console and install the follow...

Remote Access Home

Understanding DNS Most ISP’s make use of dynamic IP Addresses to prevent you from hosting websites off your home computer, and rotate these addresses fairly often (sometimes on a daily basis). It w...