dgelessus @dgelessus.mastodon.social.ap.brid.gy · 10h(Apologies to Claude Lecommandeur, but I had to.) (Apologies to all other people named Claude as well.) 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 10h> AI-free operating system > look inside > Claude's Tab Window Manager man.netbsd.org/ctwm.1 #NetBSDman.netbsd.orgctwm(1) - NetBSD Manual Pages 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 18/10/2026"TIL" isn't quite true - I'm sure I've seen something about "reserved blocks" before, when creating an ext4 partition, but didn't properly realize what that means until now. The usual tools for looking at disk usage don't explicitly say "50 GB reserved" or anything. 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 18/10/2026TIL that ext2/3/4 on Linux by default arbitrarily reserves 5 % of space for use by root. That's quite a few GBs on modern disks! I'm sure this makes sense on large shared servers with actual administrators, but on a desktop system or a pure data disk, that's just 20-200 GB wasted... 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 18/10/2026WHYYY do old elastic hairbands spontaneously turn into a substance with the consistency of earwax why did I put this in my hair aaaa 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 18/10/2026@PolyWolf oh so *that's* what Python's antigravity module is for! 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 17/10/2026[Was sagt der BeOS-Nachfolger zum Maskottchen von Gentoo?] Hi, Kuh! 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 17/10/2026When programming with POSIX threads, beware of functions whose name ends with _np, such as pthread_setname_np. This indicates that they implement a NP-hard problem (such as "naming things") and may be very inefficient! #WrongFacts 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 15/10/2026... the *what* global compute cluster? 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 15/10/2026me: "New Terms of Service? At this time of year, at this time of day, in this part of the European Union, localized entirely within my System Settings.app?" Apple: "Yes!" me: "May I see it?" Apple: "No." 010 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 13/10/2026@b0rk wanted to learn about just-in-time compilation, but someone misheard the acronym 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 13/10/2026@glyph Pythonista's update cycle is like half the reason why I refuse to take part in the Python ecosystem's scheduled old-version-dropping lol (To be clear, I have no issues with maintainers dropping old Pythons if doing so benefits them in some way! And I can understand not wanting 8 Pythons […]mastodon.socialOriginal post on mastodon.social 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 11/10/2026See also this Stack Overflow question, via which I found the two blog posts I linked here. This is basically all you'll find about this feature (?) online. stackoverflow.com/questions/8635359… 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 11/10/2026Perhaps the only real use of the class field: Windows itself uses it to store some encryption keys related to local password storage. This seems like intentional obfuscation, using this field specifically because it can't be viewed easily! moyix.blogspot.com/2008/02/syskey-a…moyix.blogspot.comSysKey and the SAMThe Security Accounts Manager The Security Accounts Manager , or SAM, has been used by Windows since the days of NT to store information on ... 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 11/10/2026In practice, it's almost always left blank. When something does use it, it tends to be something pointless like the program's name or literally just "Class". AFAICT, you can also only set the class when creating a key and can't change it afterwards, making it inconvenient for many things. 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 11/10/2026What's this field for? Nobody knows. The Win32 documentation only says that it's "user-defined" and gives no hints about its intended purpose. Almost nothing is written about it online. Even Raymond Chen has no idea! devblogs.microsoft.com/oldnewthing/…devblogs.microsoft.comWhat is the terminology for describing the various parts of the registry? - The Old New ThingHives, keys, values, types, and data. As I noted some years ago, the file that holds the registry data is called a hive. A hive contains a tree of keys. 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 11/10/2026Did you know that every Windows registry key has a secret extra field that regedit won't show you? Okay it's not secret at all, it's openly documented: the "class" field. But no standard Windows tool shows it! learn.microsoft.com/en-us/windows/w…learn.microsoft.comRegQueryInfoKeyW function (winreg.h) - Win32 appsRetrieves information about the specified registry key. (Unicode) 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 08/10/2026if you're curious: the link pointed to gh.io/AAzfaht, which redirects to some old announcement about how privacy is important to them github.blog/news-insights/company-n…github.blog 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 08/10/2026okay, thanks for keeping me informed!. 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 06/10/2026Example: >>> sorted(["4", "1", "2", "02"], key=int) ['1', '2', '02', '4'] >>> sorted(["4", "1", "2", "02"], key=int, reverse=True) ['4', '2', '02', '1'] >>> list(reversed(sorted(["4", "1", "2", "02"], key=int))) ['4', '02', '2', '1'] The last call flips the equal elements "2" and "02". 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 06/10/2026TIL: Python's sort/sorted with reverse=True isn't always the same as simply reversing the sorted list! If some of the elements are equal according to the sort key, then reverse=True preserves the relative order of those elements, where reversing the sorted list would reverse the equal elements too. 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 06/10/2026Thankfully, I was only doing this because I was about to re-image the machine, so nothing was lost. Would have been worse if I had used the live USB to try to fix the old install! (Well, most likely I would've just turned off Secure Boot temporarily until I updated the system, but whatever.) 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 06/10/2026A "fun" Secure Boot problem today: Had a laptop with an older Ubuntu install and booted it off a current Debian live USB. After I did that, it refused to load the installed GRUB, which worked fine before! I assume the Debian live system updated some list so the old GRUB is now considered unsafe? 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 02/10/2026@glyph If all you care about is *any kind* of more up-to-date Python on iOS, there's the a-Shell family of apps, which includes Python 3.13 at the moment. That has a much more bare-bones UI and no custom libraries though, so it's not really a replacement for Pythonista […]mastodon.socialOriginal post on mastodon.social 110 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 02/10/2026@glyph I was going to suggest Pyto, which I've heard good things about, though I haven't tried it myself. But apparently that's also stuck on Python 3.10 🫠 pyto.apppyto.appPyto IDEPython 3.10 and C/C++ on iOS 110 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 27/09/2026(yes, they call it "2026 Terms of Service" when the effective date is 2027-01-01, don't ask me why) 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 27/09/2026Dropbox will disallow users under 18, starting in 2027. Huh. Not clear if this also applies to users without an accout who just want to download a public file, but I think it does? This seems... unusual. www.dropbox.com/en/terms2026dropbox.com2026 Terms of Service - Dropbox2026 Terms of Service - Dropbox 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 19/09/2026If clit isn't to your liking, there aren't many alternatives unfortunately. The best I could find is "scrot". It stands for "screenshot" and absolutely nothing else. manpages.debian.org/trixie/scrot/sc…manpages.debian.orgscrot(1) — scrot — Debian trixie — Debian Manpages 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 19/09/2026This went around as a joke a while ago, but apparently there's a real command called "clit" in many Linux distros. It stands for "convert .LIT" and absolutely nothing else, mhm. manpages.debian.org/trixie/convlit/… 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 14/09/2026thanks, random Wikipedia editor. I might have been confused about the existence of Luxembourg otherwise en.wikipedia.org/wiki/List_of_Ig_No… 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 14/09/2026[spoiler] The second string being printed has a carriage return character at the end. Printed with escaping, it would be ERROR: "hello" != "hello\r" Printed unescaped in a terminal, the carriage return moves the cursor to the beginning of the line, so all you see is the ] appearing in a […]mastodon.socialOriginal post on mastodon.social 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 14/09/2026Protip: When you print a string variable for debugging, use a printing mode that escapes special characters, like Python's repr. If the language doesn't have that, at least put brackets or quotes around the string value! Saves a lot of confusion when you see something like: ]RROR: [hello] != [hello 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 14/09/2026Perhaps this is why mastodon.social rate-limits so often, even when logged in? 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 14/09/2026So apparently if you're in the Mastodon web interface and press the L key, it focuses... something at the absolute bottom of the page, making it load more and more of the infinite scrollback, *repeatedly forever*. Which can be useful! I'm just a little surprised that they have a built-in DoS key. 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 07/09/2026Perhaps make the code generator output folder its own separate repo and always commit there along with the main repo, somehow? (Probably not as a Git submodule, because then you'd get constant conflicts, on top of all the other headaches of Git submodules.) 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 07/09/2026I am almost fully serious about this. You don't want to *literally* do this of course, because at scale it bloats the repo and generates pointless conflicts. But whenever I work on a code generator whose output *is* committed into the repo, I'm quite a bit more confident about my changes! 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 07/09/2026Committing generated code to version control is pretty cool actually, because it makes it easy to see how your changes to the code generator are affecting the output 101 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 06/09/2026It's so unsatisfying that even though C has conditional compilation, you basically can't do feature detection with it. You don't get reflection, because the preprocessor isn't really part of the language, and roughly none of the standards-guaranteed macros tell you the things you want to test for. 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 31/08/2026The French word for "peanuts" is "arachides", which means that every time I look at the list of ingredients for French chocolate I will go "hey look there's spiders in it" 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 31/08/2026[The Message from Deep Space, act 3] I also find the other characters' discussion about the aliens' Y/Z axes really funny. "oooh, the aliens put the depth axis before the height axis! That must mean that depth is more important to the aliens than the vertical! What does this say about their […]mastodon.socialOriginal post on mastodon.social 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 31/08/2026[The Message from Deep Space, act 3] Couldn't the aliens be more consistent with their math syntax? They start off with postfix notation for arithmetic, but switch to infix for... everything else, including relational/logical operators! And that equality operator! Aliens, you can't just use […]mastodon.socialOriginal post on mastodon.social 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 28/08/2026* Applications 36 GB * Desktop 1 GB * Documents 9 GB * Downloads 860 GB * Music 23 GB * Pictures 17 GB someone please help me budget this, my home folder is dying 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 23/08/2026soooo is it safe/a good idea to monkey-patch Python standard library classes/instances? I know the more robust solution is to write a wrapper class. But it's so inconvenient to write a delegating wrapper just to override one method, when you can just monkey-patch it in a couple of lines 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 20/08/2026This behavior all makes more sense for the other compression algorithm modules (bz2, lzma, zstd), which are not quite as essential to the modern software world as zlib and might more realistically be missing. (Though for bz2 and lzma that still seems pretty unlikely.) 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 20/08/2026Even the stdlib's zipfile module works if zlib is missing - it just won't be able to read/write ZIP files with deflate compression (so practically speaking, it will only support uncompressed ZIP files). 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 20/08/2026TIL that the zlib module in the Python stdlib is technically still an optional module, meaning that you're allowed to build CPython without linking against zlib and it will mostly work. I would've expected zlib to be a required dependency by now! 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 19/08/2026References: * PRONOM User Requirements, section 2, "The PRONOM format signature model": www.nationalarchives.gov.uk/aboutap… * freedesktop.org Shared MIME-info Database spec, section 2.12, "Recommended checking order" […]mastodon.socialOriginal post on mastodon.social 000 0
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 19/08/2026anyway, for my use case, it makes sense to trust the data signature check more, because the tool is very developer-oriented, the internal file format is what actually matters here, and it's a one-off guess that can already be easily overridden. Just thought the differences are interesting! 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 19/08/2026In contrast, the shared MIME-info database is used to determine file types in free software desktop systems (e. g. in the KDE file browser), where it's more important that the check is fast and makes sense to the user. Here, it's an advantage that the user can rename files to override their type! 100 1
dgelessus @dgelessus.mastodon.social.ap.brid.gy · 19/08/2026This makes perfect sense, as they're quite different applications/scenarios. PRONOM is from the National Archives of the UK and they probably want to check that files remain readable in the future, so they need to know exact file formats with more detail and reliability than the extension offers. 100 1