Skip Navigation
Would this be a correct syntax for error handling when making an http request?
  • This will work in general. One point of improvement: right now, if the request fails, the panic will cause your whole program to crash. You could change your function to return a Result<Html, SomeErrorType> instead, and handle errors more gracefully in the place where your function is called (e.g. ignoring pages that returned an error and continuing with the rest).

    Look into anyhow for an easy to use error handling crate, allowing you to return an anyhow::Result<Html>

  • OH SHI-
  • Computational protein engineer here. Pretty good explanation. I wanted to add that just because we know that a protein's behavior changes depending on pH, it is still interesting to see what atom-level changes to the 3D structure are caused by the pH shift (e.g. so that we can better predict those changes on other proteins).

  • New apartment Internet has no port forwarding, admin login
  • I have been using it for the last 3 months to expose services from my home internet (plex, wireguard, etc.) through a VPS and I'm pretty happy with it. It's relatively simple to set up, I haven't had any outages so far, and it's nice that it supports UDP port forwarding as well as TCP (for wireguard).

  • Looking for a music server
  • You could go even further and use hard links. That way, you can have two paths pointing to the same data on the partition, with the space getting cleaned up only after all references to it are removed.

  • Pirat-o-mat
  • Mir ist schon klar, dass das Wahlwerbung für die Piraten ist.

    Ich wäre halt eher davon überzeugt geworden, die Piraten zu wählen, wenn sie mir das Gefühl geben, dass sie die Themen differenziert durchleuchten und mir keine Meinung vorgeben. Wenn dann trotzdem noch eine große Übereinstimmung rausgekommen wäre, hätte mich das mehr beeindruckt.

    So finde ich es eher problematisch, durch Anspielung an den Wahl-o-mat dessen guten und unabhängigen Ruf dafür auszuleihen, um eine ähnlich aussehende Werbeaktion zu machen.

  • Pirat-o-mat
  • An sich ganz coole Initiative, aber ich hätte mir gewünscht, dass die Fragen weniger suggestiv und eher neutraler formuliert wären bzw auch Gegenargumente bei der Abstimmung erwähnt werden. So wie es jetzt funktioniert, ist es dann nicht überraschend, wenn man bei Themen, wo man sich selber nicht so auskennt, dann ähnlich wie die Piraten abstimmt.

  • Die Deutsche Bahn macht eine Dokumentationsserie zur Generalsanierung der Riedbahn

    Gerade angeschaut, fand ich überraschend gelungene Kommunikation inklusive viel Selbstironie. Das Team scheint wirklich Begeisterung für das Projekt zu haben.

    1
    Linode Alternative Suggestions for Small Projects
  • I'm pretty happy with Digital Ocean if I need a temporary VPS because I can pay by the minute and the UI is great. Anything that I want to stay alive for more than a month or two, I do on a single 6-core VPS rented long-term from Netcup, a low-cost German provider, deploying with Docker and Traefik.

  • Nothing Chats has already been pulled from Google Play over privacy issues
  • From the FAQ of the Sunbird website (the tech powering Nothing Chats):

    Will the app be open source?

    Some of the messaging community believes that software that is open source is more secure. It is our view that it is not. The more visibility there is into the infrastructure and code, the easier it is to penetrate it. By design, open source software is distributed in nature. There is no central authority to ensure quality and maintenance and by putting that responsibility on Sunbird, development would not be feasible. Open source vulnerabilities typically stem from poorly written code that leave gaps, which attackers can use to carryout malicious activities.

    To help satisfy our own ambitious goals of providing total privacy and security, we are currently undergoing a third party audit that will validate our security, encryption and data policies and plan on receiving ISO 27001 certification after launch.

    This was a huge warning sign when the first round of news about Nothing Chats came around, so I'm glad we're now getting early confirmation that security by obscurity still is a horrible idea and doesn't work

  • Revealed: How Big Dairy is Milking Net Zero
  • Thanks for sharing! I agree with your main point about overall emissions not changing too much since most of that reduction comes from feedlots already.

    One small addition: the product that I originally linked is based on 3-nitrooxypropanol, a petrochemical-derived active ingredient, not from red algae (so there is probably a different calculation about production cost and CO2 impact than growing, processing and transporting red algae on a large scale).

  • There have definitely been places in my code where I had to pass around and, in doing that, clone lists of things. This could be useful for these longer-lived pieces of data.

    0
    Reddit @lemmy.ml semi [he/him] @lemmy.ml

    While this was written in response to the takeover of Twitter, it shines a light on some of the patterns of why social media platforms in general die and get replaced, which is very relevant to what's happening with Reddit.

    0
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SE
    semi [he/him] @lemmy.ml
    Posts 3
    Comments 17