75 points
*

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.

permalink
report
reply
113 points

They asked for harmless pranks - this would cause murders.

permalink
report
parent
reply
33 points

This is why airplanes crash

permalink
report
parent
reply
68 points

permalink
report
parent
reply
39 points
*
Deleted by creator
permalink
report
parent
reply
11 points

If your going that evil
#define { {}{

permalink
report
parent
reply
2 points
*
Deleted by creator
permalink
report
parent
reply
2 points

It should always cause a syntax error if the code contains } else.

permalink
report
parent
reply
73 points

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.

permalink
report
reply
9 points

Your kiddos are brilliant lol

permalink
report
parent
reply
2 points

This is the correct answer.

permalink
report
parent
reply
53 points

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

permalink
report
reply
6 points

I go for a variation of this if a coworker leaves their computer unlocked when they leave for lunch or the day.

Screenshot their whole desktop, hide all icons and the toolbar. Set the background to the screenshot. Boom a computer that looks exactly the same as before but doesn’t work.

Quick, non permanent, takes a few minutes to work out, lesson learned to not leave your machine unlocked.

permalink
report
parent
reply
7 points

Putting a piece of tape over their mouse eye is good also.

permalink
report
parent
reply
2 points

That’s a classic. We did it for a while. We moved on to all out warfare.

We had a script that backed up the current desktop exactly the way it was then changed everything about it. It would change all system sounds to the original My Little Pony theme, change the background to a Friendship is Magic wallpaper, change the mouse pointer to a tiny pony with trailing sparkles, and remove edit rights to those files from the account using it. To get things back to normal you had to take ownership of the affected files.

One guy couldn’t figure it out and disconnected his internal speaker because someone had set up some policy deep in the system where he lost sound settings. I don’t know how that worked. Apparently neither did he.

Another guy worked remotely the next day so his computer just kept playing the song while he was gone.

The guy who created it didn’t get a normal birthday cake. The boss got him a My Little Pony birthday cake that year.

What a lot of folks didn’t realize and never asked about was that there was a reversal script in the user folder.

permalink
report
parent
reply
44 points

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.

permalink
report
reply
41 points

Tape over the mouse laser is always a good one

permalink
report
reply
34 points

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. :)

permalink
report
parent
reply
12 points

Numpad * and / are good for that, I touch type but always have to look at those.

permalink
report
parent
reply
24 points
*

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.

permalink
report
parent
reply
12 points

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.

permalink
report
parent
reply
17 points

Plug in a wireless keyboard/mouse and do things, like move the mouse, or write “chicken” every so often?

permalink
report
parent
reply
5 points
Deleted by creator
permalink
report
parent
reply
6 points

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.

permalink
report
parent
reply
6 points
Deleted by creator
permalink
report
parent
reply

Asklemmy

!asklemmy@lemmy.ml

Create post

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

Community stats

  • 10K

    Monthly active users

  • 5.9K

    Posts

  • 319K

    Comments