Elektrine lite

← Feed

Ole Begemann

ole@chaos.social

<p>Swift, squirrels, cycling, cities for people not cars. My book: Advanced Swift. Berlin. Languages: de/en.</p><p>Invisible characters: When posting code, I sometimes insert a zero-width space (U+2060) to prevent things from turning into hashtags or mentions. Example: `@⁠escaping #⁠line`. Beware when copy-pasting such code into your editor.</p>

Posts

  • Post #4443105

    @marhei Danke!

  • Post #2419294

    I didn’t know binaries could embed LLDB-specific bytecode for formatting custom data types nicely in the debugger, as shown in this swift-collections PR: https://github.com/apple/swift-collections/pull/607. The code also uses fancy new Swift features to place the bytecode in a specific linker section: @⁠section(&amp;quot;.lldbformatters&amp;quot;) @⁠used let __BasicContainers___RigidArray______formatter: (UInt8, UInt8, …, UInt8) = …

  • Post #2419290

    I just found out that the Text Replacements feature in macOS is somewhat case-sensitive in an interesting way. Example: • In System Settings &amp;gt; Keyboard &amp;gt; Text Replacements, add an entry to replace &amp;quot;:sigma&amp;quot; with &amp;quot;σ&amp;quot;. • This works as expected when you type &amp;quot;:sigma&amp;quot;. *But also*, when you type &amp;quot;:Sigma&amp;quot; with a capital S, it gets replaced with &amp;quot;Σ&amp;quot;, i.e. the corresponding capital letter. (Observed...

  • Post #2419282

    Useful Mac/Unix/Linux terminal command for listing a directory by size (incl. subdirs): du -h -d 1 &amp;lt;DIR&amp;gt; | sort --sort=human-numeric This will list every file/dir in &amp;lt;DIR&amp;gt; with its total size, with the biggest items sorted last (where you don’t have to scroll to see them).

  • Post #2419280

    I wish Sparkle (the Mac app update framework) would keep displaying the release notes after you click the Install button. I often click the button reflexively before actually reading what changed. And the brief wait time while the update is downloading is the perfect reading time.

  • Post #1577697

    I recently learned that German company Telefunken arguably invented the computer mouse. They offered a “Rollkugelsteuerung” (“rolling ball control”) for one of their mainframes in 1968, months before Douglas Engelbart’s “mother of all demos”. Telefunken’s mouse was also more advanced than Engelbart’s mouse as it used a ball instead of two wheels. (Photo credit: Marcin Wichary, CC-BY 2.0, https://www.flickr.com/photos/8399025@N07/2322838281 and https://www.flickr.com/photos/mwichary/2322836557/)

  • Post #1466387

    Pro tip if you’re running a Swift-based web/app server: Watch the Server ∕ Security Updates category on the Swift Forums to get an email notification about new security issues. Click the bell icon and set the status to Watching. https://forums.swift.org/c/server/security-updates/50

  • Post #1132482

    1. German crime reporter asks MS Copilot what it knows about him. 2. Copilot falsely accuses him of child abuse, fraud, theft. 3. Copilot asserts “it is unfortunate that someone with such a criminal past has a family” and provides his (correct!) address and phone number. 4. Reporter files a libel complaint, but prosecutors refuse to take on the case: it’s not a criminal offense because no person committed it. Must be great to be a big tech company. https://www.swr.de/swraktuell/baden-wuerttembe...

  • Post #252952

    Apple Passwords.app data loss PSA: If you edit an entry in Passwords.app and then quit the app without clicking the Save button first, your edits are lost. The app will just quit without popping up a confirmation dialog. Observed on macOS 26.2.