skysight-inc/HackerNews huggingface dataset:
I think a lot of this depends on what your product or audience is. If you're a domain-expert in your niche then lots of folks would rather go with you since they'll have you in their corner versus someone just trying to get it running half-assed. There's also the "you're not amazon so we're going with you" mentality amongst a lot of folks out there. Simply not being one of these giants can be a differentiator, especially for folks outside the US.

My anecdotal story is when GCP announced support for running chromium out-of-the-box. I thought that that would be the end of browserless.io. I held back my knee-jerk reaction to shutdown, and after a few months I believe we only lost a single customer. There's probably been a few others that we've lost along the way since the announcement, but it didn't seem to stifle our growth in any significant way.

In any case it really depends on what your product or service is. Just wanted to chime-in and say that the writing isn't necessarily on the wall if this happens to you. Stay the course and offer them the much-needed competition.
Is there anyway to create your own AWS/Azure/GCP on your own server?
Too little too late?

https://news.ycombinator.com/item?id=21330761
If you drive like you are assigned to drive, your risk of running over people goes down to 100%.

The responsibility of not killing people is on the drivers.
I don't. It also works.
Perhaps, but Harvard diplomas are valuable because they are scarce.
It is, however, a federal crime.
Why are we going after the platform and not the party posting the deceitful ads?
Good. Unfortunately we need more high profile flops in the public markets to get valuations back in line with actual business fundamentals instead of hype.
That sounds super interesting I didn't know rust crates were managed like this.

The question in my mind is where does semver come into this?

Why do you need three arbitrary and meaningless numbers when a commit hash, branch, or tag would suffice.
(Which Clang happens to support, hence it working here.)
> Patents should expire but don't always do due to all sorts of shenanigans between corporations and govt.

I'm not familiar with this. Genuinely didn't know it was an issue.

> We however need to take a communal interest in the essential stuff.

Yeah, I'm 100% on board so far.

> I mean, a lot of damage could be done to societies before patents expire.

This is where you lose me. What's the threat model? Monsanto releases a food product that is so good that they capture the entire food market in some way that anti-trust regulators aren't able to regulate and then jack up the price, all before the patent expires? Presumably yours isn't a food safety concern because you're advocating for lowering the bar to GMO technology. This sentence sounds like FUD; help me understand why I'm mistaken.
What if the money I spend on heroin helps make the heroin industry financially viable? What if my overdose winds up costing a ton of money in medical fees? What if I die and my mother is overwhelmed with grief? What if addiction causes me to lose my job and I'm forced to steal from a grocery store to survive?

What if addiction makes me completely vulnerable to people willing to exploit that addiction for their own gain?
WinCompose: Compose Key for Windows
If anything, I think journalists need more influence on political discourse. Currently the discourse is controlled by media companies, not journalists - and there is a big difference there.
They can't even get messaging right and that's way simpler. I doubt they can get health right.
Ask HN: I just wrote an O(N) diffing algorithm – what am I missing?
Hey folks,

I've been building a rendering engine for a code editor the past couple of days. Rendering huge chunks of highlighted syntax can get laggy. It's not worth switching to React at this stage, so I wanted to just write a quick diff algorithm that would selectively update only changed lines.

I found this article:
https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm-part-1/

With a link to this paper, the initial Git diff implementation:
http://www.xmailserver.org/diff2.pdf

I couldn't find the PDF to start with, but read "edit graph" and immediately thought — why don't I just use a hashtable to store lines from LEFT_TEXT and references to where they are, then iterate over RIGHT_TEXT and return matches one by one, also making sure that I keep track of the last match to prevent jumbling?

The algorithm I produced is only a few lines and seems accurate. It's O(N) time complexity, whereas the paper above gives a best case of O(ND) where D is minimum edit distance.

function lineDiff (left, right) {
left = left.split('\n');
right = right.split('\n');
let lookup = {};
// Store line numbers from LEFT in a lookup table
left.forEach(function (line, i) {
lookup[line] = lookup[line] || [];
lookup[line].push(i);
});
// Last line we matched
var minLine = -1;
return right.map(function (line) {
lookup[line] = lookup[line] || [];
var lineNumber = -1;
if (lookup[line].length) {
lineNumber = lookup[line].shift();
// Make sure we're looking ahead
if (lineNumber > minLine) {
minLine = lineNumber;
} else {
lineNumber = -1
}
}
return {
value: line,
from: lineNumber
};
});
}

RunKit link:
https://runkit.com/keithwhor/line-diff

What am I missing? I can't find other references to doing diffing like this. Everything just links back to that one paper.
When you are geographically in the EU the GDPR rights apply to all your data.

The location of the data does not matter.

The origin of the data does not matter.

Citizenship does not matter.

These are the reasons many US firms tried to call GDPR overreaching. However if it didn't apply in this way there would be too much wiggle room to be effective.
The best possible bike infrastructure is also very expensive to construct, and can't be built overnight. Given many major US cities' budget problems, I think that making the perfect the enemy of the good is probably a great way to doom ourselves to the worst.
Depending on the target user for your app, you may see 90%+ on iOS 13 soon, anyway.
It's probably used cars.
Hardly a surprise that on a fresh high-end device with software stack the website authors surely optimized for it's going to perform well :P
I use 2degrees. They gave me a static public IP for free when I asked and justified it.

Most people who just browse Facebook and Instagram, watch YouTube and Netflix won't notice a thing.
I've heard those names before or variations of them but the one that threw me off was Kirby as a girls name. I can honestly say I've never met/read/heard of a woman named Kirby.
It's...complicated: https://www.dataprotectionreport.com/2018/12/edpb-clarifies-...

"The Guidelines note that the processing of personal data of EU citizens that takes place outside the EU will not trigger the GDPR so long as the processing is not a specific offer directed at individuals in the EU or to monitor their behavior in the EU."

So it may be safe for google...but given it would apply to a user profile in general, including EU, maybe not?
Ha, that's how I originally wrote it, but I thought I should get rid of -n and END{} in an attempt to ward of the eww Perl comments. Sigh.

But at least now I know that it's called Reservoir Sampling. I had wondered how to generalize it to wanting N lines.
That's a really interesting idea. Only problem I foresee is that we might have rentals on that car lined up into the future, though we do have duplicates of most of our cars so we could get around that.
There's a lot of wasted land too (e.g. single-story buildings in the Bay Area.)

In any case, many of those "wasted" /8s have been resold for $100M+ in the last decade. Grep this page for "formerly" https://en.wikipedia.org/wiki/List_of_assigned_/8_IPv4_addre...
I am quite literally astonished to learn today that there is any first world country where catalytic converters are not required equipment.
LA Times has an incredible live California fire map. Please consider supporting them! https://www.latimes.com/wildfires-map/
Another good reason, and a good reminder that popularity, status and/or power does not automatically rid a person of the human foibles that plague us all.
Show HN: GFWaaS – Make Your Website Work in China
> The only winning move anymore is to not play.

that's like not having a bank account/credit card in the modern day. Doable, but extremely inconvenient and difficult to remain so.
Dev Preview of New DirectX 12 Features
My grandfather is 91 and uses WhatsApp and YouTube daily. He grew up in rural Romania, and his formal education stopped after middle school.
I gave up on Fitbit after they made it clear that they won't let users put their data into Apple Health.
Are you saying the value of these cyclist's lives is based on how many cyclists there are?
I distinctly remembering hearing about it in the late 1990s during my university years (chatter among the computer lab staff). It’s amazing how long it’s dragged on.
Not as much as you think. There are only about 20 /8s owned by companies (and those companies are using those /8s for their networks!).

Before IANA runout in 2011 we were going through one /8 every month; given that demand has only gone up since then, 20 /8s would be, what, a 12 month supply or so? v4 is just too small, and no amount of pushing allocations around is going to change that.
Someone should create a Rails-like framework named Go to Gaol.
> I think the media tends to portray individuals in the Chinese government as uniquely sinister and amoral

Actually, yes, easy to agree with this statement.

Anybody who isn't paid by a government considers all governments as sinister and amoral, nothing unique about it.
In addition to the other reasons mentioned here, they might not want to be known as a person who leaks things under NDA to future employers.
Sounds like a lot of free marketing! If you're well positioned and a bigger company enters your space take it for what it is they're advertising to people in your space. Sure some will just default to one of them but most will shop around and because these guys are going to be dumping money into your space - you'll see more eyes on your product. Be on your A game it'll be good for you. Maybe they'll acquire you because you do it better.
Between this and the slow-selling Facebook Portal, I can only assume the C-Suite doesn't realize the problematic images the brand now evokes.
It's pretty obvious. It's like appeasement all over again. It's Cognitive dissonance simply to feel like you don't have to face a problem you've created
Right now all our lots are located in SF proper, and we provide $10 of Uber credit each way to get there and back. We're working on ramping up operations in Oakland right now though.

There aren't any mileage limits.
This does not provide geoparsing - that is extracting, disambiguating and geocoding geo-location mentions on the
text (as shown in the example above).

In fact, I don't know of any service that does. That's why I built this.
Here is one project to represent them as haiku: https://gabrielbrady.com/projects/hipku/

We could also use syllabic encoding; for example, using 'bdfghjklmnprstvz' * 'aeio', we could encode 12 octet prefix

60:51:80:66:55:83:66:dc:56:fb:14:d1 as

ka-dediba-keneji-bokere-sejizi-sehohe

Which is somewhat easier to read and retype.
If you run a dual-stack site, the attackers can just use your IPv4 (if their ISP gives them a private one) or the equivalent NATed IPv6 (forcing the use of NAT64) instead of your real IPv6.
PGP mail seems to work afaict. Make sure your key is up-to-date, I might have edited it at some point to remove the expiration date.
Oligopoly is common, that does not mean oligopoly is good.
Your point being? I said nothing that is contradicted by your comment.
Classless networking used to not exist and a lot of universities being early adopters and some companies ended up with with class B's at least. Anyone in the US(who isn't one of the said universities) likely already had the address range taken back due to noteworthy underutilization though. We lost two class C's a few years ago due to this reason but it was hard to complain about since we weren't really using them.
“-Group identity over individuality”

https://en.m.wikipedia.org/wiki/Strauss–Howe_generational_th...
> Monzo and Starling are startup UK banks and I think both spent under $10M to get to the "minimum viable bank" state.

Not sure about that... Looking at Monzo's Wikipedia page,

> In February 2017, Monzo raised £19.5M [...]

> in April 2017 their UK banking licence restrictions were lifted, enabling them to offer a current account

So they only became a "real" bank after having raised substantial capital.
Now if only my ISP would get onboard. I applaud the 1gbps fibre, but IPV6 has been "in progress" for like 3 years now...
Former road cyclist chiming in. I've been a regular bicycle commuter for over 10 years. Earlier this year I was hit by a motorist who demonstrated extreme lack of judgement when passing me earlier this year, leading to some injuries that will probably mostly heal in another year or so. I seriously dodged a bullet and recognize how lucky I've been doing what I was doing.

In short, my platform now is that meatbag-controlled multi-ton steel boxes hurling along at up to 60mph and meatbags sitting on top of some tubes stuck together don't belong on the same infrastructure. It will never work.

I am categorically opposed to bike lanes delimited only by some paint on the ground. If it is physically possible for a motor vehicle to occupy a space designated for a bicycle, it isn't safe. It won't work. The marginal increase in bicyclist safety isn't nearly enough. Any lobbying to try to build that type of bicycle infrastructure out is a distraction from what actually needs to be lobbied for. By consenting to bike lanes, the government has an "out." They can say that they are "doing something" for bicyclists, so it's a fair deal, and their job is done.

In reality, it isn't anywhere close to fair, and the job isn't anywhere close to done.

Until bicycle tracks completely separated from vehicular traffic are ubiquitous across all major metropolitan areas of the United States, the country won't be able to begin to claw its way out of its self-inflicted transportation apocalypse. Anybody who attempts to commute by car during rush hour in a major United States metropolitan area knows what I'm talking about. Millions are wasting away years of human life and productivity stuck in their cars in stop-and-go traffic every single day.

There needs to be a will to spend billions, not millions, on infrastructure only for pedestrians and bicyclists. Something on the scale of the the Federal Aid Highway Acts of 1921 and 1956 needs to happen today, in 2019.

Congress needs to authorize federal funds to create something on the magnitude of 50,000 miles of paved separate cycle/pedestrian tracks. There needs to be a National Urban Mobility Trust Fund with a $100 billion infusion, for starters. I for one will demand nothing less, and I won't ever stop demanding it.

We need to stop messing around with these in-the-trenches, one-city-council-at-a-time battles that bicyclist clubs are trying to fight to eek out their pathetic and ineffective lines of paint on the road.
The crispr treatment in the article is not simply a way to remove the gene causing some forms of autism, it is also a method to add that same gene. The fact that we are talking only about using it to remove autism shows that everyone knows that some forms of autism give much more disadvantages than advantages and therefore are defects. The problem with autism is that many different things are grouped under the same term and some of them are not that disadvantageous.
Cause they did' China pretty much wipe out the CIA in their country. They've killed a lot of agents.
I have this issue too, so I use Ddclient-curl to do dynamic dns via cloudflare.

DDNS is something that I once thought would be an artifact of a less civilized time, but ISPs gotta upsell, I guess.
Or freedom of speech is upheld, which is not a view held by totalitarian regimes.
That will let you verify that your vote is counted, but is there any way to verify that additional votes are not manufactured?
Support is where the money is at. Every major cloud vendor has garbage support and smaller, niche companies value their customers more, especially if you're not a huge account.

Also, If I'm using your service, and a competitor announces a similar service, unless they provide something that's much much cheaper, I will probably not switch.
It's an interesting idea, but I am skeptical of any system that requires voters to do the verification themselves after the election is complete. I suspect that there wouldn't be enough people to actually do that to make any sort of difference.
Cyclists do kill pedestrians in NYC. E.g.: https://gothamist.com/news/cyclist-who-killed-woman-in-centr...

Not saying it's a high probability, especially as compared to motor vehicles, but to state the opposite -- cyclists don't have a history of endangering the lives of others -- is also false. They can and do kill pedestrians.
I’m a woman XD
Write a custom webhook to handle MailGun events
Apple watch is better for most people IMO. The health features, notifications, apps and other integration at least. Max battery life isn't as great but charging once a day isn't so bad for the much better data.
I feel like comments like this are why china is the way it is.
For those without a medium sub:
https://www.tygertec.com/write-custom-webhook-mailgun-events...
> there's far less legal recourse when that happens with crypto

cryptocurrencies are cash, not credit cards or banks. It's a category that is completely missing from the internet. hence all the drawbacks, but they have their also many uses, most of them hitherto unimplemented (because we never had cash on the net)

> why cryptocurrencies were a better means of rescuing your bolívar

I presume because bitcoin was available where all other currencies weren't
Was going to say something similar - having a consistent, predictable deployment environment is really valuable from a support perspective, especially if you are shipping a service to several end users (as opposed to deploying an in-house service).
My coworker gave this talk on quantum computing for computer scientists that I found extremely helpful. It just requires basic knowledge of linear algebra and classical computer architecture.

https://www.microsoft.com/en-us/research/video/quantum-compu...
I agree they weren't fully capitalized after they lent funds out, but the poster I was responding to was claiming that their filings prove they never were fully capitalized as they had long claimed.

It appears to me that instead, their filings are strong evidence against the poster prior claims-- suggesting instead that they were at one point fully capitalized (and are not any longer, of course).
> Is this something that congress could (technically, not politically) fix themselves, or do they really depend on a nomination from the executive branch?

You could have any vacancy for more than X-days be filled by the minority party. (i mean even nominating an acting member -- you don't need to get an approval)
> Believe it or not, the average Chinese has a better grasp of their recent history than the average HN reader.

If that were true, there would be no reason for them to censor topics like tiananmen square

>They got their limited democracy in the last few years of British rule

And how long will China let them keep it?
I am not. Microsoft was always a partner driven company. Most of their sales are through their partners, and they have learned to respect that.

They have also learned to build platform, unlike MacOS/Android, windows will never pull APIs out form under you.
"I plan to do X, vote for me" truthful.

"Don't vote for Y, they want to kill babies" not truthful.

It's pretty clear to me which ads are in bad faith. I really just wish Americans were bright enough to see through the bullshit themselves but alas, here we are.
What Tcl runtime does internally is irrelevant, on the language level everything is still a string[1]

[1] - Apart from arrays, which are probably the biggest wart in the language. Fortunately, Tcl 8.5 introduced dicts which fulfil the same role as arrays, but as opposed to them, they are strings.
Sure, but you can block the attacking IPv4 addresses without affecting normal IPv6 users. This is why it's a good idea for ISPs to deploy IPv6 alongside NAT, and for browsers to prefer IPv6 by default.
This is and has been more of an intellectual and ideological battle more than anything. The Founders had very little in common with ancient Greeks and Romans in terms of ‘tribe’ and ‘national boundary’. I am an immigrant as well and have these very same discussions that you have - awkwardly explaining to Americans the benefit of their constitution to themselves.
I can’t believe people are stupid enough to think california regulations set the price of cars in other states, because they literally don’t.
That Foreign Policy article illustrates exactly why the influence of statistics is on the decline. If you read Krugman's original article (https://www.bloomberg.com/opinion/articles/2019-10-10/inequa...), you can see Krugman make several points, all using statistics. One point is that the effect of globalization in the 90s was small, but it had an unexpectedly large impact on manufacturing in the 2000s. The second point is that the overall effect disguised the fact that certain industries were particularly hard hit. He then cites the papers where you can find the details. These papers only exist because of the statistics they do. Krugman is a clear writer, and he is taking the unusual step of admitting he was wrong, so his article should be interesting.

But nobody cares about that, because nobody cares about statistics anymore. They want that dopamine hit of outrage, so they read the FP article, that deliberately misrepresents the argument (notice how "manufacturing" suddenly becomes "workers", despite the fact that most workers are not in manufacturing), and doesn't give any evidence. It just quotes a bunch of people settling scores with Krugman. Even there, it mischaracterizes, for example, Krugman's review of Greider's book to heighten the outrage.

Statistics is boring, and rage is interesting, so the Internet era optimizes for rage.
For an outlet you can subscribe to [Barron's], you'd really think they'd have a copy editor.
There is a tradeoff here since involving the battery will increase the overall power consumption. Cycling the battery also shortens its lifespan, and obtaining a replacement costs more energy. I think some degree of centralized control may be needed for this to pay off. That being said, i wonder if there are any existing programs that look at local electricity demand and adjust things accordingly.
I'm not sure why this is getting downvoted. This is correct.

I've never worked somewhere where challenging leadership is so encouraged.
Except for the fact that the bike lane is hidden by parked cars until shortly before getting to the intersection. What do you see in this image: https://imgur.com/a/JcS4RK5

The other thing is that if you go by the figures and text in https://nacto.org/publication/urban-bikeway-design-guide/don... on pages 12 and 13, you'll find that a right turning driver can only see about 8.2 feet to their right when making a turn. That's the only opportunity they have to see an approaching cyclist who comes from behind them moving at 16 feet per second.

A half second to react to a cyclist appearing in the driver's field of view (as shown as the picture on page 13) is not enough time for a driver to yield.
Moving protobufs.
Is that really a thing in the US though?