Skip to content

Instantly share code, notes, and snippets.

@probonopd
probonopd / Wayland.md
Last active April 24, 2024 20:06
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

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.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

Controlling 27.145 MHz BOSE Lifestyle with Raspberry Pi

I want to tie my BOSE Lifestyle system into my smart home control setup like this:

mute

The Remote Control RC9 for BOSE Lifestyle 3, 5, 8, 12 systems is using radio rather than infrared. Also, since these systems do not have other ways to control them, it is difficult to integrate them into home automation setups. Also, there are no replacement remotes available and even worn-down used original remotes go for absurd prices on eBay.

This is why I was curious how these devices could be controlled using the apparently proprietary radio signals.

The sorry state of desk phones, 2018

Seemingly I cannot find ONE good desk phone as of 2018 that is not either technically outdated, or cheap-feeling, or unusable, or all of that...

Must have

  • Desk phone
  • SIP
  • G.722
  • "Unlimited" size of address book
@probonopd
probonopd / babylon2quickdic.sh
Last active March 18, 2024 03:35
Convert Babylon dictionary to QuickDic. It is unclear under which the Babylon "free" dictionaries are. They appear to be crowd-sourced and there is no aparent license.
sudo apt-get update
sudo apt-get install -y git python-tk tix default-jre
git clone https://github.com/ilius/pyglossary.git
cd pyglossary/
# Dictionary Details
# Created by: ADO
# Submitted to Babylon's Dictionary, Translation and Information
# Platform under the title: ADO's SPANISCH-DEUTSCH
# Number of definitions found in this dictionary: 65693
@probonopd
probonopd / spur1.md
Last active February 13, 2024 21:25

Märklin Spur 1 digitalisieren

Update 2024: Hier hat es jemand gemacht (mit Fotos): https://www.stummiforum.de/t160883f47-Digitalisierung-M-rklin-BR-aus-Startpackung.html (ESU 51965 + Decoder in Märklin BR 80 aus Startpackung 5500)

Mit Märklin-Bordmitteln sind die Preise für das Unterfangen, 3 Spur 1 Loks aus dem 80ern zu digitalisieren und digital zu fahren, im Jahr 2024 prohibitiv (in Summe wohl ca. 2.000 EUR). Mit Open Source und Fremdhardware ginge es wohl locker für ein Fünftel(!) davon. Wenn das jemand von Märklin liest: Da habt ihr noch eine Marktlücke (Stichwort: 5A Anschlussbox für die Spur 1 und erschwingliche Nachrüstsätze inkl. Permantentmagneten und Lokdecodern für die Spur 1). Ist diese Marktlücke nicht groß genug um lukrativ zu sein?

Lokomotiven

Aus den 80ern:

@probonopd
probonopd / Send infrared commands from the Arduino to the iRobot Roomba
Created March 17, 2013 10:42
Send infrared commands from the Arduino to the iRobot Roomba. Use a transistor to drive the IR LED from pin D3 for maximal range.
#include <IRremote.h>
/*
Send infrared commands from the Arduino to the iRobot Roomba
by probono
2013-03-17 Initial release

Wayland transition notes for X11 users

Please comment below to contribute. Thanks!

X11 concept Wayland concept Notes
"Window" "Top-level Shell Surface" An entire window, including window decorations
X11 (the specfication) Wayland (the protocols) Neither X11 nor Wayland are binaries that can be installed
Xorg, one universally shared default implementation Multiple competing Wayland compositors Unfortunately there is no universally used single Wayland compositor; apparently every desktop environment does its own, and as a result what works in one may not work in another
export DISPLAY=... export WAYLAND_DISPLAY=... How to know which WAYLAND_DISPLAY one needs to export? The sockets (and their names) should be located in /run/user/*. If WAYLAND_SOCKET is detected, the client will prefer to use the socket provided using that environment variable.

DJI Mini 4 Pro Review

Pros

Watch the reviews, they usually show the pros. Key ones:

  • Size: Can actually carry this around casually
  • 360 degrees obstacle avoidance (except at night and in sport mode)
  • Great tracking modes
  • C0 certified

A honest Xiaomi Redmi 10C review focusing on what matters

A honest review focusing on what really matters in smartphones: Affordable price, reasonable performance and battery life, good software, no bloatware, ease of unlocking the bootloader, data protection and privacy. Most reviews on the net focus on superficial, unimportant stuff like an extra megapixel here or the form of the display notch there.

image

tl;dr: It is like Xiaomi is making it intentionally hard to get rid of their spyware-ridden, bloated firmware (requiring a SIM card, Mi account, Windows software, and a full week of waiting time). DO NOT BUY XIAOMI PHONES!

Looking at the sub-150 EUR mid range category, comparing with the Moto G31 and G22. The Xiaomi Redmi 10C has been for sale at ALDI in Germany for 139 EUR as of August 2022. (Actually, the Lenovo-owned company MEDION is distributing this phone to ALDI, what an irony that the