skysight-inc/HackerNews huggingface dataset:
It was noted by ... University of Tennessee Law School professor Glenn "Instapundit" Reynolds or one of his co-bloggers that with this election, the last remaining Democratic state house in the South fell to the Republicans.

I note that, somewhat to my surprise, in what's considered to be the Purple state of my home Missouri, the Republicans ran the tables this year at the state level, and we had some very good reasons to vote for the Democratic gubernatorial candidate this year (as I did), but he lost by twice the margin of our Senate race, where as I saw it the differences were more clear. The Carnahan dynasty also lost a statewide race.

Only thing off hand I can think that makes sense of those two results is that there was a strong anti-establishment vote, which made the Senate race that much closer. And I guess no one, or no one credible enough, see all our discussion of the decline and fall of our Lügenpresse in this topic, was able to sufficiently point out that the non-establishment Republican gubernatorial candidate was a weasel with no moral courage.

Heck, I stopped reading that part of my local paper when rather early on they endorsed Hillary for her foreign policy experience. Call it disastrously neocon, call it as I do setting a large part of the world on fire and palpably wanting to start a shooting war with Russia, the only county which can end the US in 30 minutes ... well, I'll also note the paper turned off comments for that article. It certainly didn't make any difference in my county's voting numbers.
> I'm guessing this because I work with a bunch of black physicians; they say they're all doing just fine.

What they say and what they feel may not be the same thing.
> each side would immediately jump to the least generous interpretation of an ambiguous or unclear statement made by the other

This is the frustrating part; there's no dialog, and no one's motivated to have one because it would deflate the polarization which props up the two party system.
Not just mass media.

Writing coincided, and probably facilitated, building of cities, and rule of law (which previously couldn't be written down).

Printing (1436) in Europe saw the split of the Catholic church into multiple denominations.

The continuing fall in printing and paper costs, and rising literacy, eventually lead to revolution and populist reform first in the American colonies, then Europe. Particularly the Chartist movement in England and the Revolutions of 1848 throughout the Continent.

Mass comms as you said, with Fascism in Italy and Germany.

https://ello.co/dredmorbius/post/gqzszjwf4unuqfupzqff8g
Ask HN: A CSS framework that functions more like a library
Hi,
I have been using Bootstrap and jquery for my site and in the process, learnt some css/sass and javascript.

I want to reduce the footprint of my site. I barely use a fraction of what bootstrap or jquery offers. Besides, caching is not of much benefit as my site is more of a reference kind and I get a lot more new users than returning ones. So I am looking for options to put together my own components and use plain javascript.

I actually find removing jquery much easier. CSS not so much. I am not much bothered about old IE support as they comprise less than 0.2% of my readership.

But a huge portion of my readership are mobile and bootstrap components don't scale well on small screens. The user endups doing lots of scrolling.

Is there a sass/less/stylus library with component styling that I can just @include? I currently use Sass, so I would prefer that. For example I use 2 flat buttons on my page. But for the sake of the 2 buttons, I don't the stylesheet to be bloated with CSS for all possible combinations of styles and sizes for buttons that I may never use. But if possible, I would like to have the option to have some basic styles.

One example I found is http://getkickstart.com/ . In kickstart, one can use the css distributed, or just pull in what we need.

.main-nav {
@include navbar($background-color: #333);
}

Unfortunately it does not seem to be actively maintained. Are there any other options like this?
Most EU media seemed to have parroted CNN throughout the campaign. In a way, the continental europeans were more shocked tham americans. And they continue to do so, e.g. yesterday's guardian was literally a list of lamentations.
Show HN: An ad-hoc SQL reporting tool
Title should be changed to "Python Versions Used in Commercial Projects, 2016 Edition". The data pertains only to Semaphore's commercial CI customers.
I've used Docker in production environments and found that it was helpful on some projects, but a disaster on others. The article brings up many of the pain points that you'll find using Docker for anything more complex than toy projects. It also gives some really good advice (like not putting your DB into a container). I'm currently finding that docker-compose is great for local development, but we've learned to be very cautious about introducing it (Docker) for anything production based.

I would suggest starting off by stepping back from picking specific technologies and architecting your system properly first. Where do you need load balancing? What are the different parts of the system? How can you break those parts up so that different teams can work independantly from each other? What microservices do you really need? Do you actually need microservices? How will they communicate?

If you start off by having to design everything around Docker (or any other implementation detail) then you're going to have a very brittle system that's going to cause you pain in the long run. After designing things fully you may realise that you've managed to eliminate most of the initial perceived complexity and can actually work just fine with more boring tools.

Docker and swarm don't actually solve any of feature set X. You have to do that yourself, and while they may help facilitate a solution, they're not going to really do anything for you. Lots of people have jumped onto Docker without really understanding what it's doing for them, which is why it seems like everybodies using it.

If you don't know which problems you have the Docker is a good fit for solving, don't use it yet. If you can't fit it into your process at a later date, it probably wasn't a good solution for you in the first place, so you'll have saved yourself a headache.
What's hilarious is that we use both nixos and docker...
I can buy into that sentiment, but for one glaring issue: the significant number of incumbents at the House and Senate levels that were re-elected.

If Americans want change, let's start at the levels that ultimately has a larger impact on our day-to-day experiences. Change the course of the failed domestic policy that comes from our govenors, state representatives, and those sent to Congress by bringing in new ideas.

Why is the Executive the only branch of government that is scrutinized to the degree that it is?

Where are the Congressional aspirants' debates that let voters draw their own conclusions after listening to the words that come out of candidates mouths, not just those from the latest attacking radio or TV spot?
I don't understand why you've started throwing in words like "vitriol". See, I'm not an American, nor do I live there. I don't really watch American news, and what I say about Trump is based on his own words.

If this were about terrorism and not religion, he wouldn't want to close the border for muslims but for terrorists, I would presume?

Replacing Scalia with a less conservative judge would be a win for democrats but it's fair game to have a different opinion. For me, however, it is most certainly a reason not to like a Trump presidency (though it has absolutely zero influence on me personally, obviously).

Trump did support the Iraq-war, unless he was lying when he replied "Yeah I guess so" when he was asked the question. Furthermore, he proposed a war crime to solve terrorisme when he proposed to kill terrorist family members (again; in a phone interview) and engages in such anti-war speech as "We'll bomb the hell out of ISIS", which, I would say, is pretty much waging war (not that I think we should just let ISIS slide...). So I don't agree with the sentiment that he's anti-war. Hopefully he's only not pro-war, like Bush was.

I said "possibly rich businessman" -- which I cannot for the LIFE of me understand why you'd call those words "dripping in vitriol" -- because I personally find it very suspicious that on the one hand he boasts about how succesful and how rich he is, and on the other hand he keeps the evidence firmly hidden. You're free to not find that shady, obviously.

I'm sorry if you lost friends over your political preference; I would certainly not have been one of them, that I promise you. But I do think you're misreading me: I'm doing my very best to stay rational (indirectly at your own request) and polite, so it's really unnecessary to feel attacked or anything. You're very much _free_ to support Trump, and I wouldn't have it any other way.
> I didn't say otherwise.

Well, you wrote, 'he got less than 50% (as Clinton got more votes than him),' which means that the reason Mr. Trump received less than half the votes is that Mrs. Clinton received more than half the votes, which isn't true: both of them received less than half the votes because some voters voted for neither.

It's interesting that I'm being downvoted because folks think I'm a Trump partisan (I'm not!) I'm just pointing out facts, not opinion.
trump didn't exactly campaign on rolling back gay rights, most americans are pretty solidly in favor of it at this point. as for why -- too early to say, probably.
It's amusing to see all the people coming out of the woodwork to claim that they knew all along that Trump would win big.

The vote was almost dead even. If you though Trump was going to win big then you were just as wrong as the places that predicted a big Clinton win.
Forgive me for going off-topic here but I'm curious about your reason for using MM to designate 'million'?
True, but that's true in any organization and it's independent of any social class. Play along or you probably won't be a member much longer.
Desperate to get feedback on this tool, so please feel free to fill out my Google Forms doc if you have time :)

https://goo.gl/forms/YIiYFCxhD8niiF1w1
I agree, with a "but", however.

It's not just that now there are more points of views to reference and understand, it's that now people do have the ability to reinforce their beliefs with articles and commentaries from virtually anywhere on the planet. While this has eroded what was an openly more liberal western media influence, it's what is seeping in through the cracks isn't exactly concrete journalism either.

Ease of access to information is a good thing, and I am in no way condemning or suggesting that the freedom of access to information we have is bad; but we also have a large public that isn't very well versed in how to do research for themselves. With mass media no longer serving as gatekeepers for information and everyone just finding sources for themselves, we're in the middle of what I'd consider a very arrogant age where we assume we are experts on virtually any subject because we can find information on it so quickly. We're ready to defend any position because, odds are, there's probably supporting evidence for it somewhere, if you just search long enough. And it happens regardless of political affiliation - outside of politics, you'll see such debates all the time on Facebook or forums with people constantly just posting citation lists at one another without actually taking the time to understand what the information they're citing actually means, if it's relevant, or processing it.

Mass media probably could stand to tone down the commentary and go back to facts - it would be nice, and we do occasionally get some really good pieces of journalism as a result of an editorial/opinion piece, but some more bare facts info would probably be better. But at the same time, people like the opinionated stuff, as long as the opinion is congruent with the viewer's own opinion. Not only that, but the opinion stuff sells; what was yelling at the TV screen is now screaming at the laptop screen while typing up a post furiously on Facebook.

But as a populous, we are complicit in it as well - the information available to us has made us very arrogant and very hard-headed/hard-hearted, since no matter what position we take, we know there's likely evidence enough to support it and to keep going without concession.

Yes, this year the media got caught with its pants down because they didn't appreciate the fact that they now have completely lost their position as gatekeepers. But it's not just media hypocrisy that is causing these changes, it's a world that more than ever is ready to fight and is armed with a whole new wave of information.

I don't know what major media's role is going to be in the years going forward - I do hope though that as people, we get past our arrogant stage of believing we know everything. The whole world is basically a bunch of college freshmen right now having just passed their first semester - we think we know all there is to know, and need to have the humility beat into us with the cudgel that is how much we don't know.
Just like Trump, he's too rich to care for or being able to understand any average person's concerns and worries about life, and this includes issues that have to do with sexual orientation like anything else.

It doesn't even have to be lack of empathy, it's just an complete lack of the experiences that people have in life who have to worry about paychecks, monthly bills, mortgage, insurance and education for the family, healthcare expenditures, etc. And no, no theoretical knowledge or education can replace actual experience, knowing the physics of how bikes work is not the same as knowing how to ride a bike.

People like Trump and Thiel are ignorants not in the pejorative but in the literal sense of the word.
Using [1], which is still incomplete, and [2], I calculate:

Turnout (2016) = 49.43% = (60071781 + 59791135) / 242470820 * 100

Using [3], back to 1932 (for no particular reason), I calculate:

Turnout (1932-2012) = 55.64(± 3.92)%

Obviously, caveats are that (1) the 2016 percentage will continue increase slightly, and (2) using turnouts back until 1932 was arbitrary choice.

[1]: http://www.nytimes.com/elections/results/president

[2]: https://www.census.gov/quickfacts/table/PST045215/00

[3]: https://en.wikipedia.org/wiki/Voter_turnout_in_the_United_St...
Peter already explained himself.

Try listening to what he said at the convention. He has weighted America's future far more heavily than which bathroom people can use. At the same time, he was the first openly gay person to speak at the RNC. He's helping to roll the Republican party forward socially.
I'm not discounting anything just saying the map the author used as proof of his or her hypothesis doesn't follow for the Northeast of the US from first glance. The thing that really stuck out for me was New Hampshire and Vermont. Though it's hard to tell for sure with a tiny unlabeled map. Anyone got a bigger one?
Wouldn't call 28% "largely ignored", rather "still lagging behind". Thing is, 3.6 looks like the real deal breaker here, what Python 3.0 should've been. With asyncio, compact dicts and scandir I've gotten to the point where I can almost justify to my employer why, if everything is still working, we should move to Python 3.6 ("all will be faster" -- I know I'm kind oversimplifying here, but my boss pretty much doesn't understand software and just wants results/money).

There's also the sentiment of "I don't know if [insert module here] will be supported", which has become mostly baseless fear, but people still think Py3 support is lacking (when it's not![0]).

[0] https://python3wos.appspot.com/ -- also, take notice how 9 of this guys come from here [1]

[1] http://mozbase.readthedocs.io/en/latest/

Edit: when I posted this comment, the link was titled "Python 3 largely ignored" (not the article per se, but the submitted link had been titled that way). It has been changed, but this was a bit of important context for my comment.
They were white people, particularly white men, frustrated with having to treat other religions, nonwhite people, LGBTs, and women with any respect. They were and are bigots, radicalized by the alt-right in places like Reddit. I heartily wish every one of them cancer.
Yes, there are biases in e.g. the NYT and Washington Post. However, in terms of objectivity, they are miles ahead of the "unfiltered news" on social media. The written press try to check their sources, and hedge their statements if they are not certain. I admit that they do sometimes filter some stories that go against their beliefs/interests. However, they have things like op-eds that often contain different perspectives.

If you look at the "unfiltered news" on social media, most of it starts from a tidbit of information and then twists it to fit whatever narrative they are trying to promote. On top of that, in the social media bubble, you literally never get exposed to contrasting opinions. As an example, a week ago Wikileaks leaked a mail about 'spirit cooking', and tweeted a misleading message. That got picked up by 'news' stories on social media and turned into some satanic ritual. It even got mentions on Fox News. If you were trying to figure out what 'spirit cooking' really was, in the first days the first few pages of google were only links to dubious websites reinforcing that it was some satanic ritual (with authoritative sounding names like usapoliticstoday.com). Only later did you get links to sites debunking the story. I very much doubt that the average reader of these stories ever even went to Google to check the background story. You say people aren't fools. I would say people are easily fooled.

Add to this active disinformation campaigns (alt-right 'news' websites, twitter bots, troll farms), a constant drip of easily twisted Wikileak emails and an FBI director putting his whole weight on the scale during the last week of the election, and you get this disastrous election result.
We can do better. It's true that decimal representation doesn't work:

0.999999 = 0.142857 + 0.142857 + 0.142857 + 0.142857 + 0.142857 + 0.142857 + 0.142857

And yes, rewriting the problem in an integer-indexed form does get the correct result:

1 = (1 + 1 + 1 + 1 + 1 + 1 + 1) / 7

But what we want, in both the original code and in this example, is to calculate:

1 1 1 1 1 1 1
1 = — + — + — + — + — + — + —
7 7 7 7 7 7 7

That's even hard to type out in our limited format here on HN. But it's what we mean to do.

Maybe better tooling could infer that if the limited math produces an angle indistinguishably close to 2pi, we probably meant for it to be equal to 2pi. Maybe it could do fractional addition, instead of converting to a decimal representation and truncating the number of digits.

Maybe it would write the outputs of the function in the initial triangle example, instead of as

([50 0]
[-24.99999999999999 43.30127018922194]
[-25.00000000000002 -43.301270189221924])

it would be represented as

([50 0]
[-25 25*sqrt(3)]
[-25 -25*sqrt(3)])

Because the sine of 2pi/3 is sqrt(3)/2, not 0.866.
And if Hillary would have won there would have been influx of millions of muslims who are real danger to lgbt.

Edit: People downvoting you do know muslims do not accept lgbt and are quite hostile against them?
Python 3 is the default in 16.04 LTS.
I'm actually surprised (pleasantly) to see that adoption is that high. I would have guessed at less than 10%.

I suppose the sample set (projects using a tool like Semaphore) is likely to be biased towards more forwards-looking teams, but still.
Mackay had some thoughts on that topic.

https://archive.org/details/memoirsextraord05mackgoog

https://archive.org/details/memoirsextraord01mackgoog
Hmm... you really use the system Python installation for development? Python is not pathologically backwards compatible, what happens when the next OS version use a newer Python 2 version?
Commercial projects are the laggards. I'd expect them to be the last to move over. More interesting I think is the progress in distributions. This matters because commercial projects use distributions too, and will need to follow them in the end.
This is actually a good idea, they complement each other nicely.
AubMckenzie: Wim Hof Method
Maybe it wasn't the press? Sure, they were completely one-sided, but look, the opponent won with 0 press by his side. So, why do we think that whatever the media said matters so much? Maybe the rhetoric of the democrats was wrong? Maybe every time hillary unconditionally pandered to minorities or women , a switch flipped inside the head of a voter?

Anyway, if you want to attribute something to the press it's their inability to doubt themselves. This actually begins in academia, where social sciences have switched from arguments to a war of punchlines. Skepticism is the foundation of science.
This seems to be a problem with the APUs then. I have a Linux-based home server with an AMD CPU that works just fine, and a dual-boot gaming PC with Intel CPU and dedicated AMD GPU that also works wonderfully. (With the open-source drivers. Don't even bother with the Catalyst shit and go straight for Mesa.)
Flamebait title, and doesn't match the article. 30% adoption, while not exactly a big success, is nothing to sniff at.
it is used to called tau and will be enable as math.tau in python 3.6.
Python 3 doesn't remove unicode issues, although granted you probably run into fewer issues when defaulting to unicode over a bytestring.
"You may fight ISIS, but if that’s the only thing we do, defeating ISIS seems like a manageable goal."

Oh man. This is the Middle East. You can never just do one thing and imagine it won't affect everything else. "We'll just topple Saddam and that's the only thing we do."

"Manageable goal" will have the same ring as "Mission accomplished" in a couple of years.

It's strange how Thiel is so worried about the bubble economy, yet Trump is the quintessential face of the bubble since early 1980s. Manhattan real estate, casinos, reality TV -- these are all "boom or bust" businesses.
This about rural America sitting in a time bubble, isolated from the rest of the world? This is true.

Our dear values, the Aaron Sorkin kind of shows we love, are meaningless to a population that have always understood the city as a thing to visit one of these days, where multiculturalism is an impossible luxury, and where making do with tthe clothes from 5 years ago is necessary because the factory has been closed since that guy from NY bought it, dismantled it, and started importing the pieces from elsewhere.

They are in the past, because that's what they have, and none of this media we tout and eulogize means anything to them, isolated from the world and only receiving messages from the usual populists messengers.
ex-mixradio guy here, MS didnt kill it really - they "sold" is to Line Corporation which eventually killed us ..
Same at my place, 2.x is banned for all purposes.
What does "default install" mean?

/usr/bin/python will always be Python 2. See https://www.python.org/dev/peps/pep-0394/

Python 2 isn't installed by default on Ubuntu cloud images since 16.04.
Political polarization has been a topic among moral psychologists like Dr. Jonathan Haidt. I recommend watching this talk to understand the political discourse: https://www.youtube.com/watch?v=vAE-gxKs6gM