Author archives: Mike
What's with the bot fodder on planet python?
Written by
on
.
It seems that someone has created a script to generate posts of the form "ModuleNotFoundError..." with a generic "so install the package" article body. I can only imagine this is to get Google ranking. But why is it on planet python? It's a hell of a lot of spam when almost everyone following planet python ...
Go Lang Impressions after 2 Months
Written by
on
in
Snaking.
So for work I've needed to learn GoLang, which I'd always before picked up, kicked the tires and said "meh" on. A few months now of working with it pretty-much-daily have upped the "meh" quite a bit. To be clear, I'd choose Go over raw C, but I'd likely pick modern C++ over Go.
Channels ...
Groundhog Day: Outside the Burrow
Written by
on
in
Vindaloo.
Groundhog Day is a great movie. What I'd like to see is a Groundhog Day edit sitting next to Groundhog Day in Netflix which is just the movie cut such that it is the timeline as seen by an in-world viewer that is not part of the time loop. That is, you see the setup, ...
Social Cost of Carbon and Ethics
Written by
on
in
Polis.
It is unreasonably frustrating to me that discussions of the Social Cost of Carbon by Economists are seemingly using models that read like a Libertarian's Fancy Footwork to Excuse Desired Behaviour. Basically, by deciding that we value the lives of our children and children's children less than our own comfort, we can deprecate the loss-in-value ...
Django Field Rename Migrations and Test Cases
Written by
on
in
Snaking.
Is there some trick to running Django test cases when you've got a RenameField later in the migration-stack? I feel like this has to be some obvious thing I'm missing...
With a migration (say 0058_big_restructure.py) which does this:
migrations.RenameField(
model_name='rfsource',
old_name='source_name',
new_name='follow_source_name',
),
and a previous migration, (say 0006_long_ago_change_that_populates_some_other_field.py) which doesn't explicitly reference the source_name ...
Seems Time Warps have Infected the Blog
Written by
on
.
Just randomly clicked through a similar posts link and found an article that was (actually) published in 2015 claiming to be published in 2020. Clicking through more random links, it seems that every article that existed when I moved the blog to the new service on May 18th of last year got the timestamps modified ...
PycraftServer Plugin
Written by
on
in
Snaking.
So the boys (and their cousin) are both into Minecraft again, so I've been refining the Pycraft code quite a bit. We no longer use the RaspberryJuice plugin, but instead have a custom Bukkit plugin that does Java reflection/introspection to auto-generate the API. That lets us do a lot more, manipulate inventories, read and write ...
Adding a Certificate Authority to Chrome Trust Store
Written by
on
in
Snaking.
So you have a corporate or project specific root of trust you need Chrome to recognise. How do you take your PEM certificate as you get from easy-rsa or the like and make it something that Chrome will accept? The answer is not particularly complex, but it really seems like this very-common process is not ...
PyOpenGL Build Enhancements
Written by
on
in
Snaking.
Spent the evening getting the Python 3.9 build for PyOpenGL-accelerate running on Appveyor. In the end it was just knowing to add a tag "APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019" to the build-matrix for that one Python version so that it is built on the Python 3.9-compatible build-image. Will have to boot into Windows to test that ...
First Snap Package Doesn't Impress
Written by
on
in
Tuxedo.
So with the move to 20.04 I've now run into my first package (rocketchat-desktop) that has given up on debian packages and only provides a snap package... and... well... it just doesn't run. It installs, it pretends to run and exits without any obvious error or message, but nothing happens.
Luckily this particular package is ...