skysight-inc/HackerNews huggingface dataset:
Police Barged into My Room While I Was Covering Fujian Chemical Spill
> Question is, how does it know to ask?

The html tag has a "lang" attribute, and the server itself can send a Content-Language HTTP header. Most CMSes these days set one or both once multi-lingual is enabled.

Additionally the browser can utilize the OS or it's own spellcheck word database: check every word in every dictionary and the dictionary with the most matches is likely to be the relevant one.
yes. And I suspect it's not legal. Which is why I'm wondering what the actual definition is. Because it can't be that I "keep" or "index" the data, nor that I "republish" the data.

It's actually that I "read" the data, regardless of my intention and regardless of what I intend to do with it. But taken to the extreme there has to be something that makes it legal for me as a consumer to scrape ONE item from their data, while at the same time making it illegal for a company to scrape ALL their data in this way.

The worst situation to be in is one where it's "legal until it isn't" i.e., when you actually cause a problem (bandwidth, revenue) you will be sued - and until then you no idea.
Teachers can make more than 100k:

http://www.mvla.net/files/user/776/file/Certificated%20Salar...
Or analysis/statistics field?
Photos in Technical Documentation
I don't use Chrome but the vast majority DOES and I share a planet with them. Google is everywhere these days. So far it doesn't impact me too much since I've been blocking ads profusely.
The difference is not as big as you might think:

http://www.mvla.net/files/user/776/file/Certificated%20Salar...
A math problem for Austrian 10-year-olds
Speedsolving - solving rubik's cubes and similar puzzles and doing it FAST, blindfolded, one-handed etc

Sports/workouts/exercise - not original but great way to balance the sedentary lifestyle if you're not already doing so

Juggling - pretty fun to learn and relaxing activity. It has been shown to give great mental benefits when done regularly

Card tricks/magic tricks - impress your friends during parties

Learning foreign languages - this one has so much in common with learning programming I'm surprised that it's not that popular among developers. It is quite mentally draining tho so combining it with programming career is hard
There is a reason-vue project (https://github.com/JasonShin/reason-vue), but from my memories with Vue it is not a great fit for a statically typed language because a lot in Vue is "stringly typed" (which means that it is untyped and basically works by using the same/right string in your code, opening a huge opportunity for typo-bugs that a compiler cannot find).

You may want to look into this project which is an alternative to the React ecosystem: an implementation of the Elm architecture in OCaml/BuckleScript (and thus Reason).

https://github.com/OvermindDL1/bucklescript-tea

> What about server-side with Node?

Possible with Reason, yet compilation to native is also possible from Reason... This allows one to use really fast all-OCaml libraries. Like this HTTP server:

https://github.com/inhabitedtype/httpaf
Sure, but you will allways need to consider licensing, wether you're closed source or open source
Teacher salaries are public information. You don't have to rely on glassdoor.
I guess another reason for Facebook to not open source their social network code is security.
> Capitalism is working quite as intended right now.

But is it also working as advertised ?
It depends on the task and what you're doing, but you can normally give some idea, or break the task down into stages.

I agree it would be great if there was some way of teaching estimation, but what it mostly comes down to is experience.
Ivanka Trump used a personal email account to send hundreds of government emails
Elon Musk Renames Big Falcon Rocket to ‘Starship’
> I just don't understand how so many people in the HN community, who are so vocal about privacy, turn around and use Chrome.

1) Firefox is SLOW. I have ~400 tabs open on a Macbook right now in Chrome, Firefox snails around at 30-40 tabs.

2) Firefox dev tools sucked for a long time, compared to Chrome's. Same goes for Safari's dev tools - and don't get me started on the clusterf..k called Internet Explorer... that's why devs drove off to Chrome in the first place and stayed there.
Means of production.
Can't believe this topic isn't getting more up votes.
Digital transformation sparks innovation in networking
Assuming n isn't very large, I don't see why. People will spend sometimes days in on-site interviews. A simple coding challenge can tell you a lot about a developer and provide a shared basis for discussion in a subsequent interview. Of course "build a CMS from scratch" is ridiculous but simple simulated bug fixing and small feature additions that mimic real life work can be quite useful and not time consuming.
Got $9.99? If yes, learn a new skill today
I think the difference is that in the horse example one presumes the horse does not enjoy it and the aim is to breed the horse. In the dolphin example the dolphin appeared to have a romantic attachment to the lady researcher and thus enjoyed the experience. That's still weird in this day and age.
Xiaomi Bets Big on Rural India: Opens 500+ Mi Stores, to Add 5K More by 2019
My first boss used to do a short quiz just to weed out anyone that was wasting his time and that was that. But of course programming culture is hypertoxic so that's been turned into the roommate interview scene in Shallow Grave.
There's a more subtle argument, that the military as a whole views the word "atrocity" much differently than the rest of society. Though lots of society now agree with a sort of self-referential notion that our institutions and structures define what is an atrocity, so that whatever we do cannot possibly be an atrocity, if the rules are followed.

We see this sort of attitude when it comes to discussions of police brutality. Many police officers view the use of lethal force through the lens of self-defense in high stakes scenarios. Others view the use of lethal force through the lens of "police are not judge, jury, and executioner".

When people get shot as they run away from the police, even if each side of the debate might be rational in their own world-view, the conclusions are completely opposed.
Rents are defined as goods or services in which the seller captures not merely costs but consumer surplus.
I'm from Poland and have Delaware C-Corp registered through Atlas Stripe. There was no other easy option for me to accept recurring online payments (Stripe is not available in Poland). I have one-person company registered in Poland that is invoicing Delaware C-Corp for consulting and development work. I think it is good option if you would like to sell globally.
Do you screen the students who want to get into the program?
Infinite Jest helped me discover my upper limit for bleakness. Turns out is 500-600 pages. I need someone to admire in a book. It’s a dangerous criteria — usually turns out to be some Pollyanna.
The article barely touches on Campbell's racism, bringing it up only in the context of being an "angry old man" in the 1960s.

To give another example, he rejected a story by Samuel R. Delany in 1967 - https://www.nyrsf.com/racism-and-science-fiction-.html :

> ... with a note and phone call to my agent explaining that he didn’t feel his readership would be able to relate to a black main character. That was one of my first direct encounters, as a professional writer, with the slippery and always commercialized form of liberal American prejudice: Campbell had nothing against my being black, you understand. (There reputedly exists a letter from him to horror writer Dean Koontz, from only a year or two later, in which Campbell argues in all seriousness that a technologically advanced black civilization is a social and a biological impossibility. . . .). No, perish the thought! Surely there was not a prejudiced bone in his body! It’s just that I had, by pure happenstance, chosen to write about someone whose mother was from Senegal (and whose father was from Norway), and it was the poor benighted readers, out there in America’s heartland, who, in 1967, would be too upset. . . .

But he was a racist all his life. You ever wonder why the 'Golden Age' SF almost all has white men as the main character, with humans almost always winning over aliens? It's in part because his big influence on SF caused his racism to permeate the stories I read and enjoyed as a kid.

Here's a paraphrase from Asimov (Campbell, btw, felt that Jews were a superior species of human), quoted at https://andrewhickey.info/2017/08/09/the-prometheans-wheels-... :

> Campbell’s racist views had a stifling effect on his writers even in the 1940s – Asimov said that one reason his stories never featured aliens was because Campbell would always insist that humans were superior to aliens, because he couldn’t cope with a worldview where white American men weren’t the best, so the left-leaning Asimov just didn’t write stories with aliens in, to avoid the problem.

Heinlein's 1941 "Sixth Column" was an idea originally developed by Campbell. Quoting https://en.wikipedia.org/wiki/Robert_A._Heinlein#Race :

> The idea for the story was pushed on Heinlein by editor John W. Campbell, and Heinlein wrote later that he had "had to re-slant it to remove racist aspects of the original story line" and that he did not "consider it to be an artistic success."
RTFA - the user discovered that chrome was sending all text from all webpages to the translate service.

The advice in the thread isn't "never connect to protonmail using Chrome." It's "don't use Chrome".

100% agree. Firefox is so good now, there's really no excuse.
Not to say asking puzzle coding questions is an ideal approach, but I think the motivation is somewhat opposite: If you base your hiring decision on how awesome the applicant tells you they are, a certain number of the people you say "hire" for are going to be bullshit artists who can't code. When the interview is over, the interviewer is judged either explicitly or implicitly on how well they conducted the interview, and there's probably nothing worse they could do than say "hire" to someone and have the next interviewer find out they're lacking basic coding skills. So they have to ask some kind of coding question, and it has to be something with some meat to it, but you probably can't make it too OS or framework specific, so you're left asking about overlapping rectangles.
Yeah, they film those parts before the live recording and then show them on a screen to the audience to get reaction audio, and also so the audience has context for later live scenes. It's a surprisingly involved process.
Where are the tech manager blog posts that discuss time, money, and effort in addition to tech pros and cons?

GraphQL and SPAs are unconstrained tech solutions with questionable upside. Only well funded organizations can afford to throw money at projects that are more about attracting engineers than improving the bottom line.

You don't need a huge marketing campaign and a non-profit institution to drive adoption of technology that has a compelling value proposition.
Jared and Ivanka’s secret email addresses are hosted by the Trump Org (2017)
NYC subway and bus services have entered 'death spiral', experts say
Just search for Astro Teller rollerblades :)
The environments in The Good Dinosaur were stunning....and then the characters were less so. It's like they were designed by two completely different studios.
> Ah, first, a duty flows from a moral position, so perhaps the master misspoke.

I can't speak for them, but I'd say obedience would be a better word here.

> the people who lead military organizations, in most cases, have thought quite long and hard about their moral positions

Then that just proves that there are leaders in military organizations that even after thinking long and hard about something, come up with abysmal results, which they never quite seem to be capable to even own up to.

https://www.youtube.com/watch?v=_J2VwFDV4-g

> except in cases where they believed the operation truly met the standards of jus ad bellum

Oh, so I can trust they believe that, and when it's instead a war of aggression, I'm to be comforted that they believe it's not? And then exactly those people who already can't seem to use their brains responsibily are supposed to be allowed to build machines to make "decisions" and kill autonomously?

All you said is what everybody said, historically. Everybody is either the good guy, or when they fuck up, they're not obedient to evil, they're simpling making "mistakes"... but at least they thought long and hard, it's not always smooth sailing for those who kill others.

As if that perspective is the only one that matters, while ignoring the people who were murdered by militaries through no fault of their own, and any duty a person might have towards them.
Unfortunately, striking as a public servant is a double-edged sword. Specifically, back-to-work legislature can force you back on the job, with no new contract.
Ask HN: When Will Cloudflare launch their Cloudflare Registrar?
> Seriously, the Dropbox client? I mean, I never used it but I can hardly imagine anything that makes it so special. I use Nextcloud and from what I can tell, there is nothing that sets the Dropbox client apart from the Nextcloud sync client (which is 100% open source).

Writing a simple file sync utility isn't difficult, hell you could just wrap rsync and you'd be half way there. Making that open source is easy and low risk, because you haven't really invented anything.

On the other hand, if you can throw 100 developers at the problem, you'll come up with something _far_ beyond the simple case. Sure it might only be 50% faster? But that 50% makes your product "magic" when compared with other tools. This is where you get things like Project Infinite (https://blogs.dropbox.com/tech/2016/05/going-deeper-with-pro...). I can imagine there are some very complex optimisations for the multitude of configurations that Dropbox runs on, that I can understand a company wanting to keep "secret" if it's so core to their business.

I think you'd be surprised at the depth to which these companies are solving problems.
> Phone number is clearly marked as optional
This is not always the case, Google may arbitrarily decide to make it obligatory for you (if they find some "suspicious" pattern).
It's almost as if there is no middle ground between zero percent inflation, and worthless-trillion-dollar-bill hyperinflation.
If you target an ad to young Democrats, and they click on it and buy the advertised product, then you know that they are young Democrats, and you'll have their personal information.

That's how Google leaks information.
100% throttle for 15 seconds means my car has gone through my garage door into my garage.

If another car isn't there to stop it, the car has now gone through my kitchen or my daughter's bedroom.

100% throttle for 15 seconds on a multi-level parking garage means my car has now plunged N stories, or gone for a swim into the pond/river/drainage ditch behind the parking garage.

Don't be judge, jury, and executioner.

Or in less cliche terms: separate the asset recovery function (where you can help without moral issue) from the law enforcement function (where you cannot help without creating moral and privacy issues).

Just immobilize the car: the car's owner, leasing/financing company, insurance company, and police department will all be happy with just that.
Ask HN: Fastest way to get X/Y position of text/text-based shape in screenshot?
down vote
favorite
I'm trying to create a script for Linux that will detect where the text cursor is. This should be done in maximum 1 second. In order to implement this, the best solution seems to be to programmatically add some text via xdotool, take a screenshot via some other utility, try to figure out the position of that text, and then remove the text we've inserted using xdotool again.

I tried inserting a random string (like <-- CURSOR HERE). Using Tesseract 4 it takes about 20 seconds to find the position of the string, although it's very precise in terms of pixel coordinates. I was not able to use whitelisting (in version 4 of Tesseract) to narrow result to specific letters or digits only, which I assume would speed up processing.

I don't know what font the user will be using, but every font has dashes and slashes, so I could create some sort of shape (for instance, |/\|/\|/\|/\|), and use some library to detect that shape. What would be a good choice?

I don't care about what's on the rest of the screen: it could be more text, images, etc. I only need o know where my random string is (<-- CURSOR HERE, |/\|/\|/\|/\|, or can you think of anything else), and get its X/Y position in pixels.
> treasonous Supreme Court

How is it treasonous?
The tariffs do actually come directly out of the importers pocket (i.e. local manufacturers). Since the general public doesn't know what tariffs are, it's right to tell it that way.

BUT there is a whole other dynamic attached to tariffs. I.e. the foreign producer lowering it's prices to not lose important clients.
Also Nob Hill Foods, Chavez, ...
Then the title should reflect this. At the moment the title seems to imply (wrongly) that this is something specific to ProtonMail. I took the comment to be about clarity.
He Best Tips and Tricks to Encourage Your Employees to Learn
Ask HN: Machine Learning service for databases?
I'm running Machine Learning as Service platform - https://mljar.com - it can accept CSV flat file and build machine learning models for data in it (binary classification or regression models).

The service is not popular. I think that building ML models from CSV file and then writing additional script that will use model by REST API is not comfortable to use. I'm thinking about adding feature to read data directly from database: (1) reading data from database for model training (2) listening to database updates (new rows) and using it to compute predictions and save it in database.

Do you know any Machine Learning services that have such feature?
I read the title, saw the domain, and didn't read it.
And the problem is not new: the Romans were already fighting olive-oil fraud!

From Olive Oil's Dark Side [0]: "The Romans instituted elaborate mechanisms to prevent fraud. [...] These careful records were intended to prevent the siphoning off of oil en route, or the substitution of an inferior product."

The whole article is very interesting!

[0] https://www.newyorker.com/books/page-turner/olive-oils-dark-...
BTW, his name is not Bohem but Boehm.
Sure you can consult and if people appreciate your work they often approached you themselves about joining their work force.
If you're allowed to bet a different proportion of your money in each turn then you can push the median even higher than the Kelly criterion. For example consider the strategy that bets nothing if it has more than $2.98, whatever is needed to reach $2.98 on the next bet if it has less than $2.98, or bets everything if it can't reach $2.98 on the next bet. This strategy has a greater than 50% chance of ending up with $2.98 since it has a 50% chance of success on the first bet and a nonzero probability of success after that. So its median outcome is $2.98.

I don't know which strategy actually maximises the median, but I suspect it involves being conservative after you've been lucky and agressive after you've been unlucky.
Elaborate on your bank transaction example. Have you written one, professionally? Banks have done fine with REST.
https://github.com/nmslib/hnswlib for anybody else googling this library
And of course the effect is far more dramatic over time than just the direct tariff hits.

It's pushing companies to move their supply chains out of China, as few are expecting that this is a short-term trade conflict.[1] This will go on for decades in varying forms.

The US wins in all scenarios from that effect. Some limited manufacturing comes back to the US; win. Some manufacturing moves to Mexico, whose labor costs are now often cheaper than China's; win. Some manufacturing moves to China's Asian rivals with cheaper labor costs, such as Vietnam; win. The US will push half a trillion dollars into Vietnam via a trade deficit over the next decade, that they can use to develop with. Every dollar of supply chain the US pushes out of China and into smaller neighboring rivals, is a win for the US strategically. The goal is to dilute China and redistribute trade into numerous other Asian nations that aren't a superpower threat. This isn't just a trade conflict, it's the start of a long-term political contest over whether China is going to acquire hegemony over Asia - something only China has an interest in, which leaves the US with a dozen regional allies against that outcome.

The strongest results will be the long-term supply chain shift that will gradually take place over a decade or more. The longer the US keeps up the pressure the better that outcome.

[1] https://www.bloomberg.com/news/articles/2018-10-23/companies...
For me the problem is that to create a brand around yourself you need a pretty damn big ego, and ego is just bad in a team setting.
The best engineers I know have zero ego.
Black Mesa: Xen Trailer (Half Life 20th Anniversary)
Here is a link to your previous post about it: https://news.ycombinator.com/item?id=16043552
Because it's faster. That's all there is to it. Yes, I know many people will come and tell me how wrong I am and how Firefox is so much faster in their experience. Maybe they will link to some synthetic benchmarks. I don't care. Chrome is faster.

Also the Developer Tools of Firefox are worthless... and not only because of how slow they are.
Context for some of what's in 'the day of the dolphin' by Robert Merle which I now understand is fictionalized from the Lilly story.

Szilards 'the voice of the dolphins' story is much more a political work post bomb physiscs career.
What we have isn't capitalism any more.
My email says "You're in Wave 7, Estimate: December". Can't tell when wave 1 happens but it seems close.
Quickly scanning the paper I did not find any actual comparison of metaheuristics and their behaviour, sans the table 1 which lists their possible parameters.

It's all well and good to list sensible sounding principles "for meaningful comparison of metaheuristics", but I was kind of expecting to see those fine principles applied in meaningful examples.
Bitcoin is down but the world is not ending
Seems like a great way to get training data for image recognition (or whatever the term that applies). Kudos google.
I am freelancing via Toptal, and you have to pass the entrance exams (which are hard and include live coding), but that is the last time you have to do it... at least that is my experience with 5 different contracts in last 3 years there.. after entering, no one asked me to pass some additional quiz. The clients there seem to trust the system -- i.e. once you are in, you passed the bar and there in no need to waste time testing your abilities again.
Fast Web Scraping with ReactPHP #1: Extracting Data from HTML
It’s really difficult to have your engineering quality or culture NOT reflected in your open source projects.

I can't entirely agree with that. Aside from the possibility of deliberate deception, as discussed by others here, there is always a danger with operating in the open that potentially interested people are only going to look at the latest code, without knowing the history and thought behind it. Many times in my career, I've seen "bad" things done for very carefully considered reasons by diligent and smart people, perhaps to work around identified compiler/OS/browser bugs, or to allow for sensible assumptions that unfortunately turn out not to be correct on some particular platform. The last thing an organisation like that needs is oh-so-smart developers missing the significance of a small comment at the head of the relevant code and judging based on the mustn't-ever-do-this bad practice that was, in fact, based on an entirely rational engineering decision.
lol... you mean never enable auto-translate. If you use a similar plugin with Firefox, it's the same exact thing.