skysight-inc/HackerNews huggingface dataset:
On the other hand, grep can be far faster for searching alone than awk. I almost always use an initial grep for the string that will most reduce the input to the rest of the pipeline. Later, it feels idiomatic to mix in awk with matches like you suggested
No, that's what The Inquirer and others said as cover. There was no proof of that, and this article from the Guardian goes into those details as well.
PHP was intended to be a templating engine and nothing more. It's the community that pushed it in that direction even though that wasn't the creator's intention. And though that has lead to some bad decisions, let me be the one to say it: though it is by no means a good language, it's far not the worst. Surely, dive into most other dynamic languages and you will quickly want to stay as far away from php as possible. And in the modern day and age if I were to start any project from scratch, regardless of what it was, I can't think of a single reason to use PHP over most other available options. As a matter of fact java and javascript are the only two languages I'd avoid more than PHP. Java for all the annoying boilerplate code you have to deal with as well as the incredibly strict way of how you need to structure your application and javascript because it's horrible in every way - syntax, type system, ecosystem, npm is probably the worst thing to ever come out of mankind. I think this might be the result of a small number of js developers who were above average and wanted to prove the "haters" that javascript can do more than juggling dom elements. I can probably write an entire book of why both java and javascript are horrible languages but that's not the point here. PHP has evolved and while I can't really find a single vallid reason for using it in 2020, other than legacy systems or maintaining something that isn't worth the effort doing from scratch, it isn't the worst language out there. Certainly not as horrible as people portray it to be.
Right. I don't consider that particular exhaustive at all and this has helped me when I wanted to do quick searches.
I guess I'll never know because of this paywall
Wow. I'm honestly surprised by the amount of people (on the HN!) in 2020, thinking PHP is some pre-historical language clearly inferior to... I'm not even sure what. JS? That would be funny.

(It feels like I'm defending PHP now, which is feels weird, because I can go on for hours talking about the stuff I hate about PHP. But there is a difference between hating it for problems it actually has, and just not treating PHP as seriously useful modern tool which it definitely is.)

That aside, I cannot really treat seriously author's recommendation of Amp, ReactPHP and such as a solution for async. Don't bring up HHVM either. There's no real solid support for async/await in PHP, not even in the form Python has for quite a while now. And for me, it might be the biggest problem it has right now, which seriously hurts in some applications.
I’ve seen some writing on what makes marketplaces resilient to “supply side defection” as you call it, but I’d love to hear your take. Specifically I’d love to hear more about structuring to leverage the relationship, or anything else you think is important.

What specific structural things are important?
Is there reason to believe Bezos regularly corresponds on WhatsApp with other Saudis?
Physical access is (nearly) always game over.
It's a shame that Hack didn't replace PHP in general use. I didn't see a mention in the article, but it was created to be exactly this safer/faster/more elegant version of PHP. For example, it has a broad type system including generics.

My first decent sized codebase was web site for my high school in vanilla PHP. It was a total mess (mostly due to my lack of experience and the need to support Netscape 4.7). I understand that some PHP apps are good, though I got burned by WordPress vulnerabilities enough to swear it off.

I wrote a little code in Hack while at fb, and the incremental typing was slowly evolving a messy codebase to some kind of order. (https://hacklang.org)
For that matter MS Asp Classic works fine too which is my favorite.
See also:

PHP in 2019: https://news.ycombinator.com/item?id=19917655
The "web" is built around "human readable" technologies. Even actual implementation details that the user doesn't care about - like the application layer protocol (HTTP) and the source code for pages (HTML, CSS) - is human readable.

The "point" of the web was to serve humans, not machines. If we wanted to serve machines, we'd just throw binary blobs around, which would be orders of magnitude more efficient.

That said, I still have a bunch of "ancient" tech magazines that had directories of URLs for (then) popular websites, grouped by category. That's how we found things then.

People forget that there was a world before Google.
> The GPT layout has been changed to MBR. This prevents problems with Lenovo systems that refuse to boot from GPT if "lenovofix" is not set, and systems that hang on boot if "lenovofix" is set.

How do I words?
There is no lying here. Only poorly worded questions that are conveniently misguided to the benefit of Apple.
Google has been making half hearted attempts to merge ChromeOs and Android or at least provide a proper Linux distro without resorting to chroot hacks or replacing the fw.

I'm sure they have internal builds which are pure Linux with a compatibility layer to run ChromeOS legacy. There is absolutely no reason a Chromebook can't run that - but then its just another laptop and loses the marketability.
> Why?

PHP was designed from the start to be a web-first language that solved the issues people had using Perl as a server-side scripting language. I think experiencing the pain points people were having trying to repurposed other languages for the web lead to a lot of good* design decisions.

* Good, in the sense of ease of use.

It also didn't really give you many options in the beginning: everyone just used the LAMP stack and made it work. You could use Windows or Postgres, but you just didn't without a compelling reason.

Nobody today wants to design a single-purpose language that locks users into a platform. Users don't want to learn a single-purpose language and be locked into a platform.
It's not perfect, but you can export your entire database in Markdown format at any time. So given regular backups, this wouldn't be an absolute catastrophe.
Ask HN: Switching from C++ dev to Web dev?
I’m in a interesting situation here. I work for a small startup doing C++ development. I’m one of 2 s/w guys and I like the work and responsibility.
Another startup recruiter recently reached out to me about a backend web development position mostly working with Python/Django framework. I interviewed with them and they’re offering me 20% more money than I make and the benefits are better too. I have 6years dev experience, mostly C++. I wanted some thoughts if anyone has been in a similar situation and do you think it’s worth moving away from C++ towards web based frameworks in the long run? I apologize if this isn’t the right place to post this.
A lot of people hate PHP because they don't think it's possible to write secure PHP code.

Sometimes companies enshrine this ignorance as official policy, and their knowledge of PHP security is as shallow as "php.ini hardening".

When anyone encounters such ignorance, point them here: https://paragonie.com/blog/2017/12/2018-guide-building-secur...

Or for more general code quality complaints: https://phptherightway.com

I'm looking forward to PHP 8, and beyond. Mentalities that were only relevant in PHP 5.1 (or earlier) are outmoded and should be laid to rest.
I haven't used it but the reports I have seen say the vive wireless seems to work fine without noticeable latency.
> Now, a new report published in the journal BMC Medical Ethics has revealed what appears to be China’s effort to cover up its harvesting of body parts from Uyghur Muslim detainees by falsifying organ donation data. It suggests that more than 90,000 Muslims and other political prisoners are being executed each year for the purpose of profiting from the sale of their live organs.

I found the report since the author doesn't link to it. https://bmcmedethics.biomedcentral.com/articles/10.1186/s129... There is also another news article about it https://www.theguardian.com/world/2019/nov/15/chinese-govern...

From the conclusion

"Based on the data we have examined, there is no way of determining the proportion of each of these organ sources, nor of China’s total transplant volume. Our analysis of cases of misclassification (see Additional file 6) found that the apparent prisoner donors were up to seven times more numerous than the apparently legitimate voluntary donors"
> What became apparent in my conversations is that software development has evolved rapidly, and successful companies are evolving their own cultures and practices to keep pace.

Clearly a discerning eye
I would argue that PHP does need it, it just ships out of the box while other languages need a “npm install” step first.
Objective Smalltalk ESUG 2019
Had it done to me twice, 2 of the worst experiences in my life. They did the first one and did not push enough. The doc said do you want the good news or the bad news. I choose the good, apparently there is a significant portion of people who's heart does not restart after adenosine, and they have to use the paddles to get it started again. The good news was that mine restarted so it will always restart when given the medicine. The bad news was they did not push enough to stop the SVT so they had to do it again. That was bad news it's a horrible experience. All of the symptoms of a heart attack with the exception of the pain. Can't breath, tingling, darkening vision. You think you are going to die when you feel you heart stop.
The clearest path is to become a Certified Kubernetes Administrator. There are a number of companies currently hiring CKAs.

https://www.cncf.io/certification/cka/
https://jobs.cncf.io/

Disclosure: CNCF, which I run, manages the CKA and the job board. But I really have seen many people get great jobs by becoming a CKA.
You replied to a comment that said "I do not trust the SPLC to determine what is a "Neo-Nazi" website"—something I agree with as well. The SPLC is a garbage organization, even if they happen to be correct about The Daily Stormer in this specific case (not hard, given that The Daily Stormer is completely open about what they believe—no one has to "guess").

Anyway, the OP was perhaps unclear—you could construe distrust of the SPLC with disagreement on the status of The Daily Stormer. I think they were more saying "SPLC is not a legitimate source", not "SPLC is wrong in this specific instance".
Reports are that China has just quarantined Wuhan, a city of 11 million people.
is there another language that was written domain-specifically for building websites?
I fail to see how that's accurate justification - just because somebody else is doing worse. Blatant whataboutism, really.
Your comment attributes to the fact that knowing it's possible is usually enough data for HN folks to figure out what's going on.

Maybe we should somehow tag the developer? ;)
Khashoggi wrote for the Washington Post, so it wouldn’t be a favor for Trump. It would be consistent with his own motivations for murdering Khashoggi.
I guess sites with real, useful content (e.g. Wikipedia) don't need strong SEO since they have a ton of back-links from other sites that validate their high ranking, so "strong SEO" is really about making a less useful site look more useful, which makes sense for them to hate.

SEO really translates to "How to fool Google into boosting your ranking artifically".
Thanks Jeremy for highlighting this issue.

A lot of scientific publishers have hijacked "Open Access" to charge high fees for the same publication as before and pocket more money. For example, "Springer Blood Cancer Journal" charges $ 4,580 as OA fees. I can't imagine how one can rationalize that cost.
We should stop talking about this as an engineering defect that the FAA needs X number of months to review.

The root cause is not an engineering defect, but a set of organizational, cultural, and managerial defects. This is the root cause that leads inexorably to a variety of seemingly unrelated engineering defects.

Perhaps regulators should hold off on approving new airplanes until Boeing can demonstrate that they have fixed the organizational, cultural, and managerial defects that are the root cause of their safety problems.
Another way every Google result now looks like an ad: they're all SEO-spammed with hilarious shoehorned references to various years from 2017 to 2020.
> Also I’m not sure how the CDC is preparing for this under 45, but given the state of the federal government I would guess it’s less prepared than the days of the Ebola scare.

Despite "45" apparently being such a comic book villain as to warrant "guess[ing the CDC is] less prepared", the CDC has actually had guidelines out since August 2019: https://www.cdc.gov/coronavirus/mers/preparedness/checklist-...

This is part of how we even know of this case: the CDC under "45" was prepared, a local HCP was informed about what to watch for, and the system worked as intended. We have literally been through a very similar situation already with SARS and those protocols worked very well.
PHP, Ruby, Python and JS and their popular libraries or frameworks are standard for web dev, though.
So what do you do when someone passes KYC and is still a fraudster?

I would think you would report them to the authorities... which seems like what they are doing
The accusation [1] is public. I will translate the highlight parts of the conversation transcription between the hacker and Gleen Greenwald.

In another thread I discussed how they hacked the Telegram accounts.

Page 58:

> MOLIÇÃO: Like it happened with Danilo Gentilli, the MBL and Holiday. We got [their Telegram account] last october. They only started talking [on the news] about this [Telegram hacking] now.

Some context:

Danilo Gentilli is a liberal tv show host that was very vocal on the last election;
MBL is acronym to "Free Brazil Movement";
Holiday is a politician with MBL affiliation.

In Brazil, the liberals are the right-wings. Their motto is "Liberal on the economy and conservative on the customs", custom as traditional practice.

On page 58:

> GG: Because, for instance,
if they knew that someone is getting ready to publish [the hacked conversations],
or worst,
that we [The InterceptBR] are ready to publish,
they would
get an judicial order
to forbid
the publication or reporting of this material.
But so far, no one have done that.
Therefore, it look like
they don't know who has "this material".

> GG: They know someone have this, but they don't know who has it.

> M: Yes. We also want to know your opinion about something...
Once you publish the articles,
everyone will exclude their conversations,
everyone will exclude their Telegram.
We want to know what do you suggest us should to do.
We have some names separated,
we can get [their conversation from Telegram] this weekend
or leave it for a while. [I ask this]because, there are some people
that already changed their number, we can't get their conversations anymore.

Page 60.

> GG [black text included]: Yes. Look, we are going to [??], what is going to happen? They are going for sure try to accuse us in participating in the hacking. They are going to accuse that us of being part on the hacking attempt.
For sure, they are going to accuse us. So, I'll keep the messages for myself, the messages are the proof that you only talked to us after you already done everything. This is very important for us as journalist to show that our source only talked after they already had everything.

Page 61.

> GG [only text in red]: We already saved everything, we received everything. I think you had any reason to keep any of this, understood?

In the bold text, Molicao asks if they should hack more people, he wanted to know GG opnion.

Page 62.

> GG: Yes, yes. This is difficult because I can't give you advice but I've the obligation to protect my source and this obligation is a very serious obligation, very serious. We are going to do everything we can to do this, understood?

> GG [only red text]: Also, we are going to say we received everything before those articles from the other week about Moro [begin hacked], about the other hacking.

[1] https://politica.estadao.com.br/blogs/fausto-macedo/wp-conte...
"The problem with this kind of aggressive A/B testing is that it's a game of "how far can we push the user?""

Google also does this with Chrome. Users are subjected to "field trials". No explicit consent is requested. Most users are probably unaware. While it is possible to see which trials one is a part of, Google is not transparent about what exactly these trials entail.

https://www.ghacks.net/2013/04/05/field-trials-in-chrome-how...

https://textslashplain.com/2017/10/18/chrome-field-trials/

https://chromium.googlesource.com/chromium/src/+/master/test...

https://blog.chromium.org/2012/05/changes-to-field-trials-in...

http://raeknowler.com/wtf-chromium
That's very clever.
That sounds like Google to me.
Confusing. I’ll be interested to see this explained to mortals.

But I would assume that derived works could not choose to use the code as BSD - it’s not “choice of copyleft or BSD” it’s “copyleft unless you try to do something shady.”

Somehow..?
He means for example if you want to make database connection PHP has build-in function. But in Java you need few libraries. In one end it is one line code, in the other one it is several lines of code.
For _actually_ comma separated values, just use awk -F , '...'

Is this not what you mean?

Edit: This comment might be helpful to you: https://news.ycombinator.com/item?id=22110036
You assume that the only way a language can help you write safe code is by making sound guarantees; this is wrong. A language can also help you write safe code by making it easy to selectively add runtime checks (that can then be selectively turned off in production), by making code-build-test cycles faster, and by making it easy to inspect what the code does. This approach has tradeoffs: it is unsound so it will let some undefined behavior bugs through; on the other hand it might do more to reduce bugs that are unrelated to undefined behavior.
I was gonna say, this is just another entry in the category of breathless "Given physical access, ..." articles that periodically make the rounds regarding Mac security
This is probably why it would carry a negative stigma here since that's been the norm in this country where the sick people have to wear masks, not the healthy people.

I remember being in Urgent Care and having to wear a mask when SARS broke out and I had a cough that wouldn't go away. People wouldn't come near me. One guy came over, saw that I was wearing a mask and gave me a look as if to say, "Oh hey man, that's cool, I'll just stand here." and kind of side stepped away from me.

In China, the pollution is so bad, people have been wearing masks for so long, seeing them in public isn't a big deal anymore. Here, in the US, you're right, its always been the sick people wear masks, not the healthy ones. I feel it would be incredibly hard to get people to overcome this ingrained idea since its so uncommon to see people out in public with surgical masks on.
Looks great! Going to try and use to plan over the next few weeks. Will make sure to rate on the app store! First impressions are really nice, much rather use a smaller product than the feature bloated, or money hungry larger ones that exist
Oh man, I had the second gen Zune. It really was so good.

To this day I still think about that little touch/d-pad, and wish something similar had caught on with more devices...
The difference is, that Neflix/Google/Facebook had their services with telemetry since start. If you didn't agree to their terms, you simply didn't start using their services. They don't even have network effects like Windows has.

Microsoft, on the other hand, added telemetry to already widely-used product, not giving the existing users any choice. Is it any wonder that Microsoft is being singled out? They deserve to be singled out.
Hah, completely forgot about that, it got lost pretty quickly...
The Saudi Royal Family simply do not care and walk around with impunity. They thumb their nose at the law and the world order and think they deserve to do whatever they want. This is exactly the same as the Khagoshi execution where overwhelming evidence and implication, but, play naive and put on a big sham investigation. Just how when Russian agents poisoned the Skripals and said they were their to view a church steeple.
If there ever came a day when there was no option but to run this kind of software on computers then I'd just stop using computers. I'd pack it all in and go and live in the hills. It just wouldn't be fun any more.

Thankfully I don't see that day coming. There's enough people like me.
Then how do we realign capital to stop keeping large loss-running companies or now slow-growing companies on life support so that basic innovations can still penetrate the market?

IIRC Zuckerberg had the option to relinquish control of his company but other than taking that sweet sweet In-Q-Tel dollar still did his best to stay at the helm.
We should own our friends lists... which we used to call our address book.
Do you have some evidence to back that claim? I run long distances, and whilst I have been given repeated advice of this nature, I have never seen any actual evidence that this is a problem?
Show HN: Automating a Reddit Text-to-Speech YouTube Channel
Windows file management and UI is far superior to anything out there. Its a little ironic that NTFS isn't faster than ext3 (in fact its slower for many use cases) but Explorer is amazing - Finder is a joke and most Linux fm's are modeled after Explorer, so is taskbar and start menu.
This isn't really a hack, though.

It's more like "How to configure standard system tools to do stuff you want."

Potentially any modern O.S. will allow what is described in the article, if your privileges are root/admin.
Open Citations: More Than 624M Citations Now Available on COCI
Modern UNIX does the Julian -> Gregorian transition in 1752:

$ cal September 1752
September 1752
Su Mo Tu We Th Fr Sa
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
> The idea that I can touch variables that have gone out of scope (and that have ostensibly been GC'd)

I think this might be due to your mental model of GC not quite matching the way it's usually implemented (at least, in traditional GC, as opposed to reference counting); most GC gives no guarantees that memory will immediately be cleaned up once the last reference goes out of scope, just that it will happen some time in the future (usually the next time it checks). Languages like Rust (and C++, if you use destructors) will inline the memory cleanup at the end of the scope, but this is pretty explicitly not what will happen in a garbage-collected language.

Note also that this isn't really any different than the fact that a variable can go out of scope and not be cleaned up if another reference to it exists. Consider the following Java-esque code:

void setNewChild(Parent parent) {
var child = new Child();
parent.child = child;
}

The `Child` created in the method body will not be garbage collected even though the variable goes out of scope because it's still referenced somewhere else (i.e. in the Parent object). The key insight to understanding closures is that using the local variable in another function makes another reference to it, so naturally it would be kept alive until that function is gone.
Monopolist Behavior in the Wild: Apple Edition
Oculus is dropping the Oculus Go from its business platform