Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

TIL Using jq in an Observable notebook — I use the `jq` language quite a lot these days, mainly because I can get ChatGPT to write little JSON transformation programs for me very quickly.
None
TIL Convert git log output to JSON using jq — I just spent way too long messing around with ChatGPT ([transcript here](https://gist.github.com/simonw/c3b486fa90d7c32a0e8dfb47e151090a)) trying to figure this out. After much iteration, here's a recipe that works (mostly written by me at this point):
None
Release datasette-no-truncate 0.1 — Tiny Datasette plugin to disable text truncation in table displays
Release datasette-chatgpt-plugin 0.1 — A Datasette plugin that turns a Datasette instance into a ChatGPT plugin
Release datasette-graphql 2.2 — Datasette plugin providing an automatic GraphQL API for your SQLite databases
TIL Use DuckDB to convert parquet to JSON and then open it in Datasette Lite — [pickapic.io](https://pickapic.io/) is a new tool funded by [stability.ai](https://stability.ai/) which asks people to generate and then vote on images in order to provide data to be used for fine tuning an open source image generation model.
None
TIL A simple Python implementation of the ReAct pattern for LLMs — A popular nightmare scenario for AI is giving it access to tools, so it can make API calls and execute its own code and generally break free of the constraints of its initial environment.
None
TIL Scraping Reddit and writing data to the Datasette write API — Today I built a system for monitoring Reddit for new posts that link to various domains that I own.
None
Release datasette-atom 0.9 — Datasette plugin that adds a .atom output format
TIL How to read Hacker News threads with most recent comments first — [Hacker News](https://news.ycombinator.com/) displays comments in a tree. This can be frustrating if you want to keep track of a particular conversation, as you constantly have to seek through the tree to find the latest comment.
None
Release datasette-simple-html 0.2 — Datasette SQL functions for very simple HTML operations
TIL Copy rich text to the clipboard — I've been experimenting with a tool for generating the content for a weekly Substack newsletter by querying the Datasette API for my blog and assembling HTML for the last week of content.
None
TIL Running LLaMA 7B and 13B on a 64GB M2 MacBook Pro with llama.cpp — See also: **[Large language models are having their Stable Diffusion moment right now](https://simonwillison.net/2023/Mar/11/llama/)**.
None
TIL Using SQL with GDAL — Inspired [by Brad Neuberg](https://twitter.com/bradneuberg/status/1633875601789681666) I decided to take a look at the SQL features in the GDAL family of tools.
None
TIL Using ChatGPT to write AppleScript — I found a killer application for ChatGPT today: writing AppleScript!
None
TIL Mocking subprocess with pytest-subprocess — For [apple-notes-to-sqlite](https://github.com/dogsheep/apple-notes-to-sqlite) I needed to write some tests that simulated executing the `osascript` command using the Python `subprocess` module.
None
Release apple-notes-to-sqlite 0.1 — Export Apple Notes to SQLite
Release datasette-render-html 1.0 — Plugin for selectively rendering the HTML is specific columns
Release datasette 0.64.2 — An open source multi-tool for exploring and publishing data
TIL A simple Python wrapper for the ChatGPT API — OpenAI [released an API for ChatGPT](https://openai.com/blog/introducing-chatgpt-and-whisper-apis) yesterday. It's 1/10th of the price of the `text-davinci-003` model!
None
Release datasette-simple-html 0.1 — Datasette SQL functions for very simple HTML operations
Release datasette-app 0.2.3 — The Datasette macOS application
Release datasette-codespaces 0.1.1 — Conveniences for running Datasette on GitHub Codespaces
Release datasette-codespaces 0.1 — Conveniences for running Datasette on GitHub Codespaces
TIL sips: Scriptable image processing system — I wanted to convert some `.webp` images to `.png` on my Mac. I asked ChatGPT:
None
Release datasette-app-support 0.11.8 — Part of https://github.com/simonw/datasette-app
Release datasette-app-support 0.11.7 — Part of https://github.com/simonw/datasette-app
TIL Training nanoGPT entirely on content from my blog — This is a follow-up to [Running nanoGPT on a MacBook M2 to generate terrible Shakespeare](https://til.simonwillison.net/llms/nanogpt-shakespeare-m2).
None
TIL Subqueries in select expressions in SQLite - also window functions — I figured out a single SQL query for the following today. Given a table of GitHub repositories, for each repository return:
None
Release datasette-explain 0.1a0 — Explain and validate SQL queries as you type them into Datasette