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.
182 words
|
1 minute
Ignoring a line in both flake8 and mypy
I [needed to tell](https://github.com/simonw/sqlite-utils/pull/347#issuecomment-982133970) both `flake8` and `mypy` to ignore the same line of code.
58 words
|
1 minute
How to create a tarball of a git repository using "git archive"
I figured this out in [a Gist in 2016](https://gist.github.com/simonw/a44af92b4b255981161eacc304417368) which has attracted a bunch of comments ove...
177 words
|
1 minute
Figuring out if a text value in SQLite is a valid integer or float
Given a table with a `TEXT` column in SQLite I want to figure out if every value in that table is actually the text representation of an integer or...
242 words
|
1 minute
Fixing broken text encodings with sqlite-transform and ftfy
I was working with a database table that included values that were clearly in the wrong character encoding - values like this:
103 words
|
1 minute
Editing an iPhone home screen using macOS
My iPhone has a weird bug: I can no longer re-arrange the app icons on the home screen (or in the dock) by dragging them around on my phone. It let...
212 words
|
1 minute
Histogram with tooltips in Observable Plot
Given an array of datetime objects, I wanted to plot a histogram. But I wanted to automatically pick a bucket size for that histogram that resulted...
385 words
|
2 minutes
Publishing to a public Google Cloud bucket with gsutil
I decided to publish static CSV files to accompany my https://cdc-vaccination-history.datasette.io/ project, using a Google Cloud bucket (see [cdc-...
120 words
|
1 minute