Finding duplicate records by matching name and nearby distance
2024-05-17
I wanted to find potentially duplicate records in my data, based on having the exact same name and being geographically located within 500 meters o...
191 words
|
1 minute
A few notes on Rye
2024-05-16
[Rye](https://github.com/mitsuhiko/rye) is Armin Ronacher's new experimental Python packaging tool. I decided to take it for a test-run.
1018 words
|
5 minutes
Clone, edit and push files that live in a Gist
2024-05-15
GitHub [Gists](https://gist.github.com/) are full Git repositories, and can be cloned and pushed to.
128 words
|
1 minute
Ignoring errors in a section of a Bash script
2024-05-15
For [simonw/museums#32](https://github.com/simonw/museums/issues/32) I wanted to have certain lines in my Bash script ignore any errors: lines that...
171 words
|
1 minute
Deploying OpenSearch with Podman and Quadlet for Containerized Search at Scale
2024-05-15
A step-by-step guide to deploying OpenSearch using Podman and Quadlet for a lightweight, secure, and systemd-integrated search solution without Docker or Kubernetes.
1306 words
|
7 minutes
Publishing a Web Component to npm
2024-05-15
I tried this for the first time today with my highly experimental [datasette-table](https://www.npmjs.com/package/datasette-table) Web Component. H...
590 words
|
3 minutes
Building a Markdown summary of Django group permissions
2024-05-15
[Django SQL Dashboard](https://django-sql-dashboard.datasette.io/) can display rendered markdown generated by a SQL query.
240 words
|
1 minute
Consecutive groups in SQL using window functions
2024-05-14
I have a database table with all of my Swarm checkins since 2011, created using my [swarm-to-sqlite](https://datasette.io/tools/swarm-to-sqlite) tool.
1244 words
|
6 minutes
Programatically accessing Heroku PostgreSQL from GitHub Actions
2024-05-13
My [db-to-sqlite](https://github.com/simonw/db-to-sqlite) tool can connect to a PostgreSQL database, export all of the content and write it to a SQ...
243 words
|
1 minute
A simple two column CSS grid
2024-05-13
For my blog entry today [Now add a walrus: Prompt engineering in DALL-E 3](https://simonwillison.net/2023/Oct/26/add-a-walrus/) I wanted to display...
833 words
|
4 minutes
Rendering Markdown with the GitHub Markdown API
2024-05-13
I wanted to convert the Markdown used in my TILs to HTML, using the exact same configuration as GitHub does. GitHub has a whole load of custom exte...
317 words
|
2 minutes
Python packages with pyproject.toml and nothing else
2024-05-13
I've been using `setuptools` and `setup.py` for my Python packages for a long time: I like that it works without me having to think about installin...
1596 words
|
8 minutes
Very basic tsc usage
2024-05-13
I guess I [have to learn TypeScript](https://twitter.com/simonw/status/1302517496767938561) now.
373 words
|
2 minutes
List all columns in a SQLite database
2024-05-13
Here's a devious trick for listing ALL columns in a SQLite database, using a SQL query that generates another SQL query.
553 words
|
3 minutes
Attaching a generated file to a GitHub release using Actions
2024-05-13
For [Datasette Desktop](https://github.com/simonw/datasette-app) I wanted to run an action which, when I created a release, would build an asset fo...
215 words
|
1 minute
Testing a Click app with streaming input
2024-05-12
For [sqlite-utils#364](https://github.com/simonw/sqlite-utils/issues/364) I needed to write a test for a [Click](https://click.palletsprojects.com/...
268 words
|
1 minute
Turning on Jinja autoescaping when using Template() directly
2024-05-12
Jinja autoescaping is turned off by default. Coming from Django this frequently catches me out.
105 words
|
1 minute
Auto-formatting YAML files with yamlfmt
2024-05-11
I decided to see if there was an equivalent of [Black](https://pypi.org/project/black/) or [Prettier](https://prettier.io/) for YAML files. I found...
577 words
|
3 minutes
Fixes for datetime UTC warnings in Python
2024-05-11
I was getting the following warning for one of my Python test suites:
241 words
|
1 minute
Transferring a GitHub issue from a private to a public repository
2024-05-11
I have my own private `notes` repository where I sometimes create research threads. Occasionally I want to transfer these to a public repository to...
175 words
|
1 minute
How to run MediaWiki with SQLite on a macOS laptop
2024-05-11
Today I [got curious](https://twitter.com/simonw/status/1368414296888070146) about how MediaWiki records page history, so I started digging around ...
422 words
|
2 minutes
Installing Selenium for Python on macOS with ChromeDriver
2024-05-10
I needed to run Selenium on macOS for the first time today. Here's how I got it working.
549 words
|
3 minutes
Local wildcard DNS on macOS with dnsmasq
2024-05-10
I wanted to get wildcard DNS running on my Mac laptop, for development purposes. I wanted `http://anything.mysite.lan/` to point to my localhost IP...
812 words
|
4 minutes
Getting Mastodon running on a custom domain
2024-05-10
This TIL is mainly a rehash of these two articles by Jacob and Andrew:
582 words
|
3 minutes