Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

None
TIL Skipping a GitHub Actions step without failing — I wanted to have a GitHub Action step run that might fail, but if it failed the rest of the steps should still execute and the overall run should be treated as a success.
None
TIL Creating a dynamic line chart with SVG — I helped build the tide chart visualizations for [Rocky Beaches](https://www.rockybeaches.com/).
None
TIL Providing a "subscribe in Google Calendar" link for an ics feed — If you provide your own custom generated ICS file hosted at a URL it's nice to be able to give Google Calendar users an easy way to subscribe to that feed.
None
TIL 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 and then execute some code once they had loaded ([issue 14](https://github.com/simonw/datasette-leaflet-geojson/issues/14)).
None
TIL Outputting JSON with reduced floating point precision — [datasette-leaflet-geojson](github.com/simonw/datasette-leaflet-geojson) outputs GeoJSON geometries in HTML pages in a way that can be picked up by JavaScript and used to plot a Leaflet map.
Release datasette-auth-passwords 0.3.2 — Datasette plugin for authentication using passwords
Release shapefile-to-sqlite 0.3 — Load shapefiles into a SQLite (optionally SpatiaLite) database
Release datasette-leaflet-geojson 0.6 — Datasette plugin that replaces any GeoJSON column values with a Leaflet map.
None
TIL Working around the size limit for nodeValue in the DOM — TIL that `nodeValue` in the DOM has a size limit!
Release datasette-leaflet-geojson 0.5 — Datasette plugin that replaces any GeoJSON column values with a Leaflet map.
Release sqlite-utils 2.16 — Python CLI utility and library for manipulating SQLite databases
Release datasette-graphql 0.14 — Datasette plugin providing an automatic GraphQL API for your SQLite databases
None
TIL Using grep to write tests in CI — GitHub Actions workflows fail if any of the steps executes something that returns a non-zero exit code.
None
TIL Finding the largest SQLite files on a Mac — This runs using Spotlight so it's really fast:
Release datasette-graphql 0.13 — Datasette plugin providing an automatic GraphQL API for your SQLite databases
Release datasette-schema-versions 0.1 — Datasette plugin that shows the schema version of every attached database
Release datasette-graphql 0.12.3 — Datasette plugin providing an automatic GraphQL API for your SQLite databases
None
TIL Programatically accessing Heroku PostgreSQL from GitHub Actions — My [db-to-sqlite](https://github.com/simonw/db-to-sqlite) tool can connect to a PostgreSQL database, export all of the content and write it to a SQLite database file on disk.
Release github-to-sqlite 2.5 — Save data from GitHub to a SQLite database
Release datasette-publish-vercel 0.8 — Datasette plugin for publishing data using Vercel
None
TIL Read the Docs Search API — I stumbled across this API today: https://docs.datasette.io/_/api/v2/docsearch/?q=startup&project=datasette&version=stable&language=en
Release datasette-cluster-map 0.12 — Datasette plugin that shows a map for any data with latitude/longitude columns
Release datasette 0.48 — An open source multi-tool for exploring and publishing data
Release datasette-graphql 0.12.2 — Datasette plugin providing an automatic GraphQL API for your SQLite databases
Release datasette-saved-queries 0.2.1 — Datasette plugin that lets users save and execute queries
Release datasette 0.47.3 — An open source multi-tool for exploring and publishing data
Release datasette-upload-csvs 0.5 — Datasette plugin for uploading CSV files and converting them to database tables
None
TIL Code coverage using pytest and codecov.io — I got my [asgi-csrf](https://github.com/simonw/asgi-csrf) Python package up to 100% code coverage. Here's [the pull request](https://github.com/simonw/asgi-csrf/issues/13).
Release asgi-csrf 0.7 — ASGI middleware for protecting against CSRF attacks
Release asgi-csrf 0.7a0 — ASGI middleware for protecting against CSRF attacks