HackerLangs
TopNewTrendsCommentsPastAskShowJobs

f33d5173

807 karmajoined 3 ปีที่แล้ว

comments

f33d5173
·เมื่อวานซืน·discuss
Your AI has totally misunderstood what's going on here and is really contributing nothing to the discussion.
f33d5173
·4 วันที่ผ่านมา·discuss
> resignation

I appeciate short letters like this that get straight to the point...
f33d5173
·5 วันที่ผ่านมา·discuss
The point is to embed a particular signature, which was generated randomly, in the image. The distance function discussed is the same as the popcount of the xor. It's well know that the xor of random data with correlated data is statistically random. Hence, however well correlated the signatures of unwatermarked images may be with each other, they would show no correlation with the signature of a watermarked image. That is, unless the watermark by extremely bad luck happened to be near one of these clusters the author discovered. This does represent a genuine flaw, but an extremely minor one, and one that can be easily mitigated with no changes to the underlying algorithm,
f33d5173
·8 วันที่ผ่านมา·discuss
1. This is an american news organization

2. As you can see in the quote, the appeals are complete
f33d5173
·11 วันที่ผ่านมา·discuss
It's a fairly trivial change. We already have timezones, which exist to deal with the fact that the sun comes up at different times in different parts of the world. We already have to design everything around the assumption that timezones can change, since people sometimes move to different parts of the world. All we do is cause, for an entire timezone, that it becomes a different timezone at one point in the year, and switches back later. This ensures that the sun continues to come up at a consistent time. The main issue it causes is to make the lives of programmers slightly more difficult, which I am sure they can cope with...
f33d5173
·11 วันที่ผ่านมา·discuss
>being charged as a terrorist oganization

Such charges are outright nonsense, for one thing. And I think that's relevant since it's the only possible jutification for the utter forfeiture of rights.
f33d5173
·11 วันที่ผ่านมา·discuss
It's one of those irregular verbs. My demonstration, your freedom fighting, their act of terrorism
f33d5173
·11 วันที่ผ่านมา·discuss
> the accesskey attribute

Holy crow what a mess. No wonder I'd never heard of this.
f33d5173
·12 วันที่ผ่านมา·discuss
They are ludicrously expensive for what they do. They have an apple logo on the box.
f33d5173
·12 วันที่ผ่านมา·discuss
The real issue here is first that browsers don't expose a simple way to check for key combinations and second that developers don't bother building their own. You'll find on any number of sites that an intended key combination can also be invoked with additional modifiers of alt or shift or whatnot. Even here, the code shown only fixes the broader issue on windows; alt+cmd+s still gets blocked.

There should be a proposal for browsers to expose a property on the keydown/up/press event containing a code for the key combination. Something like "CTRL+S", "CTRL+ALT+S", etc. The programmer could then switch over this property rather than having to check key codes and modifiers manually.

I would also propose to any web developers that they build this property themselves in their own code and check against it instead of checking modifiers directly. Not only would it protect against bugs like in the OP, it would also be a lot more convenient to use.
f33d5173
·25 วันที่ผ่านมา·discuss
The syntax is rather confusing. This is not an array of length 1, but rather a pointer which points to a memory segment which is at least 1 integer long. In other words, any array of any length (>=1) would be a valid argument to this function. "static" here means "don't do the normal thing where you totally ignore the length of an array argument to a function (which is, like usual, really just a pointer)". "static" was chosen because the keyword was available rather than because it was a particularly descriptive name.
f33d5173
·25 วันที่ผ่านมา·discuss


  $ gcc -Wall -Werror -x c - << EOF
  void f(int x[static 1]){}int main(){f(0);}
  EOF
  <stdin>:1:37: error: null passed to a
      callee that requires a non-null argument
      [-Werror,-Wnonnull]
    1 | void f(int x[static 1]){}int main(){f(0);}
      |                                     ^ ~
  <stdin>:1:12: note: callee declares array
      parameter as static here
    1 | void f(int x[static 1]){}int main(){f(0);}
      |            ^~~~~~~~~~~
  1 error generated.
It can be done, though it usually isn't.
f33d5173
·25 วันที่ผ่านมา·discuss
The point isn't whether it's genuinely plausible or not. If there is some law against something, there is some group of people who believe very strongly that this law should be followed and enforced. If the law is not actually followed or enforced, then the system as a whole does not agree with that small group. The point of this "plausible deniability" is to allow whichever regulator is concerned to give a pass to rule breaking without explictly doing so and hence angering this small group.
f33d5173
·28 วันที่ผ่านมา·discuss
> An issue with that approach is that a lot of humans violate traffic laws, so you have the danger that your self driving system learns to violate traffic laws.

Phrased another way, a benefit of that approach is that if the local conditions necessitate or advise breaking certain traffic rules, your system learns to do so while retaining plausible deniability that it isn't intentional.
f33d5173
·เดือนที่แล้ว·discuss
It was a rhetorical question. Usually decisions in democracies require a 50% majority, as here.
f33d5173
·เดือนที่แล้ว·discuss
Banning faangs from doing something also bans small companies from doing it, and regardless prevents the user from receiving it as a service. You shouldn't let anger at large companies excuse stupid regulations.
f33d5173
·เดือนที่แล้ว·discuss
Corporations are you. Corporations provide a service to individuals, often in exchange for money. Restricting corporations from doing something is the same as restricting people from receiving that as a service.
f33d5173
·เดือนที่แล้ว·discuss
What percentage of the vote was required to join the EU? The EU effectively constitutes a relinquishment of sovereignty, but that's not how it was sold to citizens, they were told that they could leave at any time.
f33d5173
·เดือนที่แล้ว·discuss
3000 years of philosophy, but fortunately you're here to tell us "war exists, so nothing can ever be bad or good".
f33d5173
·เดือนที่แล้ว·discuss
> But your definition of processed foods has now shifted to being one of hyperpalitability and likelihood of overeating.

that's a very small shift. the two are very closely linked

> why have this proxy at all

very simple reason: if i am in the supermarket i can tell immediately looking at a food how highly processed it is.

we have spent many decades telling people "just don't overeat" and it hasn't worked at all. we have also spent many decades telling people that "unhealthy" can be established by looking for a particular ingredient, say sugar, or fat, and it again hasn't helped.

the heart of the advice we would like to give people is that a healthy diet isn't one that has the exact right nutrient balance, but rather one that causes your body to naturally pick the amounts it needs. and we would like to communicate this advice in a way that makes it easy for people to make purchasing decisions.