bleistift2

joined 10 months ago
[–] [email protected] 2 points 3 hours ago

Good job pointing out @[email protected]’s disingenuous argumentation!

[–] [email protected] 7 points 1 day ago

Honey, we can’t have another child. There’s no room!

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

It doesn’t have to be oil. A bit of water (it’s surprising how little will do) enables the starch to dissolve, which essentially glues the spaghetti together.

[–] [email protected] 99 points 1 day ago (17 children)

I find the phrase “Born with the intention” in itself worthy of head-scratching.

[–] [email protected] 10 points 2 days ago

I hate these places. Is it so hard to configure the phone to block calls or make an announcement when the place isn’t open?

This also applies to government agencies. “We’ll shortly be taking your call [in 16 hours when we’re open again]. Please hold the line”

[–] [email protected] 11 points 3 days ago

Don’t worry, I can hold my breath until I’m done.

[–] [email protected] 4 points 3 days ago

Gee, what’s the point of re-telling a joke? I can’t possibly tell. 🤦

[–] [email protected] 7 points 3 days ago (1 children)

I don’t consider the cost of the instrument and my time when considering the money I save on the drink.

But you do consider the cost of training when we’re talking about the AI’s output. That’s the double standard.

Your entire argument stems from the idea that this comic is somehow adding value to the world. […] Nothing of value was created

The comic made me smile. It made my day better because I like the presentation and the style. The post currently has a vote ratio of 266:78. So I’m clearly not the only one enjoying it. I do believe that bringing joy to people adds value.

[T]he “artist” doesn’t even get to have any personal satisfaction because it’s just an algorithm. […] [T]he other “artist” didn’t actually put any effort into it when they just wrote “write a funny comic” into a text field.

I can’t understand why that is a problem. Why are you hurt because a machine cannot get personal satisfaction? Are you mad at an mp3 player because it doesn’t enjoy the music it plays? The point of this comic obviously isn’t to benefit the creator. It’s to enjoy the reader.

If you insist on drawing parallels to a human artist: Do you think everyone enjoys creating every single piece they create? That there are no commissioned words that an artist grudgingly accepts because they have to pay their bills? Sometimes the process of doing something isn’t the end goal, but the product.

If you want to create music for your own benefit, there’s no need to do it in public. You can do it in a garage. You’re going to a bar because pleasing the audience with a good product is at least part of your motivation. Do you think they care if you’ve enjoyed making the music? They only care if they enjoy consuming it.

[–] [email protected] 11 points 3 days ago (3 children)

It’s amazing how you manage to keep up such a double standard in the same comment. Have you been practicing doublethink for a while?

On the one hand you say a human can output this while consuming just a hamburger, on the other hand you say it takes practice (conveniently leaving out the ‘years of’ part).

On the one hand you say “the algorithm” consumes ludicrous amounts of energy, but on the other hand keeping a person alive seems to be free in your world-view. (And no, a homeless person getting just enough to survive does not count as an example of consuming few resources. That’s not a life, that’s misery.)

When AI outputs something for a small audience, that’s a huge waste, but if a human draws something for themselves, that’s somehow adorable?

[–] [email protected] 17 points 3 days ago* (last edited 3 days ago) (1 children)

Yeah, absolutely no artistic talent there.

https://xkcd.com/3078/

[–] [email protected] 12 points 3 days ago (3 children)

I’m assuming this is a response to my comment. I like the other version better.

 

All I wanted to know was the maximum safe temperature :'(

1
ich_iel (lemmynsfw.com)
 

Mal wieder ein Rant. Da denkt man, man könnte statt auf Amazon auch mal direkt beim Verkäufer kaufen. Der wirbt sogar damit, dass er SEPA-Lastschriftmandate akzeptiert. An der Kasse stellt sich dann heraus, dass das einfach gelogen war.

Momox, wenn ihr unbedingt doch Provision an Amazon zahlen wollt, dann bitte.

 

Ein Zusammenschnitt meiner YouTube-Startseite.

Aus denselben Fakten wurde hier:

  • „Schulden sind gut. Jetzt wird alles besser”
  • „Wir werden von Schulden erschlagen“
  • „Merz bester Mann”
  • und die zwei (mMn) neutralsten „Es gab eine Einigung und jetzt wird das GG geändert.“
 

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
 
 
 

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.

 
 
 
179
submitted 3 months ago* (last edited 3 months 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.

view more: next ›