Latest Posts

Telefonica-Probleme der letzten fünf Tage Deutsche Fehleinschätzungen des politischen Spektrums der USA: Wie Musk zum Rechtsextremen wird Gegenposition zum Offenen Brief der Emma-Redaktion Example C++ Code for Using Shared Memory Conforming to the POSIX Standard, Essentials Only! Fridays for Autocracy Verbreitete Fehler im Deutschen, heute die Konfrontation Ein Wort zu MEDION und dem Notebook MEDION Erazor Beast X20 (No) Problems with deskpi and deskpi-config (anymore :) How to bypass at least some paywalls Wie man ein paar Paywalls vielleicht umgehen kann

Example C++ Code for Using Shared Memory Conforming to the POSIX Standard, Essentials Only!

Introduction After searching the net for exactly this, an example of C++ code for using shared memory conforming to the POSIX standard but stripped down to the mere essentials, I had to do it myself. A big help was Logan Chien‘s website, although his code was written in C only. So I had to convert it. You find Logans’s nicely elaborated and well explained stuff here: What the Code Example Does It takes information via stdin and thus can be fed by piping stuff into it. This information can be text, that’s the purpose I’ve intended: Take a smallRead More/Weiterlesen

(No) Problems with deskpi and deskpi-config (anymore :)

After you have installed the OS of your choice on the DeskPi Pro, you can’t use the frontpanel USB ports and there is no fan control, too. The standard recommendation goes as follows: If your system has gcc installed, enter this command, if not, read the next paragraphs first: git clone What’s missing here is: You should do this under your normal user account. If you have successfully done this, you will have a new directory deskpi More precise: ~/deskpi The sudo/root problem Change into this directory and type sudo You may choose your appropriate install script, ofRead More/Weiterlesen

Keywords: systemd sshfs mount

Recently I had a bit of a headache trying to set up a systemd service which should mount specific resources during boot time. The problems were many, since it was my first self-created systemd service (I was only familiar with SysV over the years), so there were many things I tried, many fails and tons of reboots. But one major problem turned out to be the one getting me in all this trouble in the first place: I did not know that systemd revokes all mounts set up by any service it has fired up, as soon as it exitsRead More/Weiterlesen

Linux Mint: Brightness buttons do not work

On my Lenovo ThinkPad W510 the brightness up/down buttons did not work after the installation of Linux Mint Uma. More precise, the graphical interface showing the brightness bar did pop up, but it had no visual effect on the screen. To resolve this issue try this: If you do not have the file /etc/X11/xorg.conf and have an Nvidia graphics card, you may create an xorg.conf by the command sudo nvidia-xconfig Edit /etc/X11/xorg.conf. In its Section “Device” enter an additional line: Option “RegistryDwords” “EnableBrightnessControl=1” Edit /etc/default/grub and correct the contents of GRUB_CMDLINE_LINUX_DEFAULT: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash acpi_backlight=vendor acpi_osi=linux” Update grub by sudo update-grubRead More/Weiterlesen

Evolution error msg (Google Mail / gmail)

When I started up Evolution this morning, it presented me with an error like The name :1.60 was not provided by any .service files (1.60 may be another number in your case) and wouldn’t let me open my Google mail account. Several attempts to reconnect to the service failed. Fortunately, the solution is quite easy, enter the following command on a console window: evolution –force-shutdown It seems as if Evolution runs into an error at startup from time to time.

The Veritasium Youtube clickbait monster: The Big Misconception About Electricity

Veritasium is a big and successful channel on Youtube, everyone with some interest in science knows it. And recently, this channel has published this: This is the video title image as shown in my watch history: Below is a link on a small playlist containing the link above as well as two responses to the scenario from EEVblog and Spin Up Science with Dr Ben Miles: There’s a lot of discussion around this video, it has attracted about 7 million (!) people at the time of this writing, which is enormous for a topic like this (at leastRead More/Weiterlesen

Kubuntu: How to access your phone via the commandline

When I connected my phone to my Kubuntu laptop using a USB cable I experienced an astonishing phenomenon: Opening up a Dolphin (file manager) window I could easily navigate to it, browse the whole directory contents, but when I tried to get there via commandline I had no chance at all! Same for Double Commander, of course. Dolphin presents the phone as a device mounted by means of mtp (Media Transfer Protocol). I started to install jmtpfs, just as one example. But launching jmtpfs it threw this error: Device 0 (VID=12d1 and PID=107e) is a Huawei P9 Plus. error returnedRead More/Weiterlesen

Creating a developer cycle within Atom (edit, compile, run, check output)

The fabulous Atom editor lacks one feature out of the box, and that is a developer’s cycle for compiler languages (or similar applications). Compared to Visual Studio Code it’s exactly one thing missing: Build/compile and run in a console window which is part of the IDE! Okay, Atom is no IDE! At least not in its basic configuration. But nevertheless I wondered how an editor which is so feature-rich and ingeniously constructed, couldn’t offer such a feature. You may use console windows in one or more of Atom’s panes, but you can’t send any output into these consoles nor canRead More/Weiterlesen

How to animate a plot in RStudio

The first thing I came across was how to construct a hexagon in R. After I figured out how to define one and how to plot it, the next idea was to animate it. And this is the source code: # Hexagon —————————————————————- # Activate plot window prior to start # Aspect ratio can be set using xlim # Limit for loop counter: -G thru +G: G = 240 # Loop counter: i = -G; # Setting direction to upwards: ri = 1; while(i == i) { a=-i; b=i; U <- c(cos((a+90)*2*pi/360), cos((a+30)*2*pi/360), cos((a+330)*2*pi/360), cos((a+270)*2*pi/360), cos((a+210)*2*pi/360), cos((a+150)*2*pi/360), cos((a+90)*2*pi/360)); V <-Read More/Weiterlesen