• nothacking@discuss.tchncs.de
    link
    fedilink
    arrow-up
    63
    arrow-down
    6
    ·
    edit-2
    1 year ago

    Put #define true (rand()%1000 != 0) in some obscure C or C++ header file on their system/project. This makes true evaluate to false one in a thousand times, and will make them spend hours trying to figure out why things like infinite loops, aren’t quite infinite.

    Other languages should also allow you to do things like this, if not messing with constants, messing with standard library functions.

  • ristoril_zip@lemmy.zip
    link
    fedilink
    English
    arrow-up
    47
    ·
    1 year ago

    Our kids swapped the position of our bowls and plates in the cabinets, and our knives, forks, and spoons in the drawers. They definitely won.

  • scorpious@lemmy.world
    link
    fedilink
    arrow-up
    36
    ·
    1 year ago

    I closed the tool palette in the illustration app of a coworker and replaced it with a same-size image of same.

  • Andy@slrpnk.net
    link
    fedilink
    arrow-up
    31
    ·
    1 year ago

    I’ve heard it said that the key to a benign prank is to creates a mixture of momentary alarm and confusion, followed by relief.

    A few years ago, I put a sign on my boss’ office door that said that his office was off limits for the week, as the building facilities team was going to be proactively placing humane termite traps in his office for two weeks as a preventative measures to lure any termites in and then release them at a nearby forest. He found it amusing.

  • yenahmik@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    1 year ago

    This one is a little convoluted, but I just watched this prank video where they fed someone their own cooking in a restaurant. It may be the most wholesome prank I’ve ever seen.

    • Radioactrev@reddthat.com
      link
      fedilink
      arrow-up
      22
      ·
      1 year ago

      On the computer thread, changing the keys on their keyboard is also fun. Works better if they are a touch typist as well, as they may go several hours/days before noticing, until they have to look for that one special key. :)

    • BananaPeal@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      17
      ·
      edit-2
      1 year ago

      If we’re talking computers, screenshot their desktop, set it as background, move taskbar to top, auto hide it, right-click desktop and choose hide icons.

      Advanced mode: also set screen flip to 180 degrees and flip the background so it looks right side up.

      • Supervriendje@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        I did the screen flip thing to a coworker once. And then he just took the monitor and turned it upside down. Didn’t see that coming.

    • Brickhead92@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      I added this to another similar comment:

      Follow it up by placing a tiny bit of clear soft plastic in with the laser. It doesn’t stop the mouse from working, but if you were you draw a straight line the cursor wobbles slightly.

  • Hamartiogonic@sopuli.xyz
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 year ago

    True story. This thing happened last week.

    Person A: I want to eat something.

    Person B: Do you want some of these (B opens a box of boring cookies and shows the contents to A)

    A: No!

    B: How about these (opens another box of bland cookies)

    A: No!

    B: (grabs a third box, realizes it’s empty, but opens it carefully not to show anyone what’s inside) Ooh, I’m not showing this to you. (Puts the box away.)

    A: I wanna see! (Tries to grab the box)

    B: No, it’s mine! (Pushes A further away)

    After some futile struggle B let A have the box. A opens it up and realizes it’s empty. We all had a good laugh.

  • Nyla Smokeyface@beehaw.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 year ago

    I saw a video once of a prank where two girls go up to a stranger asking them to take a picture of them across the street. The stranger takes the photo and when the two girls start cross to the other side, a car passes by and the two girls are replaced with two old men wearing the same shirts. Even the Polaroid photo shows the old men. It’s genuinely funny and completely harmless. It just makes the person getting pranked go, “Wait, what the fuck???”

    I do hope the people were told that they were pranked though and that they don’t live the rest of their lives thinking they’re insane 😂

    ETA: also this video where the guy puts on the collar and leash of his blind husband’s service dog when he asks him to go get his watch. (He immediately reveals himself when the blind husband gets back to pick up his service dog’s leash again and the husband thinks it’s hysterical).

  • Cyncit@lemmy.ca
    link
    fedilink
    arrow-up
    9
    arrow-down
    3
    ·
    edit-2
    1 year ago

    I made a “spray grenade” to my friend once. Attached a Ty-wrap to a bottle of Febreeze (trigger in) and throw it in his room while he was there. He was pretty quick to seek scissors and cut it but I can imagine it worse without his quick thinking and a worse scent.

  • ooklamok@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    1 year ago

    Empty a can of corned beef hash into the toilet and squirt ketchup over it and then don’t flush.

  • jet@hackertalks.com
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    1 year ago

    Find a c header file on a program they’re working on.

    #define main main

    • inspxtr@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Does defining in a “loop” work in C? Like

      #define main A
      #define A B
      #define B C#define Z main