Programming
UK Postcode RegEx
ed to validate UK postcodes for a site I was building, after a bit of hunting around this seemed to be the best one that I could find, hopefully this will save me some Googling in future!
ed to validate UK postcodes for a site I was building, after a bit of hunting around this seemed to be the best one that I could find, hopefully this will save me some Googling in future!
Tag helpers are a new feature in MVC 6 and are similar to the old style HTML helper methods though they have a more HTML like syntax. There’s plenty of good guides about how to use them around so I’m not going to rehash that here, instead, what I’m mostly Read more…
After creating a solution on one machine I then tried to open it on another and got the following error. If you ignore this error and then try to build the project an error saying “MSB1009 Project file does not exist.” is recieved. The project was originally created in Visual Read more…
How to set the default application in Windows IoT on a Raspberry Pi I’ve recently finished a project which turns my Lifx lightbulbs on and off through calls to their API from a Raspberry Pi running Windows IoT. This deployed fine to the Raspberry Pi but it proved impossible to Read more…
How to create a NuGet package from a .NET Core class library I’ve built a few class libraries recently but in order to use them in other projects they need to be created as a NuGet package and uploaded. The easiest way to creat the NuGet package is to add Read more…
How to display a popup form from a button/link click in a webpage I was trying to figure out how to get a popup form to appear from a button click in a table, with the form making use of data from the row in which the button is clicked. Read more…
I wanted to use Chart.js charts in my ASP.NET Core projects and as there didn’t seem to be anything existing that fit the bill decided to do it myself. Chart Creation There seems to be a few projects around for generating the relevant javascript for Chart.js but all the ones Read more…
When setting up a website, even if it’s just a generic blog like this one, it’s good to encrypt traffic to and from it using SSL. Obtaining certificates If you’re hosting a site on it’s own custom domain name rather than using a free hosting provider then you’ll likely need Read more…
There’s a variety of different ways to access configuration settings from an appsettings.json file in a project, these are all well documented here so this post is mostly intended to serve as a reminder for the methods I most frequently use. Dependency injection (DI) is a technique for achieving loose Read more…
Whenever I create a new project in Visual Studio 2015 one of the first things I do is go and upgrade all of the included NuGet packages. When creating an ASP.NET Core Web Application one of the included NuGet packages is is “Microsoft.NETCore.App” version 1.0.1, upon upgrading this to version Read more…