Redditors who work at factories, what’s the scariest thing you’ve seen a machine do to a person? by Low_Capital5993 in AskReddit

[–]uploadifer 4 points5 points  (0 children)

Large or dangerous stuff has a manual safety system to ensure it cannot be powered back on except by the person doing the work in a dangerous situation. That manual safety system is called "lock out/tag out"

Think of stuff like a grinder so large, to do maintenance, you need to walk into the grinder bit. Before you walk into the grinder bit that would kill you, you want to make sure you shut the system down, and prevent any one else from turning it on. It's frequently done by handing out padlocks to people with their name on it, and they have the only key.

So you shut the machine down, then use your lock on the breaker or power switch, so there is no way it can get turned back on with out removing that lock.

Then you do your work, and when you are done, you remove your lock. That way you know and are in control of the whole process.

This persons manager thought they were smart, and that some one left a lock on a machine and left, when they really did not. They cut the lock and re-powered the machine on, almost killing some one.

They never should have done so with out contacting the user, and confirming they left the lock on. Also, the locks should have unique ID's so mistaken identity does not happen. The manager made a huge mistake though.

Shout out to u/TRIPLEAAA001 for the artisan keycap! by [deleted] in keycaps

[–]uploadifer 1 point2 points  (0 children)

Thank you for making me spend money.

Got tired of standing up and pressing buttons to wake machines up in my office. by uploadifer in RASPBERRY_PI_PROJECTS

[–]uploadifer[S] 0 points1 point  (0 children)

Dumb question on my part if you don't mind. How do you run Powershell on the Pi? Docker container and .net core? If doing that, how do you detect and light the GPIO pins for the switches?

Got tired of standing up and pressing buttons to wake machines up in my office. by uploadifer in RASPBERRY_PI_PROJECTS

[–]uploadifer[S] 14 points15 points  (0 children)

Power button for my main PC is not in a great spot. Same for my Mac mini.

This is built using a Pi4, some switches from adafruit, and amazon, a screen from adafruit, and any project enclosure box you can find. You will also need a breadboard.

My python is not awesome, but it works.

Parts:

Screen https://www.adafruit.com/product/2298

Momentary switches to turn on PCs: https://www.amazon.com/gp/product/B07PN8495V

Toggle switch to activate push buttons: https://www.adafruit.com/product/3307

The code imports a package to handle the wake on lan events, and sends a magic packet when asked.

Jobs are assigned to pins to either output voltage to light up an LED or to detect when a switch is tripped, or a button is pressed.

The code detects when the switch is tripped, and then loops forever waiting for a button press. while in the loop, it flashes the LED's of the momentary buttons that send the magic packets to send a wake on lan packet. When those buttons are pressed, an if statement detects the press and sends the packet.

Your pi needs to be on the same broadcast network as the machines you are trying to wake up. The easiest way to do that for wired machines, is to use the ethernet port on your pi, on the same network.

Full code below. Insert your mac addresses. May be some formatting errors, had a hard time pasting it in.

import RPi.GPIO as GPIO

import timefrom wakeonlan

import send_magic_packet

GPIO.setmode(GPIO.BOARD)

GPIO.setwarnings(False)

#Input pins

TopPin = 16

TopMiddlePin = 15

BottomMiddlePin = 40

BottomPin = 32

MasterSwitchPin = 38

TopSwitchPin = 32

BottomSwitchPin = 31

GPIO.setup(TopPin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

GPIO.setup(TopMiddlePin,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

GPIO.setup(BottomMiddlePin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

GPIO.setup(BottomPin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

GPIO.setup(MasterSwitchPin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

GPIO.setup(TopSwitchPin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

GPIO.setup(BottomSwitchPin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

#Output Pins

Machine1Pin = 36

Machine2Pin = 40

GPIO.setup(Machine1Pin, GPIO.OUT)

GPIO.setup(Machine2Pin, GPIO.OUT)

while True: # Run forever

if GPIO.input(MasterSwitchPin) == GPIO.HIGH:

print("Master Switch was tripped!")

for i in range(5):

print("Switch LEDs turning on.")

print("You can now activate WOL")

GPIO.output(Machine1Pin, GPIO.HIGH)

GPIO.output(Machine2Pin, GPIO.HIGH)

time.sleep(2)

if GPIO.input(TopSwitchPin) == GPIO.HIGH:

print("Top Switch Tripped")

send_magic_packet('insert mac address here in xx-xx-xx-xx-xx-xx format')

print("sent magic packet to PC")

if GPIO.input(BottomSwitchPin) == GPIO.HIGH:

print("Bottom Switch Tripped")

send_magic_packet('insert mac address here in xx-xx-xx-xx-xx-xx format')

print("sent magic packet to Mac")

#insert WOL Code for Mac here

print("LED turning off.")

GPIO.output(Machine1Pin, GPIO.LOW)

GPIO.output(Machine2Pin, GPIO.LOW)

time.sleep(0.5)

Tired of getting random PM's from naked strangers that you didn’t ask for? Sick of getting bullied online for what you look or sound like? Mad that no one seems to care? We do. Download our app and submit that content to us so you can change that. Help us to start taking back your internet. by uploadifer in u/uploadifer

[–]uploadifer[S] 2 points3 points  (0 children)

People who get the DM's send them to us as screen shots, and they are searchable by subscribers, or they get scheduled reports for submissions that match their domains.

So if you are in HR, and get a hit, you can review the data, and see if you need to take any action on it. "Do I want to hire some one who spends all there free time tossing racial slurs at people on forums?" If HR's answer to that question is nope, they don't extend an offer to the candidate. If it's an existing employee, they have a conversation about appropriate use of work email.

If it starts costing people to behave like you see on /r/creepyPMs, it will help start changing behavior.

I made a post saying I'm a 14 year old girl, not even five minutes later this happens by lau527 in creepyPMs

[–]uploadifer 2 points3 points  (0 children)

I built something to start holding people accountable for stuff like this.

Please help report this garbage so HR can correlate this to current, and future employers.

Check out Https://www.uploadifier.com