Simon Willison’s Weblog

Newsletter
Atom feed

Elsewhere

Filters: Sorted by date

Release datasette 0.59a0 — An open source multi-tool for exploring and publishing data
None
TIL SQLite aggregate filter clauses — SQLite supports aggregate filter clauses (as of [3.30.0, released 2019-10-04](https://www.sqlite.org/changes.html#version_3_30_0)), as described in this [SQL Pivot in all databases](https://modern-sql.com/use-case/pivot) tutorial.
None
TIL Set a GIF to loop using ImageMagick — I managed to accidentally create a GIF that ran once without looping. I think this is because I created it in [LICEcap](https://www.cockos.com/licecap/) but then deleted some frames and re-saved it using macOS Preview.
None
TIL Check spelling using codespell — Today I discovered [codespell](https://github.com/codespell-project/codespell/) via [this Rich commit](https://github.com/willmcgugan/rich/commit/9c12a4537499797c43725fff5276ef0da62423ef#diff-ce84a1b2c9eb4ab3ea22f610cad7111cb9a2f66365c3b24679901376a2a73ab2). `codespell` is a really simple spell checker that can be run locally or incorporated into a CI flow.
Release sqlite-transform 1.2.1 — Tool for running transformations on columns in a SQLite database
Release sqlite-utils 3.14 — Python CLI utility and library for manipulating SQLite databases
Release datasette-json-html 1.0.1 — Datasette plugin for rendering HTML based on JSON values
Release datasette-json-html 1.0 — Datasette plugin for rendering HTML based on JSON values
Release datasette-publish-fly 1.0.2 — Datasette plugin for publishing data using Fly
Release datasette-remote-metadata 0.1 — Periodically refresh Datasette metadata from a remote URL
Release datasette-remote-metadata 0.1a0 — Periodically refresh Datasette metadata from a remote URL
Release datasette-haversine 0.2 — Datasette plugin that adds a custom SQL function for haversine distances
Release datasette-publish-vercel 0.10 — Datasette plugin for publishing data using Vercel
None
TIL Extracting objects recursively with jq — The Algolia-powered Hacker News API returns nested comment threads that look like this: https://hn.algolia.com/api/v1/items/27941108
Release sqlite-transform 1.2 — Tool for running transformations on columns in a SQLite database
Release sqlite-utils 3.13 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-transform 1.1 — Tool for running transformations on columns in a SQLite database
Release sqlite-transform 1.0 — Tool for running transformations on columns in a SQLite database
None
TIL Using the tesseract CLI tool — Tesseract OCR has a command-line utility which is woefully under-documented. Thanks to [Alexandru Nedelcu](https://alexn.org/blog/2020/11/11/organize-index-screenshots-ocr-macos.html) I figured out how to use it today.
Release datasette-export-notebook 1.0 — Datasette plugin providing instructions for exporting data to Jupyter or Observable
Release datasette-graphql 1.5 — Datasette plugin providing an automatic GraphQL API for your SQLite databases
Release datasette 0.58.1 — An open source multi-tool for exploring and publishing data
Release datasette 0.58 — An open source multi-tool for exploring and publishing data
None
TIL Importing CSV data into SQLite with .import — I usually use my `sqlite-utils insert blah.db tablename file.csv --csv` command to import CSV data into SQLite, but for large CSV files (like a 750MB one) this can take quite a long time - over half an hour in this case.
Release conditional-get 0.3 — CLI tool for fetching data using HTTP conditional get
None
TIL Using nginx to proxy to a Unix domain socket — I figured this out while adding `--uds` support to Datasette in [#1388](https://github.com/simonw/datasette/issues/1388). Save the following in `nginx.conf`:
None
TIL Using pysqlite3 on macOS — While trying to use [pysqlite3](https://github.com/coleifer/pysqlite3) on macOS I got the following error:
None
TIL Increasing the time limit for a Google Cloud Scheduler task — In [VIAL issue 724](https://github.com/CAVaccineInventory/vial/issues/724) a Cloud Scheduler job which triggered a Cloud Run hosted export script - by sending an HTTP POST to an endpoint - was returning an error. The logs showed the error happened exactly three minutes after the task started executing.