Elsewhere
Release TIL Research Tool Museum Sighting Comment
Filters: Sorted by date
3,494 results
«« first
« previous
page 68 / 117
next »
last »»
TIL
Treating warnings as errors in pytest
— I was seeing this warning in a Django project when I thought I was correctly using timezone-aware dates everywhere:
TIL
Allowing a container in Docker Desktop for Mac to talk to a PostgreSQL server on the host machine
— I like using [Postgres.app](https://postgresapp.com/) to run PostgreSQL on my macOS laptop. I use it for a bunch of different projects.
TIL
Generating a calendar week grid with the Python Calendar module
— I needed to generate a grid calendar that looks like this (design [by Natalie Downe](https://github.com/natbat/pillarpointstewards/issues/23)):
TIL
Compiling to WASM with llvm on macOS
— [howto-wasm-minimal](https://github.com/ern0/howto-wasm-minimal) by Zalka Ernő ([my fork here](https://github.com/simonw/howto-wasm-minimal)) is a neat demo of a minimal WASM module. It uses C++ to define functions for simple image manipulation including blurring an image, compiles it to WASM using llvm/clang++, then uses JavaScript to run those functions against an image loaded into a `<canvas>` element.
TIL
Deploying a live Datasette demo when the tests pass
— I've implemented this pattern a bunch of times now - here's the version I've settled on for my [datasette-auth0 plugin](https://github.com/simonw/datasette-auth0) repository.
TIL
Simplest possible OAuth authentication with Auth0
— [Auth0](https://auth0.com/) provides an authentication API which you can use to avoid having to deal with user accounts in your own web application.
TIL
Extracting web page content using Readability.js and shot-scraper
— [Readability.js](https://github.com/mozilla/readability) is "A standalone version of the readability library used for Firefox Reader View".
TIL
Exporting and editing a Twitter Spaces recording
— I hosted [a Twitter Spaces conversation](https://twitter.com/simonw/status/1504604448202518529) the other day. The recording is only available for 30 days afterwards, and I wanted to publish it elsewhere.
TIL
Rewriting a repo to contain the history of just specific files
— I wanted to start [a new git repository](https://github.com/simonw/graphql-scraper/tree/828a1efc4307cca6cd378c394c2d33eac2eceb52) containing just the history of two specific files from my [help-scraper repository](https://github.com/simonw/help-scraper).
TIL
Using the GitHub Actions cache with npx and no package.json
— Some of my repositories have GitHub Actions workflows that execute commands using `npx`, for example my [graphql-scraper](https://github.com/simonw/graphql-scraper) repo using `npx` to [install and run](https://github.com/simonw/help-scraper/blob/54ef9b1fa579dc2d3f68055ffdac9996fd6dae9c/.github/workflows/scrape.yml#L76-L80) the `get-graphql-schema` tool:
TIL
Counting SQLite virtual machine operations
— When SQLite executes a query, it does so by executing a sequence of virtual machine operations.
TIL
The simplest recursive CTE
— I found this really simple recursive CTE useful for ensuring I understood how to write recursive CTEs.
TIL
Async fixtures with pytest-asyncio
— I wanted to use a fixture with `pytest-asyncio` that was itsef as `async def` function, so that it could execute `await` statements.
«« first
« previous
page 68 / 117
next »
last »»


