Find local variables in the traceback for an exception
For [sqlite-utils issue #309](https://github.com/simonw/sqlite-utils/issues/309) I had an error that looked like this:
207 words
|
1 minute
Using SQL with GDAL
Inspired [by Brad Neuberg](https://twitter.com/bradneuberg/status/1633875601789681666) I decided to take a look at the SQL features in the GDAL fam...
887 words
|
4 minutes
Removing a git commit and force pushing to remove it from history
2024-08-03
I accidentally triggered a commit which added a big chunk of unwanted data to my repository. I didn't want this to stick around in the history fore...
90 words
|
1 minute
How to get Cloudflare to cache HTML
To my surprise, if you setup a [Cloudflare](https://www.cloudflare.com/) caching proxy in front of a website it won't cache HTML pages by default, ...
215 words
|
1 minute
Dynamically loading multiple assets with a callback
For [datasette-leaflet-geojson](https://github.com/simonw/datasette-leaflet-geojson) I wanted to dynamically load some external CSS and JavaScript ...
502 words
|
3 minutes
Efficiently copying a file
**TLDR:** Use `shutil.copyfileobj(fsrc, fdst)`
205 words
|
1 minute
The most basic possible Hugo site
With [Claude's help](https://gist.github.com/simonw/6f7b6a40713b36749da845065985bb28) I figured out what I think is the most basic version of a sta...
649 words
|
3 minutes
Using expect() to wait for a selector to match multiple items
In the Playwright tests for [datasette-cluster-map](https://github.com/simonw/datasette-cluster-map) I wanted to assert that two markers had been d...
147 words
|
1 minute