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 […]
Displaying a different value for a field in a Gravity Forms entry
We’re selling tickets via Gravity Forms for one of the websites I manage. Events are managed via another plugin and whenever a purchase is made, the event ID is saved in the form entry. Of course, we can’t just display the ID in the backend. We want to see the name of the event, and […]
Adding and using WP-CLI in a docker-compose setup
For most of my WordPress projects I use my own Alcedo WordPress workflow. With some extra scripts, creating a new site is as easy as running ‘create site.c7’in the terminal. This sets up a full WordPress install with local domains and certificates. But, in this case i’m using a different setup in which I use […]
docker-compose, mysql:5.7 and configuration files.
In another blog post, I wrote about solving an issue with io_setup(). The issue was resolved by disabling native AIO in the configuration files. The database service in docker compose This is as minimalist as it gets. We’re using the mysql:5.7 image. The image automatically loads the configuration file in /etc/alternatives/my.cnf allowing us to make […]
Mysql on Docker: exited with code 0, io_setup() failed EAGAIN
I’ve encountered this several times and usually just run the quick fix: Destroy the container and restart with a new one. But, in this case, I really don’t want to go through that trouble, so let’s go ahead and fix this. What does it mean? Some quick research reveals that this has to do with […]
Export Mailgun logs using the Mailgun API
Sometimes there’s just no other way. You need to gather information about e-mails that were sent, but your application just doesn’t have the logging available. In this case, Mailgun does have the information stored that we need, but how do we extract it? Using the Mailgun API Mailgun doesn’t allow us to export logs/events using […]
- « Previous Page
- 1
- …
- 5
- 6
- 7
- 8
- 9
- …
- 12
- Next Page »