Pages tagged “coding”
04 Feb 2024
Super slow-mo Tetris
A new gadget entered my life a while ago: Father Christmas brought me a Badger 2040W. It’s a wifi-connected computer, that runs python and has an e-ink display. It has fairly low power consumption, and is easily programmed to sleep most of the time. Also e-ink retains an image even when power is removed, so it ought to be able to show something that updates fairly slowly, and run on battery power for many days.12 Aug 2014
Patch updates in pinned Python packages
A post about Python programming with a tongue-twisting title… Most Python projects rely on libraries (packages) from elsewhere, in particular from PyPI. Although it means you have to manually check for new versions of this third-party code, it’s a good idea to explicitly “pin” the version of each dependency, and this is usually done in a file called requirements.txt. This way, you know that what you use in development is the same as what you deploy.16 Jul 2014