Tag: python
All the articles with the tag "python".

Replacing My Harmony Remote: HDMI-CEC, Home Assistant and Claude Code
A Logitech Harmony only knows what it last told each device to do, never what's actually happening. Over two days, Claude Code and I built something that listens to the HDMI-CEC bus and each device's own API instead, then wrapped it in a phone remote in Home Assistant, with no IR at all. Here is what we built, why, and every wrong turn on the way.

The Day Claude Code Got Creative With Legacy Python
My code is modern Python with strict typing that needs 3.10+. The targets were a fleet of field devices stuck on Python 3.6, no internet access, and a main application that depends on that 3.6 staying exactly as it is. Here's how Claude Code talked its way out of that corner - and how it proved the plan worked before I let it near a real device.

Running Python 3.12 on Ubuntu 18.04 without touching apt
A fleet of field devices stuck on Ubuntu 18.04 and Python 3.6.9 needed a business application requiring Python 3.10+. No OS upgrade, no apt, no compiler, no internet access from the device, and no changes to the system Python - built on the Ansible controller and pushed over the SSH connection already in place.

Fish and Python autovenv
I used a plugin for a while to automatically activate and deactivate my Python environments when I change directory. It looks like that's been discontinued. (Fish and autovenv) I took it upon myself to roll my own: ~/.config/fish/conf.d/autovenv.fish function python_venv --on-variable PWD set -l tree (pwd) while test "$tree" != / for myvenv in "$tree/.venv"…

Using Paramiko with SSH Config Including ProxyCommand and Includes
This guide documents how to properly use Paramiko with SSH configurations that include: SSH config include directives ProxyCommand for AWS SSM Session Manager Multiple configuration parameters (hostname, user, identity files, etc.) The Problem Paramiko's SSHConfig.parse() has two key limitations: Does not support include directives - If your ~/.ssh/config has lines like include ./config.d/*.conf, paramiko will…

Building My Own Novel-Writing Assistant
— and Teaching AI My Lore I’ve been developing an application to help with my novel writing. I wanted something that could track characters and chapters—not just where they appear, but also a full codex of style, tone, and continuity data across my story world. The Stack: Familiar Tools, Simple Foundations I built it using…

Cruft
“Cruft” is informal tech-slang for anything that’s left in a system but no longer serves a clear purpose—old code, redundant files, forgotten configuration settings, stale comments, or even obsolete hardware. Over time these remnants accumulate, making software (or an organization’s processes) harder to understand, maintain, or extend. In short, cruft is digital clutter or technical…

Am I a Vibe Coder?
Over the past few months, I’ve transitioned from mostly infrastructure work to building a major web application for my employer. The idea originated from our CEO and was backed by my manager. I developed a proof of concept that got them genuinely excited, and they asked me to take it further—turn it into a full…

Fish and autovenv
DEPRECATED: See Fish and Python autovenv Zsh has a nice plugin to automate the activation of a Python virtual environment when you change into a directory that has one. I went looking for a fish equivalent. After trying a few, this was the only one that worked for me. Use fisher to install it. https://github.com/aohorodnyk/fish-autovenv fisher…

Odoo: Sorting fields.Many2one
Updated:Beginning a journey to develop an Odoo application, I came across a hurdle that I found no answer to. Odoo is an ERP product that is Open Source, and is hi