Right after WinXP came out, I was a sys/win admin at a manufacturing co. Their ERP system was an old VB app that sat on a share drive and everyone opened the same .exe from their respective workstations. The 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…
Oh wow. Yeah, that sort of thing seems to have been so common in ERP software. My first professional programming job was working on a bespoke ERP and industrial process control suite (written in PowerBuilder). The program had a huge number of sub programs (dynamically loaded modules, each an MDI window accessed using a “program name”, something like a SAP transaction code). We had a number of background services that…
Ask HN: Weirdest hack that you ever saw in production?
61–70 of 289 posts
Re: Ask HN: Weirdest hack that you ever saw in production?
#62In my startup days, we were working on a proof of concept with a really big bank. Because of their security rules, we couldn't have direct access to their systems - so if we wanted to do something remotely, we would have to start a webex, they would join and share their screen, and give us remote control. This worked great, except if we wanted to work over the weekend, since if we left the screen alone for more than…
On a windows machine you can start a powerpoint presentation, then minimise it. This stops the screen lock from starting.
Re: Ask HN: Weirdest hack that you ever saw in production?
#63Earlier quoted context omitted.
I use a posh script like this when i dont want the computer to lock. $ws = New-Object -COM wscript.shell; while($true){ $ws.SendKeys("j"); Sleep 60;} Ive used it for demos that way the computer doesnt lock before the demo starts, its pretty short and easy to remember. Also on windows if you spam SendKeys("{Left}") everything you type is backwards and when you hit the windows key it freezes the computer in an interest…
Try this: http://www.zhornsoftware.co.uk/caffeine/ Use it all the time when working from home/moving around and I don’t want my laptop to lock every 15.
Or a powered turntable for your mouse, if you can't plug HID devices into your machine! https://www.amazon.com/Liberty-Mouse-Mover/dp/B079P592K8/
Re: Ask HN: Weirdest hack that you ever saw in production?
#64Re: Ask HN: Weirdest hack that you ever saw in production?
#65Not sure if this is still the case, but back when I was at Apple the program that triggered when you pressed a button on an Apple remote pointed at a Macintosh was just a giant AppleScript file that, at the top level, was a giant `if...else if...` statement to try and determine which application had the foreground so that the appropriate action (e.g. next track for iTunes, next slide for Keynote, next chapter marker…
Re: Ask HN: Weirdest hack that you ever saw in production?
#66Earlier quoted context omitted.
Using Google Sheets instead of a proper database brings me nightmares.
I did this once. A client wanted a website that mimicked the functionality of a complicated spreadsheet that he had created to calculate quotes for customers and didn't have enough money to pay to have all the logic rewritten in a webserver (not to mention continually updated). I imported the spreadsheet into google sheets, gave him access, and had the webserver paste the values in the spreadsheet via the google shee…
https://github.com/franciscop/drive-db
Since you can also hook a Google Form to a spreadsheet, you can do surprisingly advanced things over there.
Re: Ask HN: Weirdest hack that you ever saw in production?
#67In my startup days, we were working on a proof of concept with a really big bank. Because of their security rules, we couldn't have direct access to their systems - so if we wanted to do something remotely, we would have to start a webex, they would join and share their screen, and give us remote control. This worked great, except if we wanted to work over the weekend, since if we left the screen alone for more than…
Re: Ask HN: Weirdest hack that you ever saw in production?
#68It was a highly optimised sorting algorithm for client names, and used everywhere. It occasionally dropped a name, and I was asked to fix it.
PL/I allows you to free part of allocated memory. In this case, two names would be pulled out of the array, that part of the array would be freed, and turned into a new array instance. Pair got sorted and reinserted. Repeat until array becomes array of single arrays, then bitshift edge of array allocations to recreate array in place.
Re: Ask HN: Weirdest hack that you ever saw in production?
#69Not sure if this is still the case, but back when I was at Apple the program that triggered when you pressed a button on an Apple remote pointed at a Macintosh was just a giant AppleScript file that, at the top level, was a giant `if...else if...` statement to try and determine which application had the foreground so that the appropriate action (e.g. next track for iTunes, next slide for Keynote, next chapter marker…