Live data from Hacker News

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

news.ycombinator.com

481–490 of 510 posts

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

#481

Earlier quoted context omitted.

Half a joke, because the concept is very much the same. You "paint" to an invisible buffer and then you swap.

Yeah, but the concept of double buffering is to swap every frame, for performance gains. Here nothing gets swapped, and just temporary the screen gets hidden. So vaguely similar ... but not very much the same in my opinion.

Performance gains is kinda iffy. You actively hurt latency for the sake of consistency. Even more with triple buffering.

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

#482
LAN Party. Had an LG wireless keyboard that came with the monitor. AA batteries leaked acid inside and it stopped working correctly. Random keys would press. Opened it up, pulled apart the two sheets that had what looked like an oversized circuit board.

Wiped the battery leavings off, then drew the circuits back on with a pencil. Then thought to use sandpaper to sever the Windows key so I’d never again minimize during Counter Strike.

Keyboard worked for years after that.

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

#484

Earlier quoted context omitted.

While this is a great hack, this feels like a terrible product to sell to customers. I work on a game with an SDK for plugin development, but sometimes third party developers go off and want to do things that the SDK doesn't offer. Since they get to be in our address space, it's pretty trivial to snoop around internal resources if you really wanted to. The problem is, when we update some core parts of the engine, we…

Out of sheer curiosity, could you name this game?

Sure, it’s X-Plane 12. But this really is a problem for any software that is continuously being developed and that sees active releases. Any time the internal API or ABI breaks, chances are you break someone’s work with it.

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

#485

Back in the '90s I consulted at HBO, and they were migrating from MS Mail on Mac servers to MS Exchange on PCs. Problem was that MS Mail on the Mac had no address book export function, and execs often have thousands or even tens of thousands of contacts. The default solution was for personal assistants to copy out the contacts one by one. So I experimented with screen hotkey tools. I knew about QuicKeys, but its logi…

I’ve occasionally used “auto-resuming breakpoints with sounds” in Xcode / iOS development, and it can be remarkably useful in some situations. But I had to be shown the possibility in a UI, really clever!

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

#486

Earlier quoted context omitted.

FYI you shouldn't use anything other than DI water in humidifiers. Using tap water can cause bacterial/fungal buildup and emits harmful particulates into the air. https://dynomight.net/humidifiers/

The risk of bacterial infection is overblown. But you still don't want to use tap water for a humidifier because you'll get limescale all around the device.

The link you’re replying to basically postulates that with tap water you are inhaling PM2.5 particles from the same chemicals that cause limescale, and as far as we know PM2.5 particles are harmful to your health in any quantity.

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

#487
There was a very early MMO game which leaked its server files & people started doing custom servers.

There was a VERY limited scripting language for the server. This had some commands but missed basics like variables. However you could track the number of NPCs in a room.

So this led to some rather interesting new primitives:

- "Chickens in a room" became my preferred method of counting / implementing any kind of persistent global state.

- For timers I would spawn an enemy and a guard. When the guard killed the enemy the timer was up. (The number of NPCs dropped back to 1).

Combined these concepts to implement "dungeon instances": copied the map (as in literally copied the file) 10 times, used chickens-in-a-room to track which one players would enter, and whether you were entering the current instance or incrementing to the next was determined by the guard-kills-mob timer.

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

#488

I once had a CD that I really needed to make a backup of, but it was scratched to hell and truly unreadable. I put it in a pot of boiling water for a few minutes, and presto: the CD was readable for a while, letting me back up the files. It'd cool off and become unreadable again, but I'd just put it back on the stove and repeat until I had all of the data.

Hotswapping!

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

#489

Our startup needed to automate our invoicing process. Back in the day there were only a couple of reasonably priced, web based ERP systems in our country. The one we picked had good API docs, but we didn't read the fine print - API access was a high yearly fee, costing almost as much as the regular subscription fee. Their web interface functionality for importing orders/invoices from a CSV file, and looking at the br…

I've done a lot of this type of thing! Great example.

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

#490

Two car stories. 1. I got to my car and the battery was flat. Fortunately, I had ridden my home-built electric skateboard to it (this was before even the first Boosted Boards came out - completely homemade, I built the trucks, drive system, etc). I went to the Goodwill next door and bought an extension cord for the wire. I stripped the cord, wired the board's battery to the car, and was able to start it. 2. I was dri…

On our way to a remote cabin, when the alternator failed. Well, the alternator itself didn't fail: the bolt holding the distribution lead on corroded through and fell off. No cell service, long ways to any help, and my then-new girlfriend was not at all happy. I wandered up the road and found a piece of wood I could whittle to the right shape, and then dug through the boot. I hung the wire onto the bare stub of bolt remaining, locked the scrap of stick over it, then tied that on with the strap from a pair of old swim goggles. We made it the thirty miles to the cabin, had a good weekend, and the fix was solid enough to make it a hundred miles back home. Oh, and the new girlfriend is now my wife, so all things considered that's by far my most successful hack.
Post reply on HN