skysight-inc/HackerNews huggingface dataset:
I never knew you were on HN but I'll use this opportunity hoping that you'll read this. Recently I finished my masters thesis in quantum machine learning (I'm a physicist) and I think without the amazing book you wrote with Isaac Chuang I would not have been able to do it. So this is meant as a huge thank you! I tried other QC books but I found yours the most insightful and approachable.

On another note I also enjoy your essays on SRS and it encouraged me to start learning Japanese using it.
You wouldn't even need la plugin. Anki supports [latex][/latex] out of the box, provided you install LaTeX in a way that Anki can find it.

https://apps.ankiweb.net/docs/manual.html#latex-support
How would a CSP have helped here? GoDaddy injects that additional script tag right into the HTML file it serves. No policy will help if the web server does not serve what you uploaded.
I haven't move my WordPress off dreamhost because it just works :)

Also I don't have to update operating systems or do backups, etc.

Unless you website is serverless, good old shared hosting isn't bad. You have less control, but also less responsibility :)
> Also, with the notification system, both parents and students see each assignment grade in a bubble, so it affects them a lot more than if they saw the whole semester grade (i.e getting an F on a homework assignment isn't a big deal)

Could also show the average grade of the class for each assignment, to give students, parents, and teachers a reference for how well they are actually doing?
Can you support that with arguments instead of reflecting with "you're part of the problem"?
In norway the bahaus style srchitecture has been so succesful that almost no large buildings has been designed with ornaments on the outside since after world war 2. There only exception is a very few postmodern buildings designed in the 1980’s. Graphic designers have no problems using old typefaces, like the 200 year old typegace bodoni that can be seen in h&m and lady gaga ads. Comsidering how hughely sought after old apartments in the cities are in norway, it does not make sense that they do not build any apartments in that style anymore. Norway also has a serious problem with urban sprawl. It could have helped if there were more housing other than bauhausinspired architecture offered.
Oh, yes. My union fought to reinstate somebody in my department after he hit a female co-worker in the face. The assailant was a long-time who predated the establishment of the Agency,Shop and therefore never paid dues.
A lot of the schools where I live do the detailed progress reports. The thing is, the quality of the reports varies a lot from teacher to teacher. Some of us parents share the reports with each other and there are always lots of questions about what the heck the teacher is trying to say. Some teachers just are not good at writing assessments. Some reports are so weasel-worded you can't get to the real meaning of it. I used to write a lot of performance appraisals when I worked at a government contractor where we were strongly discouraged from directly criticizing certain classes of employees. So I got good at writing and decoding weasel-worded assessment.

Fortunately we have one-on-one meetings with the teachers when the reports come out so we can get straight answers from them.
The idea is to have the mangler see </html> and inject their garbage right above it--into a comment.

Unrelatedly, <html> is surprisingly hard to omit if you want to properly set the lang attribute.
> The unexamined assumption in this statement is that giant multinational megacorporations are good and we should encourage them.

There is no unexamined assumption. Swap in whatever you want.

> I reject the assumption in your last paragraph that individuals making their own self-interested choices always maximizes positive outcomes for society at large: https://en.wikipedia.org/wiki/Tyranny_of_small_decisions

I don't disagree. But the default assumption always ought to be that it indeed does maximize utility, because it usually does, or approximately does. If you want to make the case that there's some better pareto-optimal equilibrium that Google and Amazon are disrupting, i'm more than happy to listen, but I think you're going to find that case a lot harder to make than you think.
Only the first 2 lines of the article are visible. Flagged.
https://www.sacbee.com/news/politics-government/the-state-wo...

Dated sept 19,2018

[..]California Gov. Jerry Brown has signed a law that aims to give public employee unions legal cover from potentially expensive lawsuits demanding that they repay certain fees to workers that the Supreme Court in June determined were unconstitutional.

The law, which takes effect immediately, says unions and public agencies cannot be held liable for fees that unions collected before the Supreme Court ruling in Janus vs. AFSCME on June 27 of this year.

That 5-4 court decision ended a 41-year precedent that allowed public sector unions to collect so-called fair share fees from workers who did not choose to join a labor organization but were still represented by a union. The fees often ranged 70 percent to 99 percent of full dues.
[..]
I was wondering about how representative this is of the populations. The link to the survey is broken but I did find this on the Ipos Mori site:

https://www.ipsos.com/ipsos-mori/en-uk/what-worries-world-se...

> The remaining 11 countries surveyed: Brazil, Chile, China, India, Malaysia, Mexico, Russia, Peru, Saudi Arabia, South Africa and Turkey have lower levels of internet penetration and so these samples should instead be considered to represent a more affluent, connected population

I would extend that consideration to most of the countries shown in the results.
Short answer: for an experienced JS developer, choose Python over JS if your application falls into Python’s areas of excellence (data science/ML, system automation, graphic pipelines, gaming engines) and if you have the time to learn it (Python is generally easier to learn than JS). For other applications like web development, it’s likely not worth switching to Python for an experienced JS developer. Raw curiosity and experimentation is always a good reason, Python is the 3rd most loved language by developers according to StackOverflow.

——

Long answer

From experience the python ecosystem is great when it comes to analyzing data, data science, machine learning.

Previously the alternatives for data science were R/Matlab/Octave which are languages designed by/for mathematicians primarily - while python is a general-purpose language. These languages tend to perform slower than Python. A more recent alternative is Julia, https://en.wikipedia.org/wiki/Julia_(programming_language). Another interesting example is this online community offering live backtesting of algorithmic trading strategies written in Python is Quantopian: https://www.quantopian.com/algorithms/

Some notable libraries which build on each other are scipy (http://www.scipy.org), numpy (http://www.numpy.org), pandas (http://pandas.pydata.org), scikit-learn (https://scikit-learn.org), google's tensorflow. Tools like iPython/Jupyter (https://ipython.org) act somewhat like an IDE in the data analyst's workflow. It

Other popular use cases for python: system programming and automation as an alternative to shell/perl scripts because the python interpreter ships with most linux distributions by default while other scripting language do not. This use case is especially popular at Google where Python's creator and "benevolent dictator for life" Guido van Rossum had been working for 7 years. Examples of such applications built in python include Ansible, Docker-compose.

Yet another application where Python is popular is gaming engines (Pygame, Panda3D). Python is also the de-facto language for graphic pipelines and interoperability between 3D applications in the media and entertainment industry. It is supported directly in the Unreal Engine and Maya.

According to this Quora page, a Google Engineer uses python for build/test/deployment automation, some monitoring and service configuration tasks, Tensorflow configuration and results analysis. Other answers mention python used in much of the Youtube codebase.
https://www.quora.com/What-is-Python-used-for-at-Google

Python is also a good option to write a REST API server really quickly using the flask-restful library.
https://codeburst.io/this-is-how-easy-it-is-to-create-a-rest...

Further reading
https://github.com/vinta/awesome-python
https://stxnext.com/blog/2018/10/16/python-vs-nodejs-compari...
https://insights.stackoverflow.com/survey/2018/#most-loved-d...
https://hackernoon.com/could-pythons-popularity-outperform-j...
https://www.quora.com/What-are-advantages-and-disadvantages-...
Mathematics in the 21st Century
My general experience was that idiomatic Python generally uses snake_case for method and function names (at least, this was true of Python 2, before I stopped using python regularly)
How the Age of Empires 2 AI Thinks (ft. Promi) (YouTube)
This is a single page from Risk-First, introducing the idea that we can categorise the risks we face on software projects.

What do you think?

Does our discipline lend itself to this kind of rigor, or are all our projects unique software snowflakes?
Philosophy of mathematics
NaCL: https://nacl.cr.yp.to

Is a crypto library designed to do exactly this, have a sensible API that does not expose any internal details for misuse, and generally gives you only one way to do things based on best practice algorithms.

It's got some big names behind it, and has probably quite mature since it's been going for several years.

There is also a popular fork, libsodium: https://libsodium.gitbook.io/doc/, which I think is more portable.
Sure, they're trying to broaden the scope as far as they can. But is it enforceable outside the EEA? I'd love to see a U.S. court do anything but throw out a GDPR case or a European court's ruling based on the GDPR.
This is prophetic.
People's perception isn't necessarily an indicator of how well things are going..
The simple Thing.app bundle that us Mac users routinely—not always—get is one of the many things I love about the platform.

I know the app puts config and what have you in ~/Library once launched, but this simple model is so much more pleasant than having to install a thing.

So yes. Portable FTW. :-)
I believe this is camelCase because of objc requirements (I’ve run into similar annoyances working on my Common Lisp bindings to cocoa.)
Isn't the script injected inline in the HTML here? I have only little experience with CSP but wouldn't it only prevent from loading external scripts?
Biologically whales are clearly mammals and not fish. Whether bony or cartilaginous fish are closer to mammals does not put that fact into question.
No surprise that countries with the most oppressive internet surveillance and censorship also rank highly in self reported satisfaction. Chinese citizens probably got a boost to their social credit score for answering positively on this survey.

I was just in Beijing and Shanghai for a few weeks and almost everyone I talked to in private admitted that they expect an economic crash in the near future. So this survey is essentially useless for countries where privacy on the internet is not expected and dissent is punished.
I had the same feeling. The elegance and human-centeredness of the original is often lost in lesser implementations of the style.
Maybe they should offer more variety in design, usability, features and colours?

There are no small new smartphones, there are no QWERTY phones, soon there will be no phones with headphone jacks...I'd love to have a QWERTY for business + small phone with nice camera and durable battery for travel combo.
I walked away from a non-compete in Edinburgh, Scotland (startup). I'm not familiar with the law, but I suspect both parties rights had statutory protections anyway, and the clause wasn't legal, but the company was insistant that I sign the contract, even to the point of having lawyers call and explain them to me.

As a contractor it's not that uncommon to be presented contracts with clauses that fail disguised employment regulations. Usually with some negotiation I can get these changed, but on one occasion I recieved a lucrative offer from an intermediary that refused to change the offer. I ended up working for the same client (bank) via another intermediary.

Personally, I refuse to sign bullshit clauses, but many of these companies do refuse to budge, and I imagine it's much harder for junior people to leave the money on the table.
The prices GP cited were from 2003.
Reactors can be used to breed nuclear bomb grade material. Building a dirty bomb is trivial if you can build normal bombs. For upgrading that to a nuke the main difficulty is finding nuke grade material.
For benchmarks like these, I'm curious how many CPU cycles it takes per digit. A hundred? A thousand?
So? No one said it was. Why make up a strawman just to reply?

We could come up with a long list of other things that also weren't claimed and rebut those as well but I don't really see how it helps advance the discussion.
Employers rarely fire people for arbitrary reasons, then.
This explains the way consumer app markets go.

App stores cause downward pressure on average prices of apps. Free now being most common.

This drives away high quality app developers where the consumer and the business interests align.

Now there is only a market for user hostile, free consumer software due to this feedback loop reaching its end.
Businesses did not make buildings safer just because someone told them to.

I disagree, and I believe the evidence supports me. Buildings became fire safe AFTER regulation and enforcement in country after country.

It is naturally considered a bad idea to kill your customers.

Yet in China, the milk powder suppliers killed their customers and now nobody trusts the milk. Likewise various other foods and also medicines in China. Instead, people spend a fortune smuggling safe food across borders. This is just one example amongst many. The same story exists in country after country.

So you dont trust anyone unless gov tells you to?

The gov doesn't have to tell me who to trust. I live in a country with strong protection laws. I live in a country where buildings get inspected and dangerous buildings shut down. I live in a country where I can trust the food I buy. There is not a government approved list of safe food shops. The government doesn't have to tell me which milk powder is safe; the government enforces a system in which I can trust, and in doing so create prosperity and safety together. I trust; I don't need a gov approved list, because I can buy food on the assumption that it's all safe by default. If I was living in a low-trust society, where the government was ineffective, that's when I would need a list of known safe sources.

You are arguing from a libertarian ideology. I don't have an ideology; I only have evidence.
From what I found around 160 mln laptops were sold last year. Apple sold around 18 mln, in other words around 11%. HP, Lenovo and Dell sold each around 2 to 3.5 times that. Can you say then that Apple dominates laptop market? Rather that they are a big player.

I understand that you said that they sold the most per a model. But does it count all that much when others sell PC hardware in such a big quantities? They sell more models, but they likely share many many parts.
A lot of people recommending NameCheap in this thread.. it's worth noting that they supposedly gave a warning to a guy running a forum with millions of visitors that they would suspend his account if he didn't remove two images within 24 hours (https://news.ycombinator.com/item?id=14139288), and that they're dumping costumers private info (https://news.ycombinator.com/item?id=18063667). I'm guessing there are other horror stories as well, but those two alone (which to me sound credible) were enough reason to take my business elsewhere.
There's a weighted variant: https://en.wikipedia.org/wiki/Jaccard_index#Weighted_Jaccard...
The Blackberry KEY2 sounds like exactly what you’re looking for!
"Ted Nelson kept all his junk mail, for some reason"

I'm glad he did, I love the design on a lot of these!

Reminds me of the story of the John Johnson collection of "printed ephemera" at a library in my town:
https://www.bodleian.ox.ac.uk/johnson/about

The way I've heard it, he was in Egypt studying the writing on papyrus fragments which had been excavated from a seam of ancient landfill, and he reflected on how much he'd learned about the real day-to-day lives of ancient Egypt from what had been thrown away as scrap paper millennia before, and wondered what people were doing in our age to preserve the modern-day equivalents.

(Or modern-day-ish - this was the 1920s)

I love archive.org and have "lost" many an evening flicking through some early-80s computer magazines or consumer electronics catalogues.
Which you probably won't have with you at the right moment.
Why do you think the EU would use US courts to enforce EU law?

The EU would use EU courts to enforce EU law. This might mean that non-compliant websites are blocked, via court orders to ISPS, in the EU.

This already happens with some piracy sites. The blocking is inconsistant and easily circimvented.
There are newer results from September here: https://www.ipsos.com/en/what-worries-world-september-2018
GDPR applies to any company with a significant prescene in the EU. I think it's hard to believe GoDaddy doesn't. They sell large number of domains with EU based TLDs. They've even bought EU based hosting companies.

GDPR doesn't apply to companies that only have a tiny portion of EU customers. Good examples would be: small local news, US only shops. (K-Mart, gun shops, etc)

GDPR being an EU law doesn't matter so much when there are so many treaties allowing fines to be forced. This means not being in the EU just makes it more expensive to deal with.
Ryan Holiday has an entire chapter (Chapter 12) on it in his book, Trust Me I'm Lying: Confessions of A Media Manipulator. His point is that being wrong can actually have positive consequences for a blogger, since it allows them to get paid twice for the same story. First, they publish the original provocative piece. This drives pageviews to the site (and prompts coverage elsewhere, which cements the site's reputation as an "influencer"). Then when people start digging, and the site has to post a correction, the correction can be turned into a story of its own, which drives even more pageviews.

An example from the book is the Shirley Sherrod controversy. Breitbart excerpted two snippets from a 40+ minute speech that Sherrod gave, which were excerpted specifically to make it seem like she was engaging in "reverse racism". This led to Sherrod getting fired, and cemented Breitbart's reputation as an influential site that could even get government employees fired. After the controversy blew up, Breitbart stuck to its guns for as long as possible, in order to gin up as many pageviews as possible from the ongoing controversy as possible. Finally, when it did issue a correction, it issued one that was completely unrepentant -- the only incorrect information it admitted to publishing was that the remarks that it referred to had been made before Ms. Sherrod took her job with the Department of Agriculture, instead of after.

Ezra Klein's interactions with Sam Harris have a similar character. Klein seems to deliberately distort positions that Sam Harris takes in order to make it seem as if he's more sympathetic to right-wing ideas than he actually is. Even when Sam Harris corrects him, both on his podcast and in writing, Klein sticks to his guns, and completely fails to acknowledge that he could have been wrong about his interpretation of Mr. Harris' views. He only admits to corrections in the most technical sense, about narrow facts. Klein never admits the possibility that he might have completely misinterpreted something, only that he got certain details wrong.

It is for this reason that I found it extremely ironic that Vox, the publication founded by Ezra Klein, would publish an article advocating for intellectual humility, when in my experience, both Klein himself and Vox's editorial voice as a whole are among the least intellectually humble publications that I read.
Much Ado About Nothing
Ask HN: Why I'm being flagged on all new submissions?
Can you at least give me an option to ask what is wrong?
That's right. The js rewrote all image src attributes to point to the "optimised" photos they'd cached.
No, sharks are fish. They are cartilaginous fish. Terrestrial vertebrates descend from (and therefore are, in one technical sense) lobe-finned fish, which are a part of the bony (=not cartilaginous) fish, but that doesn't make sharks not fish, it just makes sharks more distant from mammals (etc.) thanks bony fish.
A link in the article is dead:
http://piworld.calico.jp/estart.html
This isn't something designed to solve the problem. The actual problem is really, really complicated and solving it is difficult.

It is unlikely that all the abuse simply shifts to during the week and stops getting reported.

What it actually is, however, is a change schools can make to lessen child abuse, even if it is just a little. It isn't something difficult or expensive to do.
Do you have an example you can share?
> nothing holds you from using a nice screen and keyboard with a laptop.

What's the point of having a laptop if you can only use it with an external monitor, keyboard, and mouse? A powerful desktop is much cheaper, and you can stuff huge disk drives in it.

When I'm on the go, I bring a cheap laptop (in case of loss, theft, or damage) that doesn't have my whole life on it and mainly take a vacation from working. (And I'll use the time to catch up on my professional reading.)
It's amazing that front of house staff are making $80-90k. That's starting salary for engineers in many parts of the country. Absolutely boggling.
HN users likely consider those submissions spammy.
That’s a superficial focus on human interaction that ignores he reality of business dealings.
Polls like this are not useful for anything. They are, at best, measuring the temperament of the citizens of a country, and some of them will be overly negative or positive about anything. It would be interesting if pollsters attempted to "correct for temperament"
I think there's a significant difference between the practice being banned but there being "ineffective enforcement of laws", and being somewhere where it's still allowed and seen as perfectly acceptable.
Cbd (cannabidol) cannabis meets good web design
OK, we changed to that from https://www.weforum.org/agenda/2017/01/which-countries-are-o.... Thanks!
To build on top of this. Here is the PL.8 paper, the PL/I variant that IBM used for their RISC research.

"An overview of the PL.8 compiler"

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.453...

An optimizing compiler that is pretty much LLVM in 1982.
Being a tourist is far from being an authority on a culture
Yes! Sorry that was what I was thinking. Although to be fair a lot of steam games appear to simply install non-DRMd version that you can just run by finding the executable file.
CSP affects inline scripts as well. They are actually disallowed by default and must be explicitly whitelisted.
Hard-to-fire markets also have necessary laws to promote hiring former felons, old age and disabilities.
This guy posts some really unique information -- I used his site back in 2012 when I first visited Myanmar after the end of sanctions. His site had a full train timetable, cabin descriptions and a guide for buying tickets (accurate, none the less) when there was basically zero other information out there. Took the train from Yangon to Mandalay, and it was definitely an experience! Also, more recently, the Norther Explorer train from Wellington to Auckland.

I've also researched all sorts different train rides, like the journey from Shenzhen to Urumqi and the trans-siberian, neither of which I've gotten to (yet!).
I am with you on const.