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

Remove page or site from Google search results

Background What do you do when you have a website that you do not want Google or other search engines to index and therefore NOT display in search results? Robots! 🤖 In the past, you have simply been able to add a robots.txt file. This is a file that website owners could use to inform web crawlers and robots such as the Googlebot about whether you wanted your site indexed or not and if so...

Continue Reading