Skip Navigation

User banner
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/)LI
Posts
2
Comments
232
Joined
2 yr. ago

  • I can confirm, I've never used a non memory managed language, and the Rust borrow checker is a massive kick in the teeth

    But, the more i consider it from the perspective of memory, and pointers, the borrow checker makes a lot of sense

    Especially when storing references inside structs, and how mutability affects references

    I actually figured out i could fix a re-mutable borrow error by performing the two mutable operations in separate for loops

  • The prostate is the male G spot, and enjoying anal stimulation is perfectly normal for males regardless of sexual orientation


    Also, if you do experiment, don't stick anything up there without a flared base. Otherwise it will get lost and you will have to explain yourself to the ER

  • Blue cheese is intentionally inoculated with mold. Specifically penicillium mold that is perfectly safe to eat.

    If a cheese "naturally" develops mold, there's a good chance it could be harmful, so don't eat that

  • Kids are gonna kids

    I don't understand what teachers think a "banned words list" is gonna accomplish except being the new target of bored kids/teens

    (Unless they're just tired of hearing it, but this isn't a good solution imo)

  • To explain

    There are 2 Error struct / enum declarations, probably in separate files

    To the ?, they are different types and cannot be converted from one to the other (because they are two disparate structs that happen to have the same name, but can have different bodies)

    To fix this

    You can either use .some_func_result().map_err(|err| /* conversion here/*)?; +

    Or you can impl From<Error1> for Error2

    And you should also name it ThingError, so you can visually differentiate the two


    There are like 10 different mapping functions, depending on if you're using an option or a result

    I never remember which one specifically i need, (unwrap_or, map_or, map_or_else, ok, ok_or)

    I usually just hunt through the auto complete list until i find the function signature that gives me what i need

  • The SoC on the motherboard has a special EDL mode

    This is kinda like the SoC's pre-bootloader, which loads the bootloader and can be used to flash a new bootloader

    EDL mode is locked behind vendor specific certs/keys, so it's unaccessible to the device owner

  • Yep

    Jump
  • A pill calendar is really handy. When you take pills once daily, it's really easy to forget if you've taken today's since your brain just filters it out

    But taking a second dose can be dangerous, so a pill calendar gives you visual conformation that you have indeed taken today's pills

  • Fiber?

    I just did a quick search for coffee nutrition facts, and all resources say 0g of fiber

    Assuming you're using a paper filter, only water soluble particulates will end up in the coffee

    And, water soluble fiber tends to be a thickening agent (porridge, Psyllium husk)

    On what plane of existence is coffee a good source of fiber?

  • Quality work will always need human craftsmanship

    I'd wager that most revolutionary technologies are either those that expand human knowledge and understanding, and (to a lesser extent) those that increase replicability (like assembly lines)

  • I was reading Crafting Interpreters. After adding function calls and stack frames, i tested my implementation with the Fibonacci script at the end of the chapter

    I spent about 2 hours debugging my call stack, and even tested the script in Python

    Only to realize that Fib(3) is indeed 2

  • I'm not sure that's their intended design. Old pull-tab cans actually had a ring for you to pull them off (similar to "easy open" soup cans of today)

    I'd imagine that as the tab shrunk and changed from pull to a lever action, the "ring" was left as a vestigial design (as a form of skeuomorphism)

  • Unpopular Opinion @lemmy.world

    Overalls are far more comfortable than pants

    cats @lemmy.world

    Neopolitan - goes by Neo