๐ I’m Derrick, and this is my WordPress Blarg.
I’m an Enterprise Engineer for WordPress VIP. I’ve been with Automattic/VIP since 2015, and enjoy it every day!
On this site I mostly post absolute stupid garbage. You have been warned.
-
Limiting Featured Image Dimensions in WordPress
As a follow up to my last post about limiting file sizes during uploads, I had to come back to the problem with limiting image sizes for featured images. Not bytes this time, but pixel dimensions. Still being a bit of a block editor newb, this was an interesting challenge for me, and I was…
-
Half Baked Idea: Limiting WordPress Image Upload Sizes
If you want to be able to limit images (or any attachments) from being uploaded into the media library if they are too large, you can use the wp_handle_upload_prefilter filter to do this. Below is a really basic example I whipped up in a few minutes that I shared with a customer not too long…
-
Dall-E 2 Outpainting Experiment
OpenAI recently introduced a new feature called Outpainting to Dall-E 2 This lets you easily expand your image without manual labor intensive hacks. With this, I decided to do a quick run through to see what’s on the other side of Bliss Now, I probably could have gotten something a lot better if I’d taken…
-
Stable Diffusion on M1 Macs!
Run Stable Diffusion on your M1 Macโs GPU Oh yes, this is going to be awesome! (via Hacker News)
-
Bad Hack: Restart Linux Server when memory is low ๐ฌ
I’m running something on my Raspberry Pi server that’s got a memory leak. I think it’s related to my Software Defined Radio (more on that another day), but I’m too lazy to actually track it down and fix it, so I’ve implemented the below hack to just restart my server when memory gets too low.…
-
How to Use Backticks for Inline Code in Google Docs with a Chrome Extension
Revolutionize Your Google Docs Experience with Backtick: Seamless Markdown Formatting for Inline Code Blocks
-
Quick Tip: Bash CLI params
While working on a bash script, I stumbled upon what I think may be the cleanest and simplest way to add CLI params to a bash script so far: This lets you use short (-V), long (–version), space separated (–user john), and equal separated (–user=john) arguments. It’s not perfect, but for a quick bash script…
-
iOS Reminders to Habitica To Do’s via IFTTT
After digging around for a while trying to see how I could link up iOS’s Reminders with Habitica‘s To Do’s to help keep me organized, I finally found an easy way through IFTTT. This works easily because Habitica offers a wonderful API๐ฅ Specifically we’re looking at the “Create a new task belonging to the user”…
All code on this site, unless otherwise mentioned, is licensed GPL v2 or later ๐