Windows does not remember git password

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

MySQL server has gone away

Another quick one for today. After a little while developing on and against Windows, I am back developing on the lovely macOS. I have a local install of MySQL and when I connected to it via my terminal using mysql -u root I would connect ok but as soon as I tried to do anything I would get the following error. ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... ERROR...

Continue Reading

Upgrade bootstrap and jquery in ASP.NET Core 3.1 with libman

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

Event Viewer Logs with .NET Core Workers as Windows Services

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

Apply Cut or Copy to blank lines when there is no selection

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