skysight-inc/HackerNews huggingface dataset:
The "only one way to do things" is quite low in the Zen of python. It is preceded by for instance "Beautiful is beter than ugly", "Readability counts" and "practicality beats purity" [1]. There's always a trade of in these rules. In this case I think the right choice was made to add this easier way of doing string interpolation for cases where it can be used, also "Now is better than never".

[1]

Python 3.5.2 (default, Nov 7 2016, 11:31:36)
[GCC 6.2.1 20160830] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
>>>
Omniture: eVar7, prop5...? Terrible.
Twitter should offer an option to hide to the public, across its platform (including RT's and replies), all your "Fucking orange clown idiot!" tweets...

It can label the checkbox "Make America Great Again".
The NBA is launching fantasy game you can play while watching live basketball
I don't do Python, but PEP 515 has got it all wrong.
They've really done their homework though. Price sensitive buyers get to feel frugal for skipping upgrades, while others get to enjoy a premium good. For me it makes sense to max out the options, but just barely.
Not everyone wanted Bin Laden dead. Critically, the people he was hiding with and his organization as a whole very much wanted him alive. The people who actually surrounded him on a daily basis did not want to kill him.
And less jobs for people working on supermarkets, indeed very convenient for employers.

The main reason I stay away from such services.
You certain thats not bi-directional, or more likely - the other way around? As a single person who can go do fun things at the drop of the hat without having to get permission from someone else, or set up a babysitter, or any other number of roadblocks, trying to set up an outing with married with kids crowd is incredibly irritating, time consuming and often fruitless.
I trust the current post on the physics and EE side of things. That said I'm also very curious about the computer graphics side nowadays. It seems to me that historically, most of the complexity was handled through sophisticated mathematical abstractions at the material level, making the research very costly. How much post processing can be done to infer more information from less costly inputs (I'm thinking ideas like Super Resolution used in spatial imagery). Nowadays very very powerful GPU chips can be found for not much and could be used at this part of the process. Maybe you heard about such ideas, I don't know. I've seen NVidia involved in computer vision for the medical field, but not a lots filter through to me.
Matthew Butterick is an obvious choice for the Racket website. He did a great job.
> importantly they're the first one which does not work at all for i18n

But surely i18n/deferred interpolation is a corner case, not the norm. If you need that then use what you are currently using, nothings changed.
Cash doesn't grow and is generally devalued through inflation.

A diverse portfolio is better protected against inflation, cash ought to make up some of a diverse portfolio but not a large proportion of it. Bonds are a better way of having cash-denominated assets since they still have returns while not being particularly risky (in the general case).

Cash is still useful however because it is easy to access quickly without losing value to having to sell quickly and doesn't incur fees.
Sh$t I wish I knew that last year ...
I've noticed that a lot of successful people got there by doing things that, on the surface, don't seem to need a lot of brainpower. But, when you get to know them more, you find that they're smart. I think that very often, being smart leads someone to succeed but invisibly, so it's easy for others who don't know the whole story to attribute it to luck.
You are trolling right? Perhaps not as it turns out there are actually people who have somehow come to control material resources that actually believe this.
Not that this design is bad, I think Guile's site is fantastic. https://www.gnu.org/software/guile/
Please wait until Alpine Linux 3.6.0, Alpine Linux 3.5.0 is better served by Python 3.5.x :-)
There are several ways of doing multiplication and division (statements, math library, a loop). Should we enforce only one?

No. Readability counts. One (and only one) point from the Zen of Python does not make an argument against it.
Astrophotography as a gateway to science
Saw a 15" in the store the other day. It's the future, just not this particular iteration. The form factor is awesome--my 15" rMBP is like a boat in comparison. Make carrying a 15" as a daily driver much more practical (and the extra screen space is a big step up from 13-14" for getting work done).

The battery life will get fixed in successive iterations, I think. There is a ton more space in there for bigger batteries: https://d3nevzfk7ii3be.cloudfront.net/igi/cBFfrfQPrPBFgV1s. Compare to how packed the old 15" is: https://d3nevzfk7ii3be.cloudfront.net/igi/Jxqp6l2cEQn4olWQ.h....
The article seemed to be mostly an explanation of why any high quality ultrasound has to be expensive and I'm sure the author is correct there. But the original article was about the possibility of cheap, low quality ultrasound.

I can understand why, when you're dealing with human lives, you wouldn't want anything but the best. But that wasn't the use case of the original article.
On the plus side, the site works fine with NoScript with just the Google properties whitelisted.
The actual paper, available on sci-hub, does not agree with this innumerate journalist's interpretation of it.

http://www.pnas.org.sci-hub.ac/content/113/47/13354.short?rs...

In fact, the paper shows that IQ is a great predictor. Personality is a much worse predictor on highly g-loaded tasks, and a good predictor on some others (e.g. wages). But (IQ, personality) pairs are an even better predictor than IQ or personality.

The only way you can draw the conclusion that IQ doesn't matter much is if you compare to predictors of the form (IQ, personality, achievement, grades) (and a few similar ones). Shockingly, using achievement to predict achievement yields a more accurate predictor than using (IQ, personality).

(I really do not understand this paper's methodology of graphing r^2 values. I don't get how this was published, but lets assume that was a reasonable way to go.)

This paper also ignores the fact that IQ, grades, and many personality traits are correlated. Insofar as these metrics are correlated, it completely invalidates this analysis; some of what the authors attribute to personality or grades is actually just the explanatory power of a second IQ measurement.
71.8 watt-hour: 2013 13" MacBook Pro [1]

49.2 watt-hour: 2016 13" MacBook Pro Touch [2]

Why are so many people surprised that the battery life went down from ~10 hours down to ~7 hours?

When the physical battery size is only ~70% of the previous model, it's no surprise the new MacBook Pro only gets ~7 hours of battery life.

[1] https://support.apple.com/kb/sp691?locale=en_US

[2] http://www.apple.com/macbook-pro/specs/
Agreed on all counts. There are two other things I dislike about typing on my 2016 12" rMB: 1) if I have to make transient use of arrow keys I always mess it up and 2) over long periods of time my hands start hurting from always being pushed up against the sharp edges whereas on my 15" rMBP there are a few inches on each side of my hands.

For the most part though I love that rMB. I wouldn't want to code on it several hours a day but for my general home computing and relatively light coding it is fantastic.
This paper mentions the Hamiltonian cycle problem for graphs: https://members.loria.fr/RSchott/staceyredujanv08.pdf
You're free to not use nginx or Apache if you can validate that you are better off without them, but IMHO it sounds like a nightmare of "experimental homemade wheels" being muddled in with business logic.
It defaults to "you lied on your immigration form" which means you lose any conflict whatsoever that might happen. That's the entire reason the "do you plan on committing crimes" questions are there, after all.
Not sure, why you think they cannot be used with defered interpolation. You, can easily combine the two like this:

>>> f'{"fstring"} and {{deferred}}'.format(deferred=1234)
'fstring and 1234'
> They can make 32GB with current chipsets but chose not to for battery life.

This is false dichotomy. There are alternatives, parallel decisions.

They could've decided to not sacrifice weight or size for battery power. This'd have made the MBP Pro, not Air like it is now. You used to buy a MBP for several years, so it'd need good battery power. The new MBPs are all less good with battery power, than the 2015 version. They're also so-called "future proof" with USB-C only yet you're gonna need adapters. Furthermore, you can't swap the SSD or the RAM so you're gonna need the amount you plan to use years forward (e.g. 2021). The USB-C move is contradicting to all the other moves. It doesn't add up, and people don't fall for it. That's why there's so much uproar on it.

My theory is that Apple wants the MBP to be more like the iPhone/iPod/iPad: disposable hardware you replace every year or so, for professionals who earn a lot of money in the creative industry. Not programmers, not power users, not people who make an investment for several years.

@ rayiner, hygiene.
The low correlation of IQ and future wage is surprising to me given what I've seen elsewhere. For example https://www.researchgate.net/profile/Robert_Sternberg2/publi... finds that IQ predicts 15% of the variance in income and 25% of the variance in socioeconomic status.

Also See http://mavweb.mnsu.edu/howard/Schmidt%20and%20Hunter%201998%... where IQ tests predict future job performance measurements across many studies as well as job interviews and only slightly worse than work sample tests.

Although I did look at the original study and that number comes from a linear regression of log wages and IQ percentiles. I'm not convinced that the R^2 number you get out of those two numbers really means much, the correlation is highly significant at least.
According to the Wall Street Journal's reporting on it in 2014, orders from Amazon itself were also affected:

"The system has enabled Amazon to make better use of its warehouse space and keep a wide variety of items in stock around the country. The idea is to give Amazon flexibility to ship certain products based on their proximity to customers, speeding delivery times. For third-party sellers, it saves them the trouble of having to label individual items sent to the Amazon warehouse. The bar code takes care of that. But the practice has in some cases led to mix-ups between counterfeit and authentic products, even when they are sent by Amazon itself."

That would appear to be why Wusthof knives, for instance, forbids any authorized retailer from commingling and doesn't count Amazon as an authorized retailer.
You realize parent is simply describing the rape laws prevalent in parts of the Middle East and North Africa, including Dubai? Not literally endorsing them?
Complexity is No Bar to AI
Unfortunately as many waters have been overfished and thus are no longer productive, trawlers have to go deeper and deeper to keep our supermarkets well stocked with endangered seafoods like Halibut.
Paytm?

https://paytm.com/
I like that there aren't any comments on this yet, it means that hopefully people are taking the time to read this.

I think the best way someone introduced me to Ray Dalio's principles is that it gives employee's the freedom, not to be an asshole, but to cut right to the heart of the problem without worrying about social niceties.

it's a common complaint and almost cliche on HN to hear someone say they find American culture ot be a bit "fake" where Fake refers to being polite or dancing around an issue rather than stating it clearly because they're worried about social niceties.

Principle 97 comes right out and says "Don’t let people off the hook."

and Principle 98 follows up with "Don’t assume that people’s answers are correct."

When you are free by the CEO's decree to just flat out not let someone off with a half assed answer I find that you get to the root cause of issues faster.

The downside of course is that asshole's are even more pronounced and even the most well meaning people start to sound a bit like assholes. If you have thin skin it doesn't work well, you need to learn that people aren't attacking you, but attacking the problem instead.

Not everyone transitions well to this type of environment as it can be a bit of a departure from the norm of many companies existing cultures.
> Flipkart/Snapdeal have taken their foot off the peddle.

Got a citation for that?

> They are just deviating even farther from their goal: delivering goods.

I thought the goal of any business was to make money. IMHO, since cash is such a sought after good in India at the moment, this is a clever way to monetize the cash they get from their Cash on Delivery service. It saves them the logistics of depositing large amounts of cash, while making more money.
For anyone looking for the context, this is was written by Ray Dalio, founder of Bridgewater. It's more or less a thesis of his personal and management principles. An article about Dalio and Bridgewater was on the front page yesterday, where chollida1 posted the link to this site in his comment.
Let's not get caught up on what dead ancestors may think. The world is already overpopulated. Overpopulation causes depletion of natural resources, degradation of the environment, conflicts and wars caused by such lack of resources, and there being less resources per capita. Adding people when it is causing problems like these is harmful.

However, people having 2 or 3 or thereabouts children isn't something to be worried about too much, so go ahead if you want to. But people who have lots of children has to stop. This is per person, so it includes men who have children with different partners. If it is left too late, then less can be done about it.
HTTPS Deployment Growing by Leaps and Bounds
This is related to a recent story and discussion of how Dalio is trying to turn his management principles into an AI to guide the management of his hedge fund, Bridgewater:

https://news.ycombinator.com/item?id=13238568
> But growth hacking not so much.

Because you search with wrong keywords ("growth hacking"). The right one is
"marketing", probably combined with "startup".
Court Rejects Government’s Secrecy Claims in EFF’s Hemisphere Suit
It has not been done yet so I need to : forget Python 3, nobody uses it, python 2.7 is the one and only :-)
How do you pay R&D engineers, prototypes, production, sales, support, etc... with such a low quantity volumes if the price is on the same order as the BOM?

Actually, depending on your precise definition of "same order", I could argue it already is. And while the gross margin will seem high if you are only used to consumer stuff, this is an almost useless metric for low volumes, where the net margin do not necessarily follow.

There are also not a ton of different vendors, so even dreaming about mutualizing some R&D costs (and that will mostly not happen), you would not save a lot.

Once again, cheap portable machines (but not able to do a lot) already exists.
A friend of mine told me the same thing. He considers money as freedom, and he will retire next year at the age of 42. I agree that money is freedom, but for the last 15 years or so he worked his ass off getting up at 5am in the morning working for other people. 15 years of your most productive time as an adult is a lot, and there is something to be said for just doing what you want to do during that time instead of earning money for afterwards.
>I would honestly be happier if we just had a national ID tied to our internet access. I sort of wonder if Internet 1 will have to break before we create a better implementation.

As a US citizen, this is truly offensive. It's as if you have no understanding of the government structure and history of The United States of America. We have 50 sovereign states, and this independence has allowed the state of New York to ban fracking and the state of Colorado to legalize cannabis. Not to mention that you just laid out what I would refer to as a police state.

I believe you should read the Federalist Papers and the Anti-Federalist Papers, and think more carefully about what you proposed.
http://www.npr.org/sections/goatsandsoda/2016/12/21/50633035...
There's enough of compound effect to make your cash worth a lot less by the time you retire. E.g. here in Norway you'd lose 50% value of your savings over 20 year period.
Yes, I completely agree. The difficulty is finding the right people. And I don't think of this as being exactly the same as co-living or other movements. I'm not sure what to call it...but it requires a certain mindset...or maybe we're thinking of different setups. The "creaky old house" says a lot about the character of the people; I don't think that's a small detail--not that it would have to be a creaky old house, but that the occupants wouldn't mind that. Because for the living conditions there is a priority above materialism...
Here's an interesting anecdote for -ffast-math: the Kahan summation algorithm [1] can be used to reduce numerical errors in sums.

Now have a look at the codegen [2] without and with -ffast-math.

With -ffast-math the compiler rewrites the Kahan summation algorithm to a simple sum, completely screwing the code's semantic (since we told the compiler to do so!). Keep this in mind.

1 https://en.wikipedia.org/wiki/Kahan_summation_algorithm
2 https://godbolt.org/g/uWZgW2
Cult.
Grasshopper Founder Bootstrapping to $30M/yr
The really disconcerting thing here is that this is the first macbook in 10 years to be a major regression on key points. Since the first Intel macbook, Apple has focused on core competencies: good touchpad, good screen, good battery life. Every generation got consistently better on those dimensions. PC vendors will do stuff like ship a great touchpad one generation and a shit one the next, but you could generally count on each successive Apple laptop to meet or beat its predecessor on those core metrics.
And it would have landed, if Apple had not decided to arbitrarily shrink their batteries, hence requiring low-power options for their components (in this case, RAM) that are not available yet.
What do you plan to do when you're old? Right now it might be simple to earn enough money to pay your bills, but if you don't earn enough to save a significant portion of it you risk not having enough once earning money becomes harder.
Websites like this one piss me off. Here's the video on Youtube:

https://www.youtube.com/watch?v=8sF868SJSrE
I went to a store in order to try one out. I wanted what was in 15" model in a 13" form, but ok - I went out to at least check out the 15" model. Even though I knew it was too big for my needs. What really surprised me was how bad the keyboard was on new models. What's up with that? It feels like a cheap plastic mockup of a keyboard. That turned me off completely. I hope they get their act together within a year and push out new models which are better. I'd buy a 13" version if it had what 15" has inside, but it doesn't. Other laptops look like crap too. Razer (14) is either unavailable in Europe or reading about it and looking at videos makes it look like not suitable for anything - bad battery life and crappy vents (makes for screaming noise and heat down the road). Shame, what would otherwise be a great laptop. Microsoft's Book thing is also semi-unavailable, can't buy it (asked Microsoft, they've said it's not really supported (retail) in Europe - wtf?), with Dell I had nothing but bad experiences so it's a no-go from the start... situation is kind of dire.
US is no better if you want to speak about indentured servitude, that is H1B.

https://medium.com/@seeminglyquiet/modern-day-slavery-in-ame...
What is a 'creation suite'?
I couldn't stand the feeling of anxiety that you have to be home an hour later and wait for someone to show up with your grocery. Not only that, but what if they miss or misplace something? Too many questions to write. Obviously not for me. But Amazon Go looks like something I could use.
Thanks Jason.

It is a little vague, I admit. The team strength in any scope or structure, well defined is 'A Win'.
> Thats why an elite education is an advantage.

The author isn't saying that an elite education offers no advantage. He's saying that it has downsides as well. It's not 100% advantageous, and yet we tend to think of it as so.

> They think going to a shitty school teaches you how to talk to everyone?

It certainly does a better job than isolating yourself within a very narrow band of culture. In my experience, that's just how cultural experience works.

If you spend all your time hanging out with rich, smart, successful people, it's only going to make it harder for you to identify with people who aren't. If you spend all of your time hanging out with white people, you're more likely to feel awkward when you go to the black part of town. Etc. And the opposites are also true.
Man gets $75 after being wrongly imprisoned for 31 years
Thanks for posting, glad you're happy with the update.

2GB for a single user should be enough. To prevent the out of memory error since using the Omnibus package and configuring 1 or 2GB of swap space if you haven't done so already.
the redesign seems to have impacted the PLT Redex site at:

https://redex.racket-lang.org/

I am trying to read the model part of the set of scopes paper and running it in PLT Redex, but it seems to be unavailable currently.
Oh you mean like this? https://www.theguardian.com/us-news/2016/dec/20/idaho-footba...

There's a lot you won't find on Breitbart or the Daily Stormer.
YouTube Movie Maker 16 Crack Patch and License Key Download
Given that we are now "friends" with Russia and Putin (according to some) I wonder what will happen to Snowden.
Just saw the right arrow description thing and played with a bit (it's in-browser) -- seems like toward the Flash IDE.
So it will be interesting when you say that you don't have any social media accounts, or point to some essentially empty accounts.

Immigration officer: "This bjelkeman-again account on Hacker News isn't your?"

Me: "No sir, it isn't"

Officer: "But it has your name."

Me: "Sorry, I don't know who that is. Somebody impersonating me perhaps?"

Officer: "Hand me your phone. An unlock it."

Me: "Here it is. But it is empty. I load it from a downloaded encrypted image when I arrive at my destination. The key is given to me when I have arrive. For company security reasons."

Officer: "You have to come with me."

It is going to be interesting.
Show HN: Freeter dashboard examples
This seems like a net win to me.

We imagine this with USA police and see where things could go wrong, but our police and Dubai's police have unique sets of problems to deal with.

Dubai has a very very high incentive to keep their crime rates as low as possible, and being a much more young growing nation with the capital to do so, this certainly keeps their appeal as a place to do business and vacation viable despite the region they're in.