skysight-inc/HackerNews huggingface dataset:
> Well, the obvious and immediately painful one is the hard-to-recover failure mode when you discover something you rebased wasn't private after all.

How is this hard to recover? You have full control of both copies, the system protects you against data loss, and you can easily pick one of the two, rebase one against the other, etc. to recover.

> Which can happen in many situations, eg github merge button, even without other people involved

This is the real problem and it's DVCS agnostic. If you make a bunch of changes to the same code without staying current, a human is going to have to reconcile it. If you follow recommended practice and update your local changes against the shared upstream regularly, this is a far more manageable problem — and that's true for every version control system in existence.

> The other is that it destroys history, you change the record of what actually happened to the version that is a plausible simplification in the opinion of git's diff/merge heuristic.

More correctly, you change it to the version as presented by the human who made the decision to rebase. If someone chooses to remove important context you can have problems but that's the same category of social problem you'd have with someone who uses poor commit messages, makes commits which are incomplete, etc.

> Rebase also really complicates the mental model of git you have to work with.

I find the opposite to be true. Most of the people I've taught seem to quickly grasp the idea that a rebase is simply taking your set of changes and moving them to apply against the current shared consensus rather than that state when you started, whereas merges cause regular confusion during code review or conflicts when people are asked to reason about changes someone else made.
To be fair, that's like comparing Two Sigma to Google.
You only need to create filters for the routes you know, e.g. if you are an ISP providing internet connectivity for company X, then you know that the only advertisement from the link to X can be for X and if the link to company X advertises routes from Google, Facebook or Apple AS's, then that's bogus.

It's just tedious to do this, and a lot of providers, especially smaller ones don't bother with it.
Gatsbyjs has strengths but they disappear for mathematics heavy sites. There's no live reload for math Jax or katex
There are enough Americans of Hungarian descent in the US Rust Belt that the expression "Hunky" used to be heard there. I haven't been to Buffalo except passing through, but I bet the phone listings include a fair number of Novaks, Spisaks, etc.
Have you open source the reinforcement learning and MVC framework code? Can't wait to study it.
Did you see this one too?
https://www.ctrl.blog/entry/tplink-firmware-outdated-downloa...
Why Google and Amazon Keep Fidelity and BlackRock Up at Night
Using this should make WebPack work with LESS files. I'm no expert, but my understanding is that this says "for all files matching *.less, run them through the CSS and LESS loaders, then use the Extract Text Plugin" (which pulls things into their own file; you'll need to configure it in the plugins).

{test: /\.less$/i, use: ExtractTextPlugin.extract(['css-loader', 'less-loader'])}

Edit: forgot a brace.
Usage caps make no sense. In normal countries the actual cost to the ISP of higher usage is negligible. Having capacity and not using it doesn't save any money, and the same equipment that allows for higher instantaneous transfer speeds (the thing they market) also supports more total capacity.

The actual cost to the ISP of a customer using 100% of their connection the whole month is not very large. If only a small minority do that then the amortized cost per customer is negligible. If everyone starts to do that then the ISP is still fine as long as they price plans appropriately -- a 100Mbit plan costs more than a 20Mbit plan.

Bandwidth caps are ridiculous. It's like saying some people drive more than others so to reduce traffic congestion, after you've driven more than 500 miles in a month you can only drive 8MPH for the rest of the month. What kind of sense does that make unless you have some weird agenda like getting people to take a "free" bus which happens to only travel directly to your own store?

In theory they could charge more for higher usage, except that if they charged their actual cost for additional bandwidth then it would be so close to zero as to make little difference, e.g. an extra $5/month for full 24/7 usage. Passing traffic is really not that expensive. The cost of getting and maintaining a wire into your house to begin with absolutely dwarfs it.
When is the launch planned?
Cómo lograr la libertad online con el Internet descentralizado
He clearly states that he was only trying to enter the US for an hour or so to view the US side of Niagra Falls, not to work, so yes, he probably was going for a tourist visa.
So bitcoin is like art-as-store-of-value, that makes sense, it could lose 100% of its value unlike national currencies which can only suffer 91% loss in case of a bank run and only 99.9% loss in case of hyperinflation.

Does your portfolio account for nuclear war?
# First Topic

The idea would be to be able to write something like this:

function yt --pure
youtube-dl $argv
end

The parser should stop interpreting arguments after the yt function call and pass the args as strings to the function as before.

Then such a call would be possible:
yt https://www.youtube.com/watch?v=mqma6GpM7vM

# Second Topic

I wrote a little utility [1] to quicker navigate on the file system. Right now I have two commands:

m [folder] // goto highest ranked folder
mm [folder] // list results for folder-keyword

I would like to be able to write 'm foobar' and then press tab to get a vertical completion-list. When the user selects a completion-list-item I would like to pass the result-path to the cd command.
Some time ago I tried to write such a completion, but failed – that's why I still use a separate mm-function to list search results.

[1]: https://github.com/thibran/maybe

I think JSON might be a good choice here because it would simplify the interaction with the completion program for advanced completions. Passing all those flags – mixed with some other shell function calls – to the 'complete' program is a bit cumbersome. My dream would be to have something like 'complete -c maybe --json [maybe-flag-to-generate-json-output]' and handle everything inside the application.

{
"fish_completion_version": 1,
"header": "optional, completion header",
"orientation": "vertical",
"on_single_result": "optional, choose-item or display-item",
"arguments": [
{
"item",
"description",
"optional return value, if empty return item"
}],
"item_handler": "optional, name of fish function to call on-item-chosen"
}

I know JSON is not something you want to assemble in a script, but all programming languages have support for it and it's easy to use.
(I work at Latacora and 'tptacek and I have worked on spitballing what that ideal protocol might look like.)

Right now the answer is SAML because a) we can make it not a nightmare b) it is the de facto enterprise SSO protcool. To make SAML not a nightmare, we do the tiniest part of SAML that produces valid dsigs that other apps consume. It's not so bad as long as you just get that one basic case right and then NEVER TOUCH IT AGAIN.

At some point, it's likely that we figure out what a good alternative would look like and publish that too, but it needs a clear value proposition that outweighs SAML's crushing market penetration. Something like "you can plausibly implement this in a dozen lines in every programming language" and "if you mess it up it stops working".

You're probably right about the reasons OIDC isn't it. Maybe we just need a protocol with one more CSRF token parameter!
Whenever I see these sweeping statements about a characteristic of Americans, I'm always struck by how ignorant they are.
Where are you from where it isn't like this?
Ban ban ban
When talking to the opposite gender some people worry they might be sending a wrong signal and imply a romantic or prurient interest when there might not be one, especially if they don't have a previous history of talking to the opposite gender very often.
> Bitcoin and cryptos ought to be banned for good.

Serious question: how would you go about “banning” cryotocurrencies? The most you can do is close exchanges which would make crypto harder to acquire and liquidate.
> I find your argument rather lame.

not really, he managed to invoke nazis without it actually being godwins law. pretty impressive.

additionally, this is not a ridiculous comparison:

a) monopolistic, rights abusing dictatorship
b) large us corp ignoring this to do business there and assist with 'dual use' tools which could be used for malice against its own citizens.

> You can't just say that a government is Nazi just because you hate that government.

similarly: you can't just dismiss a government's ills or to derail an argument because you like the people from that country or the stated intent of the action being peformed there by a company you like
Okay. Let me break down my arguments in 2 parts:

[1] China is not similar to Nazi because the extent of "cleansing" is not on the same scale as Nazi (even if you count death sentences on illegal cult members)

[2] China is not similar to Nazi because it does not initiate new wars against other countries (Tibet was incorporated as a result of ongoing conflicts between China and other countries for decades, so it is not really an invasion)

I shouldn't have concluded that countries are not declaring war against China is due to [1]. However, it can be explained by [2]. Regardless, I believe both [1] and [2] stands.
Exactly my concern as well. But then, there are projects like this that are starting to appear:

Netlify CMS | Open-Source Content Management System: https://www.netlifycms.org/
I suspect we'll see other states angling to see what kind of tax revenue they can squeeze out of crypto, rather than banning it. The problem, of course, is how to set up such a system. They can enforce it with the exchanges (witness the recent IRS request that Coinbase faced) and banks. It will be hard to cover all crypto transactions.
The best terminal ssh is obviously mobaXterm.. It even supports X windows. Plus it's free.

https://mobaxterm.mobatek.net/
> - China was on the opposite side of Nazis in WW2

so was Stalin - are you saying comparisons between Stalin and Hitler would not be warranted?
Postcast: Create a video-like with markdown (pre-alpha)
Yeah, I had close to the same as the OP happen to me on the Canadian side. I was booted at Peace Bridge, told to go home, but without the ban (I don't have any criminal record, DUI or anything like that). I simply caught an amped up guard on a bad day. Had it happened to me a couple of years later it would probably be a ban. I realize now that the frequency of my border crossings made my story inevitable --- it's literally playing the odds.

I've been back to Canada a few times since, always with great trouble at the border. 2 hour plus interview. It completely ended an LTR that I had with a Canadian (I lived close to the border at the time) and the idea of emigrating there.

I don't go back, because it's not worth it and honestly it's Canada's loss, not mine.
I'm becoming fonder and fonder of RiotJS (http://riotjs.com), although I've tried to get into Elm (and failed, largely because I'm not fond of "compilers" when I'm iterating quickly). I'm cool with working with a niche thing that I can sit down and read the entire codebase for in a single morning, though, and that doesn't seem to be a survival trait in front-end development :)
Nice! I also did something similar during my basic crypto course.

I'll just show my implementation of Wiener's attack, which shows that RSA can be super weak if you don't choose your private key with a grain of salt.

https://gist.github.com/lou1306/df1bfa60e247b4084149139a97da...
Like this? https://en.wikipedia.org/wiki/Puerto_Rican_status_referendum...
A comment that received next to no critical thought at all, like the OP of this chain (about equal pay in tech).
Nextein 1.0
Every single time a feminist posts a blog/article/whatever about alloving or teaching a boy to do something girly, anti-feminists go to outrage. As far as I can tell, feminists are less concerned about boys doing feminine things that could lead to those jobs and occasionally try to make it so. It is not feminists who oppose such so vehemently or call it cruel.
Doğu Karadeniz Turu Önerileri
> Custom and Border agents are usually mean.

Part of that is an act to add pressure and help expose lies. But the American agents can be dicks at times, even for reentering citizens.
It must be tricky moderating a subreddit when you're discussing adult content and one of the /u/'s shows evidence that they're about 12.
missed that. Thanks.
Are you trying to get banned on HN? Your premise is very ignorant and completely wrong. Women are asking for equal representation in all jobs, not just high paying white collar jobs, and most definitely not just tech jobs. They've been asking for equal representation since before tech jobs existed, you might want to read a little history.
WEB DEVELOPMENT TRENDS 2018: WHAT WE CAN'T IGNORE (PART 2)
This Week in Redox 33
Hey, I've got a question I can't find an answer to (or I'm blind). Does M1 work for EU users unlike robinhood?
China vs. Google, Facebook and other US internet giants
I know this border. The guards there questioned me too (and I'm a citizen) for 30+ minutes. They're either bored or overly suspicious.
Also, this? https://twitter.com/SamiraEKahou/status/940085885101412352

I don't get why anyone but the wife herself should be offended by this.
Sadly no, in 20 years the whiny relativistic people in charge of whichever authoritarian regime they have legitimized via their own apathy will be complaining that people didn't think that this was a 'cool' effort, much as they are doing here.
But wouldn’t that have a profound impact on the value of a currency? If all demand for it dissappeared except taxes what would happen to it’s value relative to other currencies? What would happen to trade?
The scary thing about smartphones is how they might be permanently changing adolescent and teenage brains, and not in a good way.

Checking texts and emails, surfing the internet for information, and yes - even sites like HN and reddit - cause a dopamine surge in the brain that can lead to so-called 'dopamine loops' [1]. In such a crucial part of brain development, my fear is we are turning kids into the equivalent of 'lever-pushing monkeys' [2]. Certainly there is already evidence that smartphones might be contributing to negative development [3].

[1] https://www.psychologytoday.com/blog/brain-wise/201209/why-w...

[2] https://www.youtube.com/watch?v=axrywDP9Ii0

[3] https://www.nytimes.com/2017/10/11/magazine/why-are-more-ame...
Genuine question, why use Edge over Chrome/Firefox?
I was impressed with the summary points regarding modern automotive production practices in the article. Allegedly, the value in robots and automation is the speed of retooling, not the overall line speed which one would naively assume. Also, smart automakers assemble to order. We are truly a far cry from Henry Ford and his Model T! This all bodes well for our personalized robotic food production network at http://infinite-food.com/ :)
The NBA will stream minor league games on Twitch
Without watching the video, my immediate reaction and counterpoint to the headline is...

1) you often don't get to choose the problems to work on; instead, the problems tend to choose you. (A common sentiment in science and math research in addition to business ventures)

2) the best foundation for starting a company is to "scratch your own itch".

3) having 1000 customers who are rabid fans that pay to create a recurring dependable revenue is better than 100,000 so-called "customers" who sign up for a free trial but churn out.

However, after watching the video (relevant mark is 41m55s to 47m05s [1]), Des Traynor's quote is about prioritizing product features that are applicable to a wider base of customers. He's speaking from a B2B product mindset. If your dev team gets distracted by one-off features, you'll end up doing labor-intensive quasi-consulting work instead of building a broadly useful software product. Software can scale but consulting does not. For enterprise software companies, accidental "consulting work" is an insidious problem because you don't realize you're doing it.

[1] https://youtu.be/P6pQyB6ACrk?t=41m55s
The US is a very large place with lots of unique and beautiful things to see. You can travel around the country via land without restriction, so the biggest problem is just getting in and out.

If you are white and a foreign national, the worst thing they will do is kick you out. They tend to jail their own citizens for much longer for no reason.

However, if you're a Muslim, come from a Muslim country, or are just dark-skinned, try not to be called a terrorist sympathizer. They will probably not provide you basic human rights and will ignore any embassy's attempts to get you back. If you're in the Southwest, try not to be called a Mexican, they may deport you there with no cause.
Did you find the easter egg? :D
While they are decidedly bearish on Tesla, dailykanban's analysis is worth reading. They know one thing (auto manufacturing) and they know it really well. Their comments on just how mismatched Tesla's public statements and private actions are is damning...even if it sometimes feels a bit like potshots.
It can be almost as easy, but it can be made as hard as you want. These kind of Captcha exercises are a fun way to test ideas especially if you want to work on "attention" models (spatial Transformers, ROI, deformable convolutions, soft attention, hard attention).
You can also try to "read" one letter at a time using a RNN. You may even test the new capsule networks for their rotation invariance. All these different network architectures, encode various strategies one can use to decode a picture. Obviously all will work at > 99% on the simple cases, but as you increase the captcha difficulty you will see that the more modern architectures can trade computation for increased accuracy.
I love Vue for its flexibility. You can write functional components with explicit dependencies, scoped CSS, and no state. OR you can just drop a CDN file on your webpage and have a bunch of global components.

To me, it's one of the easiest frameworks to teach and maintain.

While I believe React is technically a more correct way to write applications, it can be very heavy-handed. Vue is a great compromise for mixed front-end / full-stack teams.
This is not an article
He was a single guy with no family, no employer, no paid return ticket home that he'd lose by staying, who was crossing on foot from a country he wasn't resident in. Border guards will always get suspicious of that.
Not to mention that equal pay takes a backseat to most feminist issues (to feminists) when women are still routinely harassed and assaulted in public and private.
> it still shocks me that there were soldiers on my train in France with machine guns roaming the aisles.

It was probably their standard service rifles rather than machine guns. If it was around the mid 90s, the last three years, or some other period in-between with heightened terrorist threat, they were there for your security.

Unlike US policemen, French soldiers have never killed civilians until now, so you should feel quite safe when seeing them. They also don't arrest you, act aggressive or interact at all with civilians unlike border guards, so I don't see any link with the current topic.
Guy destroys Apple products in Dijon
So I guess it's morally better to let people instead gamble their money on bitcoin casinos that are verifiably fair?
> it only maintains speed, altitude and heading

This is not how flight computers work fyi
the reason why crypto is dangerous is because it's very, very easy to get a piece of it. it is open to anyone and you can buy for just a dollar. this drives up price unlike anything out there. yes anything can be a store of value with enough people believing in it. bitcoin succeeded in generating large enough followers to drive up its price like crazy. if it continues, it will suck up capital from all other asset classes - which in turn create a huge global inflation. losing value is one problem and the global inflation crypto will bring, if left unregulated, is another problem.
He should have called himself a consultant and not a freelancer.
Honestly, the most racist person that I've ever encountered in my life joined the US Customs & Border Patrol 16 years ago and last I heard he was still there.
Serious question, I read about all these amazing factory line marvels and how much faster it is to create these state of the art factories in China. But I never understood what is giving China such a huge competitive advantage? Why does it take that much longer in Europe and the USA? Sure, we can dive into some of the political rhetoric, but from an engineering prospective, what is the root cause? Is there a price to making these factory faster (such as government subsidy)?
paywall...
does anyone here actually pay for wsj? how much is it?
I understand your logic, but the thing is: nobody implements dsig; they pretty all depend on a single dsig implementation (libxmlsec1). Writing a dsig implementation is obnoxious.

That's not true of JWT; people definitely do implement their own JWT.

They're both awful protocols, and for a lot of the same reasons.
... when you are free-market-libertarian without a cause
Ask HN: What keyboard do you recommend?
The new macbook keyboard is 'incompatible' with me. overall I think it's awful:

stuck keys after my first 12 days usage;
the arrows are too small, and even with the other keys I end up making typos all the time (way more than before)

So, I'm thinking about a new external keyboard. Any recommendations?
I am very much in the math camp, not the computer science camp, but I enjoy annoying mathematicians by explicitly using quantifiers every now and then. Other ways to annoy mathematicians are bringing up pathological examples and remarking that what they have just said doesn't hold in trivial degenerate cases (e.g., the empty set).
> In fact, the agent did the correct thing. No job. No entry. This is typical for most visa requirements. The officer will simply not risk it.

No, the agent said the reason was he lied. I imagine the magic word is consultant? We can do better. I remember Linus' recent rant about security people in the kernel. No, security is not paramount. In fact, security is useless without usability. This applies in the real world as well.
I definitely went through the pain of trying to set up Webpack 1.x on a large project. The documentation was probably the worst part (it was adequate as a reference, but really assumed you already knew some of the fairly complex topics).

I also recently went through the process of refactoring our build to use Webpack 3.8. The documentation is a LOT better. Their introductory docs especially. I feel like I finally understand parts of WP 1.x after reading the 2.x/3.x docs.

Gulp and Webpack really are two separate things. Gulp is basically like Ant had a baby with NPM scripts. Webpack is closer to Maven, but Maven really tries to do a LOT more.

For any project, start with NPM scripts for your task running, then include gulp if/when you actually need them. Same goes with Webpack: don't include it in every project just because you think you might need it eventually.
> Thank goodness it’s impossible to ban crypto!

No it's not. It may be hard to prevent all SK citizens from using cryptocurrencies as SK is a reasonably open society, but it would be straightforward to ban their use.
There is probably a trojan in Electrum 3.0.3
A comment that is meant to rile people up and incite a response, while the OP has no intention of responding to anyone.
At my startup, we don't have the luxury to spend time pairing every day. I agree it's a great practice though.