Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

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`:
TIL Using pysqlite3 on macOS — While trying to use [pysqlite3](https://github.com/coleifer/pysqlite3) on macOS I got the following error:
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.
TIL Preventing double form submissions with JavaScript — I needed this for [VIAL issue 722](https://github.com/CAVaccineInventory/vial/issues/722). I decided to disable form submissions for two seconds after they are submitted, to protect against accidental double submissions without risk of unexpected issues that could cause the form to be permanently disabled even though it should still be able to submit it.
TIL Installing different PostgreSQL server versions in GitHub Actions — The GitHub Actions `ubuntu-latest` default runner currently includes an installation of PostgreSQL 13. The server is not running by default but you can interact with it like this:
Release django-sql-dashboard 1.0.1 — Django app for building dashboards using raw SQL queries
Release django-sql-dashboard 1.0 — Django app for building dashboards using raw SQL queries
Release sqlite-utils 3.12 — Python CLI utility and library for manipulating SQLite databases
Release datasette 0.58a1 — An open source multi-tool for exploring and publishing data
Release asgi-csrf 0.9 — ASGI middleware for protecting against CSRF attacks
TIL Scraping Reddit via their JSON API — Reddit have long had an unofficial (I think) API where you can add `.json` to the end of any URL to get back the data for that page as JSON.
Release sqlite-utils 3.11 — Python CLI utility and library for manipulating SQLite databases
TIL Mouse support in vim — Today I learned that if you hit `Esc` in vim and then type `:set mouse=a` and hit enter... vim grows mouse support! In your terminal!
Release sqlite-utils 3.10 — Python CLI utility and library for manipulating SQLite databases
Release dogsheep-beta 0.10.2 — Build a search index across content from multiple SQLite database tables and run faceted searches against it using Datasette
Release yaml-to-sqlite 1.0 — Utility for converting YAML files to SQLite
Release markdown-to-sqlite 1.0 — CLI tool for loading markdown files into a SQLite database
Release sqlite-utils 3.9.1 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 3.9 — Python CLI utility and library for manipulating SQLite databases
Release db-to-sqlite 1.4 — CLI tool for exporting tables or queries from any SQL database to a SQLite file
TIL Running a MySQL server using Homebrew — First, install MySQL like so:
Release datasette-mask-columns 0.2.1 — Datasette plugin that masks specified database columns
Release datasette 0.58a0 — An open source multi-tool for exploring and publishing data
Release datasette-placekey 0.1 — SQL functions for working with placekeys
Release datasette 0.57.1 — An open source multi-tool for exploring and publishing data
Release xml-analyser 1.2 — Simple command line tool for quickly analysing the structure of an arbitrary XML file
Release datasette-upload-csvs 0.6.1 — Datasette plugin for uploading CSV files and converting them to database tables
Release xml-analyser 1.1 — Simple command line tool for quickly analysing the structure of an arbitrary XML file
TIL Exporting Amplitude events to SQLite — [Amplitude](https://amplitude.com/) offers an "Export Data" button in the project settings page. This can export up to 365 days of events (up to 4GB per export), where the export is a zip file containing `*.json.gz` gzipped newline-delimited JSON.
Release django-sql-dashboard 0.16 — Django app for building dashboards using raw SQL queries

Beats

Years

Tags