HTML Challenge: Toggle Switch vs Checkbox

The toggle switch has very suddenly become a ubiquitous feature of web user interfaces. You can’t hardly fill in an HTML form these days without finding one; especially as 99% of forms we now fill in are concerned with “cookie consent”. Why isn’t the toggle switch a first-class citizen of HTML, you may ask… toContinue reading “HTML Challenge: Toggle Switch vs Checkbox”

Set a Minimum Font Size

This is just a little script I needed to use to increase text size conditionally. It only increases text below a minimum size and leaves everything else. (function () { var minFontSize = function () { $(“.content-zone *”).each(function () { var $this = $(this); if (parseInt($this.css(“fontSize”), 10) < 16) { $this.css({ “font-size”: “16px” }); }Continue reading “Set a Minimum Font Size”

Make HAProxy Strip Spaces From a Request Header

There is some shared code out in the wild that browser extensions are using to make requests, which might cause problems if you parse the Referer header in your website. The issue is with the following request header, which you might see in your logs as Referer: Referer: http:// That space between theContinue reading “Make HAProxy Strip Spaces From a Request Header”

The Microservices vs Conway Test

Following on from my article on Mescoservices back in 2015, this article expands on an idea I had in September on how monoliths, mescoservices, and microservices fit into organisation design. The microservices vs Conway test encodes a common piece of advice into a first-draft formula for testing your architecture against your organisation. Microservice Advice MicroservicesContinue reading “The Microservices vs Conway Test”

Why Devs (Should) Understand Estimates

Yes, this is a sub-post! A reaction to a post titled “Why Devs (Should) Like Estimates”. I try not to get involved in industry conversations about estimation (or, indeed, #NoEstimates) as it can get very dicey at a general level in ways that simply don’t occur for a specific team or organisation. I’ll briefly qualifyContinue reading “Why Devs (Should) Understand Estimates”

Simple Modern Paging in SQL Server – Like Skip and Take

If you have been developing SQL Server databases for a while, you may remember performing neat tricks to implement paging. If you haven’t found it yet, there is a simple modern way to do paging in SQL Server that doesn’t require any tricks. For those who have used Linq in C#, you will have comeContinue reading “Simple Modern Paging in SQL Server – Like Skip and Take”

Using .NET Core Identity Without the Standard Pages

This is a quick article about using .NET Core Identity without the standard pages. It was almost titled “why does .NET Core Identity ignore my LoginPath that I set in options?”. Let’s start with a common chunk of code that you’ll find in your Startup.cs file if you’ve added identity to your project… services.AddIdentity<ApplicationUser, ApplicationRole>()Continue reading “Using .NET Core Identity Without the Standard Pages”

Debugging Adobe Analytics

Adobe Analytics can sometimes be a bit of an enigma, so people often turn to browser extensions to help them with debugging Adobe Analytics. However, for those of us who spend most of our lives in browser tools; there’s a simple way to get x-ray vision into what Analytics is thinking. Let’s get straight downContinue reading “Debugging Adobe Analytics”