Author: Josh Sherman
-
Counting files in the current directory
As the year comes to a close, I like to look back and see how many blog posts I have written for the year. My blog is powered by Jekyll and I like to keep my posts organized by year, in directories. With all of my posts in one place,…
-
Displaying an entire object with Node.js
For the most part, I do the majority of my debugging with Node.js / JavaScript’s console.log(). It’s quick and dirty but it gets me what I’m looking for. The exception being when I am working with larger objects, specifically any object that is nested three or more levels deep. Here’s…
-
VPS Showdown – December 2020 – DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr
With this month’s post being the final one of the year, I thought it was best to get back to a comparison that included all of the providers that I cover. The last few months have not included Lightsail or UpCloud since they didn’t offer the types of plans I…
-
How to kill a hung SSH session
It can happen for a number of reasons. You’re connected to a server via SSH and things just stop responding. It’s hung, stuck, frozen, locked up, unresponsive or many just not be paying attention to the keys you’re so desperately pounding on your keyboard. It’s happens regularly, but not regularly…
-
Juggling assertion syntax between PHPUnit versions
I’m no stranger to the nuances of testing against different version of PHP and PHPUnit, but my previous issues were related to the environment itself. Recently I ran into an issue with different syntax between versions of PHPUnit, specifically assertRegExp() being deprecated, which was throwing an error. Not only was…
-
Julian read 58 pages of a book in 2 days
This isn’t some sort of parental humble brag about how my kid is a better reader than yours. This is a post about one of the weirder search phrases that has been leading people to my site. The search phrase in question is: Julian read 58 pages of a book…
-
Problem importing keys for Spotify on Arch Linux
Spotify’s been giving some grief as of late when trying to upgrade it on my Arch Linux System. Actually, who am I kidding, I’ve actually been having a handful of issues with GNOME since the last major upgrade. More on that once I figure out how to fix some of…
-
VPS Showdown – November 2020 – DigitalOcean vs. Linode vs. Vultr
It’s that time of the year again, new version of Ubuntu has been released! Sadly (and expectedly) both UpCloud and Amazon are slow to add the latest and greatest (albeit, not LTS) version of Ubuntu to their Linux distro offering. With that, this month I’ll be omitting both providers as…
-
How to install Node.js v15.x on Ubuntu
New Ubuntu and Node.js versions released recently. While neither is a long-term service (LTS) release, they still represent the best that both parties have to offer. Even though Ubuntu 20.10 is here, it’s still shipping with an older version of Node.js, v12.x to be exact. If you’re like me, you…
-
Passing a test without assertions with PHPUnit
While it may seem counter intuitive to have a test that doesn’t have any assertions, PHPUnit’s unique method of sharing data between tests can put you in a situation where you have a test that just doesn’t need to actually test anything, and simply returns some data. In those scenarios,…