skysight-inc/HackerNews huggingface dataset:
You can make any observable "cached" in RxJS by subscribing it to a ReplaySubject or by calling .publishReplay(N).refCount() on them. So observables can be cached or uncached, and the cache length can be specified (N parameter). They can also be eager or lazy; that is the hot/cold lingo in RxJS world (or unicast/multicast).

I repeat my claim: Observables (at least as implemented by RxJS) are a superset of (cancelable-)promises. Superset means, they can do everything the exact same way as promises, and a lot more.
Reading some of the overly negative comments, I'd like to add some perspective. Africa might not make sense to compare to India and China earlier, but I like to often compare it to another troubled region, the middle east.

We have seen far more positive developments towards democracy in Africa than in the middle east. Military conflicts in Africa seems to be winding down, while they just seem to get worse in the middle east.

More religious diversity, not just Islam, I think is a gain for Africa. I don't think they will get bogged down in religious extremism as in the middle east.

To those who claim unified India and China as such a big advantage. I think being unified has just short term advantages, but lots of longer term problems. Look at Europe. A key reason Europe sped past China in the past, was because it was NOT UNIFIED. No single stupid leader could ruin European progress. It worked like a free market of ideas where bad ideas get weeded out. In China you had emperors who would declare that going overseas is bad. And then with a brush stroke, an area the size of a continent stops trading or exploring overseas completely, leaving that to the European upstarts.

The advantage of Africa being divided is that it provides a big sandbox to experiment with what works and what doesn't. We see many smaller countries have success like Rwanda. This allows other countries to evaluate what works and copy good ideas and discard bad ones.

Another key advantage today, is that we are passed the naive western aid of the past. Today we got China making big investments in infrastructure, mines etc getting the economies going. And I think it is a positive thing with all the people they are sending in as it allows Africans to learn from other countries how they work and do things. China not being as developed as the west is probably an advantage as it is easier to understand each other.

Western countries are so far ahead that we often have no clue about how to operate or do business in less developed countries. We make a lot of stupid assumptions, which only work in modern well developed economies. I think the Chinese understand a lot better of to get things working in Africa.

And finally lets not forget another advantage. Unlike the middle east, African countries can take advantage of their heritage of English and French from colonial times, which makes it easier for them to connect to the global economy.
Consider for a moment that 4k resolution is not easy to obtain from film - you need to shoot the whole thing digitally to really get the right product.

I also don't much care for how 4k looks - or the bandwidth needed to transport it around.
Show HN: Revealer: The Ultimate URL Expander (Chrome Extension)
Irish-born English speaker in visa limbo: low score in voice recognition test
My Response to All the Criticism by Charlie Lee, Litecoin Founder
Is someone depriving them of that right? All I see is a private company refusing to serve people that have broken an agreement they signed.
It's still not denying anyone anything.
https://en.wikipedia.org/wiki/The_Grapes_of_Wrath

https://www.amazon.com/Grapes-Wrath-John-Steinbeck/dp/014303...
Worldpay seals £9bn merger with US rival Vantiv
Monster Hero VS Angry Wolves
Monster Hero vs Angry Wolves is an amazing and thrilling game for all monster hero lover or wolves fighting games fans. Monster hero fight with angry wolves and save the innocent villagers from mad wolves. Angry wolves move freely in the dangerous forest and attack on the peoples to kill them.
It is definitely true that pagination could be much easier. The way it currently works however seems fine to me: You query a node with say the rate limit of the first 30 children. Then you store the key of the last result, and use it as the starting point for the next limited query. This way you can easily query a node with 1000+ children without overloading the client.
A Farewell to Go
Nah, it's totally about Damore, he's probably just hoping that using historical analogies will make it harder for him or his commenters to accidentally say something stupid.
I'd like you to more closely read the thrust of his memo. His main thrust is that Google should review their processes and see if they can't create a workplace that the average woman would like to work in (taking as inspiration the average personality tendencies of the average woman), without resorting to sledgehammer positive-discrimination policies that target women because they are women.
Trees in the Amazon make their own rain
API Error Messaging Mechanism and Words Count for a Word Document Are Enhanced
Come on, that's a "we have something for everyone" demagogue trick that is despicable on its own due to its false premise.

(Ah right, a Barnum statement.)
Your apartment or house: how many square feet is it?

Yes, I'm trying to find out how much money you make.
This is dumb and I hate Disney for doing it.

Just means I'll pirate more stuff, I'm not paying for another service on top of Netflix, Amazon Prime, Hulu, Spotify... it's getting ludicrous how many streaming services I have. I only wanted one.
His original document, before Gizmodo edited it, was full of links that provided citations.

Here are 4 scientists who work in the field discussing the memo, at least one of whom was cited by Damore:

https://web.archive.org/web/20170808013732/http://quillette....

Now, here's the trick. You got what you asked for. Will you change your perspective? I find myself somehow dubious because the root cause of the disagreement is you believe the world both is and should be entirely malleable, and that forced social engineering (e.g. by firing people with particular worldviews from influential organisations like Google) is a legitimate way to achieve particular ends.
>Memorizing names and locations of cities and landmarks in a far-off country that you have no plan to visit, when those names and locations are instantly publicly available and there is an infinite number of more useful things to learn instead, is a waste of time

Which would be relevant if anybody had asked them to do that. Nobody suggested people should "memorize names and locations of cities and landmarks in a far-off country that you have no plan to visit".

I (and others, including classical education) suggested a working knowledge of work geography -- what the continents are, what the major countries are, major cities. They should also know a thing or two about their history. You know, the history of human civilization, even if they have no plans to contribute to it.

And the "instantly public availability" of information doesn't make one smarter. Only the information already accessed (and even more so, evaluated and assessed) does. Things you know are there in your mind, available for your thoughts and comprehension, can help you follow a discussion, can be used to make judgements etc. Things one can merely look up do not inform your worldview -- they are absent from it.

>Don't conflate being able to recite geographic info with knowledge. It's not knowledge, it's just... data.

Knowledge itself is just data plus understanding them in context. Without data there's no knowledge. Don't conflate potential access to data with actually knowing things.
You are wrong to think I'm not aware of the grisly circumstances under which many work, or that I've never been in despicable situations myself, or that I'm not familiar with the literary works of the communist-leaning John Steinbeck. I stand by my original statement.
It is now included in Chrome dev tools under Audit tab.
> According to my opinion, a programming language should let a developer use his or her style.

Fine if you work on your own. But if you work in a team, whose style do you use? I much prefer Go's "stop wasting time on things that don't matter and just use this style" approach.
I don't think you read the article.
In short, some institutions in Australia started to remove gender identification from CVs of potential candidates in order to prevent gender discrimination. It turned out more men were hired in this way, and that if you add gender identification, women have more chances to get hired than men.
It doesn't have much to do with Google's Diversity program and the Damore case.
> Are you aware of a study that is focused on (software) engineers?

Sadly no :( - I'm fully aware that the studies in this field mostly focus on financial outcomes, and because they are commissioned by consulting/recruiting agencies, they are of course targeting the management group. That's one of the reasons I would love to see the numbers from Google's internal research.

As for this:

> Most anecdotes I've read about the benefits of diversity boil down to "if only we'd had a <minority> on the team [...]

I am not sure whether I should be offended or merely aghast. From the tone you used, it feels like you have witnessed something more akin box-ticking than strategy, cargo-culting over rationality. I know my reasons are different but I suspect they could be equally selfish.

1. In my experience, women who stay in tech tend to be pretty damn good. Even if we ignored all other factors, it would be rational from purely talent-acquisition point of view to target female engineers in hiring. In addition, women often have greater capacity for empathy and thus can become a force multiplier in practically any team.

2. Constructive arguments from different viewpoints can only make us stronger. Things I am blind to can be spotted by someone else. Things my usual peer group is blind to can be spotted by persons from different peer group(s). But most importantly - things that are obvious to people who share my background can be pointed out and questioned by people whose backgrounds are different.

The thing I, as an engineer, worry about is myopia.

> as a developer, my requirements are set by project managers (50% women in my experience)

That is an interesting observation. Do you think that is due to self-selection or external factors? Also: if PM roles can have a 50/50 gender split, does that mean that women are more likely to seek promotions that lead to PM type positions?

> Do developers in other companies or countries (Germany here) have wider responsibilities, and thus, diversity is more important?

I think it depends less on the country and more on the company [or national?] culture. In engineering driven organisations, definitely. In a rigid hierarchy with nothing-but-top-down approach, probably less so. But then again, in the light of what I know, the latter category should benefit from diversity in their upper management. Where else would the alternate viewpoints come from?

And finally, I'm going to pick this one up separately:

> Consequently, I don't find it intuitive that more diversity (of gender/ethnicity) would help my team.

I'm sorry for you. But also, I am glad that you brought this up. You have just highlighted that MY experience and view of diversity can be irrational or plain odd to someone from a different cultural environment. For that - thank you.
My only complaint is the 'truths everyone knows' but doesn't say. Most people just don't care. there are a few thousand people that think deeply about worldview A, and a handful of others that think deeply about worldview B. Everybody else is worried about milking their cow, or pilgrimage to the holy land, or picking the kids up from soccer practice.

When worldview A is dominant, problems are framed in terms of A. It's literally hard to have those 'hey, that's funny' moments. And when I do, it's easy to dismiss them. I haven't thought as deeply as the worldview A people, i'm probably forgetting some minor detail. Worldview B people are trained scientists, who spend years honing the 'hey that's funny' detector. I can't compete with that.

Maybe i'm weird. I don't think so. I've had my insights about programming problems, but there are so many topics where i'm simply ignorant. There are so many subjects where i'm a fish, i can't see the water.

The author brought up sexual orientation. I am not a human sexuality researcher. I don't care to be one. My information comes from the culture i live in. I was incredibly happy for friends that were able to marry. If i lived a hundred years ago, i strongly doubt i would hold that same view.

I agree with the author, because culture creates defaults. Push culture when you can. Make better defaults. Most people don't change the factory settings. They are lazy. Or busy. Or really just don't care.
Well, people were also talking about China like that for many years and even Napoleon already called them the "sleeping giant" (although probably in a militaristic context) and then suddenly, at the beginning of the 90s things started to take off.
When I stay at an Airbnb I'd like to know that my host isn't a KKK member. I'm sure most of Airbnb's customer's feel this way. I'd say that Airbnb's services are much more personal (in a person-to-person way) than coffee, movies or phones.
They are not alienating the majority of the population. Conservatives are in the minority and they're also extremely old, so not really part of their audience.
This blog post was deleted hours after I posted the following comment rebuking most of what was said:

I don’t know much about btrfs so I’ll stick to ZFS related comments. ZFS does not use CRC, by default it uses fletcher4 checksum.
Fletcher’s checksum is made to approach CRC properties without the computational overhead usually associated with CRC.

Without a checksum, there is no way to tell if the data you read back is different from what you wrote down.
As you said corruption can happen for a variety of reason – due to bugs or HW failure anywhere in the storage stack.
Just like other filesystems not all types of corruption will be caught even by ZFS, especially on the write to disk side.
However, ZFS will catch bit rot and a host of other corruptions, while non-checksumming filesystems will just pass the corrupted data
back to the application. Hard drives don’t do it better, they have no idea if they’ve bit rotted over time and there are many other
components that may and do corrupt data, it’s not as rare as you think. The longer you hold data and the more data you have the higher
the chance you will see corruption at some point.

I want to do my best to avoid corrupting data and then giving it back to my users so I would like to know if my data has been
corrupted (not to mention I’d like it to self-heal as well which is what ZFS will do if there is a good copy available).
If you care about your data use a checksumming filesystem period. Ideally, a checksumming filesystem that doesn’t keep the
checksum next to the data. A typical checksum is less than 0.14 Kb while a block that it’s protecting is 128 Kb by default.
I’ll take that 0.1% “waste of space” to detect corruption all day, any day. Now let’s remember ZFS can also do in-line compression
which will easily save you 3-50% of storage space (depending on the data you’re storing) and calling a checksum a “waste of space” is even more laughable.

I do want to say that I wholeheartedly agree with “Nothing replaces backups” no matter what filesystem you’re using.
Backing up between two OpenZFS pools machines in different physical location is super easy using zfs snapshot-ting and send/receive functionality.
A bit of game theory might be useful - https://object.cato.org/sites/cato.org/files/serials/files/c...

Riots and revolutions are difficult to start because of a number of obstacles:

* It is not clear how many sympathizers you have.

* Even if you believe you have the numbers, being the first to act may result in you being made an example of by the authorities.

It's smarter then to rely on more ambiguous signals. Playing stupid is a good way to do this. The problem is, the people who want to "stick it to the man" are generally young people who still process emotions with their amygdala - they can't keep their ego in check and pretend they don't realize they are contradicting the official doctrine.

It's fun to think you can be like Martin Luther, nailing The 95 Theses to the church door. We only hear about Martin Luther because of a quite literal survivor bias. Also, Luther survived because he claimed to not be challenging the Vatican's authority, but simply having a scholarly debate. He was also quite lucky that the secular authorities were lenient (perhaps for political reasons - there were lessor nobles who weren't so keen on the Holy Roman Emperor's authority).
U.S. card firm Vantiv clinches $10B takeover of Worldpay
The funny thing is that conservatives wouldn't bat an eye. They would just give it back to you and move on with their lives. Conservatives are quite used to liberal elitism. They get it all the time from Hollywood and Academia.
You would have to epxlain how adding a 100kb library make your bundle become 2-5MB huge.

And note that with RxJS 5 you can only pick operators and data structures that you need; I have written a Redux-clone using RxJS [1] which uses Observable, Subject and a handful of operators and is less than 16kb as minified & gzipped in total as self-contained umd bundle (of which half the size is attributed to lodash helper functions).

[1]: https://github.com/Dynalon/reactive-state
Class Actions Could Fight Discrimination in Tech
So he's willing to concede space on the scientific landscape in the face of increasingly oppressive 'political correctness'?
Don't research something if it may hurt someones feelings! Great.
We react to the harshness before us most. But what we perceive personally is always an anecdote.
Why should it be illegal? The submission process would be the same. The reason I sail "luckily" was just that it would be complicated.

I believe there are some topical OTC drugs that work this way :-(

Or did you think making unlicensed drugs is illegal? Of course it isn't -- that's what drug development IS. It's not legal to give such a drug to humans without a valid IND that hasn't been rejected by the FDA but formulating, doing in vitro testing and animal in vivo testing is all perfectly legit.
Internet Archive being blocked on some Indian ISPs
I'm as big fan of EVs as the next guy, and would love to see cities with clean air and no noise. But, there are few things that we forget about when we talk about zero-emmision cars.

EVs pollute less, but they pollute too, and in cities as well. They emit dust (including the most harmful particles: PM10 and PM2.5) from break discs and tires.
Difference between CO2 in power plants and in city centers matters, but not that much. Once it's in the atmosphere the damage is done. As for NOx, the biggest offender in the dieselgate, Mazda's engines should not emit these.

Add a fact that in the current grid setup most of the energy is coming from coal, and that it's very unlikely it is going to change in a near future (mainly due to political reasons). Also, the waste from batteries is really ugly.

Given all that factors a 30% less polluting combustion engine is almost too good to be true. From a macro perspective the gain for environment is on par, if not better, than from electric cars.

My biggest problem is to believe in the numbers Mazda provides. Have to wait and see.
The First Eclipse Prediction: Act of Genius, Brilliant Mistake, or Dumb Luck?
The Man Who Wrote Those Password Rules Has a New Tip: N3v$r M1d
Here is what you need to know about JavaScript’s Number type
Lots of very promising ideas here.

I particularly like this one: http://twigafoods.com/

We're so focused on solving the middle class problems in my country (India) that we've forgotten about the problems lower class people serving the middle class go through.
> An Ethereum based on OCaml has an interesting potential.

I see this kind of stuff a lot in the "cryptocurrency" space. When I was reading about Waves, for instance, one proponent unironically proclaimed that "It's built on Scala, which is a better architecture than Ethereum".

I'm no Scala hater, but surely stuff like the implementation language isn't the most important variable in evaluating a new altcoin / cryptocurrency platform? This sounds a lot like hand wavy mumbo jumbo that's meant to convince non-technical "investors" to part with their cash / BTC.
>Therefore it seems a bit much to pick on America now given that it's doing no worse than what every powerful country has done throughout history.

Well, I don't think the above information would be much comforting to the people affected.

Maybe we should be picking on all of them, but even more so to the one actually doing it at the present (and for near a century)?

Especially since "picking on" (criticizing negatively) seems like the lightest of responses about the abuses and harm from a powerful country to others.
Absolutely not a joke. We're very serious about fixing, in many ways, the sex industry. It is rare that one gets to work on a project that will significantly improve many peoples lives, tackle a serious social issue, and actually be profitable. What we're doing may be frowned upon in some countries. But it is morally right, and being ethical is a cornerstone for any successful extrajurisdictional company.

Our main founder has had this idea for a while. But it wasn't until last year that cryptocurrencies showed they're going to be around and usable for non-geek users. This is crucial as it allows us to contract people (marketing, design, photography, transport, security, boarding, and on and on) without having to run risky front businesses to handle money or try to convince people that this strange internet coin money is useful.

The ICO craze annoys us because it blinds people to the real possibilities. It is our belief that within the next few months ICOs will need to measure up to ventures like our own and show true profit potential or at least some commonsense business fundamentals.
Phoenix Channels are great, but they're totally not a replacement for Firebase. You need to do a lot of coding on top of Channels to get what Firebase offers you.

Not that that takes anything away from your argument, but given that this topic is about Firebase, readers could get the impression that it offers the same.

That said, I like Phoenix Channels too, and the long polling support is a must-have for us. The "very good architectural reasons" for not doing this, as quoted by @jondubois in a sister comment, are nice, but if that means that 10% of our audience can't use our product then that's a show stopper. I love that Phoenix takes these cases seriously.

That said, Phoenix Channels are a mess when it comes to documentation and terminology. It's built on only two terms, "socket" and "channel", both of which mean 2 to 3 different but related things.

(background: at https://talkjs.com we recently moved our realtime stuff from Firebase to Phoenix Channels)
It seems he is. It seems wise to me.
Yup. I work with a very large site and our entire CSS is about 25kb after gzip.

It’s a pointless micro-optimization.
http://www.slate.com/blogs/xx_factor/2017/08/07/the_google_a...

> the sources linked in this slate article

I couldn't find any counter-studies in the article you linked. I tried traversing the sources, but those sources don't have any studies either. Is that the link you intended to post?
Those desks on the renders don't look like standing desks, but rather height adjustable desks.

Here in Australia all new offices are equipping standing desks for OH&S laws and workspace regulation compliances.
> if I don’t understand what is or isn’t hurtful, then I’ll defer to the leading intellectuals in my culture to tell me

This essay was so promising, and then turned out to be a pledge of allegiance to the thought police.