Castle vs. Moat
This is the classic "Castle vs. Moat" debate in security architecture. While Docker provides a Moat (isolation from the host machine), the Sandbox provides the Code of Conduct (rules for what happens…
320 posts tagged “til”.
This is the classic "Castle vs. Moat" debate in security architecture. While Docker provides a Moat (isolation from the host machine), the Sandbox provides the Code of Conduct (rules for what happens…
I just noticed that I have missed a big point during the design phase of my workflow engine! I Leonard that, proper circuit breakers must have a durable state in a proper database.
- Transaction Boundaries are Sacred: When spawning child tasks, the parent MUST commit its transaction before children become visible to workers.
I ran into this error while trying to run on an M2 Mac, inside a virtual environment I had intitially created using : I eventually realized that this was using the system Python - - which doesn't have…
For google-drive-to-sqlite I wanted a mechanism to recursively return metadata on every file in a specified Goole Drive folder.
:warning: 17 Feb 2022: There have been reports of running tmate causing account suspensions . See this issue for details. Continue with caution.
Vercel really wants you to deploy static assets with serverless functions tucked away in a separate folder.
I wanted to construct a string of SQL that would return a blob value: This was while writing a unit test for - for issue 19. I used it in the test here.
I hit a bug today where I had defined a Click option called but in doing so I replaced the Python bulit-in function: This inspired me to finally figure out how Click function argument names work.
I found myself wanting to compare the version numbers , and the in Python code, in order to mark a test as skipped if the installed version of Datasette was pre-1.0.
I decided to publish static CSV files to accompany my https://cdc-vaccination-history.datasette.io/ project, using a Google Cloud bucket (see cdc-vaccination-history issue 9).
I was researching password hashing for datasette-auth-passwords. I wanted very secure defaults that would work using the Python standard library without any extra dependencies.
I figured out a single SQL query for the following today. Given a table of GitHub repositories, for each repository return: 1. The repository name 2.
stands for "list open files". Here are some very basic usage notes for the version that ships with macOS.
If you implement Auth0 for login, you may be tempted to skip implementing logout. I started out just with a page that cleared my own site's cookies, ignoring the Auth0 side of it.
Protomaps is "an open source map of the world, deployable as a single static file on cloud storage". It involves some very clever technology, rooted in the PMTiles file format which lets you create a…
Today I wanted to figure out where the CLI tool on my Mac kept its authentication tokens. I solved the problem using the macOS command, which traces filesystem activity for everything or for a…
Today I worked out how to use the Heroku command and Postgres.app to pull a Heroku backup to my laptop.
Datasette currently has a few API internals that return objects. I was thinking about how this might work in the future - if Datasette ever expands beyond SQLite (plugin-provided backends for…
I needed to run Selenium on macOS for the first time today. Here's how I got it working. Install the chromedriver binary If you have homebrew This is by far the easiest option: brew install…