Ask HN: Weirdest hack that you ever saw in production?
1–10 of 289 posts
Re: Ask HN: Weirdest hack that you ever saw in production?
#2Solution? A bash script that does:
while true:
set date to 4pm end-of-year
sleep 1Re: Ask HN: Weirdest hack that you ever saw in production?
#3The app required a ton of scheduled database and ERP tasks (it used a legacy flat-file db), so the vendor wrapped them all up in a secondary executable that was effectively a non-headless (headful?) daemon (this was expensive, niche industry software btw). The first instance of the application that opened would also trigger the daemon to open too, on whichever PC it was executed on (it was supposed to be opened on the server 1st). It was provided by the vendor this way, as part of the COTS application.
As a result of this daemon hack, every couple days (after the application crashed on the server, as it did frequently) I would run around the building to dozens and dozens of workstations until I found the user’s workstation that had been the first to run the ERP after the server process crashed, and thus had the daemon running on their workstation. Then I would kill it, and sprint back to the server closet to reopen the daemon before any other users would run the ERP and grab the daemon (later would just RDP after we got off NT).
It was awesome.
Re: Ask HN: Weirdest hack that you ever saw in production?
#4Re: Ask HN: Weirdest hack that you ever saw in production?
#5Re: Ask HN: Weirdest hack that you ever saw in production?
#6Re: Ask HN: Weirdest hack that you ever saw in production?
#7Re: Ask HN: Weirdest hack that you ever saw in production?
#8It was 2001 and the thing was on life support while PCs were being rolled out. I was helping to rack my new database servers, which was next to this big lab table/shelf combo with like 16 terminals on it. When pulling a cable I banged my head on the table, then this big book fell on my hand.
About 10 minutes later, a bunch of graybeards come around the corner yelling “WTF are you doing!”
Turns out that the dictionary that hit my hand was perched across two keyboards, holding down the “enter” keys of two terminals. Turns out that for reasons unknown, those terminals had to be repeatedly hitting the enter key in order for the logins and print jobs of about 40,000 people to work.
Re: Ask HN: Weirdest hack that you ever saw in production?
#9[1] - https://en.wikipedia.org/wiki/Fast_inverse_square_root