Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

TIL Using io.BufferedReader to peek against a non-peekable stream — When building the [--sniff option](https://github.com/simonw/sqlite-utils/issues/230) for `sqlite-utils insert` (which attempts to detect the correct CSV delimiter and quote character by looking at the first 2048 bytes of a CSV file) I had the need to peek ahead in an incoming stream of data.
TIL Handling CSV files with wide columns in Python — Users [were reporting](https://github.com/simonw/sqlite-utils/issues/229) the following error using `sqlite-utils` to import some CSV files:
Release sqlite-utils 3.5 — Python CLI utility and library for manipulating SQLite databases
Release evernote-to-sqlite 0.3.1 — Tools for converting Evernote content to SQLite
Release evernote-to-sqlite 0.3 — Tools for converting Evernote content to SQLite
Release datasette-tiles 0.6.1 — Mapping tile server for Datasette, serving tiles from MBTiles packages
Release datasette-tiles 0.6 — Mapping tile server for Datasette, serving tiles from MBTiles packages
TIL Shrinking PNG files with pngquant and oxipng — I usually use [Squoosh.app](https://squoosh.app/) to reduce the size of my PNGs, but in this case I had a folder with nearly 50 images in it so I wanted to do it using the command-line.
Release datasette-jellyfish 1.0.1 — Datasette plugin adding SQL functions for fuzzy text matching powered by Jellyfish
Release sqlite-utils 3.4.1 — Python CLI utility and library for manipulating SQLite databases
Release datasette-jellyfish 1.0 — Datasette plugin adding SQL functions for fuzzy text matching powered by Jellyfish
Release sqlite-utils 3.4 — Python CLI utility and library for manipulating SQLite databases
TIL Downloading MapZen elevation tiles — [Via Tony Hirst](https://twitter.com/psychemedia/status/1357280624319553537) I found out about [MapZen's elevation tiles](https://www.mapzen.com/blog/terrain-tile-service/), which encode elevation data in PNG and other formats.
Release datasette-tiles 0.5 — Mapping tile server for Datasette, serving tiles from MBTiles packages
TIL Serving MBTiles with datasette-media — The [MBTiles](https://github.com/mapbox/mbtiles-spec) format uses SQLite to bundle map tiles for use with libraries such as Leaflet.
Release datasette-tiles 0.4 — Mapping tile server for Datasette, serving tiles from MBTiles packages
Release download-tiles 0.4 — Download map tiles and store them in an MBTiles database
Release download-tiles 0.3 — Download map tiles and store them in an MBTiles database
Release datasette-tiles 0.3 — Mapping tile server for Datasette, serving tiles from MBTiles packages
Release datasette-basemap 0.2 — A basemap for Datasette and datasette-leaflet
Release datasette 0.54.1 — An open source multi-tool for exploring and publishing data
Release datasette-tiles 0.2 — Mapping tile server for Datasette, serving tiles from MBTiles packages
Release download-tiles 0.2 — Download map tiles and store them in an MBTiles database
Release download-tiles 0.1 — Download map tiles and store them in an MBTiles database
Release datasette-basemap 0.1 — A basemap for Datasette and datasette-leaflet
Release datasette-tiles 0.1.1 — Mapping tile server for Datasette, serving tiles from MBTiles packages
Release datasette-tiles 0.1 — Mapping tile server for Datasette, serving tiles from MBTiles packages
Release datasette-basemap 0.1a1 — A basemap for Datasette and datasette-leaflet
Release datasette-basemap 0.1a — A basemap for Datasette and datasette-leaflet
Release datasette-cluster-map 0.17.1 — Datasette plugin that shows a map for any data with latitude/longitude columns

Beats

Years

Tags