bleistift2

joined 8 months ago
[–] bleistift2@sopuli.xyz 2 points 41 minutes ago (1 children)

Aber: Kunst draußen war genial (malt einen Baum). Sport draußen ebenso (Joggen durch den kleinen Park und Treppen rauf und runter).

Kann ich gelten lassen.

Auch mal ein paar Stunden Deutsch im Jahr waren schön. Die Natur genießen und darüber schreiben ist toll.

Soweit ich mich erinnern kann, gab’s derart kreatives Schreiben bei uns nicht.

Physik wiederum sollte je nach Thema auch wunderbar funktionieren.

Physik leidet an den Problemen, die ich oben schon geschrieben habe. Sobald was erklärt wird, kriegen nur die 3 Meter um den Lehrer herum irgendwas mit. Ich erinnere mich daran, dass wir zweimal rausgegangen sind. Das Kritische daran war, dass zuerst drinnen erklärt wurde, dann wurde draußen irgendwas gezeigt oder beobachtet und dann ging es sofort wieder rein für die Nachbesprechung.

Biologie auch

Hey, guckt mal! Hier ist ein Dreifachgewickelter Grüngelbziesel. *5 Kinder stehen drum rum, 25 Kinder sehen nur die Ärsche ihrer Vordermänner.

[–] bleistift2@sopuli.xyz 2 points 2 hours ago (1 children)

My initial guess was that sudo would eat up the echo’d foo as the password. Maybe sudo works differently when invoked via zsh?

[–] bleistift2@sopuli.xyz 5 points 3 hours ago (5 children)

Can’t reproduce.

16:22:48:~/tmp$ echo foo | sudo tee newfile
[sudo] Passwort für bleistift2:         
foo

16:23:02:~/tmp$ ls -l newfile
-rw-r--r-- 1 root root 4 Feb 23 16:22 newfile
[–] bleistift2@sopuli.xyz 25 points 3 hours ago* (last edited 3 hours ago)

(Rick and Morty, S01E05)

 

I’m using two keyboard layouts, German (QWERTZ) and German (neo).

I’d like to be able to switch between these two using the Super+Space shortcut. However, that only works for switching from QWERTZ to neo. When the current layout is neo, Super+Space does nothing.

On the other hand, when I’m in neo, Shift+Space does switch the layout, but it’s not supposed to.

How can I fix these two issues?

These are my keyboard settings from the system settings UI:

System:
  Kernel: 5.15.0-133-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4
    tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia
    base: Ubuntu 22.04 jammy
[–] bleistift2@sopuli.xyz 10 points 4 hours ago* (last edited 4 hours ago) (1 children)

Who will join me in my war against people who use the backtick as a substitute for the apostrophe?

[–] bleistift2@sopuli.xyz 5 points 4 hours ago* (last edited 4 hours ago)

internen Wiki

lol

Erst kürzlich hat er nach dem Zweck einer Datenbank gefragt.

Mein aufrichtiges Beileid.

[–] bleistift2@sopuli.xyz 8 points 5 hours ago (3 children)

So etwas gibt’s bei uns auch. Ich erkläre mir das damit, dass Wissen, das man nicht regelmäßig braucht, zugunsten der ganzen neuen Informationen, die dies Kollegy verarbeiten muss, verworfen wird.

Ich weiß nach meinem Urlaub auch nicht mehr, wie man For-Schleifen schreibt.

[–] bleistift2@sopuli.xyz 4 points 5 hours ago

If you’re not zooming by at 30 km/h, this should be no more than a little bumpy. I guess that’s intended, since this looks like sidewalk/plaza, where you’d expect lots of pedestrians.

[–] bleistift2@sopuli.xyz 4 points 6 hours ago (1 children)

No need to travel if you’re into that kind of thing. We can do it right here :-*

[–] bleistift2@sopuli.xyz 8 points 6 hours ago (3 children)

Hatte mal jemand von euch eine Stunde draußen Unterricht? Man hört nichts. Der Schall verfliegt einfach im Nirvana, wenn man nicht in einer großen Box ist, die das verhindert. Außerdem überall Rasenmäher oder Autos. Selbst Vögel sind verdammt laut, wenn man versucht, zuzuhören.

Ganz zu schweigen von Regen. Entweder wird man nass oder man hat 20 Regenschirme, die alle krach machen oder man versteckt sich unter einer Kapuze, die die Ohren bedeckt oder man flieht unter ein Dach, das noch mehr scheppert als die Regenschirme.

Draußen zu unterrichten klingt gut und ist beschissen.

[–] bleistift2@sopuli.xyz 1 points 6 hours ago

„Mädchen- und Kinderkleidung”

[–] bleistift2@sopuli.xyz 3 points 6 hours ago (3 children)

Why the hell did you add these black bars?

 

Kann ich das auch für Menschen haben?

 
 

Auch wenn es aussieht wie ein geschreddertes Küken, habe ich aus diesem Schreiben keine sinnändernden Abschnitte entfernt.

Die monatliche Grundgebühr […] beträgt ab dem 03.04.2025 32,79€ statt bislang 31,66€.

Die [… Preisanpassung] erfolgt auf Grundlage der Preisanpassungsklausel gemäß Ziffer 9 der […] AGB.

[…]

Wir […] können […] Ihnen [außerdem] mitteilen, dass wir […] die Preisanpassungsklausel […] aus Ihren AGB streichen.

[…]

Sie können der Preispanpassung […] widersprechen […]. Widersprechen Sie […], läuft der Vertrag zu den bisherigen Konditionen weiter.

Was geht hier vor sich?

 
 
 
 

First, some context.

I’ve written a program that starts running when I log on and produces data every two seconds. This daemon keeps all the collected data in memory until it gets terminated (usually when I shutdown the system), when it will dump the collected data to a file on disk.

(These are questionable design decisions, I know, but not the point of this post. Though feel free to comment on them, anyway).

I’ve written another program that reads the data file and graphs it. To get the most current data, I can send the USR1 signal to the daemon, which causes it to dump its data immediately. After restarting the renderer, I can analyze the most current data.

The tech (pregnant women and those faint of heart, be warned)

  • The daemon is written in TypeScript and executed through a on-the-fly transpiler in Node.
  • The data file is just a boring JSON dump.
  • systemd is in charge of starting and stopping the daemon
  • The renderer is a static web page served via a python3 server that uses compiled TypeScript to draw pretty lines on the screen via a charting library.
  • All runs on Linux. Mint, to be specific.

As I’m looking for general ideas for my problem, you are free to ignore the specifics of that tech stack and pretend everything was written in Rust.

Now to the question.

I would like to get rid of the manual sending of the signal and refreshing the web page. I would like your opinions on how to go about this. The aim is to start the web server serving the drawing code and have each data point appear as it is generated by the daemon.

My own idea (feel free to ignore)

My first intuition about this was to have the daemon send its data through a Unix pipe. Using a web server, I could then forward these messages through a WebSocket to the renderer frontend. However, it’s not guaranteed that the renderer will ever start, so a lot of messages would queue up in that pipe – if that is even possible; haven’t researched that yet.

I’d need a way for the web server to inform the daemon to start writing its data to a socket, and also a way to stop these messages. How do I do that?

I could include the web server that serves the renderer in the daemon process. That would eliminate the need for IPC. However, I’m not sure if that isn’t too much mixing of concerns. I would like to have the code that produces the data to be as small as possible, so I can be reasonably confident that it’s capable of running in the background for an extended period of time without crashing.

Another way would be to use signals like I did for the dumping of data. The web server could send, for instance, USR2 to make the daemon write its data to a pipe. But This scenario doesn’t scale well – what if I want to deliver different kinds of messages to the daemon? There are only so many signals.

 
 
 
view more: next ›