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
331
Joined
2 yr. ago

  • 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

  • Zits

    Jump
  • I'll be honest,

    If I'm driving down a frequently used route, and the person in front of me is going 5-8 mph slower than i usually do

    I'll go into "autopilot" and start to creep up on them.

    If i realize I'm doing it, I'll back away

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

  • Proton / wine is modern day magic

    Most Windows only steam games work out of the box (you do have to enable it in the right click menu > Compatibility options, per game)

    Games that use Anti-cheat aren't likely to work (it depends on the Anti-cheat used and how it's configured)

    ProtonDB is a good resource for checking if/which games work, or fixes and workarounds


    You can use proton or wine on non steam games, but that requires additional setup that I'm not familiar with

  • Pets are not children

    They have completely different physical and psychological needs and wants, and they need to be respected as a member of their species

    Speaking as someone who has 2 dogs, 3 cats, and no kids

    They are my companions, and i am their caregiver. But they are not my children