Skip to content

Instantly share code, notes, and snippets.

Unlogischheiten

Vielleicht entsteht hieraus einmal ein Blog. Oder ein Buch. Gern kommentieren!

  1. Warum gibt es in der deuschen Spache kein Wort für unlogische Dinge? - Na gut, erfinden wir eben "Unlogischheiten"
  2. Warum ist vor der Kasse ein viel zu langes Warentransportband, aber nach der Kasse (wo der Kunde die Sachen einpacken muss) ist kein Warentransportband? - Wenn nach der Kasse ein Warentransportband in der gleichen Länge wie vor der Kasse wäre, würde das Einpacken und somit das Kassieren doch wesentlich beschleunigt
  3. Warum öffnen Läden dann, wenn die arbeitende (und somit Geld verdienende) Bevölkerung arbeitet? - Zumindest zwischen 9 und 17 Uhr könnten Retailer eigentlich schließen, weil Leute die Geld verdienen dann keine Zeit haben einzukaufen. Es wäre doch viel logischer, Läden erst um 17 Uhr zu öffnen und dann bis 2 Uhr offen zu lassen
  4. Warum reduzieren Läden "wegen Corona" ihre Öffnungszeiten? - Logisch wäre, die Öffnungszeiten zu verlängern, damit sich die gleiche Men

HP Color LaserJet CM2320 MFP series Print Scan Fax driver for macOS 10.x

HP seems to make it intentionally hard to find this driver. It is not listed on https://support.hp.com/us-en/drivers/selfservice/hp-color-laserjet-cm2320-multifunction-printer-series/3597338/model/3597358 - even though it works perfectly fine even on "newer" versions of macOS such as 10.11.

<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.1" authoringToolBuild="172">
@probonopd
probonopd / start-hello
Created April 30, 2021 17:28
Temporary version that should work on Raspberry Pi
#!/bin/sh
set +x
# This script is intended to be invoked by a desktop file
# from /usr/local/share/xsessions
# where the display manager (login window) picks it up
# Disable core dumps for applications
ulimit -c 0

Simple Parametrized Snap-fit Enclosure for a PCB in Onshape

One killer application for 3D printing is building enclosures for electronics prototypes. Many hobbyists use tools like TinkerCAD to build simple project boxes that are held together using screws.

A more elegant solution is to use snapfit enclosures that consist of two parts that can be snapped together with a satisfying click and without the need for additional parts or tools. Depending on how these snap-fits are designed, pulling the parts apart can be very easy to next to impossible.

Key principles

  • The part must not be under stress after being snapped together. PLA slowly deforms over time if it is under pressure for a prolonged period of time. Hence avoid "friction fits" where to parts are joined simply due to the friction betwee them
  • Always use clearance, at least in x and y dimensions. 0.1mm for a well-tuned FDM printer to 0.2mm for larger nozzles and/or faster printing situations
@probonopd
probonopd / sheepshaver-freebsd.md
Last active December 17, 2022 19:16
SheepShaver on FreeBSD, it can be done!

SheepShaver on FreeBSD

Set e.g., 800x600 with 60fps or fullscreen and it works!

Needs

sudo sysctl security.bsd.map_at_zero=1
@probonopd
probonopd / Wayland.md
Last active November 7, 2025 01:58
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Feature comparison

@probonopd
probonopd / dejavu.txt
Last active September 19, 2020 09:36
How to remove these fonts without removing KDE? Create dummy packages with the same name?
$ sudo pkg remove dejavu
Password:
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 162 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
accounts-qml-module: 0.7
adwaita-icon-theme: 3.28.0
akonadi: 20.04.2
baloo-widgets: 20.04.2

Fontconfig, Chrome, and URW fonts were driving me insane

tl;dr: Many versions of the URW fonts coming with Linux distributions and, in my case, FreeBSD, seem to be broken. Uninstall them and use those from https://github.com/ArtifexSoftware/urw-base35-fonts/ instead. It does wonders!

I can't stand "metric compatible" surrogate fonts like DejaVu, Liberation, Bitstream Vera. I would much rather have fonts that at least optically largely match "original" fonts, such as URW Nimbus Sans L (which is a rebranded Helvetica). Yet most open source desktops come with "metric compatible" surrogate fonts deeply pre-wired: When you try to uninstall them using the package manager, then due to the way the package dependencies work the whole graphical desktop gets uninstalled. When you let the packages installed but delete the font files, other breakage occurs. So Fontconfig to the rescue... not.

Example (scoll all the way down for a working one)

I am trying to replace certain sans serif fonts with _Nimbus Sans L