Needed to get data out of a CRM system for specific printed orders - when it was printed, who processed it, what was on the order etc. The process of authenticating with the CRM was complex and there wasn't a way to get anything at print time and most of the data was stored all over the place. But I found the printed report knew almost everything I wanted, and you could add web images to the paperwork system. So I ad…
As a European I'd like to know how our numbers are differently formatted to yours! (Did you mean dates? The never ending source of pain!)
Ask HN: What's your "it's not stupid if it works" story?
321–330 of 510 posts
Re: Ask HN: What's your "it's not stupid if it works" story?
#322Earlier quoted context omitted.
The thing (screenshot and all) was routine done in the 90s with all those fancy non-rectangular applications/demos/launchers [usually available on CDs that came w/ magazines]. They had transparent/alpha zones that copied the screen under them.
Ahh so THAT's how they did that!
But alpha, specifically, would be faked at that point. Windows 2000 supported alpha for such things in a basic way, like XP. Vista with Aero and 7 then really expanded the themes and the window compositing.
Re: Ask HN: What's your "it's not stupid if it works" story?
#323I left a root prompt in one of the VTY's so people could mess around with it, but it being a net-booted BusyBox shell, there wasn't much to play with. We weren't concerned about MITM, because the network was token ring - in the mid 2000s. Convention full of hackers, and a bunch of machines with root shells open, but nobody hacked it, because nobody could get on the network.
We shipped all the gear up on an Amtrak from Florida to NYC. We had no budget nor interest in shipping them back or storing them, so we stacked them on the sidewalk and started yelling about free computers. In two hours they were gone.
Re: Ask HN: What's your "it's not stupid if it works" story?
#324I 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…
That's just the good old "interfacing with legacy systems" routine. :)
Re: Ask HN: What's your "it's not stupid if it works" story?
#325Earlier quoted context omitted.
The thing (screenshot and all) was routine done in the 90s with all those fancy non-rectangular applications/demos/launchers [usually available on CDs that came w/ magazines]. They had transparent/alpha zones that copied the screen under them.
Maybe some incompetent people did it that way, but 1-bit transparency was very well possible with native Windows APIs in the 90s (see SetWindowRgn). Later on (starting with Windows 2000 IIRC) it was also possible to have semi-transparent (alpha-blended) regions.
Re: Ask HN: What's your "it's not stupid if it works" story?
#326This regex that took about 10 minutes to generate was amazingly effective and helped me earn my highest ever daily rate https://gist.github.com/dr-kd/d43c884fbac0089d8523
Re: Ask HN: What's your "it's not stupid if it works" story?
#327I 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…
https://www.youtube.com/watch?app=desktop&v=0DU0KX9gIk8
The clock is extremely reliable, though. The last batteries lasted for 10 (!) years.
Re: Ask HN: What's your "it's not stupid if it works" story?
#328Re: Ask HN: What's your "it's not stupid if it works" story?
#329Mine's getting command output out of docker. For long builds (I had one that took 4 hours), it was gutting to have it fail a long way in and not be able to see the output of the RUN commands for thorough debugging. So I devised a stupidly simple way: add && echo "asdfasdfsadf" after each RUN command. I mashed the keyboard each time to come up with some nonsense token. That way, docker would see RUN lines as different…
When I was writing it there was no easy opt-in cache busting (renaming scripts at build time, or applying a static random querystring to the script requests, etc) in the minimal framework I was using and I was getting away with not using a task runner or anything like that.
It was one of those "would be nice, but effort is better spent elsewhere" things, so to this day before I do releases I still bump a hardcoded version number that I pass to the templating engine for each route.
I should fix that.
Re: Ask HN: What's your "it's not stupid if it works" story?
#330This regex that took about 10 minutes to generate was amazingly effective and helped me earn my highest ever daily rate https://gist.github.com/dr-kd/d43c884fbac0089d8523