Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

TIL Avoiding "length" errors in Apache Bench with the -l option — I was using the Apache Bench `ab` command to exercise some new code I'm writing in Datasette and I noticed I was getting a lot of errors:
None
Release db-to-sqlite 1.5 — CLI tool for exporting tables or queries from any SQL database to a SQLite file
TIL The SQLite now argument is stable within the same query — I stumbled across an interesting little detail of SQLite today, running the following query:
None
TIL Building Mastodon bots with GitHub Actions and toot — Twitter [announced today](https://twitter.com/TwitterDev/status/1621026986784337922) that they'll be ending free API access for bots.
None
TIL Run Python code in a WebAssembly sandbox — I've been trying to figure this out for ages. Tim Bart responded to [my call for help on Hacker News](https://news.ycombinator.com/item?id=34598024) with [this extremely useful code example](https://gist.github.com/pims/711549577759ad1341f1a90860f1f3a5) showing how to run Python code in WebAssembly inside Python, using [wasmtime-py](https://github.com/bytecodealliance/wasmtime-py) and the new Python WASM build [released by VMware Wasm Labs](https://wasmlabs.dev/articles/python-wasm32-wasi/).
None
TIL Running nanoGPT on a MacBook M2 to generate terrible Shakespeare — [nanoGPT](https://github.com/karpathy/nanoGPT) is Andrej Karpathy's "simplest, fastest repository for training/finetuning medium-sized GPTs".
None
TIL Calculating embeddings with gtr-t5-large in Python — I've long wanted to run some kind of large language model on my own computer. Now that I have a M2 MacBook Pro I'm even more keen to find interesting ways to keep all of those CPU cores busy.
None
TIL Using recursive CTEs to explore hierarchical Twitter threads — This TIL adapted from [a Gist](https://gist.github.com/simonw/656a8c6e4688f720773c474080abe1b0) I put together in 2019, before I started tracking TILs here.
None
Release shot-scraper 1.1.1 — A command-line utility for taking automated screenshots of websites
TIL Combining CTEs and VALUES in SQLite — Here's how to use SQLite's `VALUES` syntax with a CTE to create a temporary table that you can then perform joins against in a query:
None
Release shot-scraper 1.1 — A command-line utility for taking automated screenshots of websites
TIL Installing lxml for Python on an M1/M2 Mac — I ran into this error while trying to run `pip install lxml` on an M2 Mac, inside a virtual environment I had intitially created using `pipenv shell`:
None
TIL SQLite pragma_function_list() — The SQLite `pragma_function_list()` table-valued function returns a list of functions that have been registered with SQLite, including functions that were added by extensions.
None
Release datasette-render-markdown 2.1.1 — Datasette plugin for rendering Markdown
Release datasette-youtube-embed 0.1 — Turn YouTube URLs into embedded players in Datasette
TIL Rewriting a Git repo to remove secrets from the history — I decided to make a GitHub repository public today that had previously been private. Unfortunately the revision history of that repository included some secret values, one of which I could not figure out a way to revoke.
None
Release datasette-granian 0.1a0 — Run Datasette using the Granian HTTP server
Release datasette-faiss 0.2 — Maintain a FAISS index for specified Datasette tables
Release datasette-openai 0.2 — SQL functions for calling OpenAI APIs
Release openai-to-sqlite 0.2 — Save OpenAI API results to a SQLite database
Release datasette-cookies-for-magic-parameters 0.1.2 — UI for setting cookies to populate magic parameters
Release datasette-openai 0.1a2 — SQL functions for calling OpenAI APIs
Release datasette-cookies-for-magic-parameters 0.1.1 — UI for setting cookies to populate magic parameters
Release datasette-cookies-for-magic-parameters 0.1 — UI for setting cookies to populate magic parameters
TIL Upgrading a pipx application to an alpha version — I wanted to upgrade my [git-history](https://datasette.io/tools/git-history) installation to a new alpha version.
None
Release git-history 0.7a0 — Tools for analyzing Git history using SQLite
Release datasette 0.64.1 — An open source multi-tool for exploring and publishing data
Release datasette-faiss 0.1a0 — Maintain a FAISS index for specified Datasette tables
TIL Scraping the Sky News Westminster Accounts, a Flourish application — Sky News in partnership with [Tortoise](https://www.tortoisemedia.com/) published a fantastic piece of investigative data reporting: [the Westminster Accounts](https://news.sky.com/story/westminster-accounts-methodology-12764656), a database of money in UK politics that brought together data from three different sources and make it explorable.
None
Release json-to-files 0.1 — Create separate files on disk based on a JSON object