Skip to content
Baffled Architect

Baffled Architect

Tag: Python

JSON

Posted on 20 September 2025 by dougie

Following on from this post, I thought it might be good to think about JavaScript Object Notation (JSON). Despite its name, JSON has evolved to be agnostic and is arguably…

Posted in Coding, PythonTagged Coding, Howto, JSON, Python

Interact with API in Python

Posted on 14 September 2025 by dougie

Overview of REST Representational State Transfer (REST) is a client server communication pattern, which defines some constraints: Any service that adhere to this is known as a REST web service…

Posted in Coding, PythonTagged API, Coding, Python, REST
Ubuntu

Multipass cloud-init

Posted on 24 March 2024 by dougie

Multipass is pretty useful but what a pain this was to figure out, due to Ubuntu’s Node.js package not working with AWS-CDK. Multipass lets you manage VM in Ubuntu and…

Posted in LinuxTagged AWS, CDK, Coding, Linux, Python, Ubuntu

Setup a Multipass CDK Environment

Posted on 25 February 2024 by dougie

I want to be able to connect to the environment using Visual Studio Code, so first we need to create a SSH key: We need a configuration YAML, replace <generated…

Posted in Linux, PythonTagged AWS, Coding, Linux, Python, Ubuntu
Development

Rainbows, decorators arguments & threads

Posted on 13 June 2022 by dougie

Playing with Rainbow Hat I learned a few things about Python as a result I found out what a decorator is, the difference between args and kwargs and threads. I…

Posted in CodingTagged Coding, Python
Working together

Python List Comprehension

Posted on 13 June 2022 by dougie

I’ve been spending time with Python recently and am beginning to really like some of the language’s features. List comprehension creates a list by evaluating an expression on each item…

Posted in CodingTagged Coding, Python

Using Threading rather than Thread

Posted on 12 June 2022 by dougie

In an earlier post, I used Threads but the thread module in Python when I should be using threading. The documentation for threading says it builds upon the thread module (renamed _thread):…

Posted in CodingTagged Coding, Python
Working together

Python’s with statement

Posted on 9 June 2022 by dougie

Managing resources usually involves three steps – allocating, using, and releasing. You’re familiar with the try… finally pattern but Python also provides context managers.

Posted in CodingTagged Coding, Python, Snippet

Recent Posts

  • Opus 4.6: building a finance tool in one shot
  • HP battery not charging
  • Shell features: List expansion
  • Update IONOS SSL certificates in Plesk
  • Fix Fedora issues with Claude and MCP

Recent Comments

No comments to show.

Archives

  • February 2026
  • January 2026
  • November 2025
  • September 2025
  • April 2025
  • March 2024
  • February 2024
  • January 2024
  • August 2023
  • May 2023
  • April 2023
  • June 2022

Categories

  • Books
  • Coding
  • Linux
  • Misc
  • Python
  • Sights
  • Volunteer
  • WordPress

© 2026 Baffled Architect - Every day is a school day.

Theme: Baffled Architect