skysight-inc/HackerNews huggingface dataset:
I’m making an effort to learn Scala. It’s enough like Java that I can write as I would traditionally so I quickly wrote a Word Search puzzle generator.

Next I’m going to try and write a second version in a more functional way. Then a third...

First version:
https://github.com/melling/WordSearchScala/blob/master/WordS...
> We breathe the same air, touch the same services, and overall interact way too much

That is not a lockdown.

I haven't left my house for two weeks apart from a few small excursions where I stayed at least two meters away from everyone, while wearing a cloth mask. That is a lockdown.
In Spain, there have been clear signs that mild cases of covid-19 where misdiagnosed as flu during January 2020, specially among children.
> I have to say, working at Apple and knowing all the hard work that goes into this and making sure your data stays private while also being able to combat this disease, it's very frustrating to read a lot of the comments here.

As a person reading comments it's frustrating that an Apple employee thinks their company is special and should be trusted. It doesn't matter what you say, at the end of the day your goal is the same as any other company: profit. There's a zero percent chance I will install any of your garbage on my phone on purpose.
So what are they claiming to own the copyright to in that repo?
Those are great options, but the 12-core Ryzen 9 3900X sells for less than $450 now.

Sure, it has half as many cores as the 3960X Threadripper listed, but 12C/24T is still a lot.

Also, it's much easier to cool -- 105W TDP vs 280W on the Threadrippers.
I had a horrific one in January too, the first time I've ever been ill enough to get a neschopenka.
By that logic, I should be able to illegally download a movie, immediately delete it from my hard drive and then repeat this process as many times as I want to continuously shrink the size of the legal purchase market from my bedroom until it is zero.
The vast majority of people aren’t on Blind and aren’t answering online polls. Most people don’t even know what the word remote means, other than the television kind.
LPS: Logic Production Systems
This looks great, especially as CSS is fairly easy to style. I'd like to use it on my website. While it has a lot of brand icons (including the luxury company Chanel?!), ones I consider important, like GitHub, are currently missing. https://css.gg/app?s=github (I've opened an issue).
> it is possible to write an amb macro that "chooses" the right argument to make a subsequent assert statement be true.

I'm not too familiar with Scheme's macro feature but how would one go about that? I was under the impression with macros you get to define what ever syntax is part if the call, but here in order to achieve what the author mentions the macro would need to be able to look at surrounding code, to look ahead for the assert. How is this possible? Is he maybe talking of a compiler plugin or a macro (not shown) that encloses the entire expression, e.g. `(make-assert-true-macro (let ...{the code snippet}... ))`?
Where to begin?

- No proper connection pooling with circuit breakers.

- No proper multithreading (that works in web environment) or parallelism in general.

- Almost everything blocks (even `new PDO('mysql:...')` can block for whatever the execution time limit is, if there is an issue with connection or MySQL server).

- Most libraries are implemented in C instead of in PHP, whereas with other languages people try to avoid native code as much as possible. This means that code is not memory safe, and understanding or contributing is close to impossible.

The reason for this is because PHP doesn't support many things that are expected in any other language.

PHP C API is hard to understand, hard to use, and documentation is subpar.

- There is no way to easily share memory between processes. You have to rely on APCu (hack), because this cannot be implemented in PHP.

- Did I mention that almost anything can block? ODBC? PDO? Some 3rd party library? Even set_time_limit cannot help you here. Handling this gracefully is close to impossible.
https://blog.ganssle.io/articles/2019/11/utcnow.html
Haha. Are you serious? Equating Apple with "public servants"? Probably the most naive thing I've ever seen.
That's just how life is, how business is. people are driven by motivation (a lot of times by money) you didn't lose any friends, if they are with you when you have something and now they're gone, they never were your friends.

I like to code, I do this since I have 13 (I have 30 now), I didn't start this to make money, I do this because I like it and I would do this even if I were not paid for

I worked with a lot of good people, but they are just coworkers, not my friends. you must figure out the difference and find your purpose. Maybe tech is not for you and that's ok if you are happy doing non-tech stuff you should focus on that.
You got paid in airline miles?
> PHP only exists today because of legacies being maintained

> people compare it to languages like Rust or Go since they consider those are "innovative"

PHP is getting old enough for developers today to be unaware of the history of web development. If you don't know the history, then you haven't seen the twists and turns it has taken. If you don't know the twists and turns, then you don't see how everything from the past relates to the state of the present.

Perhaps the greatest accomplishment of PHP is that the ecosystem so thoroughly solved a certain approach of web development that the rest of the world could move on to try these other ideas (which are of questionable effectiveness.) There's only so many web frameworks, content management systems and general web development libraries that you can build before you start to realize what waste of time it is to keep reinventing the wheel. PHP has an ecosystem which is still strong (and growing) because there's no need to recreate what PHP has done so well.

Wordpress as an example is not going to be replaced. You can't replace Wordpress by building something in a different language. The code base represents mind blowing knowledge which has gone into solving such problems which have nothing to do with a specific programming language. Nobody cares that you can recreate some basic thing with the new shiny. The programming language isn't the problem.

Now Wordpress is possibly reinventing the CMS with Gutenberg (like it or not) and it's not the programming language which is making it possible or hindering. PHP is a great platform to build on.

As your system grows, then your problems change. The tools required to tackle those problems change as well. This is true of everything. You can't manage a Google the same way that you manage a 2 pizza team. To get to that scale, the systems need to change many times over. PHP solved a wide problem, but it's not perfect and it's not one size fits all. Go is great at solving other problems, and it's a generalist when applied to the web domain. It's not a good comparison.

We haven't even started on the business side of decision making. If I want a web presence, this thread is doing nothing for me. I'm just going to fire up Wordpress and move to the next step. Or Laravel if I want a fast prototype, etc.

Seeing how important this history has been in my own area of expertise makes me think I better start hitting the history books which would be important for my other areas of life. If you don't know your history, then you're handicapped when discussing the present.
drug cartels
PHP isn't being replaced by Rust or Go. It's being replaced by Medium, Wix, and Squarespace.

At this point, the predominant reason it's still undergoing active development is that there is a metric ton of legacy PHP code. As the businesses still using it either mature, evolve, or fail, the need for PHP will begin to dry up.

You're defending the language from an emotional standpoint.

> choosing php for a new project is a no-brianer. The only other 2 stacks to which I can compare it are the Spring stack of Java or .NET core

This is absolutely not the case, and you know it. Almost every language has a wealth of HTTP tools and frameworks, and many of them come built-in.

Choosing PHP will be like choosing Python 2. In fact, that's my 2030 prediction.
Thanks for the link. They assume that Android devices can scan in the background but my experience is that whilst this is theoretically achievable, the experience is unreliable in practice. See this guide which shows how to make things more reliable https://openpathsupport.zendesk.com/hc/en-us/articles/360024...

And they state that for iOS in background mode:

> A nearby Android device acts as a bridge. It receives TCNs through “central” write operations and adds them to a rotating list to broadcast alongside its own TCN.

Which doesn't sound that reliable or accurate.
No. There's clearly duct work between the pressure bleed valves and the cabin air. Enough volume of air to keep 300 people breathing fine without feeling incredibly stuffy would be a pretty fast wind at the rear galley of a large jetliner.

Air comes in ducts, air goes out ducts. You get fresh air. Both the fresh fraction and the recycled fraction are HEPA filtered.

Edit: another comment here says the mean replacement time for air in an airliner is 4 to 5 minutes with a recirculating ratio of about 50%. I'm not sure if that's right, but it feels about right. Imagine your share of the space in the cabin. Think how long you could sit in a sealed cardboard box that size before the CO2 levels started making it feel stuffy. The airliners aren't carrying around hundreds or thousands of kg of lithium hydroxide to scrub the CO2. They're just dumping stale air overboard.
How to Protect Your Application with OpenAM and OpenIG Stack
Sunshine as disinfectant only works if the corrupt parties have some sense of shame; they change their behaviour when exposed.

Providing a platform for vile attention-seekers doesn't make them less vile. They have no shame.
You can easily setup and use queues in PHP projects too.
> Good, that you can confirm your skill level, so maybe PHP suites you very well.

Could you elaborate on this one, I am not exactly sure what you mean by it.
I wasn't one who downvoted but parent post was asking for source on whether this app is going to utilize the new APIs, specifically. According to your subsequent link, near the bottom, currently it's unclear:

"The Government will work with Google and Apple to investigate whether the new functionality announced by Google and Apple partnership is beneficial for the app performance"
I have read somewhere that there is often _less_ face-to-face communication in an open landscape than with single offices. Possible reasons include an unwillingness to disturb everyone else, and that people in such situations tend to turn inward in order to isolate themselves from everything and everyone around them.

Also (and somewhat contradictory to the above), I expect that, if your colleagues are _too_ easily available, you'll be running to them with a half baked question in your head, only to blurt it out before realising you didn't think it through, and wasting both their time and your own. But before you go knocking on someone's office door to ask a question, you really want to be sure that you know what you want to ask, and that you understand the problem well enough for the answer to make sense to you. Which leads to a better conversation, less time wasted, and better learning.
Why are you using "=="? Use "===" and make explicit casts as required.
> Either something is illegal or it isn't.

The legislative branch makes laws.

The judicial branch interprets and applies those laws.

It's possible for reasonable people to read law and disagree about what is or isn't allowed, which is why case law is a thing.
Ask HN: How to Learn Web Design?
I'm pretty good with React/Angular concepts and general development but when it comes to styling my pages I totally suck. I either throw Bootstrap or something similar at it and that makes it somewhat presentable but when I try to customize my own styles I always end up with something wack.

Is there any books or any way of learning how to apply CSS right to get beautiful pages?
From the point of the user: I have a mouse, a keyboard, a display, an external drive, and occassionally I need to plug in a flash drive, printer or some other device. There is one or two of those new small rounded USB ports on my computer which is not enough. How can I possibly plug in everything I need?

It's not the users' fault that the whole USB-C thing amounts to a very fast, very efficient and elegant garbage fire. It's the greatest port ever, it can do everything, except not at the same time, so I have to choose whether I want to plug in my keyboard or my display.
I am a djbdns user. I also use nsd and unbound. I do not use "upstream" third party DNS, such as 9.9.9.9. Surprised to hear that anyone still uses MaraDNS.

What I am curious about are these massive blocklists. Does anyone actually read through them. Does it make sense to block 60,000 hosts when only, say 100 or even 1000, ever stand a chance of being accessed by a user's computer -- due to the user's particular usage habits.
Sort of like:

"The Enron Prize for good corporate accounting"

"The Benedict Arnold medial of Patriotism"

"The Lucrezia Borgia Best Cocktail award"

etc
Because it fundamentally destroys the current agenda within software development, that tools should be created for developer satisfaction, not customer satisfaction.
> It criminalizes not only direct and indirect copyright infringement, but also the dissemination of tools that circumvent copyright protection.

The text of the law that you encourage us to read says:

> No person shall circumvent a technological measure that effectively controls access to a work protected under this title.

... followed by many exceptions. But that's section 1201, which is not referenced by section 512 that defines the takedown procedure.

> but GitHub really can't play dumb after this notice. They have been notified that they are hosting an illegal tool, and if they want to continue being considered an immune service provider under the safe harbor provision they will have to keep the repository disabled. If GitHub willingly reinstates a repository that they know is illegal they could lose their status as a protected service provider and then the MPA can sue them.

There's actually a provision in section 512 that protects GitHub should they choose to ignore what turns out to be an invalid takedown notice—they are legally considered to not be aware of infringement or infringing activity.

> It's not abuse of a DMCA takedown notice to use it against tools that are intended to infringe on copyrights

The takedown notice procedure is only specified for works that are an actual infringement. A tool for infringement is not the same as the product of an infringing action. There's no room for "creativity" here. The MPA does not own any exclusive rights regarding copying, distributing, modifying, etc. the pieces of software they object to, because that software is not a copy or derivative work of any of the movies they own copyright to.
> I guess not, because anything that's not allowed is by default prohibited?

Yes, at least for online content. As far as I understand it, a researcher who wants access to some out-of-country material has to manually submit a request. The censors then download the article or page, go through it, and pass it on if it's found acceptable. In addition, no single computer has access both to the global internet and to the intranet.
It's probably also a good idea to call VirtualLock so that the passwotrd is guaranteed to never be written to virtual memory.
Concerning Denmark, I agree that using the decentralized model is highly likely at this stage.

Criticism of the centralized model from both Left and Right political parties, so the government would get nothing but flak if they didn't change course (1 May): https://www.dr.dk/nyheder/penge/dansk-corona-app-er-forsinke...

Government have formed an advisory board to focus on security and privacy of the app and its use (1 May): http://sum.dk/Aktuelt/Nyheder/Coronavirus/2020/Maj/Smittesto...
Remarkable to think that less than 150 years after that publication humanity was building supercolliders
> persistent coughs in February,

That is more possible, both because of timing and symptoms. It's not certain (or even most likely) to be COVID-19, but is worth checking out.

Given things like this:

https://www.bbc.co.uk/news/world-us-canada-52385558

if someone _died_ on 6 Feb, they were infected in mid-late January.
What kind of fantasy land do you live in? Nothing you said is true.
To add to this, developers rear towards focused individual contributor work
I'm interested in hearing more about a comparison with spring boot ergonomics.
I'm professionally using spring boot + kotlin and would love to know in which aspects rivals frameworks can be better.
Link: https://ideoclick.com/careers/
New Free bounding boxes smartphone dataset
It was separately confirmed to be correct two days later by NBC News[1]:

> U.S. spy agencies collected raw intelligence hinting at a public health crisis in Wuhan, China, in November, two current and one former U.S. official told NBC News, but the information was not understood as the first warning signs of an impending global pandemic.

> On Wednesday night, the Defense Department disputed an ABC News report that an "intelligence report" had warned about the coronavirus in November.

> But the current and former officials told NBC News that while no formal assessment was produced in November — and hence no "intelligence product," in the jargon of the spy agencies — there was intelligence that caught the attention of public health analysts and fueled formal assessments that were written in December.

[1] https://www.nbcnews.com/politics/national-security/u-s-spy-a...
Very interesting. Is this your own idea or has it been more widely discussed?
A slacker once told me during university "C students are CEOs and I'm a C student, therefore all of you will work for me."

Not only is this a fallacy, the premise is not backed by data.
I won't go for AMD CPUs for workstations. They are unstable. QA is bad, gets weird errors in programs (probably programs' fault but I don't care) and if the machine fails to function in any way it becomes my fault for choosing it. That's why my company buys an Intel workstation every time.

Yeah. Downvote as much as you like fanboys. Can't dilute the truth.
Lately it's been math majors. Zoom and Stripe founders were math majors.
It's about SARS-related virii.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6178078/

Basically a percentage of the people who live in areas close to large populations of bats in Southern China have antibodies for SARS/Covid-like bat viruses, suggesting natural, ongoing contacts.

That's probably how SARS, MERS, Covid-19 all started.
Are you disillusioned with technology, or with the business of technology?

In my experience, the term "business" is short for "the business of exploitation". Exploitation is ugly, and I've had experiences that can be compared to yours.

Our occupation (if you're doing it right - and few are) is masochistic in nature. You suffer to grow, and you grow to suffer (sometimes quite a bit more) for greater pursuits next time. It's the definition of type 2+ fun (https://www.tetongravity.com/story/adventure/the-three-and-a...). If you did the type of things I do, it would be easy to see our primary job as the application of self-discipline to mitigate emotional and existential pain caused by consistently pushing your limits (past your fatigue plateau); and the creation of new solutions are side effects of the mental blender you are capable of holding yourself in for 8+ hours a day. If you've had family members beg you to quit jobs "for your health", you probably know what I'm talking about.

Knowing (as I do now) how the business works can change the context behind the work. Context can be the difference between being a hero, and being exploited. I like being a hero; I don't like being a victim. I will happily sacrifice of myself to make something that users will love, or something that will change the way things are done; I don't want to bleed to make some dickhead rich.

If you have the money to coast for a while, perhaps it's time to think about building a non-profit. A non-profit would be less likely to attract those looking to exploit. Boil what you want to do down to chunks that you can complete yourself, and make sure it's something you're willing to bleed for.
Hey thanks for the downvote! I'm guessing it's because of the use of "mafia".

Here is the rule for truck drivers listening to the radio in their truck: they have to pay extra copyright fee because they are listening in their work environment, and therefore the normal copyright that radio is already paying is not enough.
And by late February and early March when medical professionals were hunting for signs of the novel coronavirus and people were about to start being hospitalised and dying in large numbers, there'd be an enormous amount of hospital inpatients with respiratory symptoms to test. We know this wasn't the case until later...
If you want answer to these kinds of questions, I suggest you go to Erowid. Here is the page for Mefloquine https://www.erowid.org/experiences/subs/exp_Pharms_Mefloquin...

As you see, not too much data but it is still something. From the reports, it doesn't look like there is recreative potential. It doesn't hurt to look but the general idea is that if a strong psychoactive is not heavily controlled/illegal, the effects are usually nothing but unpleasant.
Every developers should know at least two languages (more is of course better, but two is the minimum for a professional). The optimal way to select:

(1) Learn the language which is most prominent or employable in your preferred industry (e.g. Java for enterprises, Python for science, JavaScript for frontend).

(2) Learn the language most different to the first, regardless of its popularity and employability. Eg. Scheme if you know Java, Haskell if you know Python, Assembler if you know JavaScript. (There will probably be some disagreement about which languages are to most different to each other, but you get my point.)
there's this gem in the article

> The downside to going Intel here is finding a CPU for sale.
OpenIndiana Hipster 2020.04 Released: Phase Out Python 2, GCC7 as Base Compiler
All those links really tell me is that the problem lockfiles solve has been arbitrarily ignored. "A solution can exist, it's just not currently implemented" seems to be the state of things, unless I've misread it.

I'm all up for saying "thou shalt specify precise versions of library dependencies", but the specific case of `org.clojure/clojure` seems qualitatively different in that a precise version influences your consumers, and leaving it unspecified means your library might not work at all.
> The thing that PHP does right that so few languages do is having a stateless core in the webserver.

I never understood why the HN crowd always ignored this massive benefit of PHP, in a world where it's becoming clearer everyday that keeping things stateless across the stack provides many benefits towards managing complex systems.
Riding the Tiger: Lessons Learned Implementing Istio
Do you know if TestFlight uses the same entitlements parsing logic? It may have been possible to exploit users' devices through beta versions.
Long-running processes are definitely possible. You obviously have to be a bit more careful not to leak memory.

It's common to have things like queue workers implemented as long-running CLI processes. I just checked one of our services at work and there's a queue process that has been running for more than 4 months. There might be others that have been running even longer, but I don't feel like checking every service right now ;)

Projects like Swoole or ReactPHP are trying to make similar things possible for serving web requests too.