Navigate into a newly created directory

Today I came across a fantastic command line trick. Normally when I want to create a directory in the command line it takes multiple commands to start working in that directory. For example: mkdir tempy cd tempy Well, that can be shortened to a one-liner! mkdir tempy && cd $_ 🤯 This is why I love software development. It does not matter how long you have been doing it you are always learning something new!...

Continue Reading

Timers in .NET

A current C# project of mine required a timer where every couple of seconds a method would fire and a potentially fairly long-running process would run. With .NET we have a few built-in options for timers: System.Web.UI.Timer Available in the .NET Framework 4.8 which performs asynchronous or synchronous Web page postbacks at a defined interval and was used back in the older WebForms days. System.Windows.Forms.Timer This timer is optimized for use in Windows Forms applications...

Continue Reading

My uses page with my setup, gear, software and config

Another quick one today. I was recently listening to an episode of syntax.fm where wes bos was talking about a new site uses.tech. This is a site that lists /uses pages detailing developer setups, gear, software and configs. This inspired me to create my own /uses page. Success 🎉

Continue Reading

Links do not open in Google Chrome

A quick one today. Sometimes I will click on a link in an external application such as Mail.app (I am careful where these links come from of course!) and nothing will happen. Well, Google Chrome will launch if it was closed when I clicked the link however the URL I clicked will not open. Nothing, no new tab. nothing. The fix before was to re-install Google Chrome but today I found this quick solution. In...

Continue Reading

MySqlException (0x80004005): The Command Timeout expired before the operation completed

Tonight has all been about trying to get rid of some ASP.Net MVC yellow screens of death (YSOD) caused by MySQL timing out. Background My application is a fairly old ASP.Net MVC 5 web application that used to talk to a local instance of MySQL and now has been ported the cloud (AWS) with the MySQL database migrated to use Amazon’s Aurora Serverless MySQL database service. I have a few of these now. They suit...

Continue Reading