Recent submissions

Comment · 4 years ago
> The old app that I wrote would happily take JavaScript or SQL snippets as inputs to any text field and do The Right Thing.

Confused here. Where were input validation checks in your implementation? How did you guard against SQL injection, etc?

Comment · 4 years ago
Can't have context if the file never loads.
Comment · 4 years ago
This seems...wrong?

Let's say you can control voltage, cross section area A.

Now, you want a constant power across a load P = V * I.

Your net resistance R is C + D * L / A where C and D are constants and L is your cable length.

I is proportional go V * A / (C * A + E) where E is also a constant.

So your load power is proportional V^2* C * A / (C * A + E) which is proportional to V^2 * A / (A + F) where F is also a constant.

With a large "enough" A, this is effectively V^2. With a small A, this is V^2 * g where g is A / F. So the smaller the area you have the more power you are wasting (roughly equal to V^2 * (1-g) which is heat in the wires).

So the smaller area you have, the less efficient your power delivery. And juicing up your source power is a lot more expensive than juicing up your source voltage.

Comment · 4 years ago
Maybe I'm missing something obvious, but if I insert all 32 bit keys, does that not take 32*2^32 space?
Comment · 4 years ago
To be fair, I'm not sure if you can demodulate a 100MHz FM signal digitally. DSP at this frequency on an Arduino maybe be infeasible (you need a phase locked loop). I suppose if you used a bandpass + low pass filter you can pull it off but that will be a lot more work still.
Comment · 4 years ago
Wrong way to think about the problem. Lowering bits does not mean lowering model capacity. Its the opposite in fact - it allows you to you to fit more parameters.
Comment · 4 years ago
This is not that relevant for ML. Each gradient pass will re-compute your cost function and the gradients so errors are not likely to accumulate. The main thing is to not make errors big enough that you end up in a completely different part of the parameter space derailing progress which is what the above commenter points out.
Comment · 4 years ago
You want to ask the author to change the commit you are interested in and then review the diff to that commit.

This is if course mostly valuable if you don't squash commits on merge. Otherwise, the extra rebase work isn't that valuable.

Comment · 4 years ago
That was my question to. 8cc is doing the heavy lifting of compiling C.
Comment · 4 years ago
I wonder how well WPA3 fares here.
Comment · 4 years ago
I think you can encrypt ethernet comms too using 802.1x RADIUS. That's as secure as Wi-Fi and removes the need for an isolated network (which, when unencrypted isn't as secure as you think, e.g. MiTM). Ideally you connect via both but that's overkill for most use cases.
Comment · 4 years ago
I don't know if this guy really cheated or not, but from my glance through I don't see even an explanation of the mechanism he would use to cheat OTB.

But this is a cry wolf situation - I would be surprised if there isn't some terms or condition that allows chess.com to ban known cheaters esp from a tourney with such a big prize.

Comment · 4 years ago
Presumably the point is to do something with i rather than just printing.
Comment · 4 years ago
I don't understand this attitude. Who is the judge of what ideas are great and what ideas are idiotic?
Comment · 4 years ago
> But sometimes, especially along the periphery, the right choice is to just make the change and be okay with perpetuating a bad pattern, if it is going to bring disproportionate business value quickly

Agreed. Also tests - if the tests are catching the cases they are supposed to but have anti patterns in the way they are written - it's not always worth it to fix them so long as your new test cases can be easily covered.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton