Skip to content

Adam Johnson

I'm an author and solo consultant working with Ansible, AWS, Django, and Python.

  • By Adam Johnson
  • Based in United Kingdom
  • Roughly three posts per month
  • First post on

Posts per month

Data for this chart is available in the table below
Posts per month
Month starting Posts
Oct 2022 1
Nov 2022 11
Dec 2022 1
Jan 2023 2
Feb 2023 5
Mar 2023 4
Apr 2023 0
May 2023 1
Jun 2023 3
Jul 2023 5
Aug 2023 5
Sep 2023 5
Oct 2023 7
Nov 2023 9
Dec 2023 8
Jan 2024 5
Feb 2024 2
Mar 2024 2
Apr 2024 6
May 2024 0

Any gaps could be due to errors when fetching the blog’s feed.

Most recent posts

Django: An admin extension to prevent state leaking between requests
Here’s a small protection I added to a project a few years ago. I was considering it again since I saw a similar potential bug in a Django middleware. Long live the ModelAdmin instances Django’s …
On , by Adam Johnson, 1,056 words
Python: Diffing unit tests to keep a copy-pasted code in sync
Copy-paste-tweaking library code feels like a dirty but inevitable programming practice. Often driven by deadlines or other constraints, it seems all projects end up with something copy-pasted in and tweaked for one specific use case. …
On , by Adam Johnson, 1,126 words
Python: Make line number paths with inspect
Many terminals and text editors support what I’ll call “line number paths” of the form <filename>:<lineno>. Opening that path, whether by clicking or passing to a CLI, opens the given file at that line. Python’s …
On , by Adam Johnson, 268 words