Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 5y ago · link · parent

So if surveillance doesn’t last 72 hours (one and done), does this verbiage leave any wiggle room for not needing a FISA warrant?

comment 5y ago · link · parent

Yes, but not directly via a service worker (aren't they blocked from network access in general?) - you'd have to trigger the main thread to sync with the service worker, then perform the exfiltration for you.

The original way to do this via a synchronous XHR request in visibilitychange/beforeunload/unload handlers gave you a 1-2s window to exfiltrate the data. That's been deprecated in exchange for a more insidious "invisible background connection to the server maintained after closing the tab or navigating away" that doesn't involve any UI delays. (For "a better experience" of course, not for stealth! Never!)

It's called the beacon API [0] and it's supported by basically all browsers [1]. This was introduced because, chiefly among others, Google Analytics was stuck between blocking in head to record the page view or moving to the end of the html document and using documentready but with a fairly high risk of user navigating away before all that had a chance to trigger at all or after it triggered but before it could exfiltrate the data.

[0]: https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API

[1]: https://caniuse.com/?search=beacon%20api

comment 5y ago · link · parent

We’re moving far, far away from the observability and introspection that once made the web a transparent medium. First it was minified JS, then it was minified and obfuscated JS, then it was using a canvas instead of the DOM to prevent even HTML inspection, and now it’s binary executable payloads (WASM) rendering to a WebGL context with zero introspection possible.

comment 5y ago · link · parent

Here's `tac` in rust, with simd optimizations (in the simd branch, I haven't gotten around to releasing it although the only thing missing is dynamically detecting simd support instead of doing it at compile time):

https://github.com/neosmart/tac

and `rewrite`, which I've been told is akin to gnu sponge, "rewritten" in rust:

https://github.com/neosmart/rewrite

comment 5y ago · link · parent

> Even if you don't think Cloudflare is perfect, don't you trust them way more than, e.g., Comcast?

Why would I trust a company I have no binding contract with, that doesn’t gain anything from my using their services, that doesn’t stand to lose anything if they lose me and others as a user of this particular service, etc over a company I entered into a legal agreement with, pay a monthly sum to provide a named service, and can sue in a court of law with some modicum of standing if things go sour?

comment 5y ago · link · parent

This is why any attempts to make plain http sites throw up scare warnings is a horrible idea. The internet is littered with old websites that contain a wealth of knowledge and deserve to remain accessible.

Just make browsers for into “read only” mode where input cannot be accepted on non-secure pages. But don’t wall them out!

comment 5y ago · link · parent

It doesn’t even rely on PCRE, just core regex.

comment 5y ago · link · parent

Very long build up to what is definitely a neat trick, although without SKIP FAIL, it might cause explosive growth in the memory usage as it allocated space for the results you don’t need (unless you use a streaming regex option).

Speaking of lengthy: this site breaks the iOS Safari scroll bar! It just disappears altogether (even when scrolling up or down to make it show, like you have to these days to please the UX designers in Palo Alto).

comment 5y ago · link · parent

Yes, but how many programs written for the real thing have hard coded values dependent on cycle times?

comment 5y ago · link · parent

Only tangentially related, but is social media a net positive for society? An argument could be made for any of those things you named alongside it which have now become modern essentials, but does social media belong in that list? Instead of democratizing access to social media maybe the answer is to cut off the tentacles these firms use to maintain their grip over our society?

comment 5y ago · link · parent

Working in open source, I’ve interacted with commits that predate git and were imported into it a decade ago, whether to track a bug, see how changes correlated, or check the historical behavior of a function. I couldn’t work without the ability to do so.

comment 5y ago · link · parent

I’ve had three laptops fail in the last five years due to a flash rom chip getting corrupted after saving changes in the BIOS one time too many. Enterprise warranty covered an HP and a Dell service rep to come on site and swap out the motherboard+cpu+gpu combo twice, I swapped out the rom myself the third time.

I’ve also had to do it on a desktop Gigabyte motherboard circa 2009 after a successful BIOS update left the flash rom unstable.

comment 5y ago · link · parent

This is actually why bios chips fail so often in personal computers.

comment 5y ago · link · parent

Yeah, it’s a bit more nuanced in practice. Most chips now have the ability to specify ranges that are locked or unlocked which then have different requirements for what it takes to write to them, and treat the /W line differently depending on that configuration. But they’re also 20c parts, so using two chips isn’t crazy (many use multiple either as backup or for the different components anyway).

comment 5y ago · link · parent

I’ve already done it, and it’s not that hard. Others have done more. It’s the best way to avoid SD card or flash write wear. My production devices default to read-only mode and must have a dip switch toggled before any changes persist beyond the shadow ram-resident overlay that resets at power cycle.

(Aside: As for my idea of a configuration system, I’ve developed entire [incremental!] build systems that take a kernel source tree and configuration files and generate fully boot-ready images with drivers, packages, and even GUI support down to specifying the themes and customizing panel layouts, and more via a fully declarative syntax. The images have been booted on commodity hardware not under our control spanning some twenty-plus years of technology on more than a 100k machines. This is HN: not everyone is merely an armchair expert in whatever the topic of discussion is for today. It can be beneficial to assume expertise is out there and seek it rather than deny things are possible.)

comment 5y ago · link · parent

> A "firmware update" hardware switch is challenging to implement.

No, it’s not. The actual low-level chip on the flash has a separate pin that must be connected to ground to enable writes.

comment 5y ago · link · parent

It even overlapped with the period AOL was a thing. Unless you’re suggesting that wasn’t a household name, either.

comment 5y ago · link · parent

Amazon always shunned FedEx (used them as an option of last resort) because, unlike UPS, they refused to make changes that would be short-term beneficial but make their future outlook dependent on the whims of their biggest client.

comment 5y ago · link · parent

> even at peak IBM it was an office name, not a household name

IBM was synonymous with PC for quite some time.

comment 5y ago · link · parent

Wait until you read about the FBI did to Black civil rights leaders.

comment 5y ago · link · parent

These are operating on EM/sound at frequencies magnitudes higher than anything in the audible range; there's basically no chance anything you can hear (no matter how loud) could interfere with this.

comment 5y ago · link · parent

But that breaks a lot of design assumptions, since many times the use of vh vs vw is to avoid assuming which of the height or width is greater. You’d have to use a min/max calculation to avoid aspect ratio mayhem whn comparing landscape to portrait.

The real big is UI elements that randomly appear and disappear in the browser chrome, such as scroll bars and address bars, that contribute to vh/vw randomly spazzing.

comment 5y ago · link · parent

These were claims made in court, during formal hearings. They weren’t disputed, and as such, they are part of the official court record and are worth more than random hearsay.

The US’ repsponse (as quoted) was that these allegations were “wholly irrelevant.” That doesn’t sound like a denunciation or denial to me.

comment 5y ago · link · parent

> So there was not really a problem then.

There wasn’t a problem until there was. Just because they weren’t silenced until the issue gained global notoriety outside of the social media bubble doesn’t mean there is no problem.

comment 5y ago · link · parent

I don’t think Fitt’s takes into account the “end of screen” concept, though? I guess it makes the width of the element infinite in some regards.

comment 5y ago · link · parent

I thought NASA no longer used lead-free solder to avoid this.

comment 5y ago · link · parent

> If there is currently a 100% outage, it's best to go all out on trying every possible fix, because typically you'll restore service quicker that way. Sure, occasionally you dig yourself a deeper hole, but usually it's the best strategy.

Maybe. Once an outage has happened, an additional 30 minutes or hour of outage, depending 100% on the service in question, might be a bearable cost if it means preventing a domino effect of future issues caused by measures taken to restore the outage in a hurry.

comment 5y ago · link · parent

Barely. Google nerfed it and now it is only supported for images. You could do full-on chat without JS by using it for the html itself previously.

comment 5y ago · link · parent

Only if wages rise accordingly. There is some sign it may happen given the still-high levels of unemployment combined with companies actively seeking workers, but it’s too soon to really tell.
1
99100101
277