Posts Tagged ‘python’
Dart binaries in Python packages
TL;DR PyPI provides a neat way of distributing binaries from other languages, and Python venvs make it easy to run different versions side by side. This post takes a look at how to do that with Dart, and the next steps necessary to do a proper job of it. Background A few days ago I […]
Filed under: Dart | Leave a Comment
Tags: binary, Dart, musl, package, PyPI, python, wheel
Sometimes I need an older or newer version of CMake to the one installed by the system package manager on whatever I’m using, and I’ve found using a Python venv provides an easy way to do that. It’s all facilitated by the fact that CMake is a PyPI package [1]. For example, my Kubuntu desktop […]
Filed under: howto | Leave a Comment
Tags: CMake, python, uv, venv
Python script dependencies
TL;DR ‘–break-system-packages’ sounds scary, but (after some careful evaluation) is likely to be the right way to go for infrastructure automation, at least until uv is ready for production. Python venvs seem to be what we’re expected to use, but introduce additional complexity and associated fragility, which seems to make them a poor choice for […]
Filed under: code | Leave a Comment
Tags: --break-system-packages, APT, automation, deb, Debian, dependencies, externally-managed-environment, infrastructure, package, PyPI, python, Raspberry Pi, script, system, Ubuntu, uv, venv, virtual environment
TL;DR pymarkdownlnt provides an easy way of checking that any Markdown you’re working on is complying to some sensible guidelines. If you’re comfortable with Python virtual environments you won’t really need the rest of this post. Why? I’ve spent a bunch of time recently adding OpenSSF Scorecards to the key Atsign repos. Build better security […]
Filed under: howto | Leave a Comment
Tags: Actions, github, lint, lints, Markdown, Pip, pymarkdown, pymarkdownlnt, python, scorecard, Ubuntu, uv, venv, venvs, virtual environment
September 2021
Pupdate There was a local sausage dog meetup, which was a lot of fun for the people and the dogs: GraphQL I had to spend a bit of time learning GraphQL, as it’s used by the latest GitHub APIs, and there’s no other way to access the data behind the Projects (beta) boards. There’s a […]
Filed under: monthly_update, technology | 2 Comments
Tags: cast iron, CO2, dachshund, Dart, DataCamp, DSM, DSM7, Flutter, griddle, monitor, NAS, ppm, python, Synology, upgrade
Managing GitHub Labels
I was on a sprint planning call last week where it felt like we spent way too much time getting the labels in our various repos straightened out. After a little Googling I found various scripts that use the GitHub API to manage labels. But nothing that seemed easy enough. So… I pulled together my […]
Filed under: howto | 2 Comments
Tags: action, github, labels, open source, python, script
The @ Company uses a lot of SSL certificates, and we’ve been using ZeroSSL and its Certbot wrapper zerossl-bot to automate how we manage certs. But we wanted more control over the process, which has driven us towards the ZeroSSL API. Sadly the docs don’t provide usage examples, which has made it quite a journey […]
Filed under: howto, software | 2 Comments
Tags: API, automation, bash, certificate, curl, Digital Ocean, jq, json, python, script, SSL, ZeroSSL
Learning to Code
TL;DR Code defines our relationship with machines, and we all have a unique relationship with machines because we all learn code differently. This is my journey. Yours won’t be the same, because ‘the past is a foreign land’. All that I can hope is that there are some lessons/inspiration here. Background This post was inspired […]
Filed under: cle, technology | 4 Comments
Tags: .Net, Ada, ARexx, BASIC, c, code, coding, Delphi, FORTRAN, Go, golang, HTML, java, javascript, LOGO, Lua, Objective-C, OCAML, Occam, Pascal, Perl, Processing, programming, python, Ruby, Rust, Swift
micro:bit Simon
The BBC micro:bit is a computerised project board that’s being given to every year 7 (11-12yr old) kid in the UK. It’s supposed to encourage experimentation and learning to program in the same way that the BBC Micro (and associated BBC programmes) did back in the 80s. I’ve been pretty excited about it since the announcement, […]
Filed under: code, micro:bit | 2 Comments
Tags: accelerometer, game, micro:bit, python
I’ve been very happy with the results from my Raspberry Pi controlled water bath for sous vide cooking, but I knew that the control loop could be improved. Past runs show fairly continued oscillation: I’ve been keeping track of the average power for my control loop, which has been coming out at 22%. So i […]
Filed under: code, cooking, Raspberry Pi | 10 Comments
Tags: 434MHz, bias, control system, DS18B20, mains, PI, PID, python, Raspberry Pi, remote control, RPi, Sous vide, water bath