Better HN
topnewbestaskshowjobs
Log inSign up

Denvercoder9

5,570 karma · joined Oct 5, 2013 (13y ago) · 1,210 submissions

Submissions

comment 4y ago · link · parent

Huh? HTTP Basic Authentication doesn't use PBKDF2 (or any other key derivation function).

comment 4y ago · link · parent

If the sample question is actually representative of the exam, I'm surprised that people that actually study for this fail that often. I haven't had any statistics education since high school, and found it fairly straightforward to solve.

comment 4y ago · link · parent

> The ones that are not for the FOSS aspect are either masochists or using Apple, aren't they?

No, I use Linux because I need a *nix system, Linux provides a better one out-of-the-box, and I very much dislike Apple's UI/UX.

comment 4y ago · link · parent

Usually we go to the lower-energy, longer-wavelength part of the spectrum for applications like this, since gamma rays and the high-energy, short-wavelength part of the spectrum is very hard to control and gives you cancer.

comment 4y ago · link · parent

SpaceX has to allocate bandwidth on the satellites to consumers. If consumers move, they will have overallocated bandwidth in some places, degrading network performance. They'll probably come out with a mobile product at a higher price point in the future.

comment 4y ago · link · parent

Formerly known as bitwarden_rs.

comment 4y ago · link · parent

That's true, but while in SQL you can easily group by `a` and `b`, here that's difficult (you'll need to key the dict by a tuple of the values, and reassemble the dictionary afterwards, or something like that).

comment 4y ago · link · parent

Note that this approach doesn't work as nicely if you need to store additional information alongside the name and count.

comment 4y ago · link · parent

Using `itertools.groupby` will probably give the cleanest solution. Something like this (untested):

    groups = itertools.groupby(sorted(mylist, key=lambda x: x['thing']), key=lambda x: x['thing'])
    newlist = [{**group[0], 'count': sum(item['count'] for item in group)} for group in groups]
I'm not overly fond of it, having to sort the list for `groupby` is unpleasant and extracting values from dictonaries is verbose. If this was an array of tuples it could be made much more concise, but of course that doesn't allow storing extra information for each thing, which this solution does.

comment 4y ago · link · parent

If their argument is that they can't make money with open source, then they should say that, instead of this list of non sequitors.

comment 4y ago · link · parent

> It's got to dump whatever heat it picks up somewhere? Just a big radiator?

Yes. The absence of any medium in space makes radiating the only way to get rid of heat.

comment 4y ago · link · parent

That's part of the problem, another part is lack of scale in the space launch market, which results in relatively small and expensive launchers. Lots of complexity and thus cost in JWST could've been avoided if it could be heavier and larger.

comment 4y ago · link · parent

> One path to doing that is to sell dollar-denominated assets. US Stocks and bonds in other words.

A big part of the world economy is literally or effectively dollar-denominated, so a sale of dollar-denominated assets does not imply a sale of US stocks and bonds. You can sell just about anything for dollars.

comment 4y ago · link · parent

Because by rejecting work from people who've seen the leaked code, you can be sure that your project doesn't become a derived work. That doesn't imply the reverse; that if you accept code from people who've looked, your project must be derived a work.

All cows are animals, but not all animals are cows.

comment 4y ago · link · parent

> he didnt say it is not notable

He did say that the most notable thing about the work was the license, which effectively dismisses the technical work as not notable.

comment 5y ago · link · parent

Dig gives more information, such as TTL and the resolving server. If you also want that information from host, you need to use the `-v` flag, at which point the output is almost as verbose as that from dig.

comment 5y ago · link · parent

Time for the EU to start another anti-trust suit.

comment 5y ago · link · parent

In most countries the immigration officer will still stamp your passport if you request it.

comment 5y ago · link · parent

It's not a random government across the world. Facebook does business in the UK market, has an office and personnel in the UK, and has customers in the UK.

comment 5y ago · link · parent

Both Meta and Giphy operate in the UK market, and the UK can set conditions for operating in that market. The EU, India, China and Russia can do the same.

comment 5y ago · link · parent

It's a trade-off. You can either assume all statements end at the end of the line, and require a continuation character (backslash in Python) if that isn't the case; or you can require a statement terminator (semicolon/closing brace in Rust) for all statements.

The downside of assuming statements end at the end of the line is that you need to have special rules for when that isn't the case (such as Python's implicit statement continuation inside braces), while always having a terminator is simpler and more consistent (all statements end with a semicolon) at the cost of extra characters.

comment 5y ago · link · parent

> Leave me the hell alone!

As long as that makes essential things such as grocery shopping more dangerous for others, such as myself, no.

comment 5y ago · link · parent

The fact that e = 2.718... is a fundamental property of the exponential function, though. It's not an arbitrary choice.

comment 5y ago · link · parent

The use of ligatures in the code examples also isn't helpful for people not familiar with the syntax.

comment 5y ago · link · parent

Neither SATA nor USB implies permanence.

comment 5y ago · link · parent

Because we're talking about most people, and most people already have a machine into which they can plug a HDD. Often that's the very machine with the documents they want to backup.

comment 5y ago · link · parent

And how much for the tape machine?

comment 5y ago · link · parent

I recommend not using root privileges unnecessarily. `systemctl status` and most other querying commands don't need root, while the dangerous things like `systemctl exit` do.

comment 5y ago · link · parent

(Disposable) income != quality of life.
1
202122
41