Another short, solution-minded blog post today! In some cases I run the default WordPress Docker container. But, debugging is always well, a bit more complicated. We can enable WP_DEBUG_LOG by setting an environment variable: WORDPRESS_DEBUG_LOG But how do you read, or even better, tail the debug.log file? Run docker logs -f docker_container_name_or_id > /dev/null The […]
Accessing the Docker Engine API remotely
I was digging into possibilities to manage docker containers remotely and it turns out, it’s not as difficult as you’d imagine. We just need to make a few small changes to access the Docker Engine API. How to access the Docker Engine API remotely? When you’re running Ubuntu (16.04+) you have to make a small […]
Figma: Convert a group to a frame
One of those things I always wanted, but that seemed impossible. I’d search Google for the solution for minutes! I figured it out, and thought I’d share the solution with you. How do you convert a group to a frame in Figma? Select the group, then go to your right sidebar, in the design panel, […]
Halcyon Part 3: Postpone unpacking, let’s start in the clouds.
This post is written on-the-go and shows the actual experience. The repository has been updated afterwards. You can still follow along, just keen an extra eye open for unnecessary changes and errors. ๐ We had a look at the docker-compose.yml configuration in part 2. Let’s get this thing going. I’ll start with a fresh droplet […]
Managing cronjobs in Cloudways
Cloudways comes with an easy tool to create basic cronjobs, but what if we want to run more advanced cronjobs? Or, execute WordPress cronjobs via wp-cli? Let’s dive into the setup on Cloudways! Managing your application Go to your application settings, and click on Cron Job Management. You’ll see two tabs: Basic and Advanced, select […]
Re-scheduling a cronjob in WordPress with WP-CLI
Sometimes cronjobs are scheduled when a plugin is activated, and that time is not always the preferred time, especially when you’re running a daily event. Using WP-CLI to list cron events Output It’s the wolkloos_check_weather event I was looking for. Unschedule the event Reschedule the event with your own time Output after reschedule Find more […]
Slow response / Magic keyboard lag on MacOS?
Software development is hard with a lagging keyboard. If you’re reading this, you’re probably frustrated already. Well, I was.. Monterey update The advanced options have gone missing since Monterey. Try these terminal commands instead: Remove Bluetooth preferences by removing the preference file (restart required) Kill the Bluetooth service The magic trick Press SHIFT + OPTION, […]
Using onloadedmetadata to show information from a user uploaded video, before it’s uploaded.
It’s always good to give your user a summary of what they’re going to upload, before it’s actually uploaded. I’ll keep this one short, we’re using a file input to allow the user to upload a file. And whenever the element changes, we’ll use javascript to get some information, in this case, the duration of […]
Re-order options in a select element
While working on a feature that allows users to move options from one select element to another I ran into an issue with alphabetic order. Especially when multiple options are being moved at once. To easily solve this I wrote a re-order function that orders both select elements at once. The code’s hosted on Github […]
- « Previous Page
- 1
- …
- 4
- 5
- 6
- 7
- 8
- …
- 12
- Next Page »