bleistift2

joined 8 months ago
[–] [email protected] 2 points 13 hours ago

One of the Ursas could have been The Game of Ur

https://en.wikipedia.org/wiki/Royal_Game_of_Ur

[–] [email protected] 31 points 15 hours ago (6 children)

Needs more JPEG

[–] [email protected] 4 points 16 hours ago (3 children)

I feel like someone didn’t get the sarcasm.

[–] [email protected] 7 points 16 hours ago (5 children)

A piece of whose mind? What can I do with it? Consult it? Or do I have to incorporate it into my own mind, such that it becomes indistinguishable?

[–] [email protected] 24 points 16 hours ago (7 children)

Because sex isn’t a big no-no aw my gaawd taboo to everyone?

[–] [email protected] 37 points 16 hours ago (6 children)

Someone doesn’t know that precum can contain sperm, too.

[–] [email protected] 20 points 17 hours ago (1 children)

In my company we’re currently stacking 4-ish AIs to tell a caller the opening hours of the sauna.

[–] [email protected] 0 points 17 hours ago (1 children)

I think this is valid criticism. We buy games to have fun, not to have some more work outside of work. If the game forces you to “git gud” in order to have fun, it’s not doing its job.

Of course some people like the experience of honing a skill in order to overcome the obstacles posed by a game. But a developer cannot expect that of every gamer and not provide any means to reduce the challenge.

[–] [email protected] 4 points 17 hours ago* (last edited 17 hours ago) (2 children)

Artikel 23, Absatz 1:

Zur Verwirklichung eines vereinten Europas wirkt die Bundesrepublik Deutschland bei der Entwicklung der Europäischen Union mit, die demokratischen, rechtsstaatlichen, sozialen und föderativen Grundsätzen und dem Grundsatz der Subsidiarität verpflichtet ist und einen diesem Grundgesetz im wesentlichen vergleichbaren Grundrechtsschutz gewährleistet. […]

[–] [email protected] 22 points 18 hours ago* (last edited 18 hours ago) (1 children)
  • Afrika: Nach der römischen Provinz, die dort gegründet wurde. Unklar, warum die so hieß. [1, 2]
  • Amerika: Nach Amerigo Vespucci, dem aufgefallen war, dass Kolumbus nicht in Indien war. [3]
  • Asien: unklar, vielleicht vom assyrischen assu ‚Sonnenaufgang, Osten‘ [4]
  • Australien: von terra australis – man hatte schon lange vor dessen Entdeckung angenommen, dass es einen südlichen Kontinent geben müsse [5]
  • Antarktis: „Anti-Arktis” [6]
  • Europa: unklar, vielleicht vom phönizischen (ʕ)erebu bzw. (ʕ)arab „untergehen“ (bezogen auf die Sonne) [7]

1: https://www.dwds.de/wb/Afrika
2: https://de.wikipedia.org/wiki/Afrika#Etymologie
3: https://de.wikipedia.org/wiki/Amerika#Etymologie
4: https://de.wikipedia.org/wiki/Asien#Etymologie
5: https://de.wikipedia.org/wiki/Australien#Landesname
6: https://de.wikipedia.org/wiki/Antarktika#Name
7: https://de.wikipedia.org/wiki/Europa#Etymologie

[–] [email protected] 1 points 18 hours ago (1 children)

Und was genau hat das Wort „Rückgrat“ jetzt mit „Demokrat“ zu tun? Das sind zwei völlig verschiedene Herleitungen. Oder verstehe ich den Pfeil falsch?

 
 
 
 

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.

 
 
 
173
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 

[Meme transcription:]

– Hey, why is the shell prompt on the production server red now?
– Earlier: me@prod:~$ docker container remove --force the-application

Protip: If you’re used to shutting down your computer via the CLI, make it a habit to use an alias like off.

This way you will never, ever turn off a remote server by accidentally using throwing poweroff at a residual SSH connection.

452
IEEE 754 (cdn.fosstodon.org)
 

cross-posted from: https://lemmy.ml/post/24332731

~~Stolen~~ Cross-posted from here: https://fosstodon.org/@foo/113731569632505985

 

Meme-Transkription:

Paneel 1: Ein freundlicher, Anzug tragender Mitarbeiter. Er ist als Skulpturenverkäufer gekennzeichnet und sagt: „Also wir haben Ritter, traurige Engel, zufällige Raubtiere, eine Justizia, den Kopf von irgendeinem zufälligen Typen, am Boden liegende Menschen, Menschen ohne Kopf und Insekten.

Paneel 2: Das „Shut up and take my money”-Meme aus Futurama. Frys Kopf wurde durch das Umbrella-Logo aus Resident-Evil ersetzt.

 

Wollt ihr euch alt fühlen?

Resident Evil läuft gerade im Fernsehen.

Auf Kabel 1.

view more: next ›