Categories

Tags

Page 2 of All Articles

Repeating Strings in JavaScript

While cleaning up some of my old notes today, specifically stuff I jotted down that would make for a good blog topic, I happened upon the topic of repeating strings in JavaScript. Things are really easy in ES6+, but if you happen to still support Internet Explorer for some crazy […]

Uninstalling dev dependencies with npm

While looking into some deployment issues recently, I ran into some logic that was in dire need of being refactored. The logic in the build process was installing all dependencies with npm, then removing the node_modules directory, just to install the production dependencies again. Yes, you read that right, the […]

Automatically update Arch Linux mirrors

Arch Linux is still my favorite Linux distro for desktop use and once you get it set up (which may take you a few tries, if it’s your first foray) it tends to be pretty solid. That is, until you start seeing 404 error messages when you run pacman, yay, […]

Delete all files in an S3 bucket

Last year I had sunset a project that was using both AWS’ S3 and Linode’s S3-compatible object storage offering. After pulling down some final snapshots, I wanted to delete the buckets on both services. Similar to the error you receive when you attempt to rmdir a directory with files in […]

VPS Showdown - March 2021 - DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr

Hot on the heels of Linode offering up AMD EPYC processors, DigitalOcean has started to offer “premium” CPUs as part of their Shared CPU Basic plans. Unfortunately, this new offering comes with a slightly elevated price, clocking in at $6 per month instead of $5. This new product offering lines […]

Phoning it in

I pride myself on never phoning it in. I’m a passionate individual and I try to always bring that fire into whatever I’m doing. I’m a big believer in Extreme Ownership and giving 110%, cranking it 11, or whatever other euphemism you can throw in to describe the situation. That […]

Overengineering Challenge: Is Number Even or Odd in JavaScript

Code golfing is fun, and makes for great blog posts. The problem is, the world is flooded with posts attempting to show you how to write the best / most concise code imaginable. With that, I decided that it would be a fun challenge to attempt to take a simple […]

GNOME screen locking not working

I love Linux, but every so often something happens that makes me question whether or not my love affair since the mid-1990s is true love or just Stockholm syndrome. One such instance happened recently when, for no explicable reason, my laptop, running GNOME (on Arch Linux) decided to stop locking […]

VPS Showdown - February 2021 - DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr

It was just last month that I had added a bit more information about the CPUs that each provider was reporting. Wouldn’t you know it, this month the Linode instances tested were reporting AMD EPYC 7542 32 Core Processors, same as UpCloud has been offering. As one would expect, this […]

Search and replace filenames

Recently, while working with a bunch of files, I came to realize that I needed to rename every single file. Not just that, I only needed to rename a small bit of the filename. If I was working with a document, I wound have leveraged a “search and replace” feature, […]

Recursively create directories with Node.js

Recently, while working on a new project, I needed to create a series of nested directories. From the command-line, it’s easy enough, just pass -p to mkdir and it will create all of the parent directories automatically. With modern versions of Node.js, specifically 10 and above, you can achieve the […]

Broken icons on OpenWeather GNOME Extension

I don’t use many GNOME Extensions. Nothing against them, but less extensions means less crap to break when the latest GNOME release drops. For the most part, I opt for extensions that well maintained and not prone to breaking between major releases. Things were peachy for a while, but recently […]

VPS Showdown - January 2021 - DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr

New year, new VPS Showdown! While I don’t usually make big changes to these posts month to month, I do try to refresh them every year or so. This year’s improvements include commas (on the larger numbers) and charts! I’ve also made the decision to drop the High Frequency plan […]

Counting files in multiple directories

Last week I discussed counting files in the current directory. It was a quick and dirty way to get the number of files in a directory with some pretty strong assumptions about the type of files / directories that your current directory contained. Sure, it was a short sighted in […]

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

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