• cybervseas@lemmy.world
      link
      fedilink
      English
      arrow-up
      22
      ·
      22 days ago

      Trick TRUE Treat?

      Trick FALSE Treat?

      I don’t remember what we called those in my intro comp sci class.

    • just_an_average_joe@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      12
      ·
      22 days ago

      It would be ((trick nor treat) or treat) so basically all the non-circle region and the treat circle is filled…

      After writing this, i am wondering if you actually needed the information or was it just the funny thing to say…

      Guys am I autistic?

      • MonkeMischief@lemmy.today
        link
        fedilink
        English
        arrow-up
        3
        ·
        22 days ago

        Guys am I autistic?

        Haha might be? But I’m the same way and I’m pretty sure I’m not autistic…(ADHD though)

        I think when you fill that spot between ((“knowledgable”) AND (“good-natured”)), you just like to share what you know if the poster’s sarcasm isn’t painfully apparent.

        Never hurts to be kindly helpful. It reminds me of something my sister told me she tells her kids:

        “Try to learn something new every day, and even if you don’t, teach something.” :)

      • xthexder@l.sw0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        22 days ago

        I had to double-take since in Python a common alternative to trick ? treat : notreat is (trick and treat) or notreat

        But I don’t think this translates to overlapping circles very well. “trick implies treat” is only defined inside the trick circle, outside is undefined if treat is true or not.

        I’m not going to draw a diagram, but here’s the “truth table” for A implies B:

        A, B, A -> B
        N, N, undefined
        N, Y, undefined
        Y, N, false
        Y, Y, true
        
        • nelly_man@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          22 days ago

          If A is false, A -> B is true regardless of what B is, so the two undefined terms in your truth table should be true.

          So it is fairly easily translated into a shaded Venn Diagram. It’s simply everything shaded aside from Trick only.

  • fossilesque@mander.xyzOPM
    link
    fedilink
    English
    arrow-up
    23
    ·
    22 days ago

    Toasted pumpkin seeds:

    Using running water seperate seeds from pumpkin guts. Soak them in salt water while you carve. Preheat and bake at 220C for 15-20 mins. Eat them whole.

    • lud@lemm.ee
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      22 days ago

      XNOR (Exclusive NOR) is the opposite of XOR (Exclusive OR)

      A way to remember XOR is “must have one or the other but not both” XNOR is the opposite so it’s “must have both or none” so both inputs must be 1 or 0.

      XNOR or XOR is very common in homes with staircases so that you can turn on and off the light in the staircase regardless of which floor you are on.

      If you google staircase switches, you will be told that they mostly use XOR but according to the wiring diagrams they use XNOR.

        • lud@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          22 days ago

          No, AND won’t match 0,0 while XNOR will. An AND switch would be useless for a staircase.

          AND also won’t match 1,0 or 0,1 while XOR does.