Programming
You can subscribe to the Programming category micro-feed.
Once upon a time we used to write scriptlets, or bookmarklets, that would run a little script on a page. That’s all old-school now and the new way to do many different kinds of thing is to write a browser extension. I’ve never done this before, so I spent five dollars to create a developer […]
This post is a summary of the De-mystifying Linq session I ran on 24th January. The examples below were just on-the-spot examples created during the talk… The System.Linq namespace can seem a bit like magic, but it can be useful to demystify it by showing that it is actually just some C# code that we […]
This is a pretty specific example about finding and running a task in Task Scheduler based on the task’s action argument (the argument passed to the action executed when the task runs). However, the same script could be adjusted to filter the task based on other properties. This task is written as an Octopus Deploy […]
I was working on an issue where I needed to get data from about twenty instances of a database. The schema was very similar across all the databases, but each database was on a virtual machine on the network and had it’s own data. This is a legacy application that at some point in the […]
There is an experimental specification on the W3C for a navigator.connection Network Information API that provides a rough indication of connection speeds, which you can use to adjust your content. Like many of the modern API proposals, there is concern over it’s use in browser fingerprinting – but hopefully a course-grained version of this will […]
This thought is the product of many years of experience of different code-free solutions to problems usually solved with programming. I thought it might end up being an anti-codeless rant when the thought first occurred to me, but it is actually a argument in favour of design. Hence the change of title to “codeless does […]
It is pretty common to clean up a project or solution to move the class files into a better organised folder structure. When you do this, the namespaces often end up reflecting their old location, not the better new location you moved them to. The task of manually updating the namespace and then fixing all […]
There is a really neat new feature in Visual Studio 2022, which is off by default. So, I thought I’d tell you about it to encourage you to switch it on. The feature will highlight variables that get reassigned by underlining them in the editor. When you enable this feature, variables that are assigned once […]
I needed to get a history of completed pull requests from Azure DevOps and the simplest way to do this was to call the Azure DevOps REST API from a PowerShell script. The examples below assume you have already created a Personal Access Token, which you can get from the User Settings menu in Azure […]
This post started as a scratch pad as I was looking at helping a colleague implement WEBP images with a JPG fallback for older browsers. They had an issue in modern browsers because the fallback image was being loaded in all cases. Here’s a code example and demo: <picture> <source height=”500″ width=”500″ src=”webp.webp” type=”image/webp”> <source […]