Notes from the field

Blog

Practical solutions, lessons learned, and ideas from a life in software and technology.

How To: Find Duplicate Lines Using Notepad++

Overview You may have come across situations where you need to identify duplicate lines contained in a text file. I recently had to do this within a large CSV data extract file. While there are several ways to do this, I was specifically looking for a way to do this using Notepad++, which I already […]
Read article

How To: Handle Line Endings with Git

Overview Git is an incredibly powerful version control system with a myriad of features and capabilities, including the ability to work across various OS platforms, including Windows and Unix. I recently started working on a project along with several other developers using various operating system platforms. We came across an issue relating to the handling […]
Read article

Solved: Dotnet EF CLI ‘Could not execute’ Error

Problem The ‘dotnet ef’ CLI command enables developers to work with Entity Framework Core (EF Core) database operations from the standard dotnet command line. Recently I came across the below error whilst trying to run the ‘dotnet ef’ CLI commands: $ dotnet ef Could not execute because the specified command or file was not found. […]
Read article

Solved: Cognitive Services – Operation returned an invalid status code ‘Unauthorized’

Problem The Azure Cognitive Services SDK is a set of pre-built services that enable developers to easily and quickly integrate AI capabilities into their applications. It provides a wide range of cognitive services including computer vision, language understanding, speech, and search APIs. Recently whilst using the Azure Cognitive Services SDK recently, I encountered the below […]
Read article

Quick Tip: VS Code Restore Previous File Version

Overview Have you ever found yourself in a situation where you’ve modified a local code file and needed to revert back to a previously saved local version that was not committed to your Git repo? If you’re a user of Visual Studio Code you’re in luck because I’ll show you how to do just that […]
Read article

How To: Generate Swagger REST API Client

Overview As the web continues to grow and evolve, API’s are where all the magic happens that powers this innovation. REST API’s have become increasingly more favoured by developers for their ease of use over other alternatives (XML I’m looking at you). Unfortunately, REST API’s can sometimes become a bit unwieldy in terms of documenting […]
Read article

Solved: Angular – Invalid version: “15.2-15.3”

Problem Whilst working on a new Angular project I recently came across an unusual error when trying to build a new project generated through the Angular CLI. In this post, I’ll explain how I resolved this issue. > ng build √ Browser application bundle generation complete. An unhandled exception occurred: Transform failed with 1 error: […]
Read article

Power Automate: Remove End of Line Characters

Problem Parsing text can be somewhat tricky with Microsoft Power Automate or Azure Logic Apps. Recently I needed to strip out end-of-line characters (CR/LF) from a text string. This task actually proved to be a bit more challenging than I had expected… However in this post I’ll share the solution that I found and ultimately […]
Read article