RSSAmplifier

Blog

Peterbe.com

Stuff in Peter's head

peterbe.comRSS feed ↗10 posts

Latest posts

This is the noise level of the crickets on my back porch

It feels deafening when you're standing there. I measured it to compare with other noises, like a nearby mower. This is, by the way, inside the screened-in porch.

useSlowTruth - React hook to throttle booleans

I use this React hook to reduce the display of spinner animation icons in cases where a little patience means we don't really need to bother indicating that something is loading. The problem For example, you might have a TanStack Query that makes XHR requests to the backend, and that backend is generally fast. Many times, it finishes in tens or hundreds of milliseconds. If you prescriptively…

Cart path bounce is my jam

I'm a reasonably long hitter, but I can't get the driver beyond 300 yards without a lot of help from either a tailwind or, like this time, a bounce off the cart path.

Cracked my Callaway driver

Heard something chip loose in it the other day. And now, on the range, it cracked open.

Claude Opus is 10x faster than OpenAI GPT 5 at non-streaming completions

Claude is much faster than OpenAI gpt-5 and also faster than gpt-5-mini

Best Django Redis configuration

Latest blog post about different compressors for Django Redis.

Best Django Redis configuration for speed and size

`lzma` compresses the most and `zlib` is about as fast as `zstd` in `django_redis` as compressor.

How to use a list/tuple/array in Django with a raw SQL cursor

This does not work: from django.db import connection list_of_values = [ 1 , 2 , 3 ] with connection.cursor() as cursor: cursor.execute( """ SELECT * FROM my_model_table WHERE some_value IN %s """ , [ tuple (list_of_values), ]) results = cursor.fetchall() It will give you: django.db.utils.ProgrammingError: syntax error at or near "'(1,2,3)'" LINE 4: WHERE id IN '(1,2,3)' It used…

Driving range and thunder clouds

4th of July table cloth that we all contributed to