10,590 karma · joined Dec 4, 2013 (12y ago) · 4,855 submissions
comment 5y ago · link · parent
There is no new state, that's the thing. By picking one door you split these in two groups: one group with 1/3 to win, the other with 2/3 to win. When the host reveals the door with a goat behind it from the group that is 2/3 to win, it doesn't change the fact that that group had 2/3 to win to begin with.
I mean: that's how I see it.
comment 5y ago · link · parent
https://stackoverflow.com/questions/1732348/regex-match-open...
comment 5y ago · link · parent
Jean-Claude Van Varenberg (the real name of Jean-Claude Van Damme). It is incredibly common. I've got many several french speaking belgian friends, with a french name but a dutch family name.
> Is there a significant overlap between the linguistic communities of Belgium?
I would say not anywhere near what the name / family names may suggest. The north/south separation in Belgium is quite clear and although mixed french/flemish couples are by not means rare, I'd say the overlap is still not huge. Even in Brussels native flemish speaking people are only 6% of the population.
comment 5y ago · link · parent
Apparently it's on Ethereum. Ethereum is already using an hybrid PoW / PoS (proof of stake) chain and at some point the PoS chain should be the only one. It PoS works, the impact on the environment should be a rounding error.
comment 5y ago · link · parent
During editing/usage for sure: it is noticeable. Not that it was slow before but nearly everything now feels really snappy.
As for startup I don't know as I rarely relaunch it but I just tried (only for the native-comp branch):
time emacs -Q -eval '(kill-emacs)'
gives 160 ms. Or launching Emacs with -Q and then calling emacs-init-time gives basically the same (-Q bypasses the config files).Starting with my entire config which is quite beefy takes 1.2s. I could probably speed it up but haven't really looked into optimizing Emacs startup in a while.
comment 5y ago · link · parent
It's now been merged into trunk and it's going to be the default:
https://news.ycombinator.com/item?id=26935401
The only drawback I saw is that compiling Emacs itself takes 3x to 4x longer when compiling the native-comp branch.
comment 5y ago · link · parent
Ethereum seems to be very serious about moving to proof-of-stake. It is a big project and they don't seem very concerned about the papers saying that "proof of stake cannot possibly work". I don't know if PoS can work or not but it's going to be costly for attackers to try to find out (as they'll get they staked deposit slashed if they try to attack the blockchain).
comment 5y ago · link · parent
You apt-get signed packages coming from official mirrors (at least I do). Most of the Debian packages, by very far, are also fully deterministic and reproducible. If someone serves a backdoored package, that's probably incredibly noisy, leaving lots of traces everywhere and evidence can be gathered.
When you curl, there's no way to know if you're the "lucky" one to get served malware by the server on that one curl call.
This is completely different.
comment 5y ago · link · parent
Set your own or generate one for you, using an hardware CSPRNG, and then let you write it down in a convenient way (24 words out of a dictionary of 2048 words, so 264 bits: 256 bits of entropy plus 8 bits of checksum. Heck, you can use 12 or 18 words too. I think the (BIP39 / BIP44) standard even allows for 15 words but Ledger does only support lists of 12/18 and 24 words although don't quote me on that).
> Which implies you can have multiple functionally-identical backup keys locked up securely somewhere.
I don't even bother having multiple devices ready to use. I simply store the seed (once again: as a list of 12/18 or 24 words) on a sheet of paper and I store this in vaults/safes.
> Anyone know which keys support this (aside from the mentioned Nano S and Trezor)? What's the magic keyword to look for in specs?
I've got a Ledger Nano S only for this. It's really a nice little device. I don't work for Ledger btw! They're a bit pricey but, indeed, the anxiety of getting locked out of your account or having through crazy procedures goes away.
It's a pricey little device but not that crazy expensive: about 60 USD I think.
> What's the magic keyword to look for in specs?
I don't know but the U2F "nano app" does work with Google and other sites and I know that Ledger is working on the more recent Webauthn support.
comment 5y ago · link · parent
I'm using it on several sites and already did swap / reinitialize my U2F devices... It works, including on GMail. As I understand it the most recent Webauthn is going to be supported by Ledger soon.
I don't think they're non-compliant or badly implemented websites: although I'm not sure what the specs say.
I do personally love that I can back up my "seed" and know that by going to pick my safe at the bank I'll always be able to reinitialize an U2F device and I'll also really love that it displays "Google" on the Ledger Nano S's tiny screen.
Pricey little thing to use as "only" an U2F device: about 60 USD but I like it a lot.
> (Unless the Nano S also lets you back up the counter value)
Late reply but... As I understand it as long as the counter is monotonic it'll always work. What Ledger does (and apparently the Trezor too from reading this thread, another device with an HSM) is, upon initializing the U2F app the first time on your hardware device, is to set the counter to the current timestamp.
So basically: once you use another device to log in, then you cannot use the old one, unless you reinitialize it (and then it's the other you cannot use, unless you reinitialize it etc.). These devices do not have a clock, which is why it works that way (in the case of the Ledger Nano S / Ledger Nano X at least).
comment 5y ago · link · parent
> Since the U2F device creates and stores asymmetric key pairs, and is able to sign arbitrary “challenges”, can I use it as a general-purpose hardware key store?
You can however do it "the other way round" and use a private key to derive a U2F path. And that same private key can be used for many other applications (or none). For example you can use the Ledger Nano S (originally a cryptocurrencies hardware wallet), which has an HSM, with your "seed" (say a 256-bit secret, stored as 24 words you hide), to log in sites using U2F.
Additionally as long as you've got your secret, you can reinitialize your Nano S (or another one) as a new U2F device and there's no need to reset your U2F credentials on the site as the newly initialized device shall work exactly as if it was the old one.
Fun fact: the CTO of Ledger was part of the group working on the original FIDO specs.
comment 5y ago · link · parent
The fees, as you explain it, do indeed seem like highway robbery. But there's something very specific about Coinbase in the US: all customers funds from american fiscal residents in USD are FDIC insured (so up to 250 K are safe). AFAICT they're the only one to actually offer this? It's also a real company, with a real address, whose owners are real people, etc.
It's not exactly the "we're convicted criminals operating from the Cayman using some shady bank" type of crypto exchange.
comment 5y ago · link · parent
Yet because there are a very select few megastar who became famous because they kept posting selfies taken with their smartphones, we are to believe that the smartphone "is the new computer".
Luddite? What about we talk about the specs of my workstation vs your IoT device? We'll see who's adopting modern tech ; )
comment 5y ago · link · parent
comment 5y ago · link · parent
I wonder: several comments are saying it hardly makes any sense to reverse a string but... Certainly there are useful algorithms out there which do work by, at some point, reversing strings no!? I mean: not just for the sake of reversing it but for lookup/parsing or I don't know what.
comment 5y ago · link · parent
I've got a very custom Emacs keybindings/shortcuts setup but... Sadly it requires some hackery: basically there's the whole major/minor modes shenanigan where one mode's shortcut can take precedence over the other(s). And if you want to define your own shortcuts which take precedence, all the time, over everything else, you need to dig a bit deep. And then even deeper because invariably there's this or that minor mode you'll want to use where after all you won't want your own shortcut but that one of the mode.
> I am looking for the way to set those by myself but it seems I need to learn a lot before I can do it
Sadly this is true. I've got I'd say about 100 lines of code related only to keybindings. Now, once set up, it's pure bliss. For example I've got mod+{i,j,k,l} to move the cursor around, anywhere (text, menus, anything). It makes even more sense than vim's hjkl (ijkl mimics the cursor arrow keys layout, which is more natural and ijkl is easier to type than hjkl too).
> ... and thus it blocks me from moving forward with exploring Emacs deeper.
I can understand that. I'd say the easiest would be to define your own minor mode as explained here:
https://stackoverflow.com/questions/683425/globally-override...
This should get you started: if you do it like in the answer and make sure they always take precedence you should be good to go and can deal with the gory details later on.
comment 5y ago · link · parent
I'm running the "native-comp" (libgccjit) branch daily since months and months now: not a single problem here and I've got quite a "heavy" config (thousands of lines of custom config and all the usual suspects: magit / org-mode / lsp / cider etc.).
> I did try compiling it from source for my linux setup.
And it worked? Worked on the first try for me (on the Debian distro).
I was somehow expecting lots of problems (because it's one heck of a change) but it really all just compiled and worked perfectly fine.
comment 5y ago · link · parent
Amen brother! Exact same setup here: Linux / AwesomeWM (with a dedicated modifier key on my keyboard only for AwesomeWM related keybindings), Firefox, Emacs and the occasional IntelliJ IDEA for Java stuff.
> The time spent on maintaining the configs across upgrades is trivial, on the order of tens of minutes a year.
Exactly.
comment 5y ago · link · parent
That's why I keep a log of everything. Any error message I encounter, any change I made and why. Neatly organised, in an org (org-mode) file.
I make exactly the same as I do in programming project or server configuration: keep notes, explaining to my later self (and to others) what I did and why.
> 2) I don't want to spend time on those stuff.
As I commented already: then you're forced to adapt to things others thought it would be best for you instead of adapting the system to your way of working.