skysight-inc/HackerNews huggingface dataset:
for _ in range(10):
something

for i in range(10):
something_with(i)

Can you explain why the Ruby reads more naturally?

The major differences, as I see them are that ruby requires end blocks, and uses methods instead of global functions for things.

In my opinion, python takes great pains to make things consistent, which is valuable. There's one function, range, instead of two methods, times and each. The syntax is unified: `for N in range`, which `_` being a convention if `N` is unused, as opposed to Ruby where you can define the looping variable, or not, depending on the method that was called (I guess?).

Ruby does appear to read more like something you might say, although still with weirdish grammar, but on the other hand, replace ":" with "repeat" and be explicit about the elided 0 in range, and you get "for i in the range 0 to 10, repeat something with i" which is english, as opposed to Ruby which is "take the range 1-10 and for each do unto i something with i", which imo appears significantly less natural.

This actually extend's to the stuff about "len" vs ".length", where you're asking which is more natural, to "do something to the length of X" or "do something to X's length". And that's very much a subjective question, but Python's answer establishes stronger consistency.
That is definitely an interesting perspective and I would agree there are a lot of people who just want the lower cost and clean bed for a night. However, is this move to add functionality really moving Airbnb out of the low cost market? You can still find very inexpensive options (as long as there are hosts) on the website. Airbnb, I would say, is just expanding their market pool not limiting it.
>> Facebook measures how people behave, not what pundits say.

Not that I am disagreeing, but I once read an essay by a famous economist who pointed out that criminals are not as stupid as people think they are because their behavior makes a lot of economic sense if they can lower their risk of getting caught. Combine that with the "1% of turnover" fine that FB copped from the EU, and you can see how they can get away with this kind of stuff.

When you think about it, FB is doing a sort of "micro-doxing" of its user base on a regular basis. But since it happens invisibly, and over a long time frame, they are generally getting away scot free. One day it will catch up to them, and you will start to see folks who worked at FB trying to hide that fact from their resume.
The main part I like about this is Airbnb actually verifying things in properties. It's always annoying when a listing has tiny lies in it about wifi and other small things. I really want that Airbnb rewards program though
The extreme of the bottom end is couchsurfing.com which might chew into the niche you describe.

There is still some room in the middle, but success isn't guaranteed in that sort of market.
> A ban is effectively an infinite fee

It’s the probability of getting caught times the cost of the punishment. That’s the other problem with a ban. “Probability of getting caught” being a cost center, authorities prefer giant fines with low enforcement costs; this results in a system favouring the politically connected.
I don't understand the difference between this and the regular front page. I can see it has different content, but why? Does it use a larger time factor? It seems like everything there is older, but maybe that's just because it calculates less frequently?
To my knowledge, upvotes which are suspected to be inauthentic do not count toward the overall karma gained (I have no citations, which is why I did not include it in the list)
That's because makepkg rightly refuses to run as root.

==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
The light at the end of the tunnel for patients with boarderline
He told you to think about Donald Trump, transgenders, or suffering in Syria , right ?
Correct, you can’t sell crypto currencies you didn’t buy in Robinhood. This is listed in the faq they provide.

https://ibb.co/dHNENc
The <blank> of the Present already sells your data
> Political discussion is supposed to be banned because it's mainstream, like celebrity gossip...

This may be true of some political discussion, but one could equivalently say that most technological discussion is about big screen televisions and mobile phone service plans.

Just as HN digs deeper on technical topics, it should dig deeper on political and ethical topics.
I am talking about a future that is already being built today, piece by piece. I am well aware we are already judged with multiple bias, in a an opaque way. But this is not systematic, hopefully Employer A can have different bias than Employer B.

For me, the dystopic part would be to have a single, automated source of "truth", like the Sesame score, used everywhere.

It means that everything becomes easy or difficult because of that score. Suddenly you cannot rent or at higher price, your insurance rate will increase, it is harder to get a job...

Optimistically, in theory, it could make people "better", but who decides what "better" or "worthy" means ?
If you're a native person living there opposed to US occupation, it went very well. That's the whole point of using them as an example to how a population armed with little more than rifles and IEDs in many cases can hold back the might of the US military.
They are not, and neither are you.
It may affect the adoption rate of your app if you don't include a "login with facebook" option, maybe. But that is a small price we all have to pay to influence change.
Is this somehow related to the current npm brouhaha, or are these independent events?
How to write a UX proposal: UsabilityGeek guest post
There is a business and people impact to these types of decisions. Reducing usage of anything means one or more businesses will cease to operate and people will lose income. The government needs to afford these industries an opportunity to adjust to the new regulations.
Meltdown fix committed to OpenBSD
the non-reusable plastic bag ban in austin, tx was a pretty big failure. the problem is that a lot of the big stores (heb in particular) sell heavier "reusable" bags for 25 cents that no one actually reuses. these bags have a significantly larger environmental impact than the disposable bags if they are not actually reused as intended.

http://kxan.com/2015/06/10/report-austin-bag-ban-had-uninten...
"Sergey Ivancheglo (Co-Founder, Engineer)"[1]
"My name is Sergey Ivancheglo. I am the mastermind of computer science, in all domains, of literally all mind-numbing technology that you ever come across."[2]

The domain registration seems recent: 2017-09-26
[3]. Registrant data is obscured by Domains By Proxy.

I can't find any indication that the site is owned by Ivancheglo. A Reddit thread[4] suggests that it is a troll website.

[1] http://www.tangleblog.com/what-is-iota-what-is-the-tangle/
[2] http://archive.is/GebOA
[3] https://who.is/whois/come-from-beyond.com
[4] https://www.reddit.com/r/Iota/comments/7p1x1k/founding_partn...
I'll try to keep my eyes open and vouch/upvote those.
One would notice on the first roll that the 3 and 4 weren't opposite. Perhaps it's just for a particular game.
This is even more amusing when coupled with the thoughts of IOTA followers: https://www.reddit.com/r/Iota/comments/73w6i7/why_ternary_ar...

The two most voted comments are as follows:

>It's a little overwhelming seeing IOTA do all of these things so far beyond other crypto projects. Blockchain tech is already bleeding edge but then add in ternary, quantum resistance, DAG, infinite scaling, free transactions, and AI resistance... It can be a lot to soak in for the average blockchain investor. But that just means time is even more on IOTA's side as it slowly proves itself :). This coin is going to turn the crypto space upside down.

>IOTA is thinking ahead into the future but people seem to think their decision to go Ternary is "stupid" not realizing they are just that far ahead in their vision.
The co-founders of an enormous company that makes all its revenue from ads... Don't give a rats ass about them? Come on, now. Be reasonable.
This is a flagged story now so IDK what happens when I try to comment, and further, I'm from another country far away across the globe, but yet I want to say: fostering a civilised environment cannot happen in any short time. But you can deprive about all people who are not supposed to have firearms this dangerous from those firearms they have in about a week or so, maybe? You don't try to preach civilisation to your attacker, you block the person attacking you first, then you try to see if conversation is possible and viable.
Namecheap was down for 5 hours
Hello,

Thanks for your message. I am Thibault, from Dahslane's User Support team, and am here to provide you with a bit of information.

Here are a few things to know about Dashlane!

* Dashlane does integrate with Yubikeys for Two-factor Authentication. All keys are compatible except for "FIDO U2F Special SECURITY KEY". Please see this link http://bit.ly/2FnNxka for more information on the subject

* Dashlane has been consistently rated the easiest password manager to use, which is extremely important since the last thing you want is a headache every time you’re trying to store or access your passwords. Don’t just take our word for it - Dashlane has over 50,000 5-star reviews.

* Dashlane is the only password manager with a U.S. patent for its security architecture. And your Master Password is never stored on our servers. Never!

* Dashlane’s auto-fill technology, which reads the fields on the page to store or enter data on your behalf, is the most accurate auto-fill in the industry. We’ve benchmarked our auto-fill tech against the competition and have found Dashlane is up to 40% more accurate than other password managers.

* Dashlane invented Password Changer and is the only Password Manager that allows you to change up to 500 passwords in seconds without ever leaving the Dashlane app.

* Dashlane’s VIP customer support is the best in the industry. Super-quick response times, availability via live chat, and premium support keep our customers happy.

You can check out our great review in the New York Times by following this link : http://nyti.ms/2CCUGKr. You will also find Dashlane in first position of PCMag's list of Best Password Managers for 2017 here : http://bit.ly/2BIdv1S.

Please note that although we propose the Password Changer feature, the automatic rotation is yet to be developed. I will pass you request down to the Development team for further consideration.

I confirm you Dashlane is indeed compatible with iOS devices, and you can access your Dashlane account trough the Web App with your Surface RT!

If I can be of any further help, please let me know!

Kind regards,

Thibault
Dashlane Customer Support
Snap's Redesign Faces Backlash from Loyalists
From personal computers to personalized computing
The Battle for Best Semi-Autonomous System: Tesla Autopilot vs. GM SuperCruise
At any large company like Google (where I worked for 4 years), if you find a way to leverage a vast existing business (i.e. ads) in what you are offering, then that's naturally an advantage for you. Doing so isn't required to survive as a project within Google and many projects don't fit that mold.
And to trust the guy who is storing the hash?
Amateur astronomer gets 1-in-10M shot of supernova’s first light
That applies to computers and all of the other un-repairable ewaste generating electronics. All purchases of smartphones, laptops, in fact pretty much all of bestbuy would fall in that category. Can we get a ban on those too?

https://ifixit.org/ewaste
New album soon...been holding my breath for what feels like 10,000 days.
Ask HN: Microsoft Word on Mac is frustrating. Any suggestions?
I've always kept it up-to-date, but it is very slow (slower than my keystrokes!), shortcuts don't work and change on their own, it crashes in the middle of typing a document, the more words I type, the slower it gets...

I'm genuinely frustrated with Word on Mac, but don't want to switch to Windows at all. Any suggestions on how to fix these issue? Is there any alternative available?

Thanks in advance.
i don't see how a whole new company can exist to fill in the gap of what airbnb's price slider filter can fix in 2 seconds
wait, is that right:

> the tendency of a stock to return to its average price

return to its historical average? As applied to all stocks, or certain, particular, mean-reverting stocks?
La Nuit Trésor – Lancôme – By New York Perfumes Importados
Right, but that means your service is running with elevated privileges, that does not mean your build tool needs too.

Furthermore if you do have a application that requires root level access then the parts that do should be isolated from the parts that don't. You don't get to just get a blank check to run as root because you need to bind to a low port.
Tens of thousands of people die every year in vehicular incidents in the US. Who knows how many more are significantly affected health-wise and otherwise in their life from such incidents. With self-driving cars, those numbers would plummet. It has nothing to do with your other claims, however I would say that it fits the Americanized "because we can!" fantasy.

Denser cities don't help that much, because you'd still have the massive scope of inter-city travel. The whole of Great Britain is only a couple hundred miles long in its longest axis, so it's not an applicable model.
That's what the 'web' link at the top is for - usually if you access via that search, it will open for you (it did for me).
Salt water freezes fine... Lower than 32f/0c but not too much for a regular household freezer.
https://van.physics.illinois.edu/qa/listing.php?id=1722
Good point. The gap grew dramatically by the end of WWII, when the US produced 50% of global GDP. The devastation of two massive wars in Europe in 35 years ruined the economies there, and Japan was also greatly damaged. In contrast, the U.S. mainland was mostly untouched.
There are many ways to do advertising. Serving ads most relevant to a search query is the searchiest way to do it.
If that were true then they wouldn't have made decisions that benefited advertising over tech or the product. Do you think they didn't give a rats ass about advertisement when they disabled the "+" operator on search for anything other than google+?
Haha, you first.
Google was not a business when they only had search. When they came up with the revenue-model(ads), they became a business.
More than the clueless “+1”, I also have noticed an uptick of basically troll comments on GitHub. And while I understand that this particular bug is really bad, GitHub for me has always been about getting shit done and solving problems, a nice escape from the “normal” Internet with all its drama. The fact that people seem to be actively enjoying the drama and are even trying to fuel it—even if this is currently limited to super high profile bugs likes this—is concerning
https://www.reddit.com/r/CoinBase/ paints a pretty ugly picture of Coinbase's support. I'm glad I never had issues but took all my money out this year.
Yes, but those "relative measurements" are IMU measurements, which are accelerations and angular rates. The only way to get position and attitude from that is to integrate. All that is to say, the parent comment was dead (sorry) on.
These were the points I was about to make.

Also, in modern dice when we want nonequal chance of outcomes we use two dice and sum. This wouldn't be needed if a die had unequal probabilities per face.
My mind instantly jumped to comparing to Bitcoin and other crypto-assets structured to be incentivized like Ponzi-Pyramid schemes.
People made 4 million bucks for every k invested in iota?
Google the title to navigate to wsj.com from google.com
> and that’s why all of our angst and headlines are not going to change a damn thing

Of course they won't. But we shouldn't want FB to "change" (meaning, "improve", whatever that means). We should wish it stay exactly as it is, and die.

There has never been a TV in my home. As time passes, I notice my kids tend to make friends with other kids coming from non-tv homes (probably because they have more to share with them, and nothing to say about what was on TV last night.

Those who care enough can raise a generation of social-networks-free people.
>-Robinhood is not allowing you to transfer in crypto from outside.

So robinhood is the sole supplier of coins on their exchange? Imagine if NYSE was also running a prop trading operation on the side, talk about conflicts of interest...
> The listing of so many altcoins in the robinhood app (monero, zcash, etc) plus it’s low fees makes buying on altcoin exchanges that only accept crypto like binance a lot less attractive.

I don't understand. My understanding is they allow only BTC and ETH on their platform. So, if I want to buy a ICO token I do need to buy ETH here/GDAX etc and transfer to another exchange.

Editing for source:

https://support.robinhood.com/hc/en-us/articles/360000088623...
Thank you for this. The use of 'unnecessary' is super interesting to me and makes me empathize with the spectrum of problem's Dr.'s must have in deciding treatment plans ... I feel that arguing convincingly about the lack of necessity of a given effective technique would make for an incredibly hard communication/decision-making problem ...

Also interesting, the presence or absence of necessity was not at all a factor in my usage. I elected to pay a bunch of money for what was certainly an 'unnecessary' use of an I.V. with a goal of enhancing well-being/accelerating recovery time.

In the context of opt-in usage: not in a hospital full of sick people and disease, where provider can simply refuse to offer any service to patients if risk factors are present, with ability to pay premium market-based prices for supplies/storage since its an upscale opt-in product ... I would imagine the actual complication rate from such opt-in usages are likely to be lower than would result from unnecessary uses in a hospital environment... (Or perhaps this line of reasoning is simply me trying to rationalize this unnecessary behavior to myself -- regardless of the lack of necessity in a hospital setting, I still think I might opt-in to this treatment again from time to time ...)
heck, if you really want that:

@functools.lru_cache
def fibs(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return fibs(n-1) + fibs(n-2)

Technically you could also write it as

def f(n):
if n in {0, 1}:
return n
return f(n-1) + f(n-2)

which is a bit trickier, but arguably better matches the way the seed values are described in english.
Ive slowly lost faith in the mainstream news over the last few years, and so have subsequently tuned it out.

It started when I noticed that the news barely covered the US bombings of hospitals and funerals overseas. There was very little coverage of the US supported war in Yemen where thousands of innocent civilians were being killed.

At some point CNN went crazy over MH370 and gave an uneventful search for the plane wall to wall coverage while US weapons killed people overseas.

I had to go to The Intercept to learn about drone killings in any real detail.

And then I remember in particular when Bernie Sanders had just had his largest rally yet, the PBS newshour failed to mention it while devoting 8 minutes to Donald Trumps twitter comments.

So when the media that hated Trump (a position I am not criticizing) started talking about allegations of Russian interference with the elections, I waited for the evidence. But after a couple of months of anonymous officials making this claim and that claim but no hard evidence in the matter, I tuned it out.

I’ve since stopped following mainstream news, so if they’ve come up with genuine evidence by now then I’m just out of the loop. It’s fair to say I’m uninformed here but I do recall that for some time at the beginning, no evidence was presented.

Lately I use my time to educate myself in other ways. I’m 10 hours in to PBS’s 18 hour documentary on the Vietnam war. I’ve never learned so much about that conflict. I’ve been watching some John Pilger documentaries on YouTube, and trying to understand why people all over the world still live in destitute poverty even in the outskirts of wealthy cities. I’m trying to understand my libertarian friends who say that broad social programs are unfair, while I see images of people with nothing dying from poisoned water or preventable disease. But I’m also trying to understand why socialism was unfair (John Pilgers documentary about Japan was enlightening there). I’m trying to find a way to care for the poor and give them more power without giving power to despotic governments that will siphon aid money into their personal accounts (as in the IMF funded nuclear power plant in the Philippines that was never finished, but poor local tax payers are still paying off). I’m also working on a week long robotics course to teach to some university students in Africa, and the associated robot I built as a teaching aid. I leave in less than a month and it’s been a busy time.

So when I see news that sounds like baseless claims about “The Russians” on channels that don’t cover the murder of children but do feast on images of a bare ocean where a missing airliner hasn’t been found, I just tune it out.

My life has improved since I stopped using Facebook and removed the normal political feeds from my reddit. I’ve been political my whole life and to this day I focus heavily on politics, but the information I want is scarcely carried on those normal news feeds.
> Hacker News is an ideal community to develop technology and policies that would make political discussion work ... is there any app that would have a bigger impact?

Exactly.

> the unfounded assertions

Not sure how much contact you have had with the moderators, but I think those are quite well-founded. The mods are self-righteously happy to be censors.

Because of the aspect of HN that is professional networking, most people are afraid to call out the mods on this, but someone needs to.
Hey I liked the whole thick walled bag.
I have a four year old monitor that's on baby #1 in my household. It's a dead simple device and just works. I overhwelmingly care about its reliability to work or tell me when it's not working and I'll easily sacrifice any hackability to achieve that.

Ever have an infant crying for 45 mins because the monitor failed and you thought he was still sleeping? Really really upsetting.
not too well. see comment above:

"Correct, you can’t sell crypto currencies you didn’t buy in Robinhood. This is listed in the faq they provide."
With the top few posts being somewhat negative, I was expecting a bad article. It is longer than I'd care for on a quick read, but it looks solid and I would consider a hardcopy. Especially to share with my kids to help them learn. The added "color" really helps, I think.
Jordan Peterson talks about this in one of his lectures. I can't look it up now but if you google "Jordan Peterson antidepressant" you should find something
Can't users already grep these type of homes by using price and rating filters? So the premium is based on a "verified" distinction due to an official inspection? I guess that's useful but it may make these kinds of gems harder to book (and more expensive) if they are easier to distinguish.
This offering looks nice, but half the bullet items listed as benefits were things that I already thought were guaranteed by AirBnB... This seems like an excuse to lower their standards on non-Plus listings.
I do not have anything to contribute regarding this specific optimization algorithm, but I want to recommend the dlib [0] library it comes from, which is a very high quality library that has machine learning algorithms, numerical analysis algorithms, image processing, network, threading, gui, and a few other things.

The (sole, afaik) library author and maintainer Davis King is also extremely responsive and helpful. dlib and Davis deserve a lot more recognition.

[0] http://dlib.net