RSSAmplifier

Blog

Til posts by Daniel Roy Greenfeld

daniel.feldroy.comRSS feed ↗15 posts

Latest posts

TIL: Improving µCSS readability on mobile

How to get an otherwise responsive framework to look good on mobile devices.

TIL: Checkov's Gun

A powerful technique used in storytelling.

TIL: Using PygmentsRenderer with mistletoe as a partial

Another part of the process of switching from marked.js and python-markdown to just using mistletoe.

TIL: Default code block languages for mkdocs

Really useful for making inline code examples have code highlighting.

TIL: Loading .env files with uv run

Replacing python-dotenv with uv

TIL: Merging two git projects

Attribution matters to me, I want contributors to always get full credit for their effort. This is how you preserve the git history of a project you are bringing into another project.

TIL: Setting environment variables for pytest

An easier way of doing it then modifying os.environ

TIL: Using SQLModel Asynchronously with FastAPI (and Air) with PostgreSQL

SQLModel is a really useful library for working with SQL databases in Python, built on top of SQLAlchemy and Pydantic. However, AFAIK there's no documentation supporting asynchronous operations for PostgreSQL, which can be a limitation when building high-performance web applications with FastAPI and Air.

TIL: Single source version package builds with uv (redux)

Tired of updating the version in multiple places before publishing a package update? Here's how Adam Johnson told me I should be doing it.

TIL: How to type args and kwargs

A reduction in boilerplate confused me, the answer is that the type to define is the value in the containers.

TIL: Single source version package builds with uv

Tired of updating the version in multiple places before publishing a package update? Leery of using inspect.metadata to fetch the package? Here's how to have a single source of version using UV's build subcommand.

TIL: Removing exif geodata from media

How to remove revealing data from your images and videos

TIL: HTML 404 errors for FastAPI

For those times when FastAPI is serving web pages and users go to the wrong place.

TIL: Exception.add_note

Adding extra info to exceptions the easy way.

TIL: ^ bitwise XOR

How to mark a comparison of booleans as True or False using bitwise XOR.