Testing a Click app with streaming input
For [sqlite-utils#364](https://github.com/simonw/sqlite-utils/issues/364) I needed to write a test for a [Click](https://click.palletsprojects.com/...
257 words
|
1 minute
Turning on Jinja autoescaping when using Template() directly
Jinja autoescaping is turned off by default. Coming from Django this frequently catches me out.
94 words
|
1 minute
Auto-formatting YAML files with yamlfmt
I decided to see if there was an equivalent of [Black](https://pypi.org/project/black/) or [Prettier](https://prettier.io/) for YAML files. I found...
507 words
|
3 minutes
Fixes for datetime UTC warnings in Python
I was getting the following warning for one of my Python test suites:
218 words
|
1 minute
Transferring a GitHub issue from a private to a public repository
I have my own private `notes` repository where I sometimes create research threads. Occasionally I want to transfer these to a public repository to...
154 words
|
1 minute
How to run MediaWiki with SQLite on a macOS laptop
Today I [got curious](https://twitter.com/simonw/status/1368414296888070146) about how MediaWiki records page history, so I started digging around ...
397 words
|
2 minutes
Installing Selenium for Python on macOS with ChromeDriver
I needed to run Selenium on macOS for the first time today. Here's how I got it working.
486 words
|
2 minutes
Local wildcard DNS on macOS with dnsmasq
I wanted to get wildcard DNS running on my Mac laptop, for development purposes. I wanted `http://anything.mysite.lan/` to point to my localhost IP...
729 words
|
4 minutes