Better HN
topnewbestaskshowjobs
Log inSign up

jarekkruk

17 karma · joined Feb 23, 2019 (7y ago) · 13 submissions

Submissions

comment 6y ago · link · parent

3) Poland's solution was also open sourced very soon https://github.com/ProteGO-Safe . While it could have more privacy protective, as long as it will have an option to turn the contract tracing off I will use it. Unfortunately despite the fact that creators of this app are privacy conscious I only heard about it from negative articles. I checked it myself and they are using centralised tracing system, only because Apple/Google decentrilised one isn't ready and it is a main concern in disparaging articles. I'm not saying that currently Poland isn't going into autocracy, but it isn't a tool in this machine. However with 10k installs in a 40m country it is useless.

comment 6y ago · link · parent

On the other hand I haven't seen red black tree implementation that isn't based on Cormen (in most cases quoted).

comment 6y ago · link · parent

Poland. It was the most criticised part of initial restrictions, fortunately it is being relaxed on Monday (going out for recreation is allowed, opened parks and forests, however masks mandatory when going outside).

comment 6y ago · link · parent

Don't worry, it will probably have yeast extract or some other source of glutamates.

comment 6y ago · link · parent

In Italy on average there are about 2000 deaths a day. Yesterday, there were 683 deaths attributed to Coronovirus.

comment 6y ago · link · parent

They even lobbied WHO to change their rules 5 years ago https://www.who.int/topics/infectious_diseases/naming-new-di... in preparation for COVID-19. Conspiracy grows thicker.

comment 6y ago · link · parent

IIRC it used to just start iteration at a pseudorandom index and then iterate normally. I looked at it couple years ago, don't know if they changed it.

comment 6y ago · link · parent

You could do it like in article, so for every nonempty element in powerset (combinations for each length) of those numbers calculate their lcm and add or subtract amount of multiplies of lcm according to length of element.

So for A, B, C you have (M-number of multipliers) M(lcm(A)) + M(lcm(B)) + M(lcm(C)) - M(lcm(B,C)) - M(lcm(A,C)) - M(lcm(A,B)) + M(lcm(A,B,C))

comment 6y ago · link · parent

It is not exactly comparable. Prostitution is an important issue in feminism. Statement "environmentalists support nuclear power" would be a better analogy, because many environmentalists are for nuclear power and many are against.

comment 7y ago · link · parent

On my degree (chemical technology, Poland) it was very easy to get into (200 places with low cutoff score), but on the second year there was only 100 pupils. There is a general correlation between initial points (Polish standardised high school test) and future academic success, but if they were to admit 100 people, only about 65 would manage to go to the second year. Changing admission standards doesn't mean that they change graduation standards.

comment 7y ago · link · parent

Lexicographic order is already language specific nad majority of languages use only one script.

comment 7y ago · link · parent

I tend to mainly use const, let only when necessary. I never use var and set linter to scream about it at me. IE11 supports it, so unless you develop application for IE compatibility mode (my condolences) I don't see a reason to use var. On the other hand var mainly bites you when declaring closures inside loops, also hoisting is just plain weird.

comment 7y ago · link · parent

For phone numbers if you accept numbers without country code then you need to know it. This library correctly handles numbers with country code without specifying the country in other way.