Skip Navigation

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/)D
Posts
1
Comments
46
Joined
2 yr. ago

  • The toilet then sends the data it collects to a cloud server.

    What could go wrong.

  • One way to do this is to use reference-counting pointers such as std::rc::Rc or std::sync:Arc. The parent node can hold a strong reference to each child node and each child node has a Weak reference to its parent.

  • As others mentioned, running a minecraft server by itself is pretty easy. If you want additional features like a Web UI, multiple servers at the same time etc. you might take a look at Crafty Controller.

  • Just one more line bro. One more line will fix it.

  • I just think they don't understand how copyright and licenses work. If you create a work, you own the copyright. If you license it to someone (even when using a restrictive CC license) you are granting them rights that they hadn't before. It doesn't get more restrictive than just not licensing your comment.

  • There are some local differences in math notation, e.g. . vs. , as a decimal separator, vs. × for multiplication, : vs ÷ for division et cetera.

  • https://github.com/michidk/rost

    Aren't you müde from writing Rust programs in English? Do you like saying "scheiße" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some German touch to your programs?

    rost (German for Rust) is here to save your day, as it allows you to write Rust programs in German, using German keywords, German function names, German idioms.

  • This, but Forgejo instead of Gitea.

  • While I think there is always something that can be improved, I don't like that we are getting a third major date time library alongside time and chrono.

    https://xkcd.com/927/

  • Jiff is a datetime library for Rust that encourages you to jump into the pit of success. The focus of this library is providing high level datetime primitives that are difficult to misuse and have reasonable performance. Jiff supports automatic and seamless integration with the Time Zone Database, DST aware arithmetic and rounding, formatting and parsing zone aware datetimes losslessly, opt-in Serde support and a whole lot more.

    Jiff takes enormous inspiration from Temporal, which is a TC39 proposal to improve datetime handling in JavaScript.

  • It's the other way around. 0.1 kWh means 0.1 kW times 1 h. So if your device draws 0.1 kW (100 W) of power for an hour, it consumes 0.1 kWh of energy. If your device factory draws 360 000 W for a second, it consumes the same amount of 0.1 kWh of energy.

  • I'm likely to rebuild the backend in Go

    Why bother with another language? Rust offers multiple great backend options. Using the same language for both ends might allow reusing some parts.

  • Thanks, that was an oversight on my part.

  • This is really great and would solve the problem that led me to create constructor-lite.

    With this RFC, its usage could be replaced with

     rust
        
    #[derive(Debug, PartialEq)]
    struct Movie {
        title: String,
        year: Option<u16> = None,
    }
    
    assert_eq!(
        Movie { title: "Star Wars".to_owned(), .. },
        Movie { title: "Star Wars".to_owned(), year: None },
    )
    
    
      
  • To get a TLS certificate from Let's Encrypt, they need to verify that you are in control of your domain. For regular domains, this can be done via HTTP, for wildcard certificates they require you to create a DNS record with a special token to verify ownership of the domain.

    This means that in order to automatically obtain a TLS certificate, caddy needs to interact with the API of your domain registrar to set up this record. Since there are many different providers, this isn't built into caddy itself and you require a version that includes the corresponding caddy-dns module. Caddy modules need to compiled into the binary, so it's not always trivial to set up (in my case I have a systemd timer that rebuilds a local container image whenever a new version of the docker.io/caddy:builder image is available).

  • A reverse proxy, in my case Caddy.