tl;dr – When adding more drives you can mix-and-match, but when replacing existing you must use a drive at least as big as the largest drive in the array. In the past whenever I added drives to my Synology the pool and volume automatically grew, however with my most recent…
Black right-pointing arrow renders as an Emoji on iOS
I was recently using a simple Unicode arrow (▶) for a play button on a video which looked great, everywhere, except on iOS it was being rendered as an Emoji: Although not terrible, it didn’t work with our design. The fix is luckily easy, you just need to explicitly specify…
Recursion
I’m not going to go into great detail on this, so hopefully the code speaks for itself. But here’s a high level overview. Imagine you have three types, Product, Product Variation, and Product Variation Value. One instance of a Product could be “Pink Floyd Dark Side of the Moon T-Shirt”…
Windows Terminal GitBash Colors
I was recently reminded that Windows Terminal existed and was even happier when after installing it, it automatically noticed my existing GitBash install and configured a profile for it and pretty much everything worked! Yay! Except colors for Symfony’s CLI tool. Boo. The first option is to just constantly add…
ACF Flexible Content image previews, 2.0
We’ve been using this gist for years now for creating image previews for ACF Flexible Content components. Very recently it just stopped working, however. Our best guess is that it is a race condition of some sort, most likely caused by the DOM being generated in JS later. The fix…
UniFi – Fixing VPN problems for Windows 10
We have a UniFi USG at the office and we keep running into problems with Windows 10 clients that after a while keep getting denied a VPN connection with the error: Can’t connect to <VPN Name>The network connection between your computer and the VPN server could not be established because…
Programmatically setting ACF license key
EDIT – 2022-04-12 This code doesn’t actually work. I think it did while I was testing because of some glitches elsewhere. Instead, you can now just set the constant ACF_PRO_LICENSE. You can use the following code to inject the Advanced Custom Fields Pro license key automatically:
Flock is awesome
You can either create a service, or just run a command with a timeout and use flock to make sure it runs only once.
Chrome and PDFs requiring web authentication showing only the first page, then dots
Recently a user told us that only the first page of their PDF was showing, and all subsequent pages were just showing as tiny dots: After a little debugging we found an issue with Chrome that was related to this. To reproduce the bug the following must be true: The…
How to fix “Error: Another update is currently in progress.”
First, if you aren’t technical AND you don’t have CLI access to your server AND you don’t have WordPress’s CLI tool installed, maybe read this article instead (but don’t install the plugin, just use phpMyAdmin). If you’ve got all of the above, just run: