Migrate .NET Core 3.1 to .NET Core 5.0

Overview ☀ The very latest version of .NET Core was launched at .NET Conf. It is the free, cross-platform and open-source developer platform from Microsoft which includes the latest versions of ASP.NET and C# among others. I decided to wait until the upgrade was available in all the various package managers such as homebrew on macOS and apt-get on Ubuntu and chocolatey on Windows before I upgraded my projects. This ensured that my operating systems...

Continue Reading

Creating a .NET Core Global Tool

Overview ☀ I have now built my first .NET Core Global Tool! A .NET Core Global Tool is special NuGet package that contains a console application that is installed globally on your machine. It is installed in a default directory that is added to the PATH environment variable. This means you can invoke the tool from any directory on the machine without specifying its location. The Application 🌱 So, rather than the usual Hello World...

Continue Reading

Spotlight stops indexing Applications

All of a sudden spotlight on my macOS Mojave macmini stopped working… There is a process called mdutil which manages the metadata stores used by Spotlight and was the culprit for my issue. The fix after some Google Fu and some trial and error was to restart this process as follows: sudo mdutil -a -i off sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist sudo mdutil -a -i on Hopefully this won’t happen...

Continue Reading

Access denied for user root'@'localhost

Every time apt-get upgrade upgrades my local MySQL instance on my Ubuntu laptop I get the following error: (1698, "Access denied for user 'root'@'localhost'") The fix each time is the following, so here it is for me next time save me wasting time googling the error every time. sudo mysql -u root use mysql; update user set plugin='mysql_native_password' where User='root'; flush privileges; And with that all is well again! Success? 🎉

Continue Reading

Move an Ubuntu window to another workspace

Last night I decided to pull the trigger and upgrade from Ubuntu 19.10 (Eoan Ermine) to Ubuntu Focal Fossa 20.04 A fairly smooth upgrade all in all. I did have to re-enable the .NET Core APT repository using the following command: sudo apt-add-repository https://packages.microsoft.com/ubuntu/20.04/prod I also discovered a neat shortcut to move programs from one workspace to another: Ctrl+Alt+Shift+Arrow key I hope this will soon become muscle memory 💪 ! Success 🎉

Continue Reading