Browse the archive

Tag: Web Development

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

How To: Deep Clone a JavaScript Object

Overview JavaScript is becoming ever increasingly more popular as time goes by. While JavaScript has many advantages, it also has many interesting quirks or nuances that can catch out new beginners. In this post I’ll show you how to deep clone a JavaScript object. Problem Okay … before we go any further … lets take […]
Read article

How To: Debug Angular apps with Google Chrome in VSCode

Overview VSCode is a fantastic IDE for editing <insert your favourite language here> source code. Likewise Angular is a great framework for developing front-end web apps. When developing applications, we developers usually spend most of our time in the debugger. However, out of the box there is a little bit of setup required to enable […]
Read article

Visual Studio: Generate Class From JSON String

Overview If you work JSON documents, I’m sure you’ve probably had to create a class file from a JSON string. Doing this manually can be a real pain in the proverbial, especially if you are working with a large JSON document. It can also be very error-prone. Therefore it’s best to automate this conversion. In […]
Read article

Visual Studio: Show Current File in Solution Explorer

Overview Have you ever worked on a large Visual Studio project that contained many projects and become somewhat disorientated, unable to find the currently open file within the Solution Explorer pane? I did just that recently … I started work on a large Visual Studio solution for a client which contained over 180 projects within […]
Read article

Solved: BlazorInputFile ‘No File Chosen’ Error

Problem Blazor is an exciting new technology for .NET developers that enables us to leverage our core strengths by writing most of the code in C# and minimising the need to write JavaScript code. While working on a Blazor WebAssembly solution that used Steve Sanderson’s BlazorInputFile solution I came across an unusual issue where the […]
Read article

How to: Implement Azure Web App Authentication – The Easy Way

Overview Let’s face it … security is HARD. Implementing authentication and authorization into applications has always been a challenge and a chore for developers. Building a secure application requires strong knowledge across a number of areas. Thanks to the power of Easy Auth on Microsoft Azure it’s easier than ever to setup secure authentication for […]
Read article

How To: Google Analytics In Chrome Extensions

Background Google has replaced its legacy analytics library https://ssl.google-analytics.com/ga.js with the new and improved Universal Analytics library https://www.google-analytics.com/analytics.js. I’ve been working on a Google Chrome Browser Extension but had some trouble integrating it with Google Analytics. Google’s own tutorial hadn’t yet been updated to use the new analytics library. In this post I’ll explain how […]
Read article