Err(()).unwrap()

Partisanship is a cancer. Inaction is a choice.

Singular they. Or whatever you like, I won’t take offence.
Proud member of the Banned By Tesseract Club.

  • 13 Posts
  • 1.09K Comments
Joined 3 years ago
cake
Cake day: June 24th, 2023

help-circle

  • “It’s open source, you can review the code” has become one of the most annoying thought-terminating clichés. Sure, we could:

    • Parse the code that the owner likely doesn’t fully understand
    • Figure out the application logic that the owner also likely doesn’t understand
    • Check the logic for anything that might cause unwanted side-effects
    • Check the logic for malware behaviour
    • Run tests (and review the test code because it’s also likely vibe coded)
    • Pray and beg that everything works
    • Repeat every time the software needs to be updated

    Or we could warn others that the owner couldn’t be assed to either write the code or review what some LLM farted out, and that neither they nor their code should be trusted.

    It’s gas station weed. It’s a drink from a stranger at a night club who swears there’s nothing in it.






  • CUPS didn’t work for me as I can’t see an upload option on the web UI.

    And you won’t. For the purpose of printing, CUPS is a print server, not a web front-end. It facilitates communication between client devices and downstream printers through a unified open protocol that isn’t manufacturer-dependent.

    Printing is implemented through IPP, which is an HTTP-based protocol. You have to add the URL of the printer as it appears on the web UI (e.g. https://print.mydomain.net/printers/PRINTER_NAME) as a printer in the client device’s printer manager. It’s plug-and-play on Linux and Mac, and needs a driver (even if it’s the generic PostScript driver) on Windows.





  • Do you want regulatory overreach? Imagine forcing every small project or self-hoster to adhere to the rules set by the equivalent of the HDMI Forum, but controlled by the likes of Microsoft and Facebook.

    To redirect your other question: you should ask the web developers. If they’re honest, you’ll get a dozen legitimate answers that can’t be solved without locally running code. A chat web app, for example, needs to either poll the server at a given rate, or use a WebSocket to fetch incoming messages, both of which require Javascript. Then it needs to modify the DOM to display the new messages, which again requires Javascript. If it needs access to the microphone or webcam, it has to use some kind of local interface. I could go on. The point is, a lot of this arbitrary local code exists because there’s no other way to implement many features without it. Imagine having to reload an instant messaging app if you want to see if you’ve received anything. It would be like writing a GUI application using Qt or GTK, but without using any events.





  • Smaller axial lead resistors mark their resistance values using colored bands. Three or four bands grouped together, towards one end of the device, mark the nominal resistance. If there are three bands, the first two represent the tens and ones (A, B). If there are four bands, the first three represent the hundreds, tens, and ones (A, B, C). The final band is the multiplier or magnitude (M).

    For example, the three-band code of yellow-purple-red represents a nominal resistance of 4.7 kiloohms. The first yellow band is 4 × 10, the second purple band is 7, and the third red band is a multiplier of 100: (4 * 10 + 7) * 100 == 47 * 100 == 4700.

    An optional band, painted on the other end of the device, marks the accuracy or tolerance in percents. If there is no such band, assume a tolerance of 20%.