skysight-inc/HackerNews huggingface dataset:
I agree with you on some counts, but not on others.

unsigned int countBits (unsigned int x)
{
int i;
int shift; // number of positions to shift to the right
static unsigned int mask[] = {
0x55555555,
0x33333333,
0x0F0F0F0F,
0x00FF00FF,
0x0000FFFF};

for (i = 0, shift = 1; i < 5; i++, shift *= 2)
x = (x & mask[i]) + ((x >> shift) & mask[i]);

return x;
}

Where to put the first '{' depends on your development environment, as some hide the line where the bracket is, and some don't (when you hide a function or loop). Array initialization format is a tricky one, as the spacing is very dependent on how you are trying to visualize the data, but I would agree that all (leftmost) elements should be aligned to the same margin. I find the blank line between array and other declarations puzzling for both examples. I prefer to leave blank lines between code of the same indent (outside of declarations and initializations). Commenting using '//' allows you to comment out blocks of code on both sides of your line comment, so I'm with you there.

P.S. I do not like Hacker News' paragraph formatting
There was an assumption that Bernie voters would go to Clinton, but instead some of them didn't vote or went third party.

In swing states, 1% more votes could have made the difference. Florida for instance was very close.

In addition, the democratic party acted in a very biased way against Bernie. Superdelegates also didn't care about what candidate was more popular in each state.
The purpose of these puzzles is to move you out of your comfort zone. Take the none familiar indentation as part of that experience.
> Everybody can be smart after the case :) I'm sure now the'll design something more safe.

Yes, but this is the kind of basic issue that everyone designing any sort of networked system should be aware of. The network is not reliable, and if you assume it is you're just setting yourself up for failure.
"Show me one outlet that gave Mr. Trump > 50% chance of winning (Fox doesn't count as news)."

I actually don't recall Fox predicting it either.

But isn't it kind of weird that you both supposed they were the only ones who might have gotten it correct, but also that they were not "real news"? Didn't "real news" just let you down hardcore?

It doesn't do any good to say "The deviation of reporting from reality means I have to re-examine my views" if you secretly include the caveat "as long as none of my views have to change".

That said, I've got no particular reason to give you that Fox should be given any more credit than any other major news source. But I'd submit that isn't because you should give Fox more credit, but because you should adjust your view of the others to match your current view of Fox. There isn't that huge a difference between Fox and, say, CNN. But there's a lot more people who will mouth agreement with that sentence, but then don't follow through with their actions. CNN is trash, and it's more dangerous for those who are generally inclined to agree with them than those who aren't. And so on for all or at least almost all of the other "real news sources". You need to follow through, stop watching, stop trusting things they say, and really stop trusting things they say that make you feel good.

(BTW, as for "what's my suggestion" then, at the moment I don't have a place I can point at and say "If they say it, I trust it.")
I can't imagine this could have been built, never mind productised, using 1984 technology. There was absolutely no way to get a processor + memory system + display into a box that small.

In 1984 everyone was using floppy disks for storage, and hard drives cost thousands of dollars. Even battery-backed RAM would have taken up an unexpectedly large volume.

Everyone takes touch panels for granted today, but in 1984 the only place you could find a high contrast touchless LCD panel was in research labs, or possibly available at ludicrous cost as an advance product demonstrator.

Touch - even pen touch - technology was certainly around, but not at this level of sophistication for affordable consumer applications.
Stop writing narratives out of this.

Many of us who are incredulous about this election not because a Republican won but because Donald Trump won.

We're shocked that you can mock a war hero, a person with a disability, a sexual assault victim in the public sphere and still get elected.

It's not our politics that are shocked it's our sensibilities.

Edit: sorry about the original swear.
The security forces are always underfunded.

The crime level however is not so much increasing as it is always painted by interested lobbyists. For anyone looking for a deep dive: https://www.bka.de/SiteGlobals/Forms/Suche/Expertensuche_For... (Wikipedia link is broken).

Of course stats fluctuate and one always can find things that increase and that is reported. Context is usually left out. In 2015 it was increase of cars reported stolen (about half are recovered later). Here are the numbers:

2015: 35.941 (19.391)

2014: 34.653 (18.549)

2013: 35.696 (19.395)

2012: 34.176 (18.554)

2011: 35.564 (19.318)

Yes, there were more cars reported as stolen in 2015 than in 2013. But looking beyond the headlines there were even more recovered. Either funding of police increased, police became more effective or thieves more stupid.

Clearly there are areas where crime is on the rise. But then there are also areas where crime is falling. It is always easier to grow than making these adjustments. But in a not so fast growing society not all of these shifts are avoidable.
You could divide into four groups: For, somewhat for, against, somewhat against. It still wouldn't be ideal, but would be more realistic. I don't think I'm "in the middle"- I simply agree with some policies of Trump's, disagree with others, and have serious reservations about him personally. That said, people "in the middle" deserve to be a part of public discourse just as much as those on each side.
But most compilers have a parser. Scheme doesn't need one ;)

http://calculist.org/blog/2012/04/17/homoiconicity-isnt-the-...
Buahahahahaha, media outlets report news WITHOUT opinion? Welcome to Earth, outsider.
Completely agree this was a ridiculous article, but it's also what I'd expect from TC.
The problem for them though is that they are also French, so things like the ADQ are tied to the inevitable "we'd be better on our own" and don't ever leave the province.
Then you trade availability with consistency. No system can't escape CAP
I think the radically unexpected outcome of the elections had a lot to do with it, which in this case happened to occur in the US.
Best bank account for startups?
We're an early stage (pre series A) start-up bootstrapping ourselves with some early traction with our beta product. The product is a SaaS platform, so payment processing is important. We are located in NYC. What is the best bank to set up an account with?
Question : Is there a possibility that when Go package management is launched there will be a good opinionated framework like rails for GO . Because for new learners ORM , authentication etc things matter a lot. I know Go promotes use of native HTTP package instead of frameworks but it is a large barrier for newcomers and have risk of writing error-prone web applications.
Making an LLC costs a few hundred bucks a year, so there's no reason any benefits would only accrue to wealthy individuals. To the extent that Trump's business tax proposals actually become law (the 15% business tax with no personal tax applied is a massive change from how it currently works), I predict a shift away from salaried employment and towards independent contracting / small business ownership. Tastes may vary on whether this is a good thing.
The study lead was interviewed on R4 this morning, and asserted they they'd controlled for this.
Facebook admits it must do more to stop the spread of misinformation on its platform.

https://techcrunch.com/2016/11/10/facebook-admits-it-must-do...
> The move to established and known secure cryptographic protocols was therefore only a matter of time, since it represents a tangible increase in business value.

What does that have to do with Telegram?

https://news.ycombinator.com/item?id=10713064
Technically, they did predict it: 538 had 35% chance of Trump winning and emphasized the uncertainty factor, while other outlets had Clinton's chances as high as 99%.
Taming the Web (2001)
Humans May Very Well Recycle Space Junk to Get to Mars
Donald Trump barely won. They regularly gave him a %25+ chance of winning and regularly pointed out that that was a good chance.
The stats said that 1 in 4 women who cross the border illegal were raped. Trump was talking about those rapists, not all Mexicans.
Because you're going directly off of the vote, instead of a representation of that vote via the elector for that area. It's a subtle difference, but one that brings to light some of the fears with direct election.
https://en.wikipedia.org/wiki/Shy_Tory_Factor
The 2016 election exposes the very, very dark side of tech
The biggest problem with our country isn't the people who voted for Trump, it's the people who are surprised that he won. For what it's worth, here is an email conversation about this that I submitted to HN before the election:

https://www.fwdeveryone.com/t/e1rtmBSJR16mkcCRlqmWwQ/lifehac...
How to Build Culture Through Remote Team Perks
12 years is normal in most northern European countries if I remember correctly, and I believe that its a good thing. We as a society need to take responsibility, and locking people up for their entire life is not a solution. There are people who might be too dangerous to have in general population, but i would argue that they have physiological issues which cant be trained away (think serial killers). But for most "normal" adults, locking them away for the rest of their life will not solve anything.
Why is this hard for people to get. "I can't believe it," is a figure of speech not a statement of fact.

Most of us are shocked that this could happen not that it did happen.
Slashdot is worse, I stopped reading it for the same reason. :(
Interesting that you mention rural community, my impression (I was in 4-H) was that rural kids tended towards 4-H and city kids tended towards Scouts.
I dislike your choice, too. So?

int count_bits(uint32_t x)
{
static const uint32_t mask[] = {
0x55555555,
0x33333333,
0x0f0f0f0f,
0x00ff00ff,
0x0000ffff
};

for (int i = 0, shift = 1; i < 5; ++i, shift *= 2)
x = (x & mask[i]) + ((x >> shift) & mask[i]);
return x;
}
Apple Touch Bar vs. Microsoft Surface’s Dial: Who Comes Out on Top?
My number 1 rule for buying a flashlight: Never buy a flashlight made by a battery manufacturer.
Is regular grammar same as context-free grammar?
Social media did a better job at predicting Trump’s win than the polls
He should suspect it before actually running the simulation.
Really, are we going to argue about the One True Formatting style?

A 2 space indent is more compact. A 4 space indent is more readable for older people. Putting braces around blocks on their own lines highlights blocks. Putting braces inline is again more compact. Outdenting declarations highlights an important piece of information. Keeping them in line focuses on blocks. And so on.

None of these choices are particularly important. Being CONSISTENT does. This is his site, and his code. Adapt. If he comes to work with you, then he'll need to adapt to you.

Yes, it is a shock to see someone whose style is unfamiliar to you. Each of your choices has a reason behind it, and you may have thought through all of them. But it matters less than you think. Grow up and get over it. Be consistent with code around you.
>> Why does everyone bash Trump?

The media and vocal politically minded and linguistically astute people are bashing him. Take comfort in the quiet majority who are going back to work today and don't have time for throwing tantrums in the streets.

The election outcome is based on how the Electoral Collage works. Had it been based on a pure turnout, more people would have voted. I think only 5M voted in California? That is a tiny representation. So, not everyone even cares. Just a few with soapboxes.
No. The int to int * truncation does not happen, the cast does not matter. What matters is the `int *p' which is 64-bit on 64-bit systems, so the compiler will just move the returned value in RAX into wherever p is, so no truncation happens, even without the cast. Look at the generated assembly, you'll see what I mean.
I don't use Facebook, but no one I know was surprised by the outcome.

Bill Clinton was disbarred, impeached, and he sexually exploited young female interns in the White house and was also accused of sexual crimes by many women. Hillary Clinton defended him in all of these things.

The Clinton Foundation is a front (masquerading as a charity) for political favors and payments. The Clintons are political/criminal cronies enriching themselves while impoverishing others.

While they claim that average Americans are too 'uneducated' and 'low information' (i.e. stupid) to understand these sophisticated political topics, we all see right through it.

Enough is enough. Follow the same rules and laws that we all have to and treat us fairly and we'll vote for you. Abuse us like this and we won't. It's that simple.

https://en.wikipedia.org/wiki/Clinton_v._Jones
>"They’re bringing crime. They’re rapists. And some, I assume, are good people!".

The stats said that 1 in 4 women who cross the border illegally were raped. Trump was talking about the rapists, not all Mexican. He said some Mexicans are good. Some are criminals. And some are rapists. There is nothing racist about this.
Thinking about it, I think maybe four groups: For, somewhat for, against, somewhat against. The app could still match up the "for" with the "against", but users wouldn't feel so gross choosing just for or against.
We're all definitely in an echo chamber. Hacker News is an echo chamber. So is Reddit, FB, Twitter, etc.

This is what happens when, as an industry, we move towards "personalization". All of our "personalized" feeds allow businesses to increase their ad revenue, but it siphons us away from the rest of the world. 30 years ago, we were beholden to the large media outlets, which is also bad, but I believe we've overcorrected. All of our apps are just too personalized and they don't work hard enough to tell us what we should know, as opposed to what we want to know.
The ClojureScript Compiler – A Look Behind the Curtains
My concern there - what if he changes his mind and is unable to communicate it? I happen to know the guy pretty well, and this is a decades-old position that I seriously doubt will change, but "take my word for it" isn't a really compelling burden of proof.
What kind of incident could safety regulations be trying to prevent by forbidding a furnace from operating when remote control is unreachable?
For me, it's the extremely straightforward conventions of Go, with it's straightforward tooling, and it's strong typing.

I "grew up" on Python, wrote a lot of code in it, and love it. But it doesn't feel as cohesive as Go.

As an example of cohesive tool design, let's look at Go package management. In Go, if I want to install a package, I install it with:

$ go get github.com/pkg/term

Having installed this package, I import it in my code with:

import "github.com/pkg/term"

Having imported this package, I'd like to read the documentation for it. To do that I use the command `go doc` with the package name:

$ go dock github.com/pkg/term

Now that I've read the docs, I've got a question about how some particular
functionality is implemented. With Go, I happen to know exactly where I can
read that code, on my own hard drive:

$ cd $GOPATH/src/github.com/pkg/term

With Python, I find that I don't have this absolute guarantee of consistency.
Usually, packages will have a similar convention, but some require installing
with one name and importing with another, and the local documentation viewer
(pydoc) isn't installed by default, so I didn't even know about it until
relatively late in my use of Python. I've had a similar experience with the
rest of Python's tooling: it's as feature complete or better than Go's, but
it's not quite as consistent as Go.
The Spontaneous Pop-Up Display (SPUD) by Arovia – Kickstarter
Besides the obvious empirical weight of your condescending dismissal I have yet to see any evidence that states it is impossible to report the news without an opinion. In fact, if you open the NYT you will find it divided into sections on opinion and factual news.
Give me some evidence of main stream media reporting opinion with news. Give me a non-opinion piece newspaper article that has opinion.
Enterprise Solutions Architects
AGCO has recently formed an Enterprise Solution Architect team as part of our significant research, design and engineering commitment. This team will play a pivotal role in providing solutions-based architecture and driving global innovations to position our organization for growth and success.
As part of this new team, we have two Lead Enterprise Solution Architect job opportunities available with a focus on Hybris and Salesforce. We're looking for candidates with at least 10 years of experience, with 5 years of it being in an Architect role, and an expertise in Salesforce or Hybris.
Facebook admits it must do more to stop the spread of misinformation
Google Denies Android Breaks Competition Rules
On my 2017 Subaru Forester I routinely make about 29 mpg when going to and from work. (Which nicely coincides with my 29-mile commute.) According to the car passport, it should be getting 26 mpg in city, 32 on highway, 28 overall, but I am not sure what kind of traffic is considered "city", "highway" and so on.
> And not everywhere in America is there good public transportation.

First off, that's by design. Car-centric infrastructure planning really did a number on the American public. The damages ended up being far worse than just economic.

Second, that's an understatement of the century. Public transportation is pretty much non-existent in most of US. It's good in exactly 1 city (NY), and probably decent in another 2 or 3.
Many did both. One poor mom with 5 hyperactive sons had them in everything, out of desperation. One 4H fair they submit 50 projects as a family.
The article links to the WSJ "Blue feed, red feed" page, which is very interesting. It shows two different Facebook feeds side-by-side for various topics and makes it clear just how much bias (in either direction) is in the feed. In general I think the Internet has reduced the "filter bubble", but these Facebook feeds, wow, that's a lot more filtering than I would have expected.

http://graphics.wsj.com/blue-feed-red-feed/
For fun, try replacing the setTimeout usage in game.js with calls to setImmediate[+]. My gen 57 birdie (x4) is increasing its score by approx 2,000 points/sec.

[+] https://github.com/YuzuJS/setImmediate/
I don't think a startup's requirements are that unusual - a typical bank account + Stripe for processing should serve you well.
"If you liked that, you'll love this." - Adam Curtis on his new documentary Hypernormalisation. I really recommend it. You can also read this: http://www.bbc.co.uk/blogs/adamcurtis/2011/03/goodies_and_ba...
For one, it discourages polarization. Yeah, I'm sure many in California are happy it's a near 100% Blue State due to the coastal cities aside from San Diego, but that has consequences in being taken for granted or worse.

And anyway, speaking as someone who lives in a true 100% Red State part of Missouri (Jasper County in the extreme SW), that just changes which election matters, the primaries are were the action is. E.g. this year every county position I could vote for, plus my state house rep, was unopposed a couple of days ago. But that was most certainly not true in our August state primary!
No, it just succeeded wildly. A lot of pundits and media types now need to go back and re-examine their thinking, because almost all of them were wrong about everything. Stop listening to them, because they are naive people who think themselves worldly but they don't understand the present moment nor the future. They all need to go.

Nicholas Nassim Taleb's Twitter and Medium are excellent reads these days.
Alternatively, with that time limit it's just going to select for candidates who've been churning out Django/Rails/etc. webpages recently and have all the details committed to memory.

That feels like premature optimization to me. I can see how it'd find generally good web developers, but I can also see how it'd produce just as many false negatives as Google's interviews do. So is it really that much of a step forward?
/s/MacSafe/MagSafe/
Alcohol contributes to depression in excess, in small regular quantities what harm is there?

> If you heatmap crime...

Again, look at all the problems I had with your original arguments. Alcohol is legal, and hence there is far more opportunity to abuse it. Small, regular amounts of alcohol is likely not be be harmful at all - all problems arise from excess, hence there is an argument for restriction, not criminalization.

Why are you talking about alcohol rather than marijuana in any case? Your comparison is a straw-man - whatever can be concluded about alcohol doesn't necessarily apply to marijuana.
detaro is correct.

The manufacturer and the authorized reseller are the only entities with skin in the game. The manufacturer has cause to protect their brand, and the authorized reseller probably prefers to remain authorized.

Because only the manufacturer has the leverage to make authorized resellers pull counterfeit stock, going straight to the manufacturer seems the best solution. Hell, maybe you'll even get a freebie for reporting the problem.
This has been fixed many times over in history...start you own news/media outlet. It's much easier these days.

It's super easy to be open minded about it once you realize it's all bullshit everywhere.
How to Create Customers for Life with the Perfect Onboarding Sequence
It has everything to do with includes. Just think how implicit declarations are defined.
Start by finding a linguist. You can find one at your local university.

Let the linguist design your first project. It should be something that they don't know how to solve, but have wanted to know.

Don't worry about if it is feasible. Go to local data meetups when you have enough exposure to form your first questions.
Just like they predicted Trump's chance of winning the primary as 2%.

Hilarious defence of their work in recent tweet

"Clinton came within 2 points of 307 electoral votes, in which case polls would have been right in 49 of 50 states. "

ie. If the results had been different, our prediction would have been correct.
Top Seemingly Useful Gadgets That’re Actually Useless
WhatsApp and Signal require that you give someone else your phone number. Threema requires that someone else buys an app.
> proven, reality-based statistics

Ex falso quod libet. The statistical mechanics can be rock solid, but if the data is garbage or the model is garbage then the prediction will likely be garbage. Hiding behind mechanical minutiae is no excuse for the overtly bold and wrong predictions.