19 karma · joined October 11, 2022
> Each bird tracks about 6-7 neighbors. Not the closest by distance, but the closest by rank. Bird number 1 through 7, sorted by proximity.
I mean, it sounds like it is exactly the 7 closest birds by distance?
The way I usually pitch the book is that Mark is not an MD, or a scientific expert on the topic, but he is a patient who's been through it, is very interested, and explains to you how it worked for him, and what he knows about the topic like a friend would. There are some mistakes, some things are a bit awkwardly explain, but the book is overall a tremendous read for anyone interested in anything dealing with anxiety, ocd, or more generally a mind too keen on spinning in a wheel.
> I ended up writing a small JavaScript function to maximize font size: it makes the text invisible (via CSS visibility: hidden), tries displaying the text at a very large size, and then tries successively smaller font sizes until it finds a size that lets all the text fit. It then makes the text visible again.
That would be a good application for dichotomic search if performance was ever a problem (I doubt it though).
More generally, having elements on a grid of different sizes should hopefully be much more easy once CSS masonry grid is available.