-
Set WordPress featured image on publishSet WordPress featured image on publish
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 standardise your featured images based on each post’s category?
5 May 2023 -
Python decoratorsPython decorators
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:
4 May 2023 -
Return values from a Python threadReturn values from a Python thread
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.
15 June 2022 -
Python & Pygame Solar System simulationPython & Pygame Solar System simulation
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!
11 April 2022 -
Get links from an XML sitemap using PythonGet links from an XML sitemap using Python
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.
14 March 2022