This has nothing to do with the common implementation of recursive watches: when adding watches for dynamically created directories, there is indeed a...
Sometime we may need to scan the filesystem for files and place them into a database.
CREATE TABLE files (
id INTEGER PRIMARY KEY,
path TEXT NOT NULL,...
Sometimes we want to use Termux to connect to the host Android device’s ADB directly. One use case is that on debug builds (builds with ADB root shell...
Reading RISC-V specification is very fun and a totally normal hobby that’s not weird at all. Anyway there is an interesting remark in the specification...
A few weeks ago @shankerwangmiao brought me on a magical journey to debug a race condition in QReadWriteLock. The fix will be live in the v6.11.0 release....
The obvious way to implement a FIFO using SRAM is by using a dual-port SRAM — one port for reading, one for writing. Dual-port SRAMs are expensive (in...
Several days earlier, @dram showed me this piece of C++ code from the WG21 paper P3292R0 that is “miscompiled” by both G++ and Clang++, and convinced...
It’s well known that you can add external programs on Steam to friendly remind your friends that you are doing hard work™ and maybe they should too....
Recently I need to generate a few X.509 certificates for connection authentication in QUIC. A custom root trust anchors is used to sign certificates for...
2025年7月8日
pause() is not enough for scroll-driven animations
When doing navigation in SPA, the scroll position would often experience a sudden change, either done intentionally to return to the top of the newly accessed...
Edited 06-29: updated how to compute the length of the direction vector. See the end of this post.
Intuitively, the Chinese stroke “㇐”U+31D0 has a horizontal...