skysight-inc/HackerNews huggingface dataset:
>but in East Asia it must all be behind closed doors I guess because I've just never been privy to that sort of thing.

Sorry, but what do you mean with "East Asia"? China is East Asia, and this is very much a thing. So is Korea and Japan.

"Since Japanese law defines prostitution as "intercourse with an unspecified person in exchange for payment," most fūzoku offer only non-coital services, such as conversation, dancing, or bathing, to remain legal.[2] Nevertheless, polls by MiW and the National Women's Education Center of Japan have found that between 20% and 40% of Japanese men have paid for sex."

"
Kabukicho, an entertainment and red-light district in Shinjuku, Tokyo, measures only 0.34 km2, and has approximately 3,500 sex parlors, strip theaters, peep shows, "soaplands", 'lovers' banks, porno shops, sex telephone clubs, karaoke bars and clubs, etc.[32] (...) It was reported in 2003 that as many as 150,000 non-Japanese women were then involved in prostitution in Japan."
Hmm. Doesn't it depend on whether re-rolls are allowed as to how confident we can be?

For example, I can imagine a well engineered coin that has a 0.5 probability of heads with a 0.005 confidence (ie, we suspect that the true weighting between heads and tails is likely between 0.495 and 0.505 19 times out of 20) and I can contrast it with a hastily made coin that can still have a 0.5 expected probability with a 0.1 confidence (ie, we expect the true probability to be between 0.4 to 0.6, 19 times out of 20).

Coin A and Coin B have dramatically different impacts on our decision making. For example, selling insurance against 5 identical flips in a row is a much more expensive proposition for Coin B than Coin A.

I feel like I really should know this given my data science background, but sometimes the basics slip away.
> you are better off not selling your stock to an HFT market maker

You are also better off selling into a market containing at least on HFT market maker. Without them, spreads become fat. It is notable that the principle aggressors, at the political level and until recently, when HFT became an armchair economics term of art, against HFT were the old line market makers.
Just jump into Rust heads on. There's no better alternative if you want to learn Rust.

If you just want low level acces to hardware it might be easier and more useful to learn C/C++. Easier concepts to grasp, more readable syntax and 1000x more avaible resources to learn or libraries to use.
True! Personally, I'm in love with Kotlin. But also like Clojure.
However, it is really nice to see that Java itself is getting better and better each release.
DNT is not about reducing the fingerprint, but transmitting the intention not to be tracked.

It might be necessary to establish legislation that forces web server operators to respect this intention and deactivate any server side logging or tracking. But that is not going to happen because the government likes having access to this kind of information.
I would say "optimistic" not necessarily "realistic" perspective. Although some American journalism may show alarmism when discussing China, they are not completely wrong here. The Chinese government is very aggressive when trying to establish an economic hegemony over a certain industry or geographic region. Their ability to formulate and execute broad agendas across government and industry (e.g. China 2050, Belt & Road, etc) is quite impressive but everyone knows China is not really playing fair (e.g. government subsidized "private" companies, questionable business ethics, obfuscation of company data, theft of trade secrets, currency manipulation, different sets of rules for non-Chinese companies/investors, etc.) It's a bit like gambling in Vegas. You may not know the exact methods, but you know the system is setup so that the house always has better odds than you.

As Xi continues to lock down China and exert more and more control, it will be interesting to see if China's central economic strategies and dynamic startup industry will continue to flourish or if they will be crushed under the weight of totalitarianism.
Are There any response from Stylish developer?
Something similar certainly is useful in the case of flipping a coin. Suppose we have two coins, one of which we know is fair and one of which we know is biased but we don't know which way. Then our knowledge about the bias of the first coin would be described by a distribution with a sharp peak around 0.5, but the distribution for the second coin would have two lumps either side of 0.5. Then the probability of heads on the next flip would be 0.5 for either coin. But if someone asked us to bet on the probability of heads on the next two flips, then the second coin would have a higher probability than the first. The different distributions for the two coins don't make a difference for one flip, but do for multiple flips.

But there's no meaningful way to repeat an election, so I don't think similar distributions or confidence intervals are useful in that case.

EDIT: We can imagine rerolling an election, but since we can't actually do it we don't have to bet on it so the information wouldn't be very useful to us.
>Imagine if every Masters or a PhD grad was given a green card

Yeah, a huge brain drain would result, to the detriment of other countries and the benefit of US.
Reducing bias and ensuring fairness in data science
I'm a really slow reader, I wish I was faster.

My girlfriend has double the reading speed.

I have to read every word for itself :/

I can get to 100 pages per hour, but only if I identify filler paragraphs early on and skip them.
It's the momentum that matters not the absolute numbers.
There are still plenty of full movies on YouTube, just search by profile not bye title.
Sports data would be pretty easy to watermark - a fictional athlete here, a score for a game never played there, etc. none of it would ever be fully guaranteed to not cause someone a problem some day - “no dude, I swear the 1968 lakers played a pre-season game against the pistons and lost 123-98” - but there’s enough data that you could watermark it.
The gps receiver's software could enter the pin. No buttons necessary.
That is because mathematics tolerates informal proofs. Try to do formal mathematics (Coq, Agda, Isabelle/HOL, etc) and you will immediately see that it is not the case that {{a,1},{b,2}} = {{a},{a,b}}. Different definitions of "the same thing" are not "equal" but "isomorphic", and the isomorphisms are a bureaucracy that cannot be ignored -- unless you are doing regular, that is informal, mathematics and all this isomorphism business is just too tedious and 'obvious'.

The problem with programming is that it is always fully formal. It may be lacking in rigour, but it is formal nevertheless. A compiler cannot process informal code (syntactically or semantically) and there is nothing it can classify as "obvious". Hence you need to spell everything out.

Mathematics is like programming in pseudocode, that's why it's so neat.
FlatList was absolutely the way to go here. In fact, we initially built the list in question when ListView was the only option. During development, FlatList was made available as an experimental component. It made a huge difference switching over to it. The optimisation we needed to do was to use onViewableItemsChanged to toggle the visibility of images. We found that otherwise it wasn't properly emptying the memory of Android devices, and it was easy to crash older devices. After implementing that, we got silky smooth 60fps everywhere.

The only issue was there was a bug in RN core. We submitted a PR which was finally accepted about 6 months later: https://github.com/facebook/react-native/issues/16612#event-...
I think this article skirts about one issue without ever really stating it, and it sums everything so much more logically and cleanly. In 'regular life' people tend to be fake. They say what think they're supposed to say and act how they think they're supposed to act.

Alcohol, strippers come prostitutes, and other such fun do a good job of removing the social inhibitions in people. It's not about some sort of secret mutual blackmail or whatever (which is also not to say that does not happen) - it's just tearing down the social barriers that people put up. And this most certainly is in no way whatsoever unique to China.

Most people you meet you think you know, you will never really know. A bit of vice changes this for reasons that I do not think can be so easily explained as the article attempts to do. The point is that it does.
I suggest you to take a look at this: http://10degres.net/subdomain-enumeration/ :-)
Your example sounds interesting, could you explain more
I've only been a consultant for 2 months, and the reason I say every waking hour is because we are only just now getting caught up with bills, but we're still pretty far from being stable, and this weighs heavily on my concentration, so while I may work 12 hours in a day, I only get maybe 6-8 hours out of this work that I can actually justify billing for, because the rest of it was just spent staring at a screen and not really knowing what to do. And besides that, I have several children who need at least some of my help and attention throughout the day, and my wife who needs my help with them. So there goes another 2-4 hours. So even though I'm trying to get to a computer and type stuff in to count for billable hours throughout the day, this or that kid comes in needing something, or it's suddenly lunch or dinner time, or like basically everything breaks up the day and ruins any productive flow I could get into.
Source?

Hrm, here:

http://wap.dhl.com/info/history.html
This looks perfect!
If there is a group on this planet incentivised to perfect neutrino communication, it will probably be HFT.
Yes, please do!
I might go further a bit because large fast food companies engineer the food to be ... addictive in some capacity. And the WP ecosystem is relatively addictive. "Just one more plugin and these 3 problems will be solved!" Per comment above - I inherited a site with around 60 active plugins. The team before just ... added a plugin for every single problem they encountered. Because... point and click? No experience with any other ways of solving problems?

People who've been raised on fast/processed foods, and may never have actually done any cooking themselves, honestly may not even understand the problems with the food they're eating, or what the alternatives are. Yeah, 'home cooking' is more initially expensive (need some basics tools, place to store ingredients, keep them fresh, etc), and certainly more time up front learning how to cook certain things. But... you know what's in the food you've prepared. And you have knowledge and skills that can serve you for a long time.
I played it on the Apple ][ -- it seemed to be ported to many platforms. But it is a fairly obscure game -- it makes me wonder why they picked it rather than a more common one.
Are you really getting what you’re paying for on Google Cloud? Well…
Definitely, though between search, communicating with the many Gmail users, AdWords, YouTube, and Android's marketshare, Google Map's dominance, etc, Google is IMO far more ubiquitous
> In the south especially, he often struggled just as much as me to communicate with people from his own country, despite being fluent in both Hindi and English.

The languages [1] of the 4 southern states of India are somewhat different from Hindi and other northern, central, western and eastern Indian languages (not too sure about the north-eastern states like Assam, Manipur, Meghalaya, etc., though I guess even they have some Sanskrit influence, e.g. even two of those state names are Sanskrit-based - Manipur means jewel city and Meghalaya means abode of clouds - roughly).

I say "somewhat different" because, some of the the southern languages do have some Sanskrit influence and Sanskrit or Sanskrit-derived words, like the other ones do. I think the others are supposed to have much more Sanskrit influence. For example if you understand Sanskrit you can understand a lot of Hindi, and vice versa. (Studied both in school for some years.)

[1] Tamil in Tamil Nadu, Malayalam in Kerala, Telugu [2] in Andhra Pradesh (and now Telengana, which split off from Andhra some years ago), and Kannada in Karnataka are the 4 main southern languages, although there are dialects of them, and probably some other less well-known languages too (Tulu is one - https://en.wikipedia.org/wiki/Tulu_language ). The amount of variety and diversity on many fronts in India is amazing.

For example, I did not know for a long time that Modi script was an alternative script earlier used to write the Marathi language.

https://en.wikipedia.org/wiki/Modi_script

[2] https://en.wikipedia.org/wiki/Telugu_language - see the part about it being called "the Italian of the East" :) - I used to think that it was because it is lilting or sort of rolls off your tongue, like Italian (guessing), but saw in the article that it is because words end with vowels in both languages.
That might be a bit harsh. Closer comparison might be photoshop to gimp?
It's really great seeing this contributions from JaneStreet. If you're interested in learning more about recent progress in the OCaml's ecosystem, I recommend watching this talk: https://www.infoq.com/presentations/ocaml-browser-iot
I don't see any sense in attacking the credibility by the choice of the blogging infrastructure - the author wanted to convey a message, present his findings and he achieved that. This should be the only thing that counts.

I guess the best (even if in a totally opposite field) argument against opinionated choice of web-technologies would be the website of Berkshire Hathaway [1]. They invest in highly sophisticated companies but still use the website that always provided the service they demanded.

[1] http://www.berkshirehathaway.com
The analogy is a poor one though. This is nothing like rotting. A rotting thing changes, whereas here software stays the same but the environment around it changes. I know, no analogy is perfect, but this analogy is downright misleading.
What is a green card worth without a job?

I had a green card but could not get a job in the US.

Cheers from China. They actually DO need people here.
Those look fresh as the day they were made. The real engineering is not in the gears by the way, but in the cutting machine that cuts the spiral gears. Cutting straight gears is hard enough, spiral drive ones are impossible without special machinery.

https://www.youtube.com/watch?v=cT7GMUiEp7c

(never mind the audio and the intro...)
It doesn’t necessarily have to be that far out: https://twitter.com/kc_srk/status/994535108127404038?s=20
I've already whipped up a mostly-working clone of this in Objective-C and NSTask this afternoon, using some neat tricks like 'defaults read' and 'defaults domains' I've been able to uncover even more little nooks and crannies.

I'll set up a GitHub for the project tomorrow when I'm 100% sure of it's functionality. It already has a handful more features. Anyone want to help me with a name? :P
There's a site [1][2] that shows just how bad fingerprinting can get. You enter your name in private mode, close your browser then visit the site again and it has remembered you.

It would be great to know exactly what percentage of visitors had your same fingerprint. It uses clientjs [3] which I guess let's the "tracker" choose how strict to be.

While it uses a different library, this site [4] can show just how unique you are amongst other visitors. Again that fingerprint will not change even if you close your browser ,wipe your history, restart your computer, etc.

1. https://www.nothingprivate.ml/

2. https://github.com/gautamkrishnar/nothing-private

3. https://github.com/jackspirou/clientjs

4. https://amiunique.org/fp
Show HN: Making Sense of Auto Layout (iOS) Book
Should have made a video called "How to Read 'How to Read a Book.'"

Necessary break in the irony of a book telling you how to read books.
Anyone know details of the file? (codec, bitrate, filesize).

Obvious marketing stunt is obvious.
And no human ever was able to play montezuma's revenge, given only a let's play video. Usually it requires 5-10 years of accumulating prior information. It is still remarkable achievement.
Dan Luu doesn't even use a blog engine. https://danluu.com/
Estimating the marginal carbon intensity of electricity with machine learning
Thanks for your suggestions. Chaining would be neat. For each should be pretty simple to do.
Writing Better Redux's Code with TypeScript
Ocaml is a perfectly good modern day language. Our entire codebase at work is built on it and we’re pretty satisfied.
There was an event a few weeks ago where Steam prompted you to play a game in your library that you had never opened or not opened in a long time.
It's logits or log odds or the logarithm of the odds, i.e. log(odds(p)) = log(p / (1 - p)): https://en.wikipedia.org/wiki/Logit

Since sigmoid(C(x_r)) = p(x_r is real) and C(x_f) = p(x_f is real), the sigmoid of the difference expresses some probability that that x_r looks more real than x_f or vice versa (depending on whether it is C(x_r) - C(x_f) or C(x_f) - C(x_r)). Not sure whether there is a probabilistic interpretation of the difference, but it looks so simple that there maybe is one. I couldn't find one in the paper.
Node.js – v10.6.0
Hence using an HSM, e.g. something like a Yubikey.

Of course, they can be lost or stolen, which is why certificate revocation is necessary, and they would need broad adoption among OS and browser vendors.

Plus you still have the issue of proving your identity if it's lost/stolen.
I like to think anything that adds liquidity to markets are beneficial. It prevents large swings as everything is always priced correctly at that moment.
It's pretty hard because that's very generic. The security workflow we have for a couple of customers essentially has these steps:

1. Identify a security incident. This is the hardest one usually, unless they are blunt and noisy like in this case.

2. Shutdown and firewall everything involved in the security incident and shutdown and firewall everything that has a high probability to be immediately involved or targeted.

- For example, if you have a cluster of several identical application servers and one of these application servers is compromised, all application servers of the same kind in the same cluster must be shutdown and firewalled to the VPN.

- identical application servers in other clusters are handled as per 2.1, but with less hesitation to react strongly.

- If you have a database only available inside a private network and you have identified suspicious activity, it is reasonable to shutdown + firewall everything with access to this database.

2.1 Increase attention similar systems or connected systems in case of lateral movement.

- For example, our productive clusters have access to our monitoring setup. If a cluster is accessed in a creative way by a user, we'll revoke the credentials and certificates of this cluster. However, an attacker might have obtained information and utilize that to pivot his attack onto the monitoring cluster or the management infrastructure, so we need to pay attention to that.

3. Communicate to customer support and management about the incident.

- Yup. This is intentionally after axing productive systems. If senior persons are sure about a security incident, we don't want to wait for management to kill the malicious access. We want the senior guys to shutdown the security incident and ask for forgiveness later. Fast isolation beats bureaucratic process.

4. Identify vector of entry and eliminate it.

- This is normal post-work. What did they do, how did they come in, patch or report. This tends to be split into immediate mitigation (in gentoos case, change of passwords and implementation of 2FA, or disabling software features in an incident we had some time ago) and further mitigation down the road, such as the audit logs they are planning.

5. Resume operation of service coordinated with customers.

- This is something we learned some time ago. Some of our customers have their own dedicated systems, and from there they have a word how to properly resume operation after an incident. In one case, one department of a customer had an unannounced penetration test against a system without coordinating with the security department of the customer and without coordinating with us. All of that went to hell and back. We were forced to leave the system down for almost a month due to contractual bindings and catfights between teamleads of that customer on our bug tracker. That was fun.
Many of those Chinese immigrants still go back to China after they get green cards.
“Pointer”

Pun unintended?
I don't normally post on hackernews (so I've made a throwaway). I'm Antarus from the report.

We don't have a plan for Gentoo. I work for Google and I mostly used a vaguely similar plan to the Google incident plan.

1) Communicate early. For publically visible stuff (defacement was very obvious) you want to get a message out quickly before a natural narrative forms.

2) Communicate often.
3) Mitigate the problem first (e.g. prevent the malicious stuff from being downloaded) then investigate second.

4) Assign roles to people and be clear who is responsible for what.
5) Collect lots of data.
IP Routing on Subnets
Theory.

However he insists on living in his relational purist fantasy land without nulls or outer joins or other pragmatic things that people who use databases to get real work done rely on every day.
One thing I don't see as much talk about but lithium ion batteries have both very low self-discharge and exceptional charge/discharge rates.

Also go out on a limb and say one of the reasons you didn't see grid battery storage till now was issues with the inverters. Inverters have gotten really performant, reliable, and cheap. Probably enough to do cycle level(ms) grid stabilization.
The plurality of uses for hemp
Google Spanner vs. Google BigQuery
PIN lock is right
GalaXQL http://sol.gfxile.net/g3/ is a decent, but very basic, introduction slightly held back by its reliance on sqlite.
Do you have any links to confirm the latter?

From what I have been seeing, the number of both Indian/Chinese students coming to the US for studying has gone down post the Trump administration. Also, I am seeing more Indian/Chinese folks going back home due to increase in engineering wages/opportunities. Of course, it's still not comparable to US but plenty-enough to live a very good life-style back home.
Show HN: Asciinema casts post-production tools
I disagree, but I'd like to add that just like everywhere else in the world, the younger generations have a higher average level of education and linguistic skill, thus being better at both second and third languages than the previous generations.

Mandarin words are also adopted in local languages to fill gaps by the younger generations, just like English words are often put to use in the west. Not as fully incorporated loan-words, but just as a Mandarin word randomly injected into a foreign language sentence (Those speaking Cantonese use English words instead).

However, the native tongue of the younger generations is not Mandarin, at least not in any of the areas I have knowledge of.

Source: Married to a native Shanghainese (who is in the 20-30 range) who spend half her life in Hong Kong, and thus spoke Cantonese, Shanghainese, Mandarin and English fluently out of necessity (more western languages have been added to the list later on).
It had some really surprising, and quite common, uses in the war through to 70's era. Fabrics, cigarette filters, paints, fillers as it was so cheap.

Heat retardant and insulation were the headline uses.
I live in SF and go back to China about once a year, and every time I go back, I can always find tons of new stuff. For my hometown, the change from exclusively cash-only to cashless happened in less than 2 years.
Ask HN: Favorite places online to satisfy intellectual curiosity?
What are your favorite places online to learn new things and get inspired in an intellectual sense?