Streaming output of an indented JSON array
For paginate-json I wanted to implement streaming output of an indented JSON array to my terminal. The final output should look like this: But I needed this to work for an arbitrarily long sequence of…
Notes on software engineering
101–120 of 547 posts, newest first.
For paginate-json I wanted to implement streaming output of an indented JSON array to my terminal. The final output should look like this: But I needed this to work for an arbitrarily long sequence of…
I used the new GitHub Code Search to figure out how to do this. I searched for: 3.11 path:workflows/ .yml And found this example from which showed that the version tag to use is: 3.11-dev Update 28th…
I wanted to build a Twitter bot that would tweet Covid sewage graphs from this page every day. To do that, I needed the following four credentials for a new @covidsewage Twitter account.
Tailing the Heroku logs showed that it was getting a barrage of traffic to the page, which implements faceted search and hence has an almost unlimited set of possible combinations - and suchlike.
This is a follow-up to Running nanoGPT on a MacBook M2 to generate terrible Shakespeare. I used nanoGPT by Andrej Karpathy to train a GPT model entirely against content from my blog!
— A one-liner to output details of the current Python's SQLite 2025-10-19 Farshid Ashouri TIL,sqlite In investigating llm/issues/164 I found myself needing to know more precise details of the Python…
I really enjoy using Google OAuth2. Essentially this completely removed my need to implement custom, often incomplete insecure authentication to my services.
I picked up the recipe for this one from this video by @notjustabartender on TikTok. Ingredients per drink - 1 egg white - 1/2 oz rich Demerara syrup (see below - needs Demerara sugar, water and a bit…
While upgrading CodeMirror in Datasette I figured out how to minify JavaScript using on the command line without first installing any teels, using npx (which downloads and executes a CLI tool while…
I tried out rqlite today, a "lightweight, distributed relational database, which uses SQLite as its storage engine".
I want to try using QuickJS compiled to WebAssembly in a browser as a way of executing untrusted user-provided JavaScript in a sandbox. My plan is to host it locally, not load it from a CDN.
I've been using Locust recently to run some load tests - most significantly these tests against SQLite running with Django and this test exercising Datasette and Gunicorn.
I was trying to figure out the shape of the JSON object from https://github.com/simonw/coronavirus-data-gov-archive/blob/master/data latest.json?raw=true - which is 3.2MB and heavily nested, so it's…
I wanted to grant a PostgreSQL user (or role) read-only access to a specific list of tables. I created the role using the Heroku PostgreSQL web console. Having done that, it had the name .
My datasette-export-notebook plugin worked fine in the stable release of Datasette, currently version 0.64.3, but failed in the Datasette 1.0 alphas. Here's the issue describing the problem.
Most modern browsers now include support for the image attribute, which causes images not to be loaded unti the user scrolls them into view.
I found a useful pattern today for automating more complex AWS processes as pastable command line snippets, using Boto3.
The class, in every modern browser since IE 11, provides a sensible API for manipulating query string parameters in JavaScript.
Once you have installed the "command line tools" for Catalina using the following terminal command: xcode-select –install will run Python 3.7.3: % which python3 /usr/bin/python3 % python3 Python 3.7.3…
I figured out how to serve a JavaScript project built using Vite using GitHub Pages and a custom build script that runs using GitHub Actions.