Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 3y ago · link · parent

I hear what you’re saying but isn’t it a bit of six of one and half a dozen of the other? The high(er) pressure relative to what the pipes could withstand exacerbates the effects of water hammer induced by the pressure washer’s solenoid constantly slamming open and shut in the matter of milliseconds, no? Lower pressure (via a PRV or otherwise), higher-rated pipes, slowly opening and closing valves, or strategically installed hammer arresters are all (theoretically and to various extents) viable solutions, no?

comment 3y ago · link · parent

Ok I understand your point. I heard this story being told before as “the aristocratic English masters..” (implying they’d rubbed shoulders with the French enough to have adopted their lingo) which I think makes more logical sense to how it wound up being a French word in the English language.

comment 3y ago · link · parent

I wrote about this back in 2015 or 2016, with specific examples that people are just now complaining about vocally (mainly the lack of respecting search keywords): https://neosmart.net/blog/on-the-growing-intentional-useless...

comment 3y ago · link · parent

> An obvious disadvantage would be the necessity to maintain stocks of two fuel types.

Wouldn’t a starter motor running off a battery charged by the very generator you are running just be an all around better solution? You can run some modern starter motors off a tiny 12x8 in AGM.

comment 3y ago · link · parent

The whole point is that we don’t know what rules to encode and we want the system to derive the weights for itself as part of the training process. We have compilers that can do deterministic code - that’s the normal approach.

comment 3y ago · link · parent

Yeah but is 1.8 effectively dead?

comment 3y ago · link · parent

Right, but that’s a non-sequitur.

comment 3y ago · link · parent

I am not sure that holds because the same split is observed in other languages, too. See el pez vs pescado in Spanish, for example.

comment 3y ago · link · parent

Fill a cup with cool water and take a sip before you go to sleep. Tastes great, right? Taste it eight hours later when you get up in the morning. It takes on an acrid taste.

comment 3y ago · link · parent

I had a problem just this past summer hooking up a pressure washer to a hose outlet. After two hours of constant on-off cycling, had the pipe leading to the hose bib burst. You could hear the water hammer quite clearly (and violently!) after I repaired it, so I went back and added a hammer arrestor.

comment 3y ago · link · parent

> legionnaires

Actually, this is famously caused by having water that’s not hot enough. It became a problem in some countries when they advised lowering boiler temps to save energy.

comment 3y ago · link · parent

Looked in to this seriously for a product some years back. Captured ping pong ball floating on the surface of the water hitting a physical limit switch is the way to go. Otherwise ultrasound.

comment 3y ago · link · parent

The point is that developers will target the median user, who won’t be doing any of those things.

comment 3y ago · link · parent

Not really “any” program but those that don’t ship their own version and didn’t statically link against libwebp (if that’s an option?). Notably, browsers often don’t use the system version of the library. That’s not the end of the world since browser vendors are on top of the security game for the most part - but the million Electron apps you might be running also each need to be updated individually!

Basically, don’t rest easy and get complacent. Updating the OS distros is not enough.

comment 3y ago · link · parent

I replied to a sister comment to yours but it’s an old library that started off with IE6 support maybe 10 years ago and just kinda never lost it.

comment 3y ago · link · parent

It was used in the checkout flow on our website and the marginal cost of supporting IE6 wasn’t worth a lost sale. That was many years ago, and since then I don’t think we have anyone on less than IE8 due to TLS version issues with CloudFront, but the code already supported IE6 and there aren’t many polyfills extra compared to IE10, so :shrug:

comment 3y ago · link · parent

But in the era when spinning rust startup disks were in use everywhere, no app would autosave. I can’t imagine the carnage if MS Word or Excel were just violently killed at the first sign of memory pressure back in the day.

comment 3y ago · link · parent

Thanks for writing your article and sharing! One thing I do on my other libraries is also to polyfill a few heavier things asynchronously instead of making everyone pay the price upfront, so for example I detect if a JSON polyfill is required before asynchronously loading that polyfill. I think the expectation for most things is that the browser will support them by default, and it’s ok if all/any polyfills are loaded separately and asynchronously.

comment 3y ago · link · parent

I maintain a few JavaScript libraries that I manually verify compatibility against IE6 (and have lints to catch violations). I manually polyfill a few necessities and quality-of-life improvements up top in the script. Out of curiosity, I removed my polyfills and tried swc and babel both, followed by an eslint pass, and the results were absolutely atrocious. Everything gets polyfilled, even stuff that has been supported in every IE version ever. The usage-based detection is completely borked, and is completely based off string searching property/function names. Using toString() anywhere pulls in the polyfills for Date to string, Regex to string, and Object to string. Using regex anywhere pulls in a bunch of regex polyfills. It was a nightmare and the size of my library increased by orders of magnitude!

(I tried opening an swc issue about optionally using typescript ast info (via a plugin, not in swc core) to have more correct usage-based polyfill detection, but that was closed as unlikely to be acted upon.)

comment 3y ago · link · parent

I agree with the main gist of the article and a lot of the points, but disagree on a few specifics.

1) mlock isn’t meant to be called on all your memory, just something that needs it to operate correctly. The situation the author described where the system comes to a halt as memory contents are paged in and out of memory/disk is (subjectively) worse when the only option is for the OOM killer to begin reaping processes everywhere (which would happen if all apps took this advice).

2) the following excerpt is not how any sane modern OS scheduler works:

> Imagine you have multiple background process running at 100% CPU, then a UI event comes in to the active UI application. The operating system may block for 100ms * N before allowing the UI application to process the event, where N is the number of competing background processes, potentially causing a delayed response to the user that violates the real-time constraint

Modern schedulers calculate priority based off whether the process/thread yielded its remaining execution time in the previous round or was forcibly evicted. Background processes are additionally run at a penalty. The foreground window (on OSes with internal knowledge of such a thing) or terminal owner in the current login session group gets a priority boost. Threads blocked waiting for input events get a massive priority boost.

(But the point stands and it might be a whole lot longer than n * 100ms if drivers or kernel modules are doing stuff.)

comment 3y ago · link · parent

Missing from the title: leaving InfluxDB and Prometheus for VictoriaMetrics.

comment 3y ago · link · parent

Another option is plan9; Windows uses the p9 protocol to mount host/guest directories and drives for IO in WSL.

comment 3y ago · link · parent

I think those heads are on the chopping block no matter which hole they’re hiding in.

comment 3y ago · link · parent

None of this ever happens if you use an RDBMS and put everything in strongly typed columns, regardless of how or where you are generating the forms or UI (backend or front end). They can be stored encrypted with a js/user-only #fragment if you don’t want the server to see the data.

comment 3y ago · link · parent

FWIW, I have never bothered updating the car registration address and never had a problem. The DMV/MVD knows who owns the car (tied to your state id or driver’s license) and the latter has been updated. I don’t see a real need to update the former.

comment 3y ago · link · parent

I’ve actually heard a lot of success stories regarding chassis/frame/body straightening on trucks with trees (lots of YouTube videos but here’s a rare blog post [0]). The hilarity ensues when one attempts to straighten the chassis of a unibody vehicle in the same manner (true story, and no, it wasn’t me).

[0]: https://blacksprucehound.com/2018/01/16/redneck-vehicle-fram...

comment 3y ago · link · parent

I was trying to think of how to word what has been accomplished (and finished, as far as the website is concerned) and was having a hard time of it, but your idea to just flip the whole thing on its head and say “warning: you’re not done” is just so elegant in its simplicity. Well done (pun intended)!

comment 3y ago · link · parent

So how would street 2, door 14 be correctly written in Vienna?

comment 3y ago · link · parent

Same solution as most problems: import tax should include cost of getting rid of the car when you’re done. Then getting rid of a car is free. Ship it off the island at your expense and you get a refund.

comment 3y ago · link · parent

DDG has started injecting completely untreated recent news stories to the results of a search with few hits. Like searching for a programming error with specific class names will give you several articles about the woes of the Democratic Party in recent days!!
1
464748
277