Today I Learned

Short notes on things I am learning. Inspired by Simon Willison's TILs.

Browse By Topic

Recent TILs

3-2-1 before bed time

health

from reddit:the 321 rule before bed revitalised my sleep quality and HRV massively.Like you mentioned, limit food 3 hours before bed.Limit liquid intake 2 hours before bed.Limit light sources 1 hour before bed, especi...

prepare your mind

lessons

Today I learned about the Prepare your Mind concept from Sebastian Wallaby, writer of the Infinity Machine (DeepMind story). He was asked by Tim Ferriss, what would he put on a billboard. He said, “prepare your mind”....

luxury-software

https://www.lennysnewsletter.com/p/father-of-the-ipod-and-iphone-onI was impressed by Tony Fadell’s quote of writing “luxury software”. He compare Claude Code’s leaked codebase to H&M. A mess, caused by engineers ...

PG will not run CTEs unreferenced

Postgres will not run any CTEs not referenced in the main query. It’s a form of optimization in newer versions.E.g.,WITH will_not_run AS (SELECT 1/0), ok AS (SELECT 1)SELECT * FROM ok;

Primary and second replicas in Postgres

database

In Postgres, you can have a primary read/write instance, and a read only hot-standby to serve requests at a high volume. When you update the primary replica, it sends updates via a stream of logs to the replica.If the...

All TILs By Topic

database

health

lessons

llm