You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.
A Very Subtle Bug, or how to re-enable SIGPIPE in the subprocess child. #python
My general advice for maximizing the battery is only use your battery as much as you need, i.e. charge it as often as possible, and as little as possible. If you need a rule of thumb, stay within 30%-80%. Wouldn’t charging a lithium battery to 80% only defeat the purpose of putting the battery into longer use in the first place?
Poor man “fd(find)” command:
#!/bin/sh
find . -iname "*$1*" 2>/dev/null
♪ New Order · Sub-Culture
TIL that Spotify originally relied on Fisher-Yates algorithm to shuffle their playlists.
A computer game taking the shape of instant messaging software. The inherently paradoxical goal of the game requires no small amount of strategy, wit and cunning: The main objective is gaining as large a following of people as possible while simultaneously getting as many people as possible banned from the game. — Explaining the Internet in 2020
Environment variables for Wayland hackers.
Note to myself:
$MOZ_ENABLE_WAYLAND
Enables Wayland for Mozilla products (notably Firefox) if set to 1. Firefox uses GTK so setting GTK_BACKEND=wayland will force it to run on Wayland regardless of if MOZ_ENABLE_WAYLAND. However, it will default to X on GDK_BACKEND=wayland,x11 unless MOZ_ENABLE_WAYLAND=1 is set.
There are a lot of small websites on the Internet: Interesting websites, beautiful websites, unique websites. Unfortunately they are incredibly hard to find. You cannot find them on Google or Reddit, and while you can stumble onto them with my search engine, it is not in a very directed fashion. — The Small Website Discoverability Crisis
Human optimism leads us to believe that we can easily know where a program spends most of its time. — Four Kinds of Optimisation