• 1 Post
  • 1.13K Comments
Joined 2 years ago
cake
Cake day: December 28th, 2023

help-circle








  • Passerby6497@lemmy.worldtoMicroblog Memes@lemmy.worldoddly specific
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    2
    ·
    edit-2
    6 days ago

    And we’re talking about a value that would require a 9-bit unsigned int to store it, at a minimum (and therefore at least a 16-bit integer in sizes that actually exist for types). Unless it’s 8-bit and interprets a 0 as 256, which is highly unorthodox and would require bespoke coding basically all over instead of a basic num <= GROUP_CHAT_LIMIT.

    I think you’re just very confused friend, or misunderstanding how binary counting works, because why in the 9 hells would they be using 9 bits (512 possible values) to store 8 bits (256 possible members) of data?

    I think you’re confusing indexing (0-255) with counting (0-256), and mistakenly including a negation state (counting 0, which would be a null state for the variable) in your conception of the process. Because yes, index 255 is in fact count 256 and 0 would actually be 1. Index = count -1










  • Most of this can be achieved in other ways (like a smart plug measuring the current draw

    Idk about other people, but this is actually harder than you’d think. I’ve got zigbee and zwave hubs in my house for my home automation system, but there’s really not anything that uses those technologies and has the screwy power plug my washer has. I grabbed some inducement sensors (I think that’s what they’re called), but I can’t use them near my washer since they have to be hooked to the line to have a reference and my washer is too far away from my fuse box.