Simon Willison’s Weblog

Newsletter
Atom feed

Elsewhere

Filters: Sorted by date

None
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.
None
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
  • New db.query(sql, params) method, which executes a SQL query and returns the results as an iterator over Python dictionaries. (#290)
  • This project now uses flake8 and has started to use mypy. (#291)
  • New documentation on contributing to this project. (#292)
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
None
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
None
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
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
None
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
Release datasette-auth-passwords 0.4.1 — Datasette plugin for authentication using passwords
Release datasette 0.57 — An open source multi-tool for exploring and publishing data
Release datasette 0.56.1 — An open source multi-tool for exploring and publishing data