Skip Navigation
Jump
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>

    3
  • Jump
    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).

    2
  • Jump
    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).

    3
  • Jump
    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.

    3
  • Jump
    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.

    6
  • Jump
    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.

    15
  • Jump
    How do you say SUSE?
  • As another German, I can confirm that the "first e in mesmer" way is how Germans would pronounce it. See for example 11seconds into this German video also officially from SUSE's YouTube channel - a SUSE employee and German native speaker who is moderating a series of talks is using that pronunciation.

    It's just a tiny mistake that most Germans are used to hearing Americans make all the time (see also Porsche which is also not pronounced porsh, nor por-shay, but porsh-eh) and will politely ignore, but since this aims to be an educational video, should be pointed out to be slightly incorrect

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

    1
    Jump
    Year In Review: Google’s Corporate Paternalism in The Browser | EFF
  • I'm surprised that the post does not mention switching to Firefox or any other privacy tool other than their privacy badger, e.g. no mention of uBlock Origin.

    8
  • Jump
    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.

    21
  • Jump
    Nothing Chats has already been pulled from Google Play over privacy issues
  • Right! The last I remember hearing the "closed source is more secure" argument was about fifteen years or so ago, so it's surprising that it is being pulled up from the dead.

    14
  • Jump
    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

    60
  • Jump
    Philips Hue will force users to upload their data to Hue cloud
  • I've been very happy with Home Assistant. There are zigbee USB sticks such as ConBee that work well with it, and home assistant runs on many different types of computers including Raspberry pi.

    14
  • Jump
    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).

    1
  • 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