RSS.Social

alexwlchan’s today I learned

follow: @[email protected]

Posts

Using Go to write to a file, but only if it doesn’t exist yet

The person who runs the Cambridge NTP servers has an excellent email address

The @ symbol was added to Morse code in 2004

Discard a variable in a JavaScript object spread by assigning it to _

Repeatedly run flaky Go tests with stress

How to play with SQLite functions without real data

How to list the tests that will be run by a go test command

My preferred options for SmartyPants in Python

Get the avatar URL for a Bluesky user

Looking up posts in the Bluesky API

Using zipstream to stream new zip files to object storage with boto3

Using Linode object storage and boto3

Adding a string to a tarfile in Python

Disable HTTP Basic Auth for certain pages in Caddy

Collecting pytest markers from failing tests

You can change the size of tabs on web pages with the tab-size property

Group nodes in a Mermaid flowchart by putting them in a subgraph

Show a list of checkboxes in a WTForms form

Combine arrows in Mermaid by using an invisible node

Some countries have “poison centers” as part of their healthcare service

Redacting sensitive information from gunicorn access logs

Listen for the popstate event to see when the user clicks the “back” button

Python’s f-strings support = for self-documenting expressions

Comparing two files in a bash script

Use typing.getargs() to get a list of typing.Literal[…] values

Ruby’s range can iterate over more than just numbers