Inkbird IAM-T1, ESPHome and Home Assistant

Monitoring CO2 I’ve not been sleeping well recently and realised that, since it got colder, we’ve not been leaving the bedroom window open like we used to. A bit of googling suggested that the CO2 level in the bedroom may be contributing to my poor quality sleep and so, as is my way, I decided I needed to measure it. I have been playing with Home Assistant for a while now and so I wanted whatever I decided to use to monitor my CO2 to integrate into my smart home.

An interesting article on \Device\AFD

I’ve just come across an interesting article that talks, in depth, about \Device\AFD and has lots of links to other useful stuff. More on AFD Adventures with \Device\Afd Test Driven Understanding Test Driven Design A simple client A simple server More \Device\Afd goodness Socket readiness without \Device\Afd A multi-connection AFD-based echo server AFD datagram performance An interesting article on \Device\Afd - this post

Practical Testing: 47 - First steps with `if contexpr'

As I mentioned in the last post I’m looking in to more modern ways to include conditional code in a class. Since I’m exploring here, and since I need some reasonably complicated code to make the exploration a viable test, I’ve decided to work on the “Practical Testing” code. So the next few episodes of Practical Testing will centre on removing preprocessor conditional code and replacing it with code that uses ‘if constexpr’.

Ye olde software shoppe

I find myself a bit of an outlier at the moment. I’m not rushing headlong into AI coding as I currently have no requirement to do so… That probably sounds strange, but nobody is currently paying me to use AI coding tools and I have deadlines to meet and plenty of things to do. I’ve personally never found the coding part of the job to be the bottleneck. Design, testing and continuous improvement of a stable codebase has, generally, been more of my focus.

The problems of compile-time, preprocessor managed, conditional code in C++

When I talk about conditional code here I’m talking about the kind of conditional code that uses the C or C++ compiler’s preprocessor. This is used to insert or remove blocks of code at compile time based on preprocessor defines. These #defines may or may not be set at the point at which you build a version of the software. There are, I think, two ways to use the preprocessor like this.

Cleaning up after the Office 365 outage

This is a note to self and a link I can send to family… Microsoft had a major outage today and before I realised what was going on I had opened an excel sheet that I have on my OneDrive. I had opened this sheet from a machine that hadn’t been used to open this particular sheet for a while and the version that I ended up with was a few days old.

Practical Testing: 46 - Timer Queue timers at shutdown

Over the past few episodes of “Practical Testing” I’ve been implementing some changes to the real-world, multi-threaded code that I’ve been testing, using and developing for over 20 years. These changes have been to enable controlled shutdown. The changes have been designed, stubbed out, unit tests written and then the changes were implemented in one of the two timer systems, the timer wheel. In this, the final episode in this set of changes, we implement the changes in the timer queue.

Practical Testing: 45 - Timer Wheel timers at shutdown

This is the latest new episode of “Practical Testing” where I write about the most recent changes to some real-world, multithreaded code that I’ve been testing, using and developing for over 20 years. Now that we have sorted out the design for how we will manage the concept of shutting down the timer system we “just” have to implement it. We’ll start by doing the required work for the timer wheel implementation.

Practical Testing: 44 - Timers pending at shutdown

This is the latest new episode of “Practical Testing” where I write about the most recent changes to some real-world, multithreaded code that I’ve been testing, using and developing for over 20 years. As with most things that I’ve written on this blog over the years, the target audience is future me; if anyone else gets any value from anything then that’s a nice bonus. This set of changes, centre on how we handle shutting the timer system down.

Practical Testing: 43 - A performance tweak

This is the next in a series of blog posts, called “Practical Testing”, about testing real-world, multithreaded, code. Code that is in use for a long time goes through various evolutionary changes. The code that we feature in this series of articles is often the beating heart of server systems that are built with The Server Framework. Our many clients have varying performance requirements and changes for one client eventually feed back into the framework that is used by all of our clients.