Better HN
topnewbestaskshowjobs
Log inSign up

bchallenor

179 karma · joined Sep 1, 2011 (15y ago) · 52 submissions

Submissions

comment 6y ago · link · parent

Interesting. Here is a comparison of the two rules_scala implementations: https://github.com/higherkindness/rules_scala/issues/261

comment 6y ago · link · parent

Bazel is a nice build tool, but AFAIK it still doesn't support Scala 2.13, released mid-2019: https://github.com/bazelbuild/rules_scala/issues/809

3.

Lab-grown food will soon destroy farming – and save the planet(theguardian.com ↗)

3 points · by bchallenor · 6y ago · discuss

comment 7y ago · link · parent

What does guix mean by "inconclusive"?

comment 7y ago · link · parent

I find this pretty fascinating. Apparently it's a single gene that is responsible for the inability to synthesize vitamin C. [1]

[1] https://biology.stackexchange.com/questions/401/why-do-human...

comment 7y ago · link · parent

There's a fascinating YouTube series called "The Most Complex International Borders in the World" about enclaves and exclaves. [1] There are even some "counter-enclaves", e.g. a part of the Netherlands inside Belgium inside the Netherlands. [2]

[1] https://youtube.com/watch?v=gtLxZiiuaXs

[2] https://en.wikipedia.org/wiki/Baarle-Nassau

comment 8y ago · link · parent

syncthing-lite [1] is already supposed to do what you want for your second point. But it's not really there yet. I haven't managed to get it to work reliably (unlike the original app, which is great).

[1] https://github.com/syncthing/syncthing-lite

comment 8y ago · link · parent

On Android I've found that the volume that the phone thinks the AirPods are at can get out of sync with reality, the result being that Android's idea of full volume is actually very quiet. (Perhaps I tried to change the volume before they were fully connected?)

Re-pairing them from scratch fixed this. Might be worth a try.

comment 8y ago · link · parent

The customer still ordered via the listing of a specific vendor, even if Amazon shipped from co-mingled stock.

10.

The best way to save the planet? Drop meat and dairy(theguardian.com ↗)

2 points · by bchallenor · 8y ago · 2 comments

comment 8y ago · link · parent

You can just refuel in Earth orbit though. That would use less fuel [1] than landing on the moon unless you were going to the moon anyway.

[1] https://en.m.wikipedia.org/wiki/Delta-v_budget

comment 8y ago · link · parent

My example was to give quantitative evidence for the speed of contactless transactions.

It is true that there is no barrier in Berlin, but you still need to buy a ticket. For casual users such as myself, who don't have a season ticket, this takes significantly longer than 480ms: find ticket machine, queue, navigate menu, insert cash, wait for change and ticket to be printed, find ticket validation machine.

It is quite possible to miss the train here by having to queue to buy a ticket, particularly in busy places like the airport. This could be avoided if the tourists were able to use their existing cards/phones to tap in.

comment 8y ago · link · parent

Plus, I get an instant notification on my phone whenever my card is used. And if I see anything suspicious, I can freeze the card via the app (declining all further payments).

comment 8y ago · link · parent

I am visiting Berlin at the moment, and I miss the convenience and speed of being able to pay with contactless, by card or phone.

Regarding the speed of transactions: cash might be faster than signature or even Chip+PIN, but is surely not faster than contactless.

For example, anyone with a contactless Visa/Mastercard or phone can enter the London Underground by simply tapping at the barrier. They do not need to have a pre-existing relationship with Transport for London, to buy a ticket in advance, or to preload a stored-value card (as you generally must do in other city transport networks). And the ticket barriers open on average in 480ms. [1] That's pretty fast. You can't even pay by cash on a bus in London any more.

[1] https://www.whatdotheyknow.com/request/payment_methods_time_...

15.

A Real-Life Enchanted Forest(nytimes.com ↗)

3 points · by bchallenor · 8y ago · discuss

16.

Charging electric scooters is a cut-throat business(theatlantic.com ↗)

283 points · by bchallenor · 8y ago · 227 comments

comment 8y ago · link · parent

Having grown up in the UK, I was amazed when I first saw the Milky Way in New Zealand. I believe it's more visible in the southern hemisphere. [1]

[1] http://darksitefinder.com/how-to-see-the-milky-way/

comment 8y ago · link · parent

I make it 4ms [1], not 40ms.

[1] http://www.wolframalpha.com/input/?i=800mi+%2F+speed+of+ligh...

comment 8y ago · link · parent

TCP and UDP are "IP protocols" in that their packets are nested directly inside an IP packet and they have associated protocol numbers [1] to distinguish them from other things that might be inside an IP packet. QUIC theoretically deserves to be one of these too but for pragmatic reasons it has to be nested inside UDP. GP is asserting that `-p quic` will not be implemented, because it would be a layering violation.

[1] https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers

comment 8y ago · link · parent

I didn't know about the --init flag to docker run, thanks! Looks like that was added last year with 1.13.0. Going to have to try this myself, now.

comment 8y ago · link · parent

`terraform state mv` is indeed the trick. It took me a while to understand it, but this blog post helped. [1] It leads you through refactoring some resources into a module.

The key takeaway for me was "we really only need to consider the nodes that map to the physical resources of our infrastructure when we are planning our state surgery. This means we can ignore all of the nodes that correspond to data sources, variables, and providers."

So after a refactor, this is what I do now: (1) run plan to get the names of everything terraform wants to delete and recreate; (2) pair all the resource nodes manually and translate them to state mv commands; (3) re-run plan and verify that terraform is now convinced there is nothing to do.

It would be nice if terraform could do this for me, of course, but I find that it is generally possible to avoid delete and recreate if all I've done is a refactoring.

[1] https://ryaneschinger.com/blog/terraform-state-move/

22.

Russia and US will cooperate to build moon's first space station(theguardian.com ↗)

2 points · by bchallenor · 9y ago · discuss

comment 9y ago · link · parent

I use the NFC Yubikey to store a PGP key, which can then be used with pass [1] + GPG on the desktop, and Password Store + OpenKeychain on Android. Works nicely. And if you choose to also keep the PGP key on the desktop, you don't need to carry the Yubikey.

[1] https://www.passwordstore.org

comment 10y ago · link · parent

I recently evaluated the two and went with FlatBuffers, largely because its Java support appeared to be more mature.

The FlatBuffers encoding is based on vtables and is relatively straightforward (the runtime library is tiny). This also means it's inefficient for small messages, but in my testing its vtable deduplication worked great for my use case (~100k messages of the same type per memory-mapped file), in that the vtable overhead tends quickly to zero.

Cap'n Proto has a more complex encoding that is probably more efficient in terms of wire size, and particularly for small/standalone messages, but the runtime is larger as a result.

comment 11y ago · link · parent

Apparently CodeCommit is a new feature (last couple of months?). I had no idea it existed - thanks!

comment 11y ago · link · parent

This paper is very readable - thanks for the link.

comment 11y ago · link · parent

Is it possible with scalar subqueries to perform anything other than a tree of correlation? With CROSS APPLY one can correlate a DAG of subqueries, e.g. a diamond where B and C depend on A, and D depends on B and C.

comment 11y ago · link · parent

The syntax for this is pretty horrible, however. And if you want to return more than one column from the subquery, you would have to duplicate the subquery definition for each column, right? Then you'd have to have faith that the optimizer can work out what you meant and reconstruct just a single subquery.
12