News for hackers. Stuff that matters.

ShoveItHN

Re:A pentester gets root - step by step example on Sunday February 20, 2022 @07:27PM (#30410615)
A WHAT?
Re:Server-sent events, WebSockets, and HTTP on Sunday February 20, 2022 @03:24AM (#30404187)
Thanks! I haven't done much network programming.

While this SSE channel stays open, the controlling app will need to be able to continue to do additional traditional GET, POST, etc. calls to the server. How are responses to those distinguished from data coming in from SSE?

Re:Server-sent events, WebSockets, and HTTP on Sunday February 20, 2022 @02:57AM (#30404056)
Interesting. I'm writing an application that will control devices over HTTP with a REST-style API (defined in OpenAPI). But we also want those devices to be able to alert the controlling application to events without being polled. This won't be a large datastream, but rather the occasional update of progress or notification of a state change.

I was considering Websockets or MQTT (or both), so server-sent events sound like a direct and possibly superior competitor. But from a design standpoint, what do you do? Just do a GET on some general "status" endpoint to open this SSE stream and then have the server send everything down this pipe indefinitely?

Re:Server-sent events, WebSockets, and HTTP on Sunday February 20, 2022 @02:50AM (#30404026)
Look at your first two sentences. You say MQTT supports authentication like MQTT.
Re:ZX Spectrum at 40: a look back on Saturday February 19, 2022 @06:45PM (#30401673)
Similar to the Atari's. And they both offered redefinable character sets and fine scrolling, which allowed you to create giant scrolling maps and backgrounds as screenfuls of characters requiring very little memory.
Re:ZX Spectrum at 40: a look back on Saturday February 19, 2022 @06:43PM (#30401653)
The Commodore's was a bit mushy compared to the Atari 800.

But they both absolutely crushed the quality of almost any keyboard you get on a computer today.

Re:ZX Spectrum at 40: a look back on Saturday February 19, 2022 @06:34PM (#30401592)
Note the "inverse" and "normal" video keys.

"Normal" means white text on a DARK background. It's sad that it has taken the industry 30 years to remember that.

Re:GStreamer 1.20: Embedded and WebRTC lead the way on Friday February 18, 2022 @07:37PM (#30393221)
I agree. Apparently it's just a library, so you have to use it to construct an application.

But they should provide some links to applications built with it.