skysight-inc/HackerNews huggingface dataset:
I feel like I'm in a unique place of learning Haskell, so I'll try to translate the last line of your first function:

return . fromMaybe defaultPort $ maybeEnvPort >>= readMaybe

Basically this is composing a function out of "return" and "fromMaybe" (using the composition operator "."), then partially applying defaultPort to that composed function, so you now have a function that takes one argument. The resulting function is then applied (using $) to the result of "maybeEnvPort >>= readMaybe".

In "maybeEnvPort >>= readMaybe", ">>=" is an infix function that takes maybeEnvPort as its first argument (which is a Maybe Monad), "unpacks" it, applies "readMaybe" to the unpacked result. readMaybe returns another Maybe Monad.

The result of everything after the $ is a Maybe Monad that contains the port from the environment, or a failure condition. The result of applying the composed-and-partially-applied function (from before the $) to it is that the port from the environment is chosen if it didn't fail, otherwise the defaultPort is used, and then the whole thing is wrapped in an IO Monad.
Yup, that's what I use. Just like for any other language, it works great.
I see. My apologies.
Interesting. I would pay extra to not have to chat.
I think you’re going to need to invest a great deal in cybersecurity.

This is essentially an unsupervised internet accessible surgical robot.
shameless plug: https://github.com/leeoniya/dropcss

faster and more thorough than PurgeCSS (and all others).

specifically for handling TailWind's weird classnames:

https://github.com/leeoniya/dropcss#special--escaped-sequenc...
Ask HN: Is 'By using this this site you agree to' legal/contractually binding?
Sorry if I did this wrong, this is my first actual post.

I see these pop-ups or modals on so many sites constantly annoying me. I read almost none of them and block most of them so they can't say 'well they clicked X so they agreed!'

It feels like walking into a store and being told after you are inside that by entering you have agreed to, I dont know, buy 10 things for $100 each.

How is it not complete bullshit to be told that by landing on some random page, or viewing some random article they can say you have agreed to what may be 10 pages of TOS, and they only show you what you've actually 'agreed to' if you click a couple more links and do some heavy reading.

This popup on the NYT article on HN today about the heroin epidemic sent me over the edge, and finally prompted me to ask this here.
Cities are weird beasts. I live in Midtown Atlanta and walk to and from work, I am also out and about sometimes in the evenings. It's one city at these times. But if I'm out late at night, every now and again I'm froggy for a late night walk, I see packs of people just hanging out. I have no idea where they came from, where they live, Midtown is an expensive place, or why they feel like Midtown is a great place to bring your private outdoors party, but I don't encounter it unless I'm off my routine.

It's possible that open drug use might be happening right under your nose and you're never around to see it.
Yeah that's bizarre. Managing disasters well, maybe.
> Go to sleep only when you are very tired. Not earlier.

> In my view, everyone should always free run his or her sleep unless it makes it impossible to function in society along one's chosen profession, specialization, education, etc., or where it makes it impossible to take care of the young ones.

Is that not almost everyone? I often don't get tired till or 4 am and have to get up not long after that for work.
The ArXiv of the future will not look like the ArXiv (2017)
Given all of the security issues I am curious who thinks this is production ready ?
Gil Kalai has been beating this particular drum/dead horse for decades at this point. Having read the paper, it seems pretty consistent with his previous work ... it all crucially hinges on the postulate that, somehow, noise will prevent this from working, but he has yet to actually come up with a solid explanation for how.

(Even this paper, ultimately, relies on Conjecture 4, which essentially comes down to saying that "Well, we've proven this one particular system runs into noise issues, so we're just going to assume that some grand physical principle will cause this to extend to every possible small noisy quantum system.")
First and foremost, you get a standing ovation from me for doing the sort of mad science that'll always be worth doing and gets me excited about the world.

One concern I have is, that razor really seems to push that dummy's head back quite a bit, and I'd imagine it'd be rather uncomfortable to have that wacking you. Is there any way to avoid that? Is it maybe not as painful as it looks?
I don't see what getting rid of trademarks will do to help consumers. It's not like people who need an epinephrine auto-injector are confused and think that only Epipens exist in that market. Hell, I don't need one and I'm well aware.

If you want an Advil, I think you should be able to buy Advil. If you want 200mg ibuprofen, you can also shop for that, but if you happen to know that you prefer the outer pill smoothness and taste of genuine Advil, you are harmed by having the generic ibuprofen (without that same outer coating) be able to be advertised as "Advil" (rather than merely as "the same active ingredient as Advil").
Can someone post the one word tl;dr to help others decide whether this article is worth reading or not?

I'm getting tired of these clickbait questions: has ebola's virulence and efficacy increased, or not? Because if it has, that title should be "Ebola is evolving into a deadlier virus", and that's entirely worth clicking through for.

But if it hasn't, this is just clickbait and there are many, many more articles getting published on the web that also require time to read, without wasting time on this one.
https://m.youtube.com/watch?v=nhzV-J1h0do

I suppose you’ll disagree with his analysis because the FDA say eat loads of carbs.
> reads man pages

Good luck with that, especially, but not only, with git man pages.

I tend to avoid reading these “just to know” but only when I need something specific. They are mostly torture. They could have been more useful to read but they presently aren’t.
Hi! Thanks for the question. It's an important one. Both the security of WireGuard as a protocol as well as its Linux kernel implementation are most likely superior to all alternatives. Code audits and age of the project function as signals for decision makers, but there are stronger signals, if you look deeper. The simplicity of the protocol state machine, the fact that it can be implemented without dynamic memory allocation, the cryptographic primitives used, and the lines of code required, are arguably equally or more useful. WireGuard is 4000 LOC, IPSec is 400,000 LOC and OpenVPN is of similar complexity. I don't expect Jason Donenfeld who has a background in kernel exploit development to write code that contains 100x more vulnerabilities than IPSec and OpenVPN. We have noted the prevalence of those arguments. Let's wait a while and see who was right.

As for the privacy issues with a "standard" WireGuard deployment we are well aware of them and are working with others to develop a standard which will hopefully be adopted by privacy-focused operators. Unfortunately we only highlighted them to others in January this year. Note that no criticism of WireGuard's privacy seems to be older than this email: https://lists.zx2c4.com/pipermail/wireguard/2019-January/003...

We have deployed solutions for some of WireGuard's privacy issues while others are in the pipeline. It should however be noted that some of the attack vectors are somewhat esoteric and quite unlikely, so we don't consider them critical. The devil is in the details, as you can read in my email above. On the whole we think WireGuard is where the industry should be heading, fast, for many reasons, and that's why we are spearheading it: https://mullvad.net/en/blog/2017/9/27/wireguard-future/

At the moment IVPN is slightly ahead of us in terms of privacy features in WireGuard, but they are the provider we probably have most in common with, and we frequently discuss projects like this one, so they are definitely the one we most expect competition and collaboration from: https://www.ivpn.net/knowledgebase/253/Using-WireGuard-for-P...
I tried spacemacs with intero for a while, but I'm now using https://github.com/haskell/haskell-ide-engine + vscode + vimmode.
Mostly because I'm using vscode in my work and I don't want to invest more into emacs.
That "index" is terrible. It claims to be a ranking of all schools:

> Schools ranked no. 220 or above are in the top 1 percent of America’s 22,000 high schools, no. 440 or above are in the top 2 percent and so on.

But he only has ~2,000 schools in his database, or less than 10% of all schools.
not fish. Commercial fishing is killing the oceans (and something like 80% of the plastic in the ocean is fishing industry waste).
Vodka from Chernobyl Is Perfectly Safe, Say the Scientists Who Made It
Why subscription? Why not pay as you go?
I guess that will be up to the courts to decide. I'm guessing Exxon will argue strenuously that this is true, there will be more discovery to decide whether this is accurate, and (in a perfect world) the right thing will happen :)
That's not actually true, though: https://dogtime.com/lifestyle/56357-can-die-dog-allergy
anyone up for a relevant xkcd?

https://xkcd.com/2128/
is this true? if it is, i've never seen it happen in my entire life.
The value in the parentheses is the symmetric one-sigma bound.

If I say the atomic weight of F is 18.998403163(6) g/mol...

mean 18.998403163 g/mol
std.dev. 0.000000006 g/mol

If I say Planck time is 5.391245(60)e−44 s...

mean 5.391245e−44 s
std.dev. 0.000060e-44 s

The standard rules for rounding imply that whenever a measurement is given to a certain number of significant figures, you're leaving out "0(5)" from the end. So 1.2345 is 1.23450(5) in parenthetical notation.

Significant figures rules give you a close-enough propagation of error, but in order to be more exact, you need to combine absolute uncertainties when adding or subtracting, and combine relative uncertainties when multiplying or dividing.
why not just buzz it yourself?

A good buzzer is like 35 bucks in a kit, and then you get hundreds of 'free' buzzes, literally anytime you want. Plus no fear of a robot slitting your throat.
Of the 210 medicines approved for market by the FDA between 2010 and 2016, every one originated in research conducted in government laboratories or in university labs funded in large part by the National Institutes of Health.

This is only true if you really stretch the definition of "originated". Discovering the structure of a receptor is not inventing a new drug. Optimizing a new assay is not inventing a new drug.

The paper this article references failed to note ">90% of this funding represents basic research related to the biological targets for drug action rather than the drugs themselves“. For a more accurate representation of where new drugs come from, I'd reference Derek Lowe's summary of the nature article.[1]

attempts to quantify how many drugs can be directly attributed to public-sector research, such as the 2011 study that estimated the 1990-2007 share at about 9%

[1]https://blogs.sciencemag.org/pipeline/archives/2019/05/28/wh...
> I don’t know how to nudge the restaurants though

Visit and ask for vegetarian or vegan dishes. Move on if there is nothing worthwhile; let the staff know if you've liked a particular dish or find the selection too limiting. Demand drives supply.

In the Netherlands the vegetarian option used to be a boring salad with goat cheese. Nowadays not having decent meat-free options means you can't compete with the rest. This is something only the cheaper restaurants aimed at lower socio-economic classes can afford to do (but only for now). The reason for this discrepancy is that this class of people (mostly blue collar workers and their families) tends to lag behind the rest of society a bit as habits shift towards more healthy alternatives (smoking is another example).
My issue with pitbulls is they keep attacking my golden retriever.
You can see it done here:
https://en.wikipedia.org/wiki/Standard_atomic_weight#List_of...
Sure, but free is the defect state in the Prisoner's Dilemma. If Google provides a paid option, they'll still be competing with their free option. If they switch entirely to paid, Bing immediately starts advertising as "the free search engine".

This dynamic is even more powerful for network-effects-driven platforms like Twitter or fb
There is a difference between “playing with words” and “just playing with words”. If something is said to be “just”/only “playing with words”, this suggests that there is “no meat to it”, that it doesn’t actually describe something coherent and actionable.

Things can, of course, include both real and actionable content, and also wordplay.
maybe a disaster is a poorly managed incident. You perhaps cant stop incidents but can stop poor management of them
Never has there been a better time to invest: the markets have already priced in 100% of the expected value of all of these worrying indicators, so you'll be getting a good price. In fact, no matter what happens you get a good price. On average, today is always a great day to invest.
This comes up in every thread regarding Tailwind or similar frameworks/methodologies. If you're interested in the rationale, I recommend searching for some of those and reading the comments there.

The TLDR is that you don't lose anything by starting out this way, because at any point you can extract (think @apply) higher level utilities or semantic classes, but gain that you can get a good looking design in place quickly by having useful constraints, not needing to switch context all the time, and not being forced to make up names for everything. While few sites need to conform to the "Zen Garden principle", Tailwind won't stop them from doing so, if you put in the work that it makes optional.
> It's a different API. Most services specifically require Mobile BankID these days. Desktop (regular) BankID won't work there.

I'm not sure which point you're referring to with the mention of differing API. Mobile BankID is the same API as regular BankID (but services can choose which they accept); as for other Swedish e-ID services, there are aggregator services.

Re: most, really? There are some that don't accept non-mobile BankID, but it is uncommon in my experience.

> There is also already a clear precedent to allow delegation of access that require strong authentication IRL.

Sure, but what does that have to do with BankID itself? Both in-person and online, it is the service that decides whether someone else can act for you. And various services do offer this: I can let others access my tax records or prescription medicine records online.

I don't think it's unreasonable for services to want to know who they're dealing with. In real life, if someone else shows my ID at postnord, they have to show their own ID too.
I do recommend the studies of the global burden of disease project as an authority for what is healthy [1]
Springman, cited on chapter 5 of the report, goes into depth relying on those evidences for modeling the potential diets. [2]

That is what the IPCC references. Great work, published in nature, peer reviewed and pretty solid science.

[1]: http://www.healthdata.org/gbd
[2]: https://eatforum.org/eat-lancet-commission/
For someone who's terrible at remembering people, LinkedIn is a great extended addressbook for "I vaguely remember your name, have we actually met, only emailed, or did I just indirectly hear about you" ?
Wouldn't someone need to prove some kind of tangible damages to be able to sue?
I think it was more along the lines of "shotgunning messages to any women in the area who will accept your connection." If you were hitting on all the women in your office I'd expect HR to want a chat.
What would be unethical about it.
Now I've been at this game several decades I've probably got just about enough experience to really get some value out of Lisp.
The other thing you need to be careful in with focusing solely on going deep on one topic is that that one topic can go by the wayside.

I've known people who were, in one example, arguably the world expert in performance on a long ago computer architecture. There came a point where no one cared any longer and I'm not sure to what degree he successfully moved on to other pursuits.

Another example is Y2K. A lot of consultants ended up defined as being Y2K guys and they didn't necessarily successfully transition to something new.

Not arguing that going deep is necessarily wrong but, if you do, you need to keep your eye on emerging areas that could benefit from your existing skills.
In the US one of the most persistent areas of poverty and opioid abuse (Appalachia) was largely settled by Scots displaced during the 18th Century. I wonder if anyone has done any research into a correlation, it not there's at least a master's thesis in it for some sociology student somewhere.
Aren't companies under the GDPR obliged to report [1] if the got hacked/a data breach? Sounds to me as if quite a few just got hacked via social engineering...

[1] https://blog.netwrix.com/2018/04/19/gdpr-rules-of-data-breac...
I know the Kubernetes Assessment was the one to make all the news, but the teams actually audited a bunch of CNCF projects. Here is the one for the Vitess project

https://vitess.io/blog/2019-03-12-vitess-security-audit/
Decentralized Sustainability-Beyond the Tragedy of Commons with SmrtContracts+AI
This is somewhat misleading. You have to pick a specific track, and there are hard requirements in each track. For instance in Graphics you make a ray tracer and 3D renderer in 148 and a 3d mesh editor and a video game in 248.

In theory you dig heavy into algorithms and probabilistic running time, and other things.

In the systems track operating systems is a required course as is compilers.
shameless plug: https://github.com/leeoniya/dropcss

it's still written in JS but there is nothing node-specific there. it easily runs in a browser, or any js environment.
https://pbfcomics.com/comics/automatic-business/
Not just in the security field, I've heard of multiple games leaked through LinkedIn as well, this [0] was the most recent one I can remember but isn't a unique example. There is certainly the opportunity to inadvertently leak sensitive information, and there are people who know this and watch the platform.

[0] https://www.gamesradar.com/red-dead-redemption-2-is-being-ma...
There is indeed a place between semantic styling, and specifying everything down to the colour of an element with styles.

I'd agree this seemingly takes the idea of semantic styling to an extreme (although I haven't gone too deep into the framework).
Software developers make $3M per year: https://www.infoworld.com/article/3304439/man-or-myth-the-3-...

To not be glib: first, Prevnar is an outlier (https://www.fiercepharma.com/special-report/5-prevnar-13) and lack of profitability in basic vaccines is a public health problem in terms of investment in R&D and producer concentration https://magazine.jhsph.edu/2002/fall/vaccines.html (dated link but still accurate). They aren't like normal pharma in terms of their margins and R&D profile. You develops something for macular degeneration and it's a one off that can be depreciated. Influenza and some others require international monitoring, forecasting, sample collection and new work every season. It's closer to biologics or genetic therapies in terms of cost of revenue, but priced nowhere near that because of the economies of scale and, frankly, social responsibility of the producers.
The authorized generics are just screwing over the PBMs who are state mandated, do nothing, middle men with profits equal to the manufacturers.

Regarding you anecdote. One potential reason is that the ACA limits the profit margin of insurance to 20% percent of medical spending. This incentivises them to maximize healthcare costs. Switching to Lispro would hurt their bottom line instead of increase it.

https://www.healthinsurance.org/obamacare/billions-in-aca-re...
Im referring to the early years specifically, when it had no ads and no obvious business model. They jump started their Network effect by being useful and unobtrusive and then the monetization set in. Still, it's only recently that those concerns you mentioned really became mainstream. The well-informed public is a small sliver of the public overall, because it takes effort to stay informed, and there is a lot of deceptive junk and sponsored opinions to sift through.
Articles like this make me think of this Family Guy joke: https://twitter.com/familyguytweets/status/20357781932908134...
Good point, though when speaking of "intolerable working environments," many employees of slaughterhouses suffer from PTSD and drug/alcohol addiction, and also become more likely to be domestic abusers: https://metro.co.uk/2017/12/31/how-killing-animals-everyday-...
Blockstream Reveals Bitcoin Mining Facilities Fidelity an Early Customer
The xkcd is a good TL;DR for this article. Even provides more useful examples, less ranting.
As long as humans continue to exist in the physical world, take up physical space, and consume physical goods for food, shelter, and comfort, then manufacturing will be a critically relevant part of the economy.
> I see where this is coming and agree in spirit, but GCM is actually idiomatic Go and implemented through the crypto/aead interface, which does about as good a job as any library at being user-proof.

Good point, and I appreciate the (updated) Kubernetes docs do a pretty good job of telling you what the implications of using aesgcm vs secretbox are.

However, I was surprised that XChaCha20-Poly1305 wasn't recommended. XChaCha appears to check all the boxes you mentioned and is nonce-misuse resistant.
I am not a lawyer, but it might be helpful to include the country and state/province you are hoping to get the laws for as it may be binding in some jurisdictions and non-binding in others.
My understanding, from asking my manager when I worked at a movie theater in high school well over twenty years ago, is that the vast majority of profits on movies that have recently come out are from concession (snack bar) sales. Something like 85-90% of the ticket price goes to the distributor in the first few weeks, and that percentage drops over time (until you have the rare movies that last much longer than others in the theater and are almost all profit for the theater by that point). The thing is, while I'm sure that calculation for how much is owed per ticket is not entirely simple, I'm not sure it's necessarily set as a specific dollar amount. I suspect it's a minimum but also a percentage of ticket price, so they can capitalize on theaters in more expensive locations (or that provide premium experiences).

So, even if AMC assumes 3 movies are seen a month on average across those card holders, it might be that they can conceivably break even with the distributors at that price. If that's the case, it's a major net win as those people are not only likely to spend money at the concession stand, they are probably going to spend more, since they don't feel like it's already been an expensive endeavor to go to the movies (not only is it much cheaper, it's also time shifted away from the time you might want to get snacks for the movie, so you feel like you're there for free basically).

In the end, there's a lot of interesting ways movie theaters might be able to leverage these memberships to their advantage. That said, I imagine the distributors will probably push for slightly different payment contracts if that becomes the norm.
Not necessarily, a dropping admissions rate can be experienced even if the performance requirements remain the same and the number of unqualified applicants increases.
Ironic that you have to pay $3.99 for the iOS app.
Skip scooters are returning to Washington, DC after battery fires