skysight-inc/HackerNews huggingface dataset:
The expectation of a bunch of weird branches making everything confusing (I had that too) ends up being unfounded. You typically only see a few places with branching logic, and people usually draw attention to it being branching logic for a feature or experiment.

How and where you branch really depends on the feature. If you're A/B testing a button color, you'll deploy a different strategy than if you're trying to introduce new logic with minimal regressions. But you can plan out your strategy in both cases to minimize leaking information and disrupting user experience (and you should).

>Ok, but how? I'm not playing dumb. Assume an express server. You want to put a feature flag into your codebase. What is step #1 (and #2 and ... #N) to achieve this?

The general flow is: get status of features from source of truth. Check current feature flag's status. Do something based on that status. You can make it as complicated or simple as you like. You can have a global boolean flag for all features where it's always either true or false. You can have different flags for different users, you can have certain percentages of users have different values for flags. But it all starts from getting the value of a flag for this current request from the source of truth.

Let's say you're writing a crud app on an express server that communicates via http to a database service. Your database service is rolling out v5 of their api, and they're at the last stages of their beta so they're pretty confident. You decide you want to test it by routing half of all the traffic to your crud app through v5 and the other half as normal through v4. You could lay out your code in several ways, and you'll have to figure out what works best for your model and your team.

Let's assume you have a feature service you query on every request (maybe it's express middleware) to see if an experiment is enabled for the current user, and you've queried your current user against api v5, and you have a boolean variable indicating whether to show v5 or v4 and it's used in a route handler for your home route.

You could change the url you hit based on the state of the experiment, provided the interface to the api is the same.

const routeUrl = '/api/v4/home/'
if (featureIsEnabled) {
routeUrl = '/api/v5/home/'
}

Inside the route home route handler you could have an if/case statement that did a completely different request and response.

if (featureIsEnabled) {
return queryV5('home').then(respondToV5).catch(handleV5);
} else {
return queryV4('home').then(respondToV4).catch(handleV4);
}

You can also do this on the front end - a lot of feature / experiment services have front-end libraries. I prefer to do it server side.
By the way, in the case of Whisper, it had something to do with the Apple ID. By resetting the phone and creating a new Apple ID, it was unable to restore the old account. This was all before iOS 11.

Edit: in another comment someone suggested IDFA and data stored in the keychain could be used to fingerprint you, even after you reinstalled an app. This makes a lot of sense.
I'm not disagreeing, but just a semantic argument here. The referendum is absolutely democratic. But it is also illegal under the Spanish constitution. The problem is that the Spanish constitution and the judge's interpretation (which is straightforward but unfortunate) patently would disallow self determination through a referendum, which to me is democracy in its purest form. The only reason it's illegal is because the law is undemocratic.

I agree the Spanish central government seemingly had no choice but escalation. But that escalation is tragic and will only make Catalonia's independence inevitable, whereas it was not at all clear cut before this.
Building a Sentiment aware Polymer input control – A UI experiment using CoreNLP
It's being reinvented. It's called an initial coin offering. And now I shall drown in downvotes.

I'll redeem my self with a non paywall explanation of Social Capital's S-1 filing: https://www.recode.net/2017/8/23/16194374/social-capital-inv...
At MIT and Georgia Tech, MOOCs Are Showing Up on Campus
There were no "net neutrality" regulations in the US till 2015. Nevertheless none of the horror scenarios net neutrslity proponents like to cook up came to pass, and in fact the 'Net grew to "the Internet as we know it" precisely in an era of no net neutrality regulations. That's ample proof (if any were needed) that all the net neutrality FUD is just that.

In a free market, if an ISP was to mess with the traffic going through its pipes, that would just encourage anyone who cared about this to switch to a competitor.

The real problem is the lack of a free market, which is the direct result of over-proliferation of laws and regulations, which discourage and stifle innovative businesses. Net neutrality regulations are just another layer of these, and will further cripple innovative competition and lead to increased monopolization of Internet infrastructure by big crony-statist corporations.

More fundamentally, it is a violation of basic individual rights and property rights for the government to tell any private enterprise how to operate its business. That's the economics of fascism.
> The only solution is to go back to living that way no matter how hard you try to believe anything else.

Nobody can confidently assert this now; you are stating your belief, not a fact.

We would need to do longitudinal studies on all the alternatives (standing desks, periodic walking) to be able to build up a picture. To my knowledge, that has not yet been done. It may take decades to build up a picture.

Until then, people can choose options based on existing theories. In time, those theories will either be validated or refuted, but they have not yet been.
During a psychedelic mushroom trip, for the first few hours my rational mind is heavily dampened. I’m not fully aware or conscious in the normal way, and I mostly just remember are intense sensory and emotional impressions. After around 4 or 5 hours, my rational mind comes back with a vengeance and more biological drives are dampened. Pain (temporarily) ceases to be a motivator, as do other low-level emotional sensations like embarrassment, hunger, and whatever weird energy conservation instinct it is that makes many people prefer not to exercise.

At this time, when my mind is clearest (there are several other metaphors I could use here, but let’s go with that), I feel like I could totally exercise as hard as I should for as long as I should without getting caught by that nasty energy-saving mechanism we call laziness.

As a comparison, many people are willing to grind for hours on an MMO character, but aren’t willing to go to the gym for half an hour a day. Without the normal din of brain activity, it’s easy to apply the video game mentality to your meatspace person.

The thing that did finally get me habitually exercising (while sober, of course) was an in-work gym, since sometimes repeatedly lifting heavy things is preferable to another minute dealing with most software products.
Elasticsearch Learning to Rank plugin
It never ceases to amaze me how much others think they entitled to your time while working. They'll start conversations when all nonverbal signals show you are trying to get something done. Im at the point where I am going to be forced to be outright rude, which is not easy for me, just to be able to work undisturbed.
I don't understand the point of this.

Why "integrate" React into a native app? So you can just have a native shell of sorts, with the business logic written in React so it's portable?
I agreed until "forced to apply the law". Many laws are changed after first the approval goes away, then the enforcement is phased out, and only then the actual act is written. Law is very often applied in the context of current situation / people involved. Government is not forced to do anything really.

Also, the law most often mentioned - Spanish constitution - mentions that Spain cannot be divided. This is just a referendum. The goal is the division of course. But the referendum itself is not changing anything.
To say that a region trying to forge independence is illegal is true by definition because wherever you are the law will enshrine the status quo, but it's not a meaningful statement.

And to say that there's no choice but to apply the law isn't true, when it comes to questions this big the system of: make law=> judicial system interprets=> police enforce breaks down, because it's a political question not a legal question. Eg. how Uber in London is implicitly political, it's too big to be held by courts and keep politicians out. Spanish politicians absolutely had some leeway in how they dealt with this.
> consumers fundamentally do not know what they want.

From quite some years in software development I've found this quote of that other one about Henry Ford and faster horses is usually pre-cursor to someone about to explain a "brilliant product idea" for which they haven't done enough research.

Consumers fundamentally DO know what they want. They want life to be easier, faster, more convenient, sexy even. They just aren't collectively any good at expressing it in terms which are useful to a product designer.
> Developers rarely push directly to master in large organizations. Instead, a CI pipeline verifies your code passes tests and then pushes to master.

Yup, that's what I was referring to with my 'merge- and pull- request' line.

Interesting idea about having another branch.
I never thought I'd find anything useful Tony Robbins ever said, but that sounds true.
I agree, although I’ve found that there are diminishing returns around 25-30 push-ups. At some point you need to use weights or machines that allow you to exceed what you can get from body weight.
There will be people here with more knowledge about international constitutional law but I’m pretty sure almost every state has rules in place to prevent it from disintegrating. Otherwise, what would stop oneself to declare one’s own little piece of land as independent (with yourself voting for it) and stop paying taxes?
Regardless of the political causes in question, it's nice to see that the CEO is being held accountable. And he seems to be a responsible person, judging by the concern he expressed over his own actions.

It's easy to say that we should take every opportunity we can to fight Nazis. It's much harder to explain why we really should stop and think before trying to enact vigilante justice. This is one of the reasons why; vigilante justice is hard to enforce equally and fairly, and raises the question of how impartial and fair the vigilante is.
Being upfront is not necessarily being rude, and is much easier on all parties involved.
It looks more like merge. Chinese history and European history merged around 1200, and then again a few centuries later. American history and European history merged around 900 and then again in 1492.

But, why not both? Using interactive rebase lets you keep a clean and bisectable history made of small commits. The developer every now and then can also rebase to master and ensure that all commits pass the tests (and perhaps write more tests based on what happened in the meanwhile on the master branch).

However, when CI runs, features are included in master with a merge commit, so that the occasional semantic merge conflict will bisect exactly to the merge commit and the developer of the feature isn't blamed incorrectly.
It's pretty curious he picked the headphones jack of all things to justify the 6s still being on sale, when the most plausible reason is the one you just mentioned, keeping older devices available for cheaper.

The author could've selected screen sizes as the premise for Apple offering more choices than before, and the article could've been kept mostly unchanged. Mentioning the headphones jack is just fitting the data to what he wants it to mean.
Yes but how many places have the infrastucture to do HIIT? Come on, let's be serious here...
An IDE with the best embedded editor, Vim, reimplemented with elisp!
It's "justice". Goddamit, it's like my teacher asking me to say exactly what she was thinking.
Yes, it's also too convenient for them to even consider changing an unethical law.
Once you're comfortable with the destructive commands, you could even drop the temporary branch and rely just on reflog for the undo. But I understand how this could be easier at the beginning.
If you reduce the idea that much, it becomes meaningless. Of course people want things to be better. Consumers fundamentally don't know what will make things significantly better for them, though.
If I do HIIT, I'll definitely need a shower which takes time and resources. A 30 min walk? Not as much.

Sometimes the practical solution isn't the most efficient.
Surely part of the democracy is the rule of the law, isn't it? I'm sure you can point to laws in the past that made a farce of democracy, but most of them aren't in modern democracies. You can think this one is particular is anti-democratic but most countries actually have similar laws against unilateral secession of a single region.
Indeed. But what if the inhabitants of the Navajo Nation (http://www.nec.navajo-nsn.gov/portals/0/TEC%20US%20Map.png) demanded sovereignty? The US would likely suppress its self-determination in exactly the same way.
Two problems with that:
1) I'm not sure that would be bad
2) Some areas are already relatively independent. Wouldn't harm to make them a bit more so.
PowerShell Based RAT: Thunder Shell
The MacBook Air is one of the most polished products I've ever used. It's my go to when suggesting a computer for anyone who doesn't need raw processing power. It's cheap, lasts years and years, and does its job perfectly.
Not having a home in general is looked down upon here. Everyone is expected to have their place of work/study to be separate from the place where they bathe, sleep, etc.
We can surely discuss the implementation of a very clear judicial order but at the end of the day those things are difficult and doesn't change that in principle that referendum wasn't democratic and needed to be stopped and the forces of the state employed in that.
best glide (converting altitude into the maximum distance) speed is quite a bit higher than the stall speed and found at the lift/drag max. minimum sink (converting altitude into the maximum time) is usually found about halfway between best glide speed and stall speed.

http://learntoflylv.com/drag%20curve.gif
People should be downloading actual releases. This could be release archives, or release tags.

Version control is not primarily for consumption of releases, it's for participation in development, and I think the branching strategy should reflect that. Having the current development state be the default branch is entirely suitable for this purpose.

I've always found the use of "develop" vs "master" quite jarring, and not even that helpful for an end user. master can change on a whim, while using actual release tags gives you something stable.
I love how the writer causally mentions they drive a BMW and then proceeds to confuse the words relied and reliant.
Why is the referendum democratic? is it your opinion that unilateral secession of any region, under any circumstances is democratic by definition? I find that very strange. I don't agree.
You can easily do HIIT with minimal infrastructure. Burpees and jumping squats for example will get your pulse up in no time.

It will likely require a shower afterwards though which might pose a problem.
As you can see in my other comment, I think this is done by other “malicious” Apps which unfortunately aren’t getting the same attention as Uber. Apple Support refuses to acknowledge that any App data is left on your phone after uninstalling. Is there anything that can be done to clean the keychain?
The actual use-case for those is that you can see the brake lights coming on for not only the vehicle in front of you, but at least the one in front of that as well, since you can see through the passenger space of the car in front of you. So it's not just a psychological issue here, but an actual visibility issue.

The same thing applies to blinker lights on side-view mirrors. They are much more visible at wider angles.
The violence part is a disgrace and likely extremely counterproductive. But there is not much democracy in the catalan referendum. It's unconstitutional, and there is little guarantee it's fair to the castellano half of the catalan population which is also much more likely to refrain from voting. The referendum will probably not reflect the will of the catalan population.
The last 50 weeks in the world of data
You either run it on a single CPU or the "os" layer needs to provide for thread migration. It also obviously needs to provide thread scheduling.
Matter.js is not that good

https://news.ycombinator.com/item?id=14888218
This holds up to a point, but if your role is so demanding that you cannot hold a conversation (presuming a work conversation but also applies to social - up to a point obviously), then your either not very good at your job or your employer sets unrealistic expectations, or your good and the employer is realistic but you just want to get ahead.

I've worked with people that are a clamshell. It's not a very nice environment. Nobody in a company works "on an island".
I use OS X (laptop), Windows (VM), Android (phone), and iOS (iPad). It's not at all unusual for me to have apps installed on at least three of those platforms, and I really appreciate it when the UI is the same across platforms.
We could set up a poll in HN and call it a referendum, it would still be bullshit. The way the spanish govt acts is indeed wrong and stupid , but this is not democratic process. They could let the vote go through; its illegal anyway and its highly unlikely the international community will consider it valid.
Depends on exactly what you need. There are any number of places which will make prescription goggles for you, either waterproof for swimming or aerated (for playing sports). They don't need nose contact to stay in place.

www.nearsights.com specializes in monocles; technically you could wear one in each eye, but I suspect it would cause your face to ache.
Some more practical advice at https://www.juvmed.com/healthy-work-environment
My previous posts assert your lack of faith has double standards.
I like to look for the big picture of the subject, first understanding the boundaries of the new knowledge that I'm trying to grasp.
From the shitshow Spain put out on the BBC in their interview the other day this outcome seemed inevitable. The guy basically said "they shouldn't have an election because they'll lose and that's why they shouldn't even bother having this illegal vote at all". People need to remember how shitty Spain's economy is/was after the 2008 collapse. People talked about them in the same breath as Greece, Italy, and Ireland.
http://www.ikea.com/us/en/catalog/products/00103102/ helps me to reducing back pain
Women's suffrage used to be illegal. Black movements in the US used to be illegal. Fight against apartheid used to be illegal. Now we have Spanish police beating ordinary people in the age of Internet. This is beyond Streisand-effect stupid. They should have done British style referendum, almost surely "Independencia" would have lost, and then could stick the result to the faces of local population for the next two decades. Now they basically made people there realize their opinion doesn't matter and convinced undecided people they're better on their own. At best they end up with a velvet-divorce in Czechoslovakian style, at worst... Well, a can of worms. It's a complete BS to also mention Catalonia would be out of EU; as the 2nd most advanced region of Spain EU would be more than happy to quickly accept them than to risk Russia/China making a foothold there. Oligarchs there should have played it the same way as in EEU, where they kept control of local economy and gave people meaningless concessions to keep them happy, and continued medial control of population. I am wondering if they really became so stupid or if they did actually plan Catalonian independence. Both alternatives are sadly likely.
Using properly interfaces and implementations with an IoC container solves this problem without causing any messy if-else leakage throughout the code.
The fact that many politicians still don't know about the Streisand effect never ceases to amaze me. They should have let this slide and no one would have cared, heck most people can't spot Catalunya on a map and now it's all over international news with voters in blood including women and elderly people.
I'm gonna miss the ding of the seatbelt sign.
pico => nano => micro => milli => centi ...
Then they should have helped organise a proper referendum, not repress this one with violence.
I predict that the bits of the illusion will deteriorate with the paint on the road, leaving a big mess :)
Without an army to defend your borders the government from which you claim independence could just remove you by force... You would have problems to trade so you would have to be completely self sufficient with food, energy etc.

You kind of need to reach some critical mass to be able to organize a functioning nation. Getting to city-states could be viable, but I don't think it can go much farther.
Blame it on irrational dependence on https://en.wikipedia.org/wiki/Sustainable_energy#Green_energ...
Thanks for the cheatsheet examples. They bring back fond memories of the laminated cheatsheets I used to buy at the bookstore. But it's been a long time since I used one of those; now I just want everything in digital form to keep my backpack light.

It was interesting that these are all bitmap image files at a rather low resolution. The text is so blurry on all of them! It made me wonder: do people actually use these kinds of image cheatsheets? They wouldn't print well, and zooming in on screen just gives blurry text. My old laminated sheets had crisp high-quality printed text.

It would be different if they were in a vector format, of course. But since I'm not printing them anyway, the traditional cheatsheet is no longer a useful format for me. I much prefer a short document like the OP's "cheatsheet" with legible text that I can scroll through on any device without having to zoom in and pan around.

I suppose one could object to the "sheet" part, since you can't print a document like this on a single sheet of letter or A4 paper. But that doesn't bother me at all: I started my programming career on Teletype machines that used roll paper, and we routinely printed out cheatsheets of varying length. There was no set height to a sheet: it ended wherever you tore it off the roll.

What would be a better name for a document like this that serves the purpose of a traditional cheatsheet but is in a format more suited for digital reading? Maybe "A short guide to ..."?

(Updated with more stories)
IMF Head Foresees the End of Banking and the Triumph of Cryptocurrency