by sedatk · 3y ago · 0 comments
I worked for an (unnamed) company once. For some reason I needed to update the gender of a user on the production server with two million users on it. (There was no interface to change gender I expect)
I accidentally forgot the WHERE clause on the SQL UPDATE and made everyone male.
A fellow developer was watching over my shoulder and we decided to just use the Title column (e.g. Mr/Ms/Mrs) to repopulate the Gender of all users without letting anyone know.
I want to apologize to all the female Drs. in that database.
Apple's operating system used to have "hooks," where you could register to intercept almost anything that went through the system. Basically, any app could intercept the execution thread of another app (or the operating system), and insert its own code.
Doesn't that sound fun?
One of my favorite MacHack projects was the "Energizer Bunny" hack (I think Dean Yu did it). You installed the hack on multiple Macs, and, randomly, the Energizer Bunny would start banging across their screen. When it was done with one machine, it would move to another machine on the network.
These days, security geeks would defecate masonry, if they came across that.
One of my favorite apps, was something called "Kaleidoscope"[0], which allowed you to select custom "themes," for the operating system, bypassing the Appearance Manager[1], which was an API over QuickDraw. The themes could have executable components.
Some of the themes where ghastly (but fun).
Why? They give that source away under NDA to non-employees. Handing it to someone who passed all the employment hurdles and has signed a more restrictive NDA shouldn't be a problem.
> maybe I'm underestimating the amount of checks between you and code in windows updates
Access doesn't mean force push rights to master (-:
The biggest reason to disable this is more to prevent accidental mistakes: you think you're force pushing your feature branch but you accidentally force pushed master. We've all done something like that.
Of course MSFT probably requires x code reviews for PR/patch merges.