skysight-inc/HackerNews huggingface dataset:
Ask HN: How did the election impact your traffic?
We saw a big dip yesterday, like 30% down for top line traffic. Today it's mostly back to normal. Part of that is because less stuff went on market - a big chunk of our traffic is driven by our email feed which sends you today's new for sale listings via our MLS hookups. Wondering if other people are seeing a dip and why they think it is. We have mostly California traffic, so it could be people are too sad to shop for homes or they're smoking that new legal kush. Haven't seen a world event impact traffic as much as this. Anyone else?
There are people who are working on this. There is an active data science community using go. I would start here:

https://github.com/gopherds/resources
The Wandering Wind Tunnel
Unwinding is an implementation of exceptions. You can implement them as returns, or, in the case of Swift, passing in a pointer for the Error type.
To expand on my comment, I think this is a sink or swim moment for humanity. I think we need a great leap in intelligence and technology to get out of this mess, either with AI or genetic engineering because we don't have centuries to come up with solutions and I don't think politics can solve it. It will take real technology to remove substantial amounts of CO2 from the environment, like small scale fusion, or self replicating solar along with efficient ways to remove CO2 from air. Nothing else will do I'm afraid.
All of the futures markets were down around 8 pm on Election Night. I remember asking myself who might have shorted on futures.
Again agreed. But how would you accomplish that?

For large majorities of voters, dropping that ballot in the box is over 90% an identity game.
Out of curiosity: Which of the two is richer?
Several Linux kernel committers use a MacBook as their primary device. I've run Linux on a MacBook for years at a time and it worked fine. There may be some extra complication involved in getting Linux working well on a MacBook (and typically this is only true for the first several months until drivers are updated and integrated upstream), but it's certainly not a "laughably naive" endeavor. It works fine after some configuration.
I've told friends and family numerous times to throw away that "LCD/Screen cleaning" crap that they were upsold at BestBuy and to just use (preferably distilled) water and a microfiber cloth. That combo will get rid of 99% of smudges and will get rid of them safely! All those commercial screen cleaners contain crap like ammonia and other chemicals that can take off screen coatings.
The fact that they "will say what you want to hear" places limits on what you can gain from torture, but the limits don't make it impossible to accomplish anything.

The most obvious case is getting a password. (or lock combo or crypto key, or anything else that you can verify) You torture until you get a password that works. Obviously, there should be good reason to believe that the person knows the password.

Another case is where you know many things but not everything. You ask about all that you want to know, including things you already know. The things you already know are the honesty check. Answers to the unknowns are assumed to be dishonest until you start getting correct answers for all the things you already know.
> Of course they are. What if you read from or write to the wrong field?

This falls under the rubric of "not meaningfully less type safe". This data structure is central in a large project of mine, and I have maybe 3 places where I switch on the type flag. I'm not proposing this as a general purpose replacement for interfaces, only a useful way to abstract over a few known types when you can't afford all of the allocs.

> Your example has one contained type per variant. In Rust it is common to have an enum like
enum Foo {
Variant1(String, u8, Vec<u8>),
Variant2(u8),
Variant3(String),
Variant4(f32),
Variant6(f32)
Variant5(bool, bool, String)
}

I agree. I don't propose this as a general purpose replacement for Rust's enums.
There are two big problems shown by this. First, that any one service like Facebook could become so large and unopposed that we need to care how it handles something like this. And second, that people seem fine with the idea of living only inside Facebook, unfriending or muting anyone who disagrees with them, until nothing else matters.

This is an utterly unhealthy way for people to be. If you want to combat misinformation, you must also encourage (teach?) people to stop being spoon-fed and start being more curious and more critical.
Supply-demand dynamics at play. The general answer is no, though. Chances are higher if you use these in your own domain and become an applied expert or if you win some competition on Kaggle or similar tough envinronment.
Panicked Regulators Are Scrambling to Limit Wall Street Bonuses Pre-Trump
For all the doom and gloom predictions it would appear a Trump presidency is turning out to be a pretty vanilla republican administration. The world didn't end in 2000 when the last republican administration had a republican congress, and it won't end this time either.
With the Republic of Kalifornia you never know. It will depend on how they define "6", "plant" and "grow". No laws in Kalifornia are common sense laws.

One real possibility is that government controls who can supply the saplings of the tree.
> Trump says he wants to expand coal, nat gas, etc.. and cheaper prices for those would discourage new solar installations.

This is completely illogical. Increased usage of coal or gas will result in higher prices of those resources, not lower.

In addition, switching back to coal and gas as electrical power sources means lower energy costs. Lower energy costs mean lower manufacturing costs, what will finally result in lower electric car/batteries and solar panels production costs.

Lower electricity costs will also result in lower operational costs of electric cars.
That would probably require an international coalition to pull off. The hard part is building enough power plants that are nearly carbon neutral at a big enough scale to make a dent because the scale of the problem is... well, planetary.

1 gallon of gas contains 33.4 kWh (this is a standard unit and can be converted to an equivalent volume of natural gas) so assuming we can convert electricity and carbon dioxide to gasoline at a 33% efficiency that's 100 kWh of carbon neutral power needed for every 33.4 kWh of gasoline. If we assume that we get a 50% effeciency converting the fuel to energy (highest efficiency achieved so far with state of the art natural gas plants but more than twice that of an auto ICE) we'd need over 1 MWh for every 167 KWh of energy produced using fossil fuels and this is probably way too unrealistic for a best case scenario. Technology capable of 33% efficient energy and CO2 to fuel conversion is extremely unlike to happen for a very long time and ICEs are way less efficient than natural gas power plants.

For example, you'd have to grow California's energy output by about three times using only renewables or nuclear just to make up for the CO2 from its natural gas power plants and that's not including what you'd need to make up for rush hour traffic. It would literally be cheaper for California buy all of the natural gas plants at original value and replace them with renewables than to try to offset our CO2 output. Only once we replace all large scale fossil fuel energy sources can we start thinking about carbon sequestration or conversion.
This assumes Fox is as biased in one direction as, say, NPR is in the other. But you can tell the quality of reporting from the content itself and the way it is presented. For example, while cable news channels will go to the same non-expert pundits for every story, NPR will actually call a different specific expert who is knowledgable to comment on each story.
I have the new MacBook from 2015, and I was hoping now that that they've released a new MacBook Pro, we will finally see work on Linux support on this damn machine. For one, the keyboard does not work on that machine too[0], probably for the same reason.

[0] https://bugzilla.kernel.org/show_bug.cgi?id=108331
Have a look at https://en.wikipedia.org/wiki/Lactobacillus_reuteri : "...those consuming L. reuteri daily end up falling ill 50% less often, as measured by their decrease use of sick leave."
Yes, regular nukes were in the area, at Guam I think ready to go.

But I think the tactical nuke demonstration is 'what done it'.
That's indeed something to think of.. but that's not what the poster wrote.
What is this article talking about? Trump wants all forms of energy to compete in the free market. That includes coal, wind, solar, water, green, nuclear, gas etc.

Trump doesn't want to promote some while penalizing others, like what is happening right now. Let the market compete and decide.
Documenting your C# code
> There is no truth in the media anymore; the only way to approximate the truth is by watching opposing media channels and then 'averaging them out' in your mind.

Nailed it. I force myself to deliberately read viewpoints I disagree with, to listen to what they're saying, to hear what is important to them. Sometimes I see their points, sometimes I don't, but I always learn something new. It's really quite shocking and scary how many people aren't even familiar with the arguments of "the other side." The only know "their side's" caricature of the other side, which is simply not enough.
I agree that we should have good debugging tools for this (in particular, break on error return). But note that you can break on function calls and use "finish" to effectively go call by call to see where the error is today.
Tesla and its customers enjoy a fair bit of subsidies. According to the LA Times that number is around $5bn. Trump has stated he wants to cut these types of subsidies and others for renewables as part of his belief that climate change is a "Chinese hoax." I think Elon has a right to worry here as his products are probably too expensive without these subsidies. Even the Model 3 is pricey without that $7,500 tax break. Probably bad news for the Lead and Bolt as well.
I have enjoyed spending hours removing libraries full of bootstrap and angular and replacing them with a simple CSS page and a JavaScript one-liner in my current work project.
He wants to increase supply, which will lower prices.
This site is for applicants interested in positions in the Trump Administration
IoT worm can hack Philips Hue lightbulbs, spread across cities
Yes, I ran Linux on a MBP for several years, starting about 10 years ago. It works fine after a little bit of configuration (new hardware may take a little while to get driver support, per usual; that's not unique to Apple hardware).

I've also used Windows on a MBP for several months. It's not perfect either, there are minor quirks with that too. MBPs really only work perfectly under OS X for obvious reasons, but it's not usually not implausible to use other OSes on a MacBook if you want to do that.
drug cartels are a problem in Mexico, they might lose substantial amounts of business due to the wall (lots of drugs are sold in the US), which would be good for Mexico
I'd take issue with your claim that the response by GP was the first emotional or attacking blow - that response was to GGP's "easy hipster life" claim, and the implicit claim therein that GP's call for labor solidarity was spoiled whining rather than, perhaps, a call for skilled workers in an industry to support each other's negotiation positions rather than undercut each other.

> It's not reasonable to expect other software developers to refuse to raise rational points of inquiry that you've based your argument on because it may result in weakening your argument on the merits.

What argument are you claiming is weakened? GP is saying that our overall, industry-wide labor bargaining position is weakened when a subset of us willingly take suboptimal work-hour or payment arrangements - really they're giving the companies and hiring side of the discussions all of the leverage over us while dropping our price floor out from under us.

If that sort of thing continues, it signals to the market that we are not skilled labor, just labor. And then all the software jobs run overseas where they are cheaper, just like manufacturing has done over the last 50 years (and software has already begun to).

Maybe the original comment GP's response to wasn't the right one - but it's the right sentiment in this discussion of whether work-life balance is a good thing. How is that even a question?
Chris Harris vs. Ferrari F12tdf
It's about the learning curve, especially people coming from Python to build websites, I mean seriously you would recommend Rust over Go to someone that build api / websites? It's telling someone that used to Ruby to go the C++ way, terrible idea for Python/ruby.
Probably like this: https://gist.github.com/ParthDesai/5e0f1d4725a644f1e632
Sure: Personal acquaintance with a published researcher (professor) who did not know when to use MANOVA in his own experiment.

Student of another professor who was told to repeat his PhD experiment until the p-value was "acceptable".

Being published means very little in medicine.

Also, constant hype on HN for gut bacteria with credulous comments (or advertising, as another poster pointed out).
He invented the Web. Would he give up on free standards?
This sort of attempt to control the resource usage of Japan (oil, rubber, etc.) is why Pearl Harbor got attacked. Starting the next world war is probably bad for the environment.
Fellow Colorado voter - really happy I voted on this, for your wife and for death with dignity.
I suspect that simply enforcing a country's existing immigration laws would be sufficient.

I hope that perhaps in 2017, we'll see that happen in the United States.
Oh, come on. A major reason people buy Tesla vehicles because they "want to do their part" for the environment.
And how do you think that they would do that?

Choosing a random story from politifact: http://www.politifact.com/missouri/statements/2016/nov/06/ro...

Like most false stories, there is a hint of truth to this but that doesn't make it true. Politfact spends 3 pages discussing it, and concludes:

Courts did object in three cases to decisions Kander made as secretary of state. But the specifics of those cases are much more nuanced than Blunt lets on. And the claim that Kander tried to manipulate the election is, at best, unproven.

A SOTA computer system could probably parse that last paragraph I posted, but couldn't get anywhere near getting close to doing the research needed to get to that conclusion. We are years off that (I work on research in this area)
> The door isn't closed for this, `?` works with a "carrier" trait, which lets you extend the operator. Now, it's currently unstable, so right now you can't use it, but the door is wide open for the design of `Carrier` to be finalized.

Oh, OK that at least sound like sound "defensive design" -- good to hear :). However, what happens if `Carrier` needs to be radically redesigned, e.g. to account for HKTs or Rank-N types (or something similarly 'crazy').
Coal, on the other hand, I don't see being profitable

I was looking up the numbers.. and was happy to see renewables cost being lower. But take a look at this 2015 report from the EIA:
http://www.eia.gov/forecasts/archive/aeo15/pdf/electricity_g...

At the time at least, "clean coal" is more expensive than solar.. but if you eliminated the carbon capture requirement (ie: "conventional coal"), it significantly reduces the price, bringing it in under solar.

There is a 2016 version of this report.. but it gets rid of the conventional coal costs, because regulation prevents plants without carbon capture from being built.
http://www.eia.gov/forecasts/aeo/pdf/electricity_generation....
If you have questions for the moderators, please e-mail hn@ycombinator.com instead of posting them, as per HN Guidelines: https://news.ycombinator.com/newsguidelines.html
Edward Snowden gives address on US election result
I disagree that you will end up with a `lousy, developer-hostile test suite`. All testify does, to my experience, is change three line if-statement to a one line assert/require that ignores type safety. Aside from that, it is up to the developer to still write good cases, adopt table driven tests when they make sense, and provide enough feedback in test output to debug a broken test.
Regarding the "easy hipster" part - I exaggerated for effect.

That is the perception people have on SV developers, for right or wrong.

Meanwhile, I'm from Sweden so I'm perhaps just an outside observer to this spectacle.. but at least from my perspective, SV developers are generally speaking overpaid. Well, at least compared to Swedish/European developers. :)
Okay that's fair. I usually equate them because every language I've ever used has implemented them with unwinding.
It could also mean he was simply running damage control on a bullshit accusation he had no way of denying.

If sites are spreading factually provable lies through Facebook as fact, and people are acting on it, should Facebook have any say in telling people "Hey, this is garbage"?

It's an open question.
What are those reasons apart from having a "better" ui? (Which is highly subjective and if you use a tiling wm Linux is probably the better choice).

What turns me off OS X is the lack of a good package manager with up to date packages. Has this changed?
You could throw up a web site and an online store and sell directly for nothing close to that. If you used a full-featured sales service, you might pay 8%. If you put in the work to run your own store that works with a merchant account, you could get it down to maybe 3%.

The alternative to the App Store isn't selling through a huge publisher who takes a huge cut, it's selling directly and keeping almost all of the money.
The best time tracker you use
Hey,
which software or online services do you use for tracking time as freelancers?

So far I have been using just a simple file with notes. However now I changes my work a little bit, and I'd like to send a nice pdf with detailed report.

I checked toggl, looks nice, however I need to write more detailed reports. When quite a simple task took like 2 hours, I'd like to provide detailed information about all the problems I found, and how I solved that.

So, what stuff do you use, and which should I avoid?
If you will be able to debug all that, you will get a job.
This maybe a slight misquote but it's close: "Privacy is not to hide something, it is to protect something".
You do realize a Trump supporter could have made exactly the same argument had the situation been reversed? That the Electoral College was designed to protect us from dishonest, cronyist politicians? Who decides that the EC should be protecting YOUR candidate?

My argument is that I would like to see Electorates become real Electorates and that blaming them for Hillary's loss is just sour grapes.
No. And facebook does not pretend it 's not pro-Hillary (its CEO endorsed her). That doesn't mean the discussion is not warranted. In fact it's long overdue. Facebook is now a medium like the rest, it needs to be regulated like the press imho.
> shut down professional liars

Would they really boot CNN?

CNN told us this: https://www.youtube.com/watch?v=_X16_KzX1vE

They were laughably wrong: https://popehat.com/2016/10/17/no-it-is-not-illegal-to-read-...

Maybe one can claim it wasn't an intentional lie, but this guy is someone who really should have known better. So if it wasn't an intentional lie, they were negligent. Not sure where that leaves us.
Don't be lazy.
This is disappointing... Isn't discrimination and firing someone for their personal beliefs against the law?

Kind of funny, too.

While Maloney seemingly calls out Trump supporters at his company on the one hand, the young CEO boasted about the company’s supportive and inclusive culture on the other, saying he “firmly believes that we must bring together different perspectives.”

As for stock price today:
Px/Chg 1D (USD) 37.10/-4.08%
Προκριματικά Μουντιάλ: Σπάει το αήττητο της Λιθουανίας η Σλοβακία
SOME women. You're already altering his words.
Commenting on TDD stories here is historically a bad practice, but i'll add my input here.

I have never let my teams go full TDD. The reason is that in all my experience, TDD sacrifices a lot of velocity for the sake of automated tests. When i hear about the reduction in total bugs injected, it is a "duh" moment. The fastest way to make a team inject 30% fewer bugs is to have them write 30% less code. That isn't snarky, it's true.

Automated testing is one of the many tools available to software engineers. And it is a valuable one. Unfortunately, TDD is too much of a good thing. It relies so heavily on automated testing that it ventures far into the realm of diminishing returns.

Once, in an argument about TDD, i said it was akin to having someone build a shed. But upon checking in on them, you saw they were using a hammer to smash screws into boards. When you ask them what they are doing, they tell you it is Hammer Drive Construction. It is perhaps overly harsh, but it reinforces the point: tools have a place. Automated tests really shine on mission critical logic that does not get rewritten often. Use it where it makes sense. I wouldn't recommend using it ubiquitously.

Then again, i also recommend having fun coding. So i suppose the actual message here is: do what makes you successful, not what comments or studies say.
My first visit to Candlepower is what caused me to start a spreadsheet. It is indeed more than I want to know.

That flashlight looks exactly like what I'm looking for. Thanks!
Agreed. We'll improve the description with more visuals. Thanks for the feedback!
What it’s like to use Snapchat Spectacles
I'm not sure what liberals want, and I agree, we have been at war for something like 15 years now. I suspect that Hillary would have essentially continued our presence in Iraq. In that sense she barely qualifies as liberal.

If you want a good understanding of the geopolitical actions of the countries of the world, a good place to start is with one of the two books by George Friedman (The Next Decade, and The Next 100 Years). These books give compelling reasons why Russia is doing what it is doing, why we need to work with Iran, and the demographic reasons for turmoil in the middle east.

I think the difference between the candidates was that Hillary understood strategically why we have not done more to help Syria, why ISIS is a minor player, why accord with Iran is important, and why the recent activity by Russia in Syria and Ukraine are both predictable and not incredibly dangerous. I don't think Trump understands any of this, but my guess is that he is getting a crash course in it right now. I hope he can learn. I also hope he's smart enough to keep his emotions in check when and if something important comes up because if he treats the button like he treated his twitter account we are screwed.