Better HN
topnewbestaskshowjobs
Log inSign up

CapacitorSet

1,489 karma · joined Jul 27, 2016 (10y ago) · 313 submissions

[ my public key: https://keybase.io/capacitorset; my proof: https://keybase.io/capacitorset/sigs/3XQYiFYsETBVes6mFixMECaVoMYCJBjVFgwf6JikpeY ]
Submissions

comment 9y ago · link · parent

>Cloudflare pointed out their bug bounty program, but I noticed it has a top-tier reward of a t-shirt.

Considering the amount and sensitivity of the data they handle, I'm not sure a t-shirt is an appropriate top-tier reward.

comment 9y ago · link · parent

A bit like Torcoin, basically.

comment 9y ago · link · parent

I can't think of more defences, but they briefly mention the possibility for websites to mine DDoS coins against themselves and I think it's an interesting perspective. I don't know the algorithms involved in the key exchange well enough, but if they support bulk optimizations like RSA does (it's faster to do thousands of signatures in a single operation, rather than one operation at a time) then the server has a noticeable advantage on clients - to the point where it could drive the difficulty insanely high and make it unprofitable to mine DDoS coins.

comment 9y ago · link · parent

Tldr on page 4:

* The miner generates a random nonce

* It initiates a TLS 1.2 connection to the victim server, and uses the nonce as `client_random`

* The server generates an ephemeral public key (eg. using ephemeral DH or ephemeral ECDH), and responds with a 32-byte `server_random`

* The server sends its certificate chain as well as its public key, and signs the DH key exchange parameters along with `client-random` and `server-random`. This is the proof of work

* The client computes the SHA256 hash of the DH params, the signature and the nonce, and does the usual difficulty check; if it passes, it is used to make a block

comment 9y ago · link · parent

That sounds _extremely_ interesting for people who are into control theory! Do you happen to have schematics?

comment 9y ago · link · parent

That's the technique Linux uses, it feeds keyboard and mouse timing events into one of its entropy pools. I can't see why they wouldn't do this for slot machines.

comment 9y ago · link · parent

Saved you a click: the internal state of some slot machines' PRNG can be predicted after observing a few of its outputs.

278.

Autistici/Inventati: an anti-capitalist collective for privacy self-defense(autistici.org ↗)

1 points · by CapacitorSet · 9y ago · 1 comment

comment 9y ago · link · parent

The Closure Compiler with ADVANCED_OPTIMIZATION is a great tool, and I wish more projects used it. However, when I tried it on my own projects I found that it is a relative pain in the arse to export absolutely everything that you don't want the compiler to remove or rename: this might be why it didn't gain a lot of traction.

comment 9y ago · link · parent

Monitoring hardware, then.

comment 9y ago · link · parent

Reread the list with your assumptions in mind (one nonzero-length field, with a maximum field, Unicode).

282.

Vimperator: a Vim-like Firefox(vimperator.org ↗)

139 points · by CapacitorSet · 9y ago · 96 comments

comment 9y ago · link · parent

Getting names right is very hard: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...

comment 9y ago · link · parent

[OpenTokRTC](https://opentokrtc.com/) relies on WebRTC, a vendor-independent HTML5 technology.

comment 9y ago · link · parent

Is there a technical, non-commercial introduction that isn't filled with too much marketing hype?

comment 9y ago · link · parent

That's an extremely rose-tinted narrative.

comment 9y ago · link · parent

It was much more difficult to understand. For whatever reason, it appears that I couldn't `splice` arrays (https://github.com/CapacitorSet/rebridge/issues/2), and I honestly couldn't figure out what was wrong.

There was also the issue of error handling, which is much easier with promises.

comment 9y ago · link · parent

Previous thread here, about v1.0: https://news.ycombinator.com/item?id=12723474

v2.0 addresses some of the feedback in the previous thread, and uses Promises rather than synchronous non-blocking access.

289.

Show HN: Rebridge v2.0 – A transparent bridge between JavaScript and Redis(github.com ↗)

17 points · by CapacitorSet · 9y ago · 6 comments

comment 10y ago · link · parent

That seems like a nice use case for ipfs: https://ipfs.io/

As of now there is no automatic mirroring, because nodes only store the data they request, but in the future one will use filecoin (http://filecoin.io/) to incentivize mirroring.

291.

The Inter-Planetary Naming System(github.com ↗)

1 points · by CapacitorSet · 10y ago · discuss

comment 10y ago · link · parent

To first thought, there may be licenses in place preventing you from self-hosting the content.

comment 10y ago · link · parent

Spam filters could do very little, because it's almost impossible to tell whether a conversation was run by a bot - and it's outright impossible to do so for a single response.

However, you raise an interesting point: blacklists could reasonably be put into place. I'll make a merge request to use Spintax.

comment 10y ago · link · parent

I think there's a better chance for a static_assert proposal in C, especially since Torvalds isn't particularly fond of C++.

Edit: whoops, apparently static_assert is in C11 as well as in C++11. Ignore this comment.

comment 10y ago · link · parent

The thing is, modern antiviruses rely on context to classify data as malware or not. It is fine if antivirus.exe is trying to remove itself; not so much if it is being removed by calc.exe.

comment 10y ago · link · parent

I wouldn't mind working with your coding style either: though I don't have the same standards for braces and array initialization, you apply your style consistently across the whole code.

comment 10y ago · link · parent

>None of these choices are particularly important. Being CONSISTENT does.

The thing is - there isn't much consistency in his syntax. The most obvious example is the indentation, that appears to be 8 spaces except for one line which is indented with 4; there isn't consistency in whether to have a space or not before semicolons, before and after parentheses, or before and after binary operators.

comment 10y ago · link · parent

To me, having consistent indentation does make a substantial difference - it is fundamental to understand at a glance what structures are present in the code, rather than "parsing" it in detail every time I'm looking for something.

comment 10y ago · link · parent

I really dislike his choice of coding style. Compare:

  int CountBits (unsigned int x )
  {
      static unsigned int mask[] = { 0x55555555,
          0x33333333,
          0x0F0F0F0F,
          0x00FF00FF,
          0x0000FFFF
          } ;

          int i ;
          int shift ; /* Number of positions to shift to right*/
          for ( i =0, shift =1; i < 5; i ++, shift *= 2)
                  x = (x & mask[i ])+ ( ( x >> shift) & mask[i]);
          return x;
  }
as opposed to:

  int countBits (unsigned int x) {
    static unsigned int mask[] = {
      0x55555555,
      0x33333333,
      0x0F0F0F0F,
      0x00FF00FF,
      0x0000FFFF
    };

    int i;
    int shift; // Number of positions to shift to the right
    for (i = 0, shift = 1; i < 5; i++, shift *= 2)
      x = (x & mask[i]) + ((x >> shift) & mask[i]);
    return x;
  }

comment 10y ago · link · parent

Are bit fields slower (at least in C)? It's a matter of load-constant mask-compare, as opposed to load-compare; I imagine it's a matter of one additional instruction per load statement, and this instruction also happens to be very fast.
1
7891011