Host your Emails while using Cloudflare’s DNS

Introduction In this post, I will show you how to set up your DNS within Cloudflare so that you can utilise Cloudflare’s CDN for your website whilst hosting your emails. This post assumes you already have your emails set up and hosted so that they can work when Cloudflare isn’t in use or the DNS […]

How to block Contact Form 7 spam with Cloudflare

Why not use reCaptcha? When it comes to combating spam in Contact Form 7, the go-to solution for many is Google’s reCaptcha. With its affordability, ease of setup, and non-intrusive nature, reCaptcha v3 seems like a reliable choice. However, there have been instances where reCaptcha has caused unexpected issues for users attempting to submit forms. […]

Optimise Swift Performance 2 for Divi Theme

What is Divi and Swift, and what is our goal? I use the Divi theme for the majority of my WordPress websites. It’s well-supported, widely used, and actively developed, and it makes it easy for someone like myself who isn’t a front-end developer to produce modern websites with minimal headaches. The biggest downside of the […]

View and dequeue excess scripts in WordPress

Introduction One of the larger issues with WordPress, in my opinion, is the amount of bloat that it delivers from page to page. This happens because WordPress software is distributed as Plugins and Themes that tend to ship with a larger functionality than each user may require. Additionally, WordPress enqueues scripts without prejudice on most […]

Set WordPress Featured Image On Publish

Automate Your WordPress Featured Images Based on Post Category If you manage a WordPress blog, you know that creating unique featured images for each post can be time-consuming, especially for shorter posts. Wouldn’t it be great if you could standardize your featured images based on each post’s category? That’s precisely what we’ll cover in this […]

Python Decorators

Basic custom decorator functions Python decorators are functions which you call on top of another function to expand its functionality. Some common use cases include logging, adding delays or timeouts to function executions, extending behaviours and more. Here’s a basic example: In the above example, our initial function is called with decorator called ‘decorator’ just […]

Return values from a Python thread

What are Threads in Python? Threads in Python are separate flows of execution. Typically, a simple Python program is single-threaded. This means everything happens in a sequence one after the other. Your program will execute line-by-line and only after one line has finished will the next one begin. Implementing additional threads means that you can […]

Python & Pygame Solar System Simulation

Creating a Solar System Simulation with Python and Pygame This project is a fantastic demonstration of using object-oriented programming to create infinitely scalable programs by instantiating classes based on various sets of data. Ready to explore the galaxies from the comfort of your home? Let’s get started! Here’s what you can expect by the end […]

Get links from an XML sitemap using Python

What we’re going to be doing I’m going to walk you through step-by-step how to assemble a full list of all pages on a website’s sitemap using Python with BeautifulSoup4. I will assume some basic knowledge of Python on the part of the reader, so I won’t go into great detail on some basics. This […]