Categories

Tags

All Articles

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, […]

Fixing Chrome/Chromium address bar slowness

I’ve been back on Chrome (by way of Chromium) since earlier this year and recently, I started to experience some extreme slowness when attempting to type in the address bar. This slowness was enough for me to file this post in the “productivity” category, as it was enough for me […]

VPS Showdown - October 2020 - DigitalOcean vs. Linode vs. Vultr

Switching things up a bit for Spooktober (doot doot) by running some benchmarks on the CPU-centric plans. Unfortunately, Lightsail and UpCloud are lacking this sort of offering, so they are omitted this month. It’s also worth noting that even though all of the plans are touting a dedicate CPU, it’s […]

How to set Redis max memory usage

Redis is one of my favorite data stores. The multitude of data types makes it flexible enough to serve as a simple caching layer (replacing Memcached) or as a full-blown RDBMS replacement if you’re willing to jump through a few hoops. Because Redis is an in-memory data store, it’s limited […]

How to remove UHC Motion from FitBit Inspire HR

I had high hopes for the UHC Motion program. Earning some cash just by doing what I was already doing, being active. The problem for me was in terms of how much data they wanted access to. Even though the program is based solely on your number of steps you […]

reflector.service exists in filesystem (owned by reflector-timer)

I’ve been a bad Arch Linux user recently. Even though I speak highly about being able to run the most cutting edge software, I’ve been slacking and didn’t run an update for a while. This was primarily because I didn’t really feel like having to figure out any problems that […]

VPS Showdown - September 2020 - DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr

Bringing things back around to the price point that I had started with many moons ago, the $20 plan. While the lower priced systems are sufficient enough for a lot of use cases, moving up to a meatier server instance can provide instant performance gains, give you better priority on […]

Looping through an array in shell script

Generally speaking, when I need to work with an array or dictionary type of variable, I tend to reach for something other than Bash / shell scripting. This primarily stems from the fact that Bash didn’t support arrays until version 4.x and when I first learned about them, macOS (then […]

How to comment source code

One of the biggest offenses that I’ve seen over my entire software engineering career is a total disregard for code comments. I don’t subscribe to the idea that code should be self documenting. I do believe that human are inherently forgetful and code left undocumented is code that will bite […]

Splitting a string into two variables

Even though the command-line is like my second home, I still fall short in terms of being able to some basic things. This is primarily because they just don’t come up that often so when I do figure out how to do it, I just don’t retain what I’ve learned. […]

How to get the default git branch

As the world has been shifting away from using terms like master and slave in technology, I was left wondering what the heck I was going to do about my git aliases that relied explicitly on the word master. git itself makes it really easy to swap the default branch […]

VPS Showdown - Germany - August 2020 - DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr

Starting to feel like I’m taking a virtual vacation as I test out different data centers each month. This month we step into Europe to explore Frankfurt. Next month may end up taking us to Australia, but head’s up, not every provider has a data center there. Usual setup this […]

Allow dots in paths with webpack-dev-server

Generally speaking, I don’t use dots (periods, full stops, whatever else they may be called) in the URI for a website. That was, until I made the . an allowable character for user names on one of my projects. Allowing the character was a big deal at all with Express.js […]

How to get the first and last item from an array in MongoDB

One of the great features of MongoDB is the ability to store an array in a document. While I’m fully aware that there are issues with storing unbounded arrays in MongoDB, due to document size limitations, there are times when you may want to store data in an array that […]

swapon: swapfile has holes

While I do absolutely adore Arch Linux, it wouldn’t be Arch without running an upgrade and having a problem crop up out of no where. This time around, the issue showed up after a reboot when I saw the following error scroll past before I was presented with the GNOME […]

VPS Showdown - Singapore - July 2020 - DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr

By request, we’re revisiting the Singapore data centers for this month’s VPS Showdown. Incidentally, while not part of the benchmarks currently, Linode did expand their S3-compatible Object Storage to the Singapore data center. They also turned 17 in mid-June with their usual slew of announcements, and upgrades for existing customers. […]

Load pubkey "/path/to/private.key": invalid format when using SSH

Been hitting the lottery with system upgrade related issues as of late. The latest come in the form of ssh barking about an invalid public key when connecting to a server. This wasn’t happening on all of my servers, just one in particular. Also, it wasn’t actually stopping me from […]

How to set the background color of a Google Chart

As luck would have it a Google Chart I had created some time last year, which was looking great for a while, recently decided that the background color of the chart itself was going to switch from the color I had set to the default color, white. This was quite […]

Fixing an Arch Linux system missing vmlinuz

I run into my fair share of “gotchas” as an Arch Linux user. I also stand firmly that I’ve always ran into my fair share of “gotchas” running Linux in general. In fact, I’ve even run into my fair share of “gotchas” on both macOS and Windows systems, so maybe […]