skysight-inc/HackerNews huggingface dataset:
One things is a good dependency management. Right now if you want to upgrade your Python version, or one of your packages, it's a mountain of manual work. There is nothing in the stack helping you with the dependency graph.

Another thing is providing a stand alone build. Something you can just ship without asking the client to run commands in the terminal to make it work. I use nuikta (http://nuitka.net/) for this. It's a fantastic project, but man it's a lot of work for something that works out of the box in Go or Rust.

One last thing is to generate packages for OS (msi/deb/rpm/dmg/snap). Your sysadmin will like you. Pex (https://pypi.python.org/pypi/pex) is the closest, but not very standard.

Other pet peeves of mine:

- you can't easily move virtualenvs;

- creating a setup.py is very hard for a beginner and has numerous traps;

- setup.py are executable files. Meh.

- what's with this setup.cfg containing 2 lines ? And the MANIFEST.IN being a separate files. Why do I have to put conf also in tox.ini ? And one for each of my linters ? I want ONE setup.cfg file with all config for all tools for my project inside and be done with it. TOML can handle rich sections, just stop creating new files.

- accessing file with pkg_resources() is way harder than it should be. I made a wrapper for this (http://sametmax.com/embarquer-un-fichier-non-python-propreme...).

- one place to have __version__, please. I want it readable in my code AND in my package metadata, without having to use regex or have side effects on imports.

- remove the "can't build wheel message" when it's useless. It scares newcomers.

- README is the long_description. Don't make me read it manually.

- how do I provide vendors in a clean way ?

- install_requires, extras_requires, setup_requires, tests_requires... Make it one require with hooks and tags and be done with it.

- creating a setup.py test config is way harder than it should be and breaks in CI on strange edge cases.

- can we get a PEP on the standard project structure and built it in our tools to be done with it? We all have src/package + setup.py on root anyway.

- pip installs packages in the site-packages dir of the python executable it's installed for. It makes sense, and I think Python deals pretty well with the fact you can have various versions installed on the same machine. But God people are confused by this. Now you can recommend to do "python -m pip", but it's very verbose and it assumes people know what version of Python is behind the "python" executable. On windows it can be any, and they must chose with... yet another command ("py")! pipenv just bypass that by assuming you want a virtualenv, and be able to access it. It's a very good call.

- pip install --user will create commands you can't use unless you edit your PATH. This makes newcomers go mad.
> Very few people will join Netflix for just one title,

Obviously, because it would cost too much. However with enough customers paying monthly for the full service maybe they will start thinking about video on demand. I'd pay 1 Euro (not more) per episode.
Since I have a bit of experience in the world of batteries I thought I'd post.

First of all, deflected electrodes, insufficient insulation tape, and high welding burrs are absolutely fine explanations for what happened here. As someone who works with batteries, that would tell me everything I wanted to know. If I was running a battery fab, I'd be able to check for these problems in 20 minutes.

Further in the favor of Samsung is that battery fabs are some of the most opaque places in the world. They never release any information of any value whatsoever to the outside, and there are only a handful in the world. For Samsung to release something like this so candidly is absolutely unprecedented in the world of batteries; I was shocked when I saw the post.

Say what you will about Samsung in general, or about their treatment of the whole process, but posting this is a first among any of the major battery manufacturers and shocked me with its level of openness and detail.

-------------------

If anyone doubts this, try getting information on the closest battery fab to you. You can try to find what batteries they produce, but chances are that's not public. You can try to find their name, or if they still exist, but that's probably also not public. You might eventually find an address, and you might go there, but when you arrive you'll be forcibly removed from the area by armed security and/or police. To give an example, there are a couple debates in the industry about what company acquired another company. It's years after the supposed acquisition, and nobody knows anything.

The battery industry is a whole secretive world of its own, and this is because batteries are simultaneously a low-profit commodity and a gateway to unlimited riches. If Apple is successful with its dream technology, it might capture 50% of the world smartphone market instead of the 14% it has now. If a battery company is successful, it will become successful beyond your wildest dreams. Lots of things are just on the edge of being possible with today's battery tech. The first one to 'win' gets to go from selling a couple billion of batteries (to small fish, like EV and power tool makers) to selling trillions of dollars to everyone that will buy, including every electric utility in the world that will be ecstatic to have the perfect demand-smoothing device.
See my point ? There is a way to do it, it's just a pain.

Now pipenv centralize stuff we were doing anyway.

We should have a tool to centralize those as well.
Re 1: This is not a problem with TypeScript, but with Node. It's the same with every to-js-transpiled language. You can use https://github.com/evanw/node-source-map-support to get stack traces for your TS sources.

Re 2: I do agree that this is a problem but remember that it's all just a community effort. You can always create your own type definitions or enhance existing ones and share on the DefinitelyTyped repository. Also, most of the time if a type definition is out of date or invalid, you can just create your own partial typedef for a module with only those several methods you are actually using.

Re 3: IMO it's a feature. By using, for e.g. a bluebird library to wrap third party code in a Promise, you are changing the way how your code is interacting with that library by redeclaring the whole library or some parts of it. TSC is complaining because you've changed the declarations. You have to provide your own type definitions, either inline, or for the whole module.

I've engineered or reviewed several projects that are using TypeScript with success. The teams after initial hiccups are mostly not willing to come back to pure JavaScript now.

I'm not advocating to use TS everywhere and for every project. It all depends. Many factors must be considered but some sort of type checking is usually a good thing to have.
> They do sell it... on DVD & Blu-ray.

Who needs obsolete physical media these days? Where are they selling files?
uBlock Origin. Educate yourself, brother.
> And it falls down as soon as you want to enforce any other rules, like say, property rights.

You are right. For this desirable, two universal consents are needed: 1. NAP 2. Land Registry (eg blockchain based).

I claim that there will be 99%+ consent among inhabitants of a perticular region, which is good enough.

This have to be mentioned that no society (ancapism or socialism) can function without some minimum level of cooperation from all which is safe assumption because we are after all social animals. When this characterstic is not found, people migrate as they have been doing since ages.
Oh well that's not very typical, I'd like to make that point... (reference: https://youtu.be/3m5qxZm_JqM)

Seriously, these findings are facepalm-worthy. It really doesn't inspire any confidence in their quality control.
Thank you, yes, I had read that. I'm not asking about availability though, I'm asking if this is actually an official Asus-branded product. I know the article says so, but something seems off as I said above.
All of that is true, except (I bet) your prediction at the end. The reason he is such a threat to the established power is because he directly threatens their propaganda system. It's not a given that Trump will replace it with his own. We (in the US) legalized domestic funding of disinformation years ago. Enlisted PSYOP people have been in the major news agencies for a long time.
I would have agreed with this view a decade ago but I don't today. I believe the internet can't be used to educate people. It's very similar to sending a kid into a gigantic library. They will be able to tell you all kinds of interesting things at the end of the day. But they don't learn anything. Despite libraries having existed for thousands of years, without a school, a teacher and a systematic process of reinforcement no one learns anything. And that's what we have been getting out of the internet a superficial class of "educated" people.

Disdain has its purpose. I probably should be using it better I will admit.
> Why do we not have standardized removable batteries for mobile phones?

Because customers don't want them. Yes yes I know almost everyone, including myself, on HN and probably a good chunk of Reddit does want removable batteries. But the majority of customers simply do not care and having them non-removable means it's easier to make them properly water proof or resistant, thinner and larger batteries (easier to cram into the available space).

Another thing to keep in mind is the average life span of a phone in the US is 2 years. That amount of time is unlikely to wear a battery into being useless so you're only going to need to replace it if you are a heavy phone user and carry additional(s) batteries with you.
No, SJTU. Internet access is not completely unfiltered, just less filtered than outside.
In addition to all the genuine "let's make the web better" reasons, comprehensive TLS prevents middleboxes from inspecting or tampering with traffic, which in turn allows the introduction of better protocols like SPDY and HTTP/2, which brings content to users faster and allows pages that contain more disparate/modular content, which makes web applications more capable (in addition to the added security), which makes it easier and more appealing to migrate away from locked-in platforms. (And that's just one of many lines of reasoning.)
Yes, the ability to direct one's creativity is valuable and a hallmark of freedom. But the direction, if it is to be fruitful, is determined by what one finds genuinely interesting. This is in turn an impersonal property of those new ideas.

The guy who is hooked on a video games is less intentional. He thinks he ought to be able to will himself into doing other stuff which he thinks he should be doing. He blames the game or phone or whatever for his failure. But what he really doing is avoiding certain other problems. When he is ready he'll face those unmentioned problems and maybe find a new direction.
I just keep venvs in the project folder and add them to .gitignore. --relocatable never worked well for me, I just keep my requirements.txt up to date so it's trivial to blow away a venv and recreate it if necessary (python3 -m venv env && source env/bin/activate && pip install -r requirements.txt).

I find tools like virtualenvwrapper and this one from Kenneth tend to solve issues I don't really have. A little bit of repetitive typing here and there is ok to burn knowledge into my mind; and less leaky abstractions I have to deal with, the better.
Hah. Netflix has a glut of terrible, low-quality shows. I don't care how big their catalogue is if I don't want to see 99% of it.

Moana has been in theatres for a while, so Netflix offers "Lilo and Stich" as a poor-mans Moana. Who do they think I am? Old Netflix could have you watching a big-hit movie in a couple days if you waited for the DVD in the mail.

Netflix has a long way to go.
This part was just great:

Just weeks after passing out of training I had a draft for HMS Victorious. My work mates started calling me a terrorist robot because I remembered everything and I have a Northern Ireland accent. This reputation would have undoubtedly made it difficult for me to gather information. I needed to create distance between them, and create a knew persona; I aimed for mixture of dumbness and eagerness to learn for simple curios reasons. Within days of being on patrol I was no longer the terrorist robot, soaking up all the information for terrorist reasons. Playing dumb came easy for me, I've been doing it and been it most of life. It makes people open up and explain a lot more. If someone assumes you know something they might leave that part out of the conversation, meaning you've just lost information which might have been valuable. It also helps with getting out of certain situations. I watched a lot of Columbo when I was a kid.

On a similar armament note, from edge's "2006: What is your dangerous idea?" [0]

> "The idea that we understand plutonium"

> The most dangerous idea I have come across recently is the idea that we understand plutonium. Plutonium is the most complex element in the periodic table. It has six different crystal phases between room temperature and its melting point. It can catch fire spontaneously in the presence of water vapor and if you inhale minuscule amounts you will die of lung cancer. It is the principle element in the "pits" that are the explosive cores of nuclear weapons. In these pits it is alloyed with gallium. No one knows why this works and no one can be sure how stable this alloy is. These pits, in the thousands, are now decades old. What is dangerous is the idea that they have retained their integrity and can be safely stored into the indefinite future.

[0] https://www.edge.org/response-detail/10660
> I can only afford ~10-20 EUR a month on shared hosting atm.

Sounds to me like you can move to a better host that does provide LetsEncrypt and save money on your hosting costs to boot!
Am I the only one who feels "Netflix Original" became a negative this year?

When I first signed up, Netflix Original meant high quality shows produced/funded by Netflix itself, like House Of Cards & Orange Is The New Black & Daredevil. Netflix Original meant the best TV you've ever watched.

Now Netflix Original often means terrible unfunny stand-up comedy, or made-for-TV movies by big name stars phoning it in. Much of the new Netflix Original content is rated one-star - on my account I see Wet Hot American Summer, XOXO, Easy, Chelsea, A Very Murray Christmas, The Ranch, Mascots, Chewing Gum, Richie Rich, Lost & Found, all with one star. And there's a ton more. Worse is that it keeps pushing those as recommendations to me, even though it thinks I'll only rate them 1 star.

I can't see myself cancelling my Netflix yet, but there have been times when I've been tempted to pause it for a month or so.
Except that the throat culture takes 48 hours to come back, plus the time to get the patient started on the abx after that, on an infection that has a 5 day course to begin with, which got into your office somewhere on day 2. You wait 48+ hours on the backup culture, and you've missed your window to do anything with it.

...which is a big part of why it used to be common, and isn't now.
> IMO, Netflix originals mostly suck and HBO is king.

Lately I'd agree, but a few years ago that didn't have much and it was mostly high quality. So many of netflixs originals seem to fall into the super hero category that I'm not interested in.
Reciprocity says that path loss is equivalent both ways.
How do they suggest you indent function arguments? The Javascript way? Because I don't like that one at all.
How seven words saved a life
Netflix original content is amazing. IMO, they are the foundation of a new golden age of television.

Honestly, if you browse Netflix originals and choose one with 5 stars, and give it 3 episodes, you're most likely going to be hooked and start binge watching into the wee morning hours.

I speak from very recent experience -- first with Stranger Things, then Travelers (it's fantastic), and now Lovesick (possibly the funniest comedy I have ever seen and also my wife's new favorite show).
How Designers Should Think About SVG
I'm confused. The only "independent research" I've seen regarding the battery has been articles written by people guessing (maybe educated but still a guess) at the problem.

Was there independent research outside of the 3 separate companies Samsung used? Is their research available for download and how does it compare with the 4 sets of research in the linked article above?

> Who can trust this crooked company after such bs explanations...

Considering there really wasn't a lot of exploding phones they recalled pretty damn quickly. Why would they even lie here? What would they gain? If they lie, do it again and they're going have to take them all back again.

I don't get what you're going on about.
Fair enough, that's a valid concern. But it wouldn't be solved by allowing pages to opt-out of autofill, since they'd have to be updated to use those as well.
I love it when people complain about suggested content based on their preferences as if the results are the same for everyone.
Additionally one should add that the mainframes where Lisp was initially developed, were quite constrained, even when compared with 8 bit micros.
You make it one tool, and sysadmins will instantaneously lock it down. These package managers, in most cases, are developer tools built to get around system-wide locks on libraries; the more you centralize them, the more likely it is they will get locked down, and then someone will build tools to get around that, and so on and so forth.
is at least as what?
I had the same problem until a recent TS release introducing the keyof feature. You can create a TypeScript type that automatically convert a class definition to stubs.

type StubInstance<T> = {
[P in keyof T]: sinon.SinonStub;
};
This story has been circulating and has been rehashed by different publishers. A different one from Wired was posted three days ago here on HN and it didn't get much traction, but I did write a scathing comment [1] which, after reading this article, is perhaps even more relevant here.

To summarize what I said there, it's quite hypocritical that the app's Chinese nature is played up while spreading FUD, while western apps get an implicit free pass, despite collecting comparable info. It's extremely disingenuous to spread the fear about the sinister uses of the data, while then quoting a security researcher who says that it's probably just run-of-the-mill adware.

The Wired article mentioned this app may have been a Google program that seeks to promote viral apps, but hasn't followed up with a response from Google since it's been posted.

All in all, this reporting is fearmongering at best and is a malicious kind of clickbait, that doesn't provide substantive evidence while causing reputational harm to a third party.

[1] https://news.ycombinator.com/item?id=13441570#13441675
Dear Mr. Putin, Let’s Play Chess
It also makes the antenna more sensitive in the direction its pointing. The elements make the antenna more directional, sort of focusing the energy. This increases the transmit side by concentrating the energy into a smaller area, but the same effect also helps it collect more energy.

The trade-off is worse performance perpendicular to the extra elements.
I have lots of classes and method names that are descriptive but also make 80 chars harder to read.
In past I've had to sacrifice readibility to follow strict 80 char limit rule it is a bad idea to enforce it.
99% of time you are not doing merges that require you to have 3 side by side buffers. It makes no sense to point this as the main reason to maintain the limit in my opinion.
100 char limit is way more sane, 95% of time 79 is enough for me but for the remaining 5% to enforce it means to actually make it less readable or make more cryptic variable names which is even worse imo..
I was in the camp of "I disagree with 79 character rule" when I started. However, as someone who has written lots of Python for work, I realized that it does make the code look more readable and while I used to do it initially out of compliance with the existing code, I now do it it because I like it.

Does anyone else feel this way? Or I like it because I had to do it and therefore had to like it in the process.
I should point out for years we had phones with replaceable batteries. I didn't know anybody that carried one with them.
Nichole smith
https://goo.gl/smCgbj
Cheap candles give off fumes, how are these in that department?
Ask HN: Is JavaScript the programming language of 2017?
Yes this is awesome...bookmarked it for future use. Any reason why The budget amount field is not textbox ?
I think this concern over an absolute limit on line length is overblown. Where I work now, we don't use a hard limit on line length. The rule is "keep it readable." That usually means lines less than 100 characters. I try to keep it below 80 myself, but I wouldn't complain about a 120 character line.

I did a search through our codebase for line lengths over 80 or 100 characters and found remarkably few. Most were comment lines.
Thanks for sharing your thoughts with us. Slightly off-topic, but perhaps interesting enough to keep here: You state that battery fabs are very opaque. Could you tell us some things we might be surprised to learn about battery manufacturing or technology in general? Thank you.
Removing videos from youtube of explosions.
Actually we could also learn from:

- the JS community. npm dependancy graph, webpack resolver and yarn performances;

- the rust community like with cargo.
Or the expectation that everyone take a huge cost burden to appease El Goog is a bigger burden than the startup industry realizes. There's really no solution for HTTPS that does less than double my hosting costs, either I have to buy expensive certs or move to another hosting provider which would support Let's Encrypt. Either way it's a couple hundred dollars a year to maintain hobby sites, which don't pay for themselves to begin with.

Of course, it works in Google's favor to make it unfeasible to maintain a website outside a cloud platform. It's amazing here people are so opposed to the democratization of the Internet, and so supportive of the death of it, over security provisions that will, in retrospect, be considered largely ineffective.
Working on a new community site to help people move to HTTPS:
https://blog.movingtohttps.com/dedicated-to-simplifying-the-...
23rd? That's a generous number, and likely over-inflated.
The goal is to maximize profits. If they show commercials for 30 min every hour, they lose subscribers and devaluate the commercial slots.

Somewhere is the optimal balance, where they have lots of subscribers, and show just the right amount of commercials to prevent people from leaving, and thus maximize the value of the ad slots.

Personally, I don't pay for anything with commercials. I just don't want to pay to be fed ads. Instead I pay for streaming services and movies. But if they want to sell me premium channels without commercials, I'll consider it.
Seems like pr managers of samsung in the thread here on high alert.
Did your old Republican Party dismantle? No. It evolved. Ergo, same party. Ergo, the use of "always" applies to it.
Trying to play GTO is an interesting (and very profitable) approach but ultimately it's not the most profitable approach. It makes sense for the AI to be constructed that way because the matches it's likely to play are against good opponents. Most profit in poker comes from playing against not so great opponents though. Against those you usually play extremely exploitable on purpose.

That being said, the AI seems pretty impressive. Not sure how they picked the players I could think of a few HUNL players I'd rather see but they might not be interested in a 200k freeroll.