Finding your hello world May 20, 2020 I’ve never liked creating Hello World as a way to understand a new technology. Recently I have been employing a new technique of building a small application that I have a passion for. For me my passion is running, so instead of building Hello World I build a Running Pace Calculator. Below is a mock-up of the funcionality, it is quite simple it that you input your goal time (in hours, minutes and seconds) and the distance and it calculates how fast you would need to run in kilometer splits. ...
Blazor Web Assembly Tips and gotchas Apr 30, 2020 I have been experimenting with Blazor Web Assembly (WASM) which at the time of writing is in preview for ASP.NET Core 3.1. Here are some quick tips and things to watch out for. Debugging WASM doesn’t work (in firefox) The team recently shipped Blazor WASM debugging support. I followed the excellent debugging documentation but couldn’t get it to work. The solution was to pay more attention to the documentation: debugging does not work in Firefox (version 75), as per the documentation specifically the prerequisites ...
C# SQL Database pagination using Dapper ORM Nov 11, 2019 Database Pagination is something I have coded at every employer I have worked at. My approach has changed over the years, here is a look at how I would go about it now. The requirements for this incarnation: One database query should go across the wire, and we should both the Total Row Count as well as the Rows of the current page. Only the rows on a page should be returned from the database. ...
OAuth with Azure Active Directory to a Function App Jan 31, 2019 This article is about adding Azure Active Directory to a Function App. The same principles could be applied to an Azure Web App as this concept is for any Azure App Service. In addition to securing a Function App via OAuth, I have the requirement that the secured Function App be called from another Function App. This means the calling Function App will need to run as an application identity, instead of as a user’s identity. ...
Automated Deployment of Azure Functions - Azure DevOps Release Pipelines Jun 15, 2018 This is the second article around automating deployments of Azure Functions. The first article can be found here. This article focuses on deploying from Azure DevOps (formerly VSTS). It will address the second and third requirements discussed in the previous post, to recap: The Function App should be created and maintained by the release pipeline. The Function app must stay online whilst code is being deployed. Strangely this requirement took a considerable amount of research to resolve, maybe this was because Azure Functions were still in preview as I was researching. ...
Automated Deployment of Azure Functions - ARM Templates May 27, 2018 Whilst working with Azure Functions I found it difficult to find good documentation on best practices with Continuous Integration & Continuous Delivery. This two part article aims to summarise my learnings in the hope it helps someone in a similar position. My requirements were straight forward: Utilise an ‘Infrastructure as Code’ approach: all azure resources required are created via versionable definition files rather than using manually clicking through the Azure Portal. ...
Enum.IsDefined() Feb 06, 2018 Did you know that you can assign any integral type value to an enum even if it is not part of the enum values? Consider the following int based enum. public enum FunRunDistances { FiveKilometers = 5, TenKilometers = 10, HalfMarathon = 21, Marathon = 42 } Although 5, 10, 21 and 42 have been explicitly added as values of the FunRunDistances enum, the following code does not produce an error: ...
Hosting free blog using Netlify & Hugo Jan 05, 2018 This is the second article detailing my exploits to build a free blog. The first attempt, failures and learning can be found in Part 1. In case you din’t read the first article, I am trying to create a blog to solve the following problems: Host a blog cheaply as possible - ideally for free. Simplicity is king - particularly when it comes to authoring and publishing. Realised after first attempt: Solution needs to work cross platform - as I use both Windows and OSX. ...
Hosting free blog using Wyam Dec 29, 2017 I am trying to create a blog to solve the following problems: Host a blog cheaply as possible - ideally for free. Simplicity is king - particularly when it comes to authoring and publishing. This article explains my first approach, my failures and learning before moving to Netlify which is covered in Part 2 - Netlify. The approach Wyam Static content generator Being a .NET developer I tried out https://wyam. ...
But it worked in SSMS? Jun 03, 2017 Every year, towards the end of May, hundreds of thousands of people across the world start their virtual journey around the Global Challenge. This creates my team’s peak load on our website and has happened every year for well over a decade. Each year we spend significant resources to ensure we have a performant system when under peak load. In May 2017 we were somewhat surprised when we encountered some performance bottlenecks that we had previously not seen before. ...