Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,590 karma · joined Dec 4, 2013 (12y ago) · 4,855 submissions

email: I'll add a suitable email one of these days
Submissions

comment 5y ago · link · parent

> By fourth generation the wealth is completely destroyed.

It doesn't change the fact that free people, living in a free country, should be free to give their wealth to whomever they please, including their children.

comment 5y ago · link · parent

> The other door is no longer relevant and doesn't affect the new state at all.

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

Oh you beat me to it.

comment 5y ago · link · parent

For those unaware of that folklore, the github link contains reference to one of the most famous StackOverflow answer of all times:

https://stackoverflow.com/questions/1732348/regex-match-open...

comment 5y ago · link · parent

> Is that common in Belgium?

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

> Except for that it uses technology that harms the environment.

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

Can't help as I'm on Linux (also I use ivy/avy/counsel and not consult/marginalia/vertico).

comment 5y ago · link · parent

> Is the speedup during editing or does it also improve startup time?

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

The speedup is very noticeable. Like others I'm running the "native-comp" branch of Emacs, since months, without any issue.

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

Well the simple past tense / 3rd person of "chier" is precisely "chia", spelled exactly like that. The herb/plant "chia" always sounds a bit weird to my ears because it makes me think of the verb tense... "Il chia" / "He shat". So GP is totally correct.

comment 5y ago · link · parent

I'm not so sure "cryptocurrencies" is a bad word: it's basically cryptography everywhere. But transforming "crypto" to mean "cryptocurrency" is bad I agree.

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

curl'ing is not the same at all as running, say, a Debian apt-get install.

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

Wow: that is very early adoption! I'd say Linux, with Slackware, around 1994 (?). Git took me a bit longer for as I was a happy Mercurial user but once I saw the momentum shifting heavily towards Git I switched.

comment 5y ago · link · parent

It depends on the publisher but 7% to 9% is common. So for authors selling "only" 5 K copies the only way to survive is to self-publish. Now of course when you self-publish you have to find a way to reach your audience.

comment 5y ago · link · parent

Or some enemy state pawn(s) trying to add backdoors and then use the excuse of "university research paper" should they get caught?

comment 5y ago · link · parent

PostScript has something really beautiful to it and I'm still in awe when I "netcat" a .ps file to the local IP address of my good old and trusty HP LaserJet 4M+. Elegance from another era.

comment 5y ago · link · parent

> If I read that right, some keys rather than having a hardcoded unique seed, will let you set your own.

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

> ... so that might not actually work if the site you are authenticating against is well-implemented

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

From TFA:

> 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

> It makes more sense when you consider the insane fees they get away with charging due to lack of competition in the regulated US crypto space.

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

People are entitled to their opinions and there's no need to namecall on HN.

comment 5y ago · link · parent

I'm not against technology: I'm against inferior technology. I know what you can build with a computer: with a smartphone not so much. I don't see many professional sound engineers, architects, chip engineers, developers and all the myriad of profession requiring serious tools to do serious work working from their mobile phone or from their Internet-of-Insecure-Shitty-Poinless-Thing-with-a-3-inches-screen (yup, I know, there's that one guy who made a hit pop music tune using only his smartphone, but that's more than uncommon).

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

So does Clojure's test.check. Even though Clojure ain't typed you can define "specs" of your data and then have generators generating random data (it's not the only use of specs: they can also be used as a way to verify inputs to functions). The generators data can be used to, say, quickly create fake database with lots of data or fed into test.check which then does fuzzy testing and then tries hard to reduce failing test cases to minimal cases.

comment 5y ago · link · parent

> Reversing a string

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

> Is there a way to have emacs with custom shortcuts as a ready package where I can modify those shortcuts before digging in with all the rest.

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

> Anyone running the jit Emacs?

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

> The article diplomatically doesn't show any examples of the terrible typography

It even shows a picture of the all-so (all too?) common Rolex Submariner which bears, after decades of refinements, one of the finest typography out there IMO.

comment 5y ago · link · parent

> My current setup is Linux, AwesomeWM, Firefox, and Emacs. I customized away all the pain points I had with them a decade ago (half a decade with Awesome).

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

> 1) I won't remember what I did and I don't know all the implications of those changes I made, and

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.

1
154155156
162