Better HN
topnewbestaskshowjobs
Log inSign up

mediumdeviation

1,791 karma · joined Oct 27, 2012 (14y ago) · 297 submissions

Submissions

comment 5y ago · link · parent

In that specific case at least the FBI is asking Apple to produce new firmware that will bypass existing protection on an existing device - basically asking Apple to root a locked down phone which would likely require them breaking their own encryption or finding vulnerabilities in their own firmware. This is not exactly technically trivial since anything of this sort that’s already known would be patched out.

In this case it seems only a matter of policy that Apple submits CSAM hashes to devices for scanning. No new software needs to be written, no new vulnerability found. There’s no difference between a hash database of CSAM, FBI terrorists photos, or Winnie the Pooh memes. All that’s left is Apple’s words that their policy is capable of standing up to the legal and political pressures of countries it operates in. That seems like a far lower bar.

comment 5y ago · link · parent

It only worked because Google Maps loads images in 250px tiles. If Google Maps decided to update tile size tomorrow, the fix regresses. Arguably the entire map as a whole is one content, and that should be measured as the LCP, but more importantly it shows the measure is just very brittle and easily gamed, as other comments in this thread already attest to.

comment 5y ago · link · parent

Create a wrapper class that takes a stringifying function that converts the key objects into a primitive and use a Map<string, [K, V]> as the backing store. fast-json-stable-stringify can be used as the default stringifier, and if the objects are large or have a natural key a custom stringifier can also be supplied. Since we are using TS we can have our custom class implement Map<K, V>.

comment 5y ago · link · parent

> American Renaissance (AR or AmRen) is a white supremacist website and former monthly magazine publication founded and edited by Jared Taylor.

> The publication promotes pseudoscientific notions "that attempt to demonstrate the intellectual and cultural superiority of whites and publishes articles on the supposed decline of American society because of integrationist social policies."

https://en.wikipedia.org/wiki/American_Renaissance_(magazine...

comment 5y ago · link · parent

I hope you've managed to fix this, because this is an obvious security issue. A long token is used precisely because it is long and unguessable. The shortened URL is subject to enumeration attacks which can be used to hijack accounts.

comment 5y ago · link · parent

The most common vulnerability that grants RCE has the attacker exploiting poorly designed deserialization code. Those are high impact but not too common since deserialization is hopefully closely scrutinised.

There are other problems that naturally fall out of the fact that by default all objects, including those from JSON.parse, inherit the Object prototype though. For example -

- If you store user membership or permission as an object with some user controlled identifier (eg. a username) as key, then check if a user is permitted at all with `username in permissions`, a user can name themselves hasOwnProperty to bypass the check since it is part of the Object prototype

- If you deserialize some JSON then try to check membership with `o.hasOwnProperty(someKey)`, a malicious user can pass in JSON with hasOwnProperty as key. This will crash since hasOwnProperty is no longer a function on the object.

These are not necessarily common, but it’s annoying how easy it is for these to slip through. The object prototype in general is just a massive footgun

comment 5y ago · link · parent

Another fun limitation - apparently for my Pixel phone to remember I prefer my temperature in Celsius, Google also needs "Web & App Activity" tracking. In other words Google wants my whole location history when using Google apps just to remember my preferred units.

comment 5y ago · link · parent

> log trains can only carry logs, passenger trains can only carry passengers

Not technically true since you can mix carriages, but like in Factorio having mixed trains is probably a bad idea.

comment 5y ago · link · parent

This comment is the following Douglas Adams quote, but unironically

> Many were increasingly of the opinion that they’d all made a big mistake in coming down from the trees in the first place. And some said that even the trees had been a bad move, and that no one should ever have left the oceans.

Also if you believed the Chinese were hunter-gatherers 1000 years ago then you might want to read up on Song dynasty (960–1279AD) - https://en.wikipedia.org/wiki/Song_dynasty

comment 5y ago · link · parent

You absolutely do not want to scale the page to the same physical size on different screens because you also need to take into account distance between screen and your eyes. Text on phones can be smaller physically than text on a desktop monitor because you hold your phone closer. As an even more extreme example, think of browsing the web on a TV screen while sitting on the couch and how small the text would be if it is physically the same as it is on your phone.

comment 5y ago · link · parent

> Of course, I had to get all that info from thedonald.win because almost no-one else is talking about this.

Except on the news media [1], or the largest politics community on one of the largest social networks on the Internet [2].

[1]: https://www.nbcnews.com/tech/tech-news/twitter-bans-michael-...

[2]: https://www.reddit.com/r/politics/comments/ktcafe/twitter_ba...

comment 5y ago · link · parent

Compiz cube can already do this with your entire desktop circa 2006. I remember being quite delighted with it when I first installed Ubuntu but it was never very practical. I still miss wobbly windows though

comment 6y ago · link · parent

They said the same thing about DoubleClick and YouTube. The amount of trust you should give to Google's words is zero.

comment 6y ago · link · parent

For context - this was used for Stack Overflow’s 2010 April Fools https://meta.stackexchange.com/questions/37328/my-god-its-fu....

The algorithm for generating a unicorn from a hash is quite interesting. It looks like the site is down, but thankfully the internet archive has a mirror https://web.archive.org/web/20100428132341/http://unicornify...

comment 6y ago · link · parent

Mostly useful for print stylesheets. On screens it seems to be defined as a constant 96px[1], which means it has no correspondence to physical inches.

[1]: https://hacks.mozilla.org/2013/09/css-length-explained/

comment 6y ago · link · parent

That seems unlikely given that in the week of April 6 to 12, Covid 19 has risen to the 2nd leading cause of death in the United States[1].

[1]: https://www.washingtonpost.com/outlook/2020/04/16/coronaviru...

comment 6y ago · link · parent

The locking down of the API is done to prevent competition, while being publicly framed as a privacy enhancing scheme.

> The Switcharoo Plan turned out to be an idea whereby Facebook executives would deprecate various APIs that its developer partners depended on for fear that those developers would one day compete with Facebook directly, while publicly announcing that the changes were intended to promote privacy.

https://www.theverge.com/interface/2019/11/8/20953623/facebo...

Nothing Facebook says publicly should be trusted.

comment 7y ago · link · parent

Isn't this the same company that phishes its users by asking them for their banking login and 2FA information directly in third party apps? I'm not sure if this is the sort of regulatory barrier breaking worth celebrating.

comment 7y ago · link · parent

Ah yes, same as my new Pixel. Apparently to be able to give me temperature in Celsius instead of Fahrenheit, Google would like to know every app activity and usage as well as everywhere I have been. This sort of privacy bundling really should not be allowed.

comment 7y ago · link · parent

Yup, you can definitely see a web developer bias here - those are all popular webfonts because Google offer them free on their CDN, and it is easy to drop them into any website by just pasting in the CSS, but they are probably much less familiar to those outside frontend web development. They're also not necessarily the best fonts to use for the same reason.

111.

24 Hours inside San Francisco’s homelessness crisis(projects.sfchronicle.com ↗)

11 points · by mediumdeviation · 7y ago · 1 comment

comment 7y ago · link · parent

I think you're thinking of a different threat model from these users. If you're concerned about breaches by malicious actors, then yes this defense makes sense.

However, if you're worried about data mined from tracking your personal behavior, which is what the users here are worried about, then it makes sense to spread your data out. Traditional stores are not going to send each other your transaction history to build a profile of interest and personality, and each store won't have a complete enough history or even the expertise to mine it.

comment 7y ago · link · parent

It's a recreation of the game that Slack pivoted from. They also released most assets from the game into the public domain https://www.glitchthegame.com/

comment 7y ago · link · parent

Only aiding and abetting one genocide this year would be a 50% improvement over last year!

comment 7y ago · link · parent

No, if you actually read the label you'll notice it's basically a religious tract preaching a weird quasi-spirituality nonsense. I do like that in those days you have to actually create a useful product so people would listen to you, instead of now where you just need a Twitter account

> Emanuel wasn’t a businessman (or a doctor, for that matter). He was an activist who, in the wake of his parents’ deaths in the Holocaust, began using his soap’s label as a, well, soapbox for proselytizing his “All-One!” thoughts and ideas. His philosophy, which he eventually named the “Moral ABC,” comprised a grab bag of religion, spirituality, environmentalism, and self-help, and its peculiarity was matched only by its ambition: peace and harmony on “Spaceship Earth.”

comment 7y ago · link · parent

For what it's worth, Create React App is bundled with eslint-plugin-jsx-a11y which will give you the same warning

comment 7y ago · link · parent

Just leave it blank and force the user to explicitly enter something? I don't see how defaulting to the current date is ever useful for date of birth from a user interface design perspective.

comment 7y ago · link · parent

> I don't get why defining routes with components is a good thing

It makes the routes reactive. This is not necessary for smaller projects, but where it is needed this can be really helpful. The responsive route example shows this off well https://reacttraining.com/react-router/core/guides/philosoph...

comment 7y ago · link · parent

Coase Theorem doesn’t say _how_ you should divide up property rights - that’s a normative statement that’s outside the scope of economics - but rather that as long as _any_ property rights are assigned, regardless of which way the assignment goes, the outcome will be economically efficient.

Also it assumes transaction costs are negligible, ie in the example in the article, the negotiations between the railway and the farmer can be done cheaply and quickly. This is somewhat like assuming a frictionless plane in physics.

comment 7y ago · link · parent

Ironically the first time I’ve seen this point made is in an Onion video - 6-Year-Old Explains How Messed Up It Is That Her Entire Life Has Been Put On Facebook https://www.theonion.com/6-year-old-explains-how-messed-up-i...
12345
10