News for hackers. Stuff that matters.

AfroThundr

Re:Multiple inheritance and the diamond problem on Sunday February 10, 2019 @12:39PM (#19128850)
I remember when I first ran into this with Python classes, and had to learn how the Method Resolution Order worked. They use the C3 linearization algorithm to sole this problem (at least for Python 3 and new-style classes).

https://en.wikipedia.org/wiki/C3_linearization

Re:Public Key Pinning Being Removed from Chrome on Tuesday October 31, 2017 @08:47PM (#15598056)
One primary example would be sites like software repository mirrors, where the majority of content is signed already, and serving them over HTTPS provides negligible benefit to your users (other than the slight confidentiality increase in that an adversary wouldn't know what exactly you downloaded), as opposed to a site serving active content like JavaScript and CSS, which can have disastrous results to the users if an adversary tampers with them.

The latter example is where HSTS becomes an invaluable tool, since now the only way those resources could be delivered is through a trusted channel, verified by the PKI. The same value is not there for a software mirror, because of the other security safeguards already implemented, removing the need to trust the delivery channel. That said, most still do server their content over HTTPS as well.

Re:Ask HN: Google Doc email virus? on Thursday May 04, 2017 @09:08AM (#14264512)
I'm fairly certain a large number of users would still click allow without a second glance, much like hitting "allow macros" in an office document. They just want the annoying dialog to go away.