Programming

Decimal to Hexadecimal in SQL

Conversion of decimals to hexadecimals in SQL While trying to convert some integers to hex values in SQL I found a few options that worked on ints and bigints but nothing that worked on anything larger and as I was needing to convert some integers of datatype decimal(20) I created Read more…

By Shinigami, ago
Programming

appsettings.json in .NET Core Console App

Adding appsettings.json to a .NET Core console app This is something that strangely doesn’t seem to be that well documented and took me a while to figure out though in the end it’s pretty simple. All that’s required is to add the following NuGet packages and an appsettings.json file. Microsoft.Extensions.Configuration Read more…

By Shinigami, ago
Programming

Microsoft 70-473 Exam Resources

Microsoft 70-473 Exam I’m currently revising for the 70-473 exam on designing and implementing cloud data platform solutions, as there doesn’t yet seem to be any books available for it I’ve decided to collect some links to content here. There’s also a Microsoft video that provides a quick overview of Read more…

By Shinigami, ago
Programming

Nested Chart.js Doughnut

How to create a nested doughnut chart in Chart.js I recently wanted to create a nested doughnut (or donut?) chart to help me to visualize what I was spending per resource group as I was getting close to hitting the monthly limit of free money in my MSDN account. After Read more…

By Shinigami, ago
Programming

Invisible reCAPTCHA

Invisible reCAPTCHA I’ve previously used the Google one click reCAPTCHA in sites but as the new invisible version is out I figured I’d have a go at getting it to work. Previously I had the one click reCAPTCHA working as below where the result populated an invisible required field validated Read more…

By Shinigami, ago
Programming

X-FRAME-OPTIONS Response Header

X-FRAME-OPTIONS Response Header I hadn’t previously realised this but MVC adds an X-FRAME-OPTIONS: SAMEORIGIN header to site page responses as part of a security measure to prevent sites running in iframes. These can be removed in ASP.NET 5 applications by modifying the relevant option in Startup.cs public void ConfigureServices(IServiceCollection services) Read more…

By Shinigami, ago
Programming

ASP.NET 5 Middleware

The ability to create your own middleware comes in pretty handy when creating MVC 6 APIs as it allows the inspection and processing of the requests/responses flowing into and out of the application. A few of the most useful ones I’ve used are below, a good guide to using middleware Read more…

By Shinigami, ago