11 Feb 2020
Today I was writing a Windows batch script that would at some stage run git pull. When I ran the script it paused and displayed the message: Enter passphrase for key: 'c/Users/Administrator/.ssh/id_rsa' No matter how many times I entered the passphrase Windows would not remember it and the prompt would appear again. So, after some time on Google and some trial and error, I was able to fix the issue and so for anyone else...
Continue Reading
05 Feb 2020
In this post, I’ll address a common issue many developers face when working with MySQL on macOS: the “MySQL server has gone away” error. This error can be frustrating, but it’s usually straightforward to fix. Understanding the Error When connecting to MySQL via the terminal using mysql -u root, you might encounter the following error messages: ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... ERROR 2013 (HY000): Lost connection to...
Continue Reading
02 Feb 2020
Building server-rendered HTML websites is a nice experience these days with ASP.NET Core. The new Razor Pages paradigm is a wonderful addition and improvement over MVC in that it tends to keep all your feature logic grouped rather than having your logic split over many folders. The standard dotnet new template does a good job of giving you what you need to get started. It bundles in bootstrap and jquery for you which is great...
Continue Reading
31 Jan 2020
Back in the older classic windows only .NET Framework days, I would use a cool framework called TopShelf to help turn a console application during development into a running windows service in production. Today instead I was able to install and run a windows service by modifying a .NET Core Worker project by just using .NET Core natively. Also, I was able to add some logging to the Windows Event Viewer Application Log. First, I...
Continue Reading
31 Jan 2020
I mostly code in Visual Studio Code Insiders on either macOS or Linux but on the occasion that I develop on windows, I do like to use the old faithful Visual Studio. And today I fixed a slight annoyance that I have with Visual Studio 2019. If you cut or copy on a blank line accidentally which does happen you will lose your clipboard contents. To fix this in the search bar at the top...
Continue Reading