skysight-inc/HackerNews huggingface dataset:
>Also note that knowing if an arbitrary context-free language is regular is undecidable. That doesn't mean you can't try to optimize down some PERL grammar to a regex, but your optimization will never be complete.

Are you reffering to the programming language or PCRE? I would expect PCRE to be a simple superset of the regex grammar, and thus the optimization is complete and trivial: the appearance of any PCRE constructs denies the use of the DFA engine; otherwise, use the DFA.

I don’t see how you could ever optimize out eg a backreference (converting to some equivalent regex) without already having parsed the subject text and determining it to be unnecessary. In which case, I don’t see how the inability to determine regularity of a context-free grammar is relevant (if you’re referring to the context-free nature of PCRE’s grammar, its not clear to me why you should care where the regex input grammar itself is regular/context-free, and why you’d want to convert PCRE to a regular grammar; optimizing a regex search shouldn’t care about the grammar defining the search)
I think the decisions' example is pretty telling. Does every voter have a right to a competitive election in their district, so that their vote matters at least potentially? Or does every voter have a right to their political party getting representation at least approximately equal to their share of the electorate? Those two both sound good, and they point in opposite directions.

So, it's not a question of what the law says, it's a question of _values_, of what the law _should_ say. You could argue either side of that, but saying that the Constitution or precedents give a clear guideline for a judge to use in deciding it, is not tenable.

Let's say the courts decided to intervene here. What standard should they give? "If it seems really unfair, strike it down?" What looks really unfair to a Democratic-appointed judge is going to be different than what looks really unfair to a Republican-appointed judge.
Ask HN: How to navigate large code bases?
Are there any good tools out there designed for navigating large code bases? I'm thinking something that can generate class and caller/callee diagrams... Thanks!
Breach at Cloud Solution Provider PCM Inc
Python for Lego Mindstorms EV3
So don't test, it's not mandatory...
>could make everyone a billionaire

Hmmm... How does that work?
It doesn't seem like it was covered in the article...

>In total, it's estimated that Psyche's various metals are worth a gargantuan $10,000 quadrillion.

That means if we carried it back to Earth, it would destroy commodity prices and cause the world's economy – worth $75.5 trillion – to collapse.

Is it really too much to ask for a headline that describes the story rather than this outlandish nonsense?

Ahh, forgot it was one of the *ox networks.
see also, Perl Regular Expression Matching is NP-Hard: https://perl.plover.com/NPC/
Big fan of Working Copy. Seeing that in the portfolio made this an easy app to install, for me.
Every nation needs to hit net zero. No ifs. No exceptions. The UK Chancellor's knee-jerk estimate is a quarter of yours. Even that was quickly called ridiculously high by the chair of government's own committee on climate that spent a couple of years drafting the plan.

It's going to be far easier to persuade reluctant nations, perhaps via sanctions, once much of the world is progressing or already there. Hoping for a magical future technological deus ex machina is as convincing as it normally is in novels. CCS has yet to be shown to have any viability at scale, yet may very well be needed as well to achieve net negative.

Fortunately the sensible plan put forward last month is far more than LED light bulbs, which are mostly LED already.
That's true, when and if liberals make it to libertarian places, it tends to be a pretty fair discussion (of course I could be biased as a fellow libertarian). But, there aren't many liberals there, and I'd guess HN is left-of-center overall.
> People really, really like the 4.7″ iPhone.

It would be more accurate to say that a lot people have 4.7" iPhones. It's been on sale for a long time and iPhones last a while.
This happens more often than not on my trips through more rural areas (once, it sent me through a muddy corn field to avoid a traffic jam on Christmas night in rural Louisiana -- fortunately I understood what I was getting in to and had a vehicle equipped to handle it), and I've noticed it seems to have more to do with people who have google maps keeping their phones with them.

That is to say, it tracks where people drive, and when people drive in the same place often, it flags it as a common route and therefore must be a road! I have a hunting lease in rural Texas, and the most common trails within the property are all highlighted as roads in Google maps. In fact, as I cleared out a trail a year ago and started using that trail as a way to reach one point on the ranch, it has now also become highlighted!

You'd be a fool to cut someone's locked gate to take such a route, but it does offer them as routes to me were I to ask how, for example, to arrive at the entrance gate of the property north of us. The only legal (and passable) route is actually to go south, then east, then north, then west. However, google maps says "Hey, just take this trail straight north."
> The plant lost electrical connection to the grid, of course it had an emergency shutdown. Otherwise they'd have had to have found some other method of dissipating megawatts of electricity.

A nuclear power plant always has an immediate shutdown in case of a strong earthquake:

'Japanese nuclear power plants are designed to withstand specified earthquake intensities evident in ground motion (Ss), in Gal units. The plants are fitted with seismic detectors. If these register ground motions of a set level (formerly 90% of S1, but at Fukushima only 135 Gal), systems will be activated to automatically bring the plant to an immediate safe shutdown.'

http://www.world-nuclear.org/information-library/safety-and-...

> The fact that other plants have not been restarted is at least as likely to be political as it is technical.

The words 'likely to be political' is no category in nuclear safety.

Take this example from 2008:

http://www.world-nuclear-news.org/C/Tepco_counts_earthquake_...

'Tepco's announcement yesterday included a section dedicated to the effects of the magnitude 6.8 Niigata-Chuetsu-Oki earthquake, which violently shook the Kashiwazaki Kariwa nuclear power plant on 16 July 2007. All seven of the reactors remained safe during the event, which caused huge damage to the region and several deaths. However, checks to establish the units' safety to return to service are proving very lengthy, and could continue into the latter part of 2008.

The ongoing inspections at Kashiwazaki Kariwa are to cost ¥122 billion ($1.13 billion) in FY2007. In addition, ¥25 billion ($233 million) will go on civil engineering repairs while a geological survey of the site is to cost a total of ¥2 billion ($18 million).'

Just the inspections after a safe shutdown for that nuclear power plant did cost more than 1 billion USD...
I suspect the answer is less “deserves to be kept up” and more “mustn't be pulled down lest we risk the wrath of or lose the attention caused by having the author”. Can you imagine if Twitter suspended the current President of the United States? They'd have the Republican political machine at their throats and lose a ton of attention and thus ad revenue that they currently get from his tweets.
Being addicted to heroin is even worse. You should see how the people addicted to drugs end up: they have all the pain you just mentioned but with the additional burden of having to buy 150$ worth of drugs everyday, just so they can function.
Our company has industry leading fraud rejection rates and we don't use captcha at all
uBO is the main reason I use Firefox on Android, as well.

With that said, what sites are you visiting? It could be that I simply don't visit sites with any ads, but I gave a few of my daily sites a spin in Firefox Preview and didn't notice any ads.
Just some, which is no worse than saving them in a browser.
You can actually tick earlier models under the graph if you are on Desktop Browsers. The Mixpanel Data above are shown back to 5c as well.
>would seduce Grace M. Hopper to write a paper titled “The Education of a Computer”.

I'm one of the least likely people to start screaming sexism at the drop of a hat but does this turn of phrase seem a bit, well, sexist?

On the nomenclature topic, it's interesting to note that Georgia Tech and many others have a School of Computing so it's not that unusual of a term.
see

https://en.wikipedia.org/wiki/Games_People_Play_(book)
I put the word in quotes to indicate the tendentiousness of any potential definition. I personally don't think of any part of America as having "failed," but if you force me to pick, I'd choose any area that suffered from breakdown in law and order and severe de-population. NYC in the late 70s and Detroit's long-running (but hopefully interrupted?) decline especially come to mind. A number of other urban centers could potentially fit too.
On Firefox I use extension Hide Fixed Elements for this [0] because it gives me a toolbar button (although I'm wishing for a keyboard shortcut) that makes it easy to turn it on and off.

However, adding that bookmarklet to the browsers on my phone has been the biggest life saver - it's crazy how often I hit a site where only ~30% of my screen is dedicated to content and the rest are sticky headers or footers.

[0]: https://alisdair.mcdiarmid.org/kill-sticky-headers/
Because I make broth/stock with the bones, I don't do too well on cleaning it off, the bits of meat left on help with the broth. Also, I don't bother clearing the wings, putting them in the broth bag or I'll eat the wings right after.
Any arguments why this would or wouldn’t work?
Technically speaking the 'majority' of voters didn't vote for any single candidate. In many other places, this would result in a run-off.

Ask yourself who those other votes went for; who do you think they would most likely vote for in the runoff?

I'm a fan of instant-runoffs. That would dramatically change the political landscape.
> Nope, they're the opposite of realistic because they disagree with reality.

Or, your premises are different. From what I see Scotland derives like 90% of its power from Wind, which is possible its unique property. Another thing to take into consideration is that California has a larger population than Scotland.

But overall I get what you are saying. I still suspect going 100% renewable won't be feasible for most countries.
supposedly intel's 7nm process is on track for 2021, but I'll believe it when I see it
A company that writes firmware for small electronics.
That sounds like a lot of work for something you can already do by just watching on free streaming sites or torrents. It’s as illegal as recording and storing the content after your subscription probably.
Perhaps "understanding 'intelligence' when you're stuck inside it" is even harder and yet a lot of artificial intelligence research seems very linear and not interested in unknown unknowns.

If we are following the "anthropic principle" the two questions might not be entirely unrelated.
I also have the feeling that making mistakes — selecting an image that looks like a traffic light but isn’t — sometimes results in faster admittance than being surgically accurate.

Again, being slower and more error prone seems to be rewarded.
Welcoming Plotly Dash 1.0.0
I do wonder what these government offices can do otherwise to prevent spam - I can run `curl` on the Georgia DDS appointment listing page and I get back all available slots. Assuming there isn't a captcha later in this process, it would be trivial to build a bot that books fake appointments for the next 5 weeks.
I disagree with your overall take, but I appreciate the thoughtfulness your arguments.

I wish other people would not downvote a well-reasoned comment.
There's a video of a Dead Kennedys show at Mabuhay Gardens and at the end the owner or someone working for venue gets up on stage and, exasperated, tells people to go home even though the crowd is still wired.
What makes you think they're going to get better?
The problem is that this is less and less feasible. More and more I see candidates that come just from "Angular Bootcamps" and similar who do not know fundamentals. Even people with a degree struggle with them.

Following Sijin´s competency matrix, most of the people I interview fall in the first level, not really knowing much about stuff.
> In order to have a strong foundation for the next generation of mobile Firefox browsers and put all our efforts and resources in GeckoView, work on Firefox Focus will currently be on hold. Don’t worry though, you can still keep using our privacy browser, Focus, as well as our current Firefox for Android.

I think this is a typo, and meant to say that Firefox for Android development is on hold, not Focus.
You can hardly blame anyone for blocking Tor traffic. You might not be using it for abuse but a large volume of abuse originates from it.
I now leave any website that has google recaptcha unless it’s really necessary for the same reason
So what is the alternative here? Allow everything from copyright infringement to threats of violence to child porn?

That is what I don't get about the complaints of these companies censoring users. Every mature government has already agreed that completely unlimited free speech is not a good thing as speech can infringe on the rights of others. We are just debating about where exactly the line is now. You are free to complain about specific instances of Twitter censoring users, but the idea that they shouldn't be able to censor anyone is a lost cause.
Nobody says they have the right though? They just say they are not having it and getting it elsewhere even if it’s against the rules.
We use iTunes TV purchases as a la carte dining for specific seasons of stuff we actually want to watch (or the odd episode of something to try it out). Chernobyl just showed up on it, for example, so we'll grab that at some point. We pay massively less for an indescribably better viewing experience under this system than we did under cable.

Hopefully that possibility won't go away.
My experience is that debugging is more effective than looking at static code. To find callers, I set break points. Other than that, grep， opengrok, doxygen or a decent ide are good helpers.
Secure chat and file sharing tool for your company
I agree with you, however that's unfortunately not possible. The California Constitution defines the redistricting process in terms of the California Citizens Redistricting Commission. We would need a ballot initiative to overturn it. I'm not aware of any initiatives to add such a provision to the ballot in 2020.

https://en.wikipedia.org/wiki/California_Citizens_Redistrict...
Same here. I do not know why the heck Mozilla is tiptoeing from just hiring Raymond and making uBlock an integral part of firefox.

Note that they already included something similar, which is SafeBrowsing(TM), that is maintained by google. Technically, it is exactly the same concept. But uBlock is actively request by 99% of their users, while safeBrowser(TM) fingerprinting is mostly disabled by half.
Generate good-looking README in 5s
At Recurse Center, it's the #1 social rule. Some folks have a hard time adjusting, but the environment is materially improved when everyone respects the rule.

1. No well-actually’s
2. No feigned surprise
3. No backseat driving
4. No subtle -isms

https://www.recurse.com/social-rules
You're thinking too hard, reCAPTCHA is made for regular users who won't sit there thinking if they're right or not. I always make sure to select a few wrong squares out of principle and after 6 or 7 attempts I'm usually allowed into whatever site I was visiting. Nobody knows the exact algorithm, so trying to please it, or worse - agonising that you answered wrong - is completely foolish. Just click a few squares that seem right and roll the dice. Beating yourself over not solving reCAPTCHA correctly makes the terrorists win.
I can't seem to find what rules for uBlock Origin and others will block reCAPTCHA v3.

I'm noticing that little blue bock in the bottom right corner of more sites now and I think I just want to block it entirely. If a site won't let me login because of it, guess I'll just stop using it. If it's something like my Bank .. well guess I gotta get a new bank.

Nothing really excuses this level of potential tracking.
But the US benefits from global trade as much as, if not more than other countries.

This isn't a 'tax' that will just be paid by foreign countries, it will be passed on to US companies, it just seems incredibly short sighted.
It's supposedly a top priority for IPFS for 2019: https://blog.ipfs.io/78-ipfs-2019-roadmap/
It's also possible that they might be including perl's startup time in that measurement? Their comments about 'parallelising' 'by using ampersand' make me concerned about the methodology involved.
Wasn't the XR quite popular? I believe it convinced many of the 4.7"-phone owners to get an X-factor phone.
In my opinion, one of the important qualities of an organized company is to spread and dilute responsibility. No individual manager or executive needs to be immoral or evil, they need only be short-sighted or a little greedy or willing to keep their head down and toe the company line.

Each person is only responsible for their own bad decisions. It's likely there is no one person who signed the memo that said "casualties totally okay, make more money!" Instead we'll find several people signing off on several bad decisions, each person myopic enough to be able to honestly claim they had no idea something this bad could happen.

It would be nice to see the buck stop at, say, the CEO, but I haven't seen that happen. In many cases the CEO will claim that they gave blanket performance goals and that the execution of those goals was too technical for them to actually understand, or that those technical details were hidden from them by people below them who were trying to hide things (rather than only deliver the type of information the CEO really wanted).
You are missing the point when you say ‘It is no more a danger today than it has ever been in the past...’. With more detailed data and computation, the dangers of gerrymandering are more powerful than ever.
Do you have a better solution?
I am honestly thinking on how would I solve the problem where I own a popular social network or forum/subreddit, I want to prevent it to become a shit place, so I would like to put some rules like HN and other communities have , how can I prevent the situation where people will call me as censoring them on my own community? My only solution would be to ban political discussion completely and implement some hard punishment for people that don't respect the community rules of conduct even banning the bad actors.
Show HN: PrefaceCSS – A CSS Boilerplate for Minimalists
I think it's already ready for a lot of use cases... though, I think baked in async/await will carry it across the line for many. It's good for low-level duties and even has some decent/good web server frameworks. The webassembly flow is better than a lot of tools as well. I think that there will be some work around nicer UI/UX tooling for graphical apps, but it's still very usable as it is.
In addition to my other comment, I think a warning is in order for anyone reading the parent comment:

This is a good demonstration of the risk of taking medical advice from random internet strangers. nickysielicki's advice is useless at best, and it can do harm if someone is relying on it to protect them from infection. In particular, if you have the doxycycline tablets, you'd be better off swallowing one rather than trying to make some kind of salve with it. Better yet, do some research and talk to a qualified medical professional about borreliosis prevention.
Tackling Climate Change with Machine Learning [pdf]
If it is easy to see through communication that goes against feeling, the result can be unsettling to some listeners; eg what are they hiding? What do they really think?
It's unknown how civilisations began but they were most likely not formed through "free association" but rather by violent extortion. It's thought that pastoral communities being regularly robbed by nomadic groups eventually developed a relationship of paying tribute to one group in return for protection against others. Or, put differently, one group of bandits will fight off the others to get exclusive pillaging access to some farming communities. This tribute system is believed to have then developed into a taxation system.

In no way are modern nation states a form of "free association". I cannot freely choose to not pay taxes if I am born in a nation, nor can I freely choose to join another nation if I accept their principles.

Your predictable and very unoriginal use of the "human nature" argument is in fact the ignorant position. It completely ignores the significantly larger number of humans throughout history (and including today) that have lived in freely associating relationships that in no way resemble the modern nation state or earlier forms of civilisation.
Some pages will link to a canonical URL in the head: https://en.wikipedia.org/wiki/Canonical_link_element
First, I fully agree with your "crystal ball". It's fantastic, you should lend it to me sometimes :)

Jokes apart, I think you're on point. Facebook's Libra will succeed. Amazon will try to compete with that, pending anti-trust fears. Google will try to have a shot at it and fail miserably.

It will be super interesting to watch this space evolve.
Pads are much longer than the width across the smallest corner, so if it gets rounded a little, there's no problem. But a 90° corner for the thinnest trace is vulnerable to being etched from all sides and getting too thin.
Yeah, different things. Electrochemistry involves motion of charge carriers through some kind of medium, and can happen over very large distances even if the medium is just the polymer surface of the board. And needless to say it doesn't care about junction angle at all.

"Electromigration" is the motion of individual conductor nuclei out of the wire due to scattering with electron momentum. Effectively, when electrons are asked (by the electric field in the conductor) to make ultra-sharp turns at nanometer scales, they sometimes collide with the aluminum/copper/tungsten/whatever nucleus instead, knocking that nucleus away from where it should be in the crystal. Over time, this erodes the junction, increasing electrical resistance, and eventually the chip starts to fail at voltages and clock rates it used to handle well.
Pull-to-refresh certainly is catching on (I expect my smartphone-addicted parents will discover it within the next 5 years), but I can also understand if there are some reservations about implementing it.

What should happen when the user is interacting with the Android device via a non-touch input device, such as a mouse with a scroll wheel? Scroll-wheel-up-to-refresh?

One of the worst edge cases is on sites with infinite scroll. Having to scroll up 47 pages in order to refresh is not great. It is also nice to refresh a page without losing one's place on it. For these reasons, I would like to see the refresh button remain, even if pull-to-refresh is implemented.
When this concept was previously posted on HN, the top comment pointed out how it's the pipes that are inefficient when working on GPUs due to copying data from the CPU to the GPU and vice-versa for each command & pipe pair. I think even if we don't get pipes per se but I think we could expose GPGPU resources in a unix-like way but I suppose it depends on driver support.

But as to your question, a lot of traditional tools like grep, sed, aren't really suited for the GPU unless you are running them on a lot of files at once.

https://news.ycombinator.com/item?id=5803943
Well, if it's collected as evidence, it is obviously too late.
Fair enough, but please don't post unsubstantive comments here.
Some extinct species of crocodile were herbivores