Better HN
topnewbestaskshowjobs
Log inSign up

abhorrence

872 karma · joined Sep 20, 2013 (13y ago) · 164 submissions

Submissions

comment 6y ago · link · parent

I think the defense is that (assuming IVs, nonces, etc... are held constant) that the files would encrypt identically. And the excuse for the rest of the disk is “it gets filled with random bytes to obscure how much disk space is actually being used.

comment 6y ago · link · parent

I generally like to have feature flags default to true in tests. It helps avoid this sort of situation, because if they ignore the flag, they’ve probably broken some tests. And if they only put it in the flagged path, their code won’t work in prod, but it probably won’t break anything either.

comment 6y ago · link · parent

Reflection isn’t required, but with sufficient reflection a language could essentially be extended to include duck typing.

comment 6y ago · link · parent

There’s very few constitutional limits on the power to pardon. I suspect abusive use of the power would fall under the scope of impeachment, but we’d be unlikely to ever see that play out.

Pardons are also interesting because they have to be affirmatively accepted, and they have to be for an actual crime that was committed — so there is endless debate about whether accepting a pardon is an admission of guilt.

comment 6y ago · link · parent

Do the NNs actually need to learn this? I’ve always assumed that NNs primarily being used to do computer vision, but that all the driving decisions would essentially be a fancy rule system.

Is this not how most self-driving works?

comment 6y ago · link · parent

I believe they always intended to eventually be standalone. They wanted to use the collaborations to get the Sony name associated with games.

comment 6y ago · link · parent

Someone's "Bacon" number is how many films you have to go through in order to go from that person to Kevin Bacon. For example Patrick Stewart's Bacon number is 2. Star Trek: First Contact -[James Cromwell]-> Beyond All Boundaries -> Kevin Bacon.

Someone's Erdős number is the same concept, but applied to coauthorship on research papers.

Someone's Erdős-Bacon number is the sum of those two numbers.

comment 6y ago · link · parent

This is not true. Vaccinations are not 100% effective. They're usually in the range of 90% to 99% effective. Protection also wanes over time. Because of this, herd immunity protects everyone, not just those who are unable to be vaccinated for health reasons.

comment 6y ago · link · parent

And if you did live in California, your 3rd grader could still be suspended from school.

This only really gets rid of the "arrested for no reason but resisting arrest" style of suspension.

comment 6y ago · link · parent

This doesn’t mean that bullying will go in punished. Nor does it mean that disruptive students will be allowed to continue disrupting class without consequence.

It simply means that teachers have a lot less discretion, which will remove a lot of the potential for bias to affect their students in negative ways.

comment 7y ago · link · parent

In many states the DMV allows you to register to vote while obtaining your drivers license (or other state ID card).

comment 7y ago · link · parent

I think the important bit is that at some point a team has to say “this is ready to not be behind a flag”. At that point you can’t blame a bug on “oh that’s still being worked on” because then you’ll be asked why it’s not behind a flag.

comment 7y ago · link · parent

Craigslist has slowly changed over the years with little tweaks here and there. It’s really fun to go through the Wayback Machine on it when people bring it up as an example of something that hasn’t changed.

comment 7y ago · link · parent

If ADA compliant content requires more resources to produce, allowing something to remain in violation because it’s free seems like a great way to price ADA compliant content out of existence.

That said, perhaps an improvement to the ADA would be budget to help producers of free content to become ADA compliant.

comment 7y ago · link · parent

> Is this why so many Apple products have been increasingly low-quality?

Potentially, however the author makes another mistake: assuming that Apple, Google or Facebook actually know what they're launching at the time they set the date. I've heard many stories of "big bang projects" being pulled at the last minute.

comment 7y ago · link · parent

I think what you’re saying is true in the case where you apply it consistently to all people you talk about. When someone knows many people’s preference of pronouns but singles one out with “they”, name or avoidance of pronoun, that’s where the disrespect starts creeping back in.

comment 7y ago · link · parent

Clinics are often only involved in the “getting pregnant” stage. They rely on reports of live birth to determine when they should stop using a particular donor.

comment 7y ago · link · parent

How does this work with institutions like Kaiser? Are their hospitals not technically hospitals? Or are the physicians all technically contractors there?

comment 7y ago · link · parent

You can run your own gateway instance(s) for a lot cheaper than the nat gateway service. There are definitely some tradeoffs, but if $36/mo is an issue, they can be worthwhile: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Ins...

comment 7y ago · link · parent

Concrete takes time to dry. A thorough spec for software design quickly approaches actually writing the software, albeit likely not in code.

comment 7y ago · link · parent

Don't those steps effectively give away the vulnerability though?

comment 7y ago · link · parent

TypeScript actually handles the first example quite well. If you simply have a heterogenous array type, the type of its members will be the union type of `number | boolean | string`.

If you’ve used a typed tuple, then the type after access is based on what TypeScript statically knows. So array[0] would be number, but array[random() % 3] would be the union type.

113.

Open-sourcing Sorbet: a fast, powerful type checker for Ruby(sorbet.org ↗)

617 points · by abhorrence · 7y ago · 268 comments

comment 7y ago · link · parent

I use Docker on Mac, and know many others who do as well.

comment 7y ago · link · parent

> a variable holding a 1 can turn into a "1" and back

This is true of Javascript, but not of Ruby.

  irb(main):001:)> 3 * "3"
  TypeError: String can't be coerced into Fixnum
People commonly conflate dynamic typing with weak typing, Ruby has the former, but not the latter (with some explicit exceptions, e.g. to_ary and friends).

That's not to say you can't still end up with some interesting problems though -- if we just slightly change your example:

  a = 3
  b = 3
  # later...
  a = "oops"
  product = a * b
  # product is now "oopsoopsoops"
But this isn't due to automatic "weak types" style coercion -- just that Ruby lets you build a repeated string by multiplying a string by a number.

comment 7y ago · link · parent

This code in particular won’t, since it relies on a particular extension of the x86 instruction set. I don’t believe Arduino compatible chips have simd instructions, but if they do, a similar approach could be taken.

comment 7y ago · link · parent

I’ve been through four keyboard failures, and my experience has been that the keys over the parts of the computer that get hot are more likely to fail. I suspect it takes (or at least is more likely with) a combination of heat and contaminates, which might be less likely on the 12”.

comment 7y ago · link · parent

If the number in caller id is accurate, it provides a decent reporting channel. It’d make it easier for telecom providers to take abuse reports and punish the abusive robodialers, whether by cutting them off or referring them to law enforcement.

comment 7y ago · link · parent

Could you link to some information about the database switch?

comment 7y ago · link · parent

This article seems full of points that a lay person might nod along with, yet don't hold up to scrutiny.

> The fact is, if we accept Marriott’s statement that the breach began in 2014, the system would already have been operating securely for five years.

It does not mean that. It means that we don't know of any exploited vulnerabilities before that point.

> If the detection tool was used prior to this September, why hadn’t the breach been detected earlier? And if the tool was not used earlier, how can they be so sure the breach occurred in 2014?

It isn't unthinkable that the new tool alerted them to a problem, and during investigation discovered evidence that the vulnerability had been abused in the past.

> It is almost impossible to imagine a scenario in which an external hacker is able to gain access to the primary encryption keys.

Why? The argument seems to be: the primary encryption key is important, and thus will be most carefully guarded, so it is unthinkable that it would actually be exposed.

Ultimately the article strikes me as an article written by someone who has a beef with Marriott, and he ends noting that it's possible that the breach occurred not due to issues with design, but due to the layoffs of Starwood's technical staff.

123456