
- Details
- Written by: Jason Ross
When you create a system, you want it to run as quickly as possible. Most of the time, this isn’t a problem, but eventually you’ll find yourself in a situation where the performance isn’t as good as you’d like or need.
At this point you have a few options: at first you might decide to throw more CPU power and memory at the problem. This is usually the approach people mean when they tell you that “CPU and memory are cheap!”. If you do this, things will probably improve for a while, before you’re back in the same position again. If you’re using a cloud-based system, you’ll also have a bigger recurring cloud bill and less money in your bank account. So, as always, it’s best to ignore anyone who tells you how “cheap” CPU and memory are.
Read more: Concurrency, Multiprocessing, Multi-threading and Asynchronous Code

- Details
- Written by: Jason Ross
Infra-red imaging – where different temperatures are shown on a screen as different colours – is used in things from search and rescue to tracking targets from the air, and from paranormal investigation to draught detection. All of this struck me as interesting, so I wanted to give it a try. A few years ago I saw a FLIR camera at work, and it was impressive. The cost was horrendous though. Since then I’ve seen some other infra-red cameras, some with built-in displays, and some that plug into cellphones, but they’ve all had disadvantages. Some depended on the cellphone having the "right" type of USB connector and client software, some took far too long for delivery because they were built in China and some just weren't very good at all.
In the end, I decided I’d try something a little different. Panasonic make an infrared sensor, the Grid-EYE AMG8833, which is nowhere near as expensive as any of the other devices available. It can connect to a Raspberry Pi or an Arduino, and I’ve got a couple of Raspberry Pis hanging around. This seemed to be a decent way to get into infra-red imaging without spending too much
Read more: Infra-Red Imaging With The Grid-EYE AMG8833 Sensor
- Details
- Written by: Jason Ross
Along with iteration, recursion is one of the basic principals of software engineering. It can be a graceful solution to problems, but it's often misunderstood and it can have practical disadvantages.
- Details
- Written by: Jason Ross
Wordpress is a great site Content Management System (CMS). I've been using it a little - not for this site - and it works well. The only real problem I've encountered is that sometimes you want to add a plugin, and the menu entry that lets you do that isn't there.
- Details
- Written by: Jason Ross
Using Poetry to manage Python dependencies and virtual environments is much easier than the traditional requirements.txt
and other tools. When you want to release your package and make it available on PyPI, Poetry also lets you avoid the need to use the standard Python setuptools
setup.cfg
or setup.py
files, so it's much simpler and less confusing. If you'd like a brief introduction to Poetry, I'd recommend this article: Five Minute Introduction: Poetry.
Read more: How To Use Poetry to Publish a Python Package on PyPI

- Details
- Written by: Jason Ross
How can you coordinate processes to start after others have finished? How does this work on a single system? How about a distributed system? What if each server can be running a different operating system? How can one system communicate with another when it's finished a task?
Read more: Five Minute Introduction: Polling and Event Driven Systems

- Details
- Written by: Jason Ross
It’s almost Christmas, so you’ve dragged your Christmas tree out of the basement/garage/spare room/shed, where you’ve carefully stored it since last year. You look back fondly on how its lights twinkled, changed colour, flashed, and did all sorts of other Christmas tree light things. Best of all, because your tree uses the QuickConnect system, you didn’t have to worry about putting all those lights on – they’re already on the tree! Aren’t you pleased you spent several hundred dollars and bought a QuickConnect Christmas tree?
So, you set your tree up and plug it in, just waiting for the explosion of light that signals Christmas is almost here and...
Read more: My QuickConnect Christmas Tree Lights Don’t Work – How To Fix Them