Very niche TIL today: how to use a Python mock to simulate a LimitExceededException from AWS Textract via boto, but then have that same API call pretend to succeed when it is made a second time (I was exercising an automatic retry feature)
til.simonwillison.net/pytest/mocking…
✍️ New post on the process I use for running Django migrations “by hand” with the database’s SQL console.
Useful when migrating larger, busy databases and you want to keep a close eye on monitoring, or use extra tools to e.g. stop blocking queries.
adamj.eu/tech/2022/06/2…
Some years back my wife and I got into the habit of asking each other
‘do you want comfort or solutions’ when the other was having a bad time. That one sentence can save us from an argument 9/10 times.
Parenting is a bit like being the teammates looking in on a Crystal Maze challenge. You’re trying to keep calm and give useful instructions but you end up shouting the same things over and over and no one gets a crystal or a snack
How to stop wasting introverts’ skills? 1️⃣ Allow introverts solitude to do their best work 2️⃣ Learn how to facilitate meetings where everyone can participate. CIRCULATE AGENDAS IN ADVANCE. Allow people to give ideas after meetings
@alexstapleton The fancy tap also does hot water, which I find not-quite-hot-enough for my tea but is quicker to put in kettle than starting with regular tap water
It was assumed that 40% of the costs Quebec’s subsidized childcare program would come from the income taxes generated from parents who can now work. Instead, it generated more income for the province than it costs.
“The program is paying for itself.”
Raucous applause, please, for @octopus_energy and their fully documented API, complete with example CURL requests pre-populated with my API key:
developer.octopus.energy/docs/api/
Hard to imagine the Big Six doing this.
the wisdom of age is mainly knowing which fancy products are worth the money. high-end sheets? alas, absolutely. weirdly expensive condiments? literally never.