Live data from Hacker News

Have you ever hurt yourself from your own code?

blog.nikitas.link

91–100 of 432 posts

Re: Have you ever hurt yourself from your own code?

#92
post #80

Earlier quoted context omitted.

> A cordless handheld drill is hardly a tool that most people would call 'hazardous'. You turn the trigger, the thing rotates, grab the chuck and you can likely stall it. But that much energy in something driven by code is extremely dangerous, it's waiting for any of who knows how many conditions to take off, a common one is that putting your hands in/on something that seems to be not moving can 'make' a sensor and t…

Why would a drill be engineered to put out more torque than a human holding the handle could be expected to counterbalance?

For drilling holes in soft materials like drywall and wood, or even softer metals like aluminum. I recently used that drill to drill into a motorcycle engine to remove a stuck rotor cover.

Relevant old article: http://www.team.net/mjb/hawg.html

Re: Have you ever hurt yourself from your own code?

#93

I once wanted to run my Bash script (for archiving photos) through ShellCheck. I will never know, but I had to do something terribly wrong, as it started to remove my root directory... Thankfully, didn't had root privileges, so "only" resulted in nuking my home folder.

I once copied a Terraform directory & changed all the confit values to match the new environment I wanted to spin up. Unfortunately I forgot to remove the Terraform state files. So running “terraform apply” did a great job of spinning up the new environment, right after it tore down the old one.

Re: Have you ever hurt yourself from your own code?

#94

I was building an underwater mapping GUI, a quick SCUBA dive to do some testing before the weather closed in whilst at sea in the GBR Australia. Dropped to 10 meters, set the datum and started swimming, going well until I crossed into a negative quadrant. My beautiful track went haywire/dead. Then I swam around trying to get back "into" the positive quadrant, I couldn't find it and consequently couldn't get back to t…

You likely already know about inflatable bouys and/or no longer need them, but just in case: https://www.scuba.com/products/scubapro-marker-buoy-orange?v...

Re: Have you ever hurt yourself from your own code?

#96
post #80

Earlier quoted context omitted.

> A cordless handheld drill is hardly a tool that most people would call 'hazardous'. You turn the trigger, the thing rotates, grab the chuck and you can likely stall it. But that much energy in something driven by code is extremely dangerous, it's waiting for any of who knows how many conditions to take off, a common one is that putting your hands in/on something that seems to be not moving can 'make' a sensor and t…

Why would a drill be engineered to put out more torque than a human holding the handle could be expected to counterbalance?

Powerful electric drills will often come with an extra handle on the side (or a mounting point for one) so that you can brace them with both hands. It's up to the user to set an appropriate torque limit if they're only using one hand.

Re: Have you ever hurt yourself from your own code?

#97
post #77

Not sure if this qualifies as my own code but I have a highly modified 3D printer, I had upgraded to more modern trinamic stepper drivers which have sensorless homing and I had forgotten to set a sane value for the torque limit to let the drivers know when it had hit the axis' limit when I ported over my existing firmware config and like an idiot decided to use my finger to test it... I learned that day even small st…

Are your finger(s) okay?

Re: Have you ever hurt yourself from your own code?

#99

Earlier quoted context omitted.

Can you explain more about what you did and why?

tl;dr - too much modafinil. Yes, I have Crohn's and I do not like to take the meds or listen to the doctors. This is NOT AT ALL SOMETHING I RECOMMEND, PLEASE DO NOT ATTEMPT IT. Crohn's is an auto-immune disease and the main class of drugs that is used to treat Crohn's like mine (long term) are called TNF inhibitors or TNF blockers. TNF alpha triggers the production of several immune system molecules, including interl…

600mg of modafinil will make you...really wired, right? Did you notice that you were super productive that month?

Re: Have you ever hurt yourself from your own code?

#100
I built a TENS unit with an Teensy and decided to skip a current sensor. Real switching power supplies regulate current too, not just voltage (a low Ohm shunt across one of the stages to an opamp that tells the PWM circuit to slow down the n-fet input pulses, in addition to the voltage feedback power gate).

The funny part is: I didn't shock myself, I punched myself.

I had the electrodes connected to my pectoral muscle and I was adjusting the levels while holding up my arm with my hand to the side of my head. A random current change translated to a huge voltage boost, the pectoral twitched hard, and BLAMMO, punched myself in the bridge of the nose.

At least I think that's what happened. Could have been changing skin conductivity, but I like to think my Teensy code hurt me. (I eventually removed the MCU and just used two comparitors with a voltage-controlled duty cycle oscillator... much easier.)

Post reply on HN