Live data from Hacker News

Ask HN: What's your "it's not stupid if it works" story?

news.ycombinator.com

241–250 of 510 posts

Re: Ask HN: What's your "it's not stupid if it works" story?

#241
As a young linux admin I had a webserver crash and fail to boot afterward.

I used a live CD to boot it, but could not fix the boot partition.

Since I was able to read the root partition I chrooted into it and started nginx from there.

It ran like that for a week while I was preparing a replacement.

Re: Ask HN: What's your "it's not stupid if it works" story?

#242
I once built a backup script in Batch (Windows Shell scripting language). That was a while before Powershell got popular, and needed to work on everything from Windows 2000 to Windows 7 or server. Additionally, as I was working for a small (read: 5 guys) IT shop with small customers, it needed to be free, while still supporting lots of advanced functionality (automatic diff backups, restore operations, rotation, network drive mapping, configuration parsing, etc.) that ruled out most proper solutions. While it wrapped a low-level shadow snapshot tool, it still got a few hundred lines long, did crazy logic and output stuff, and even required me to create a unit testing framework for Batch files from scratch. If that all doesn’t sound really noteworthy, it’s because you don’t know that curse of a shell :)

Re: Ask HN: What's your "it's not stupid if it works" story?

#243

I wanted a smart thermostat but my 30 year old natural gas heater didn‘t support them. I only had a wheel which I could turn to set the temperature. So I took double sided tape, stuck a plastic gear on the wheel and put a servo on with another gear on the side, connected to a raspberry pi, that would turn the wheel when my phone would enter a geofence around the flat. Picture: https://ibb.co/nDvwndp I even had a bash…

I've been smartifying dumb devices at home as well and came up with similar rubegoldbergesque solutions, although ultimately I didn't need to actually implement any of these as I found other ways to achieve my goals.

One of them involved pointing an old webcam to a segment display, convert shitty image to monochrome in a way that makes vague shapes for the digits and other state icons but clamps everything else to oblivion, and just use some fixed pixel position to "read" and get device state from that.

Made some fun prototyping though.

Also reminded me of: https://thedailywtf.com/articles/ITAPPMONROBOT

Re: Ask HN: What's your "it's not stupid if it works" story?

#244
post #210

Not my idea or implementation. Our startup built a plugin for Microsoft Outlook. It was successful, and customers wanted the same thing but for Outlook Express. Unfortunately, OE had no plugin architecture. But Windows has Windows hooks and DLL injection. So we were able to build a macro-like system that clicked here and dragged there and did what we needed it to. The only problem was that you could see all the actio…

Love it, lol

Re: Ask HN: What's your "it's not stupid if it works" story?

#245
post #210

Not my idea or implementation. Our startup built a plugin for Microsoft Outlook. It was successful, and customers wanted the same thing but for Outlook Express. Unfortunately, OE had no plugin architecture. But Windows has Windows hooks and DLL injection. So we were able to build a macro-like system that clicked here and dragged there and did what we needed it to. The only problem was that you could see all the actio…

You could just overlay the Outlook window.

Re: Ask HN: What's your "it's not stupid if it works" story?

#246

Earlier quoted context omitted.

Your company had remote embedded devices but didn't keep one "locally" for debugging issues?

There's a zillion things that you can't necessarily test for locally. When you have a fleet of IoT devices deployed in other people's environments, there's literally no way to test everything. Your question comes down to "Why didn't you just deploy bug free code using perfect processes? That's what I always do." I mean, cmon.

I never said they should test for everything.

OP's description suggests it was an error that's common to all the deployed instances that received the update, rather than some specific combination of environment and that deployment.

It would have allowed them to run the same deployment locally and use physical access (serial, a display, sd card, whatever) to capture the error log.

What they came up with is clever but it's very surprising that they needed it, especially given that they have very limited remote access to the units that are in the wild.

Re: Ask HN: What's your "it's not stupid if it works" story?

#247
In my first job, a spinning hard disk had been disturbing people for months by making screeching noises. I had been playing a lot with hardware so I knew that pushing the metal part on top of the disk could make that sound disappear. And it did! Told them to keep backups fresh and get a new hard disk.

Re: Ask HN: What's your "it's not stupid if it works" story?

#248
Many many years ago I worked for a University that had a huge stock of old 386 and 486 pizza box style PC’s and we were implementing Citrix Metaframe on Windows 2000. It was decided to repurpose the older PC’s as thin client boxes, but in initial tests the users hated seeing the older Windows 3.11 OS booting up. We were in a hurry to get rolled out so I ended up making a small GUI on VB6 with two buttons - Load Thin client system and shut down. This replaced the Windows shell and loaded almost immediately. Took me something like 10 minutes to make.

Years later I went back (like 10 years later?) and they showed me a sleek new tiny thin client box, and when it loaded there was my VB6 screen with the familiar two buttons. Apparently the users loved it and so they had ported it across to the newer devices ever since.

Re: Ask HN: What's your "it's not stupid if it works" story?

#249
post #132
post #106

I used to work at a small company. We had a few remote embedded devices that did work and sent data back to the mothership over the internet. Their firmware could be remotely updated, but we were always very careful. Well one day a mistake was finally made. Some of the devices went into a sort of loop. They’d start running the important process, something would go wrong, and they’d just retry every few minutes. We ca…

How you could have enough control over the machine to reroute the error log to (what I assume was) a Pastebin api, while also lacking access to any of the files on the machine? In my mind you'd be required to ssh into the machine to upload, and if you're ssh'd in, why not just cat the log?

I was doing some proxy soak testing for a company once where we had to run the tests from the server room but there was no non-proxy connectivity from that room to where we were monitoring the tests. Simple solution: output the progress to Dropbox, watch the same file upstairs. Bit of delay, sure, but better than having no idea how things are going until the 30-60min test is done (and no, we weren't allowed to sit in the server room watching it.)

Re: Ask HN: What's your "it's not stupid if it works" story?

#250
post #227

My wife was pregnant and tired of doing cold video outreach for our recruiting business, so I wrote a python script that took her best video and just spliced in audio of her saying different people’s names and LinkedIn profiles. To hide the lips not matching the audio, she did a little wave that covered her mouth at just the right time. Example: https://www.loom.com/share/3162a767905c422b8fd423f7448e16f8 It ended up…

I guess you're getting downvoted because this is basically video spam, but it's still clever!
Post reply on HN