skysight-inc/HackerNews huggingface dataset:
The fugly state in objects is tricky. One way to look at a class is to treat it as a kind of coroutine. Consider some pseudocode:

class Stats
sum Num = 0
sum_squared Num = 0
count Num = 0

acceptNum(x)
sum += x
sum_squared += x ^ 2
count += 1

mean()
return sum / count

variance()
# I think this is right...
return (sum_squared / count) - (sum / count) ^ 2

But that could just as well be:

coro Stats
sum = sum_squared = count = 0
result = nothing
loop
msg = yield result
switch msg.name
case acceptNum
sum += msg.x
...
case mean
result = sum / count
...

We don't do objects like this. We really want a file object, for instance, to be something like:

coro FileReader
# Not opened yet
raw_handle = popen(...)
# Reading
...
if msg.name == read
yield read(raw_handle)
...
# Data exhausted
...
if msg.name == read
yield eof
...
# Handle closure
...
if msg.name == read
throw ReadOnClosedFile
...

(I think you could handle inheritance with a scheme like this, presumably a "subclass" would simply yield to the "superclass".)

What's nice about that is the state is explicit in the structure of the coroutine. Ideally, we'd have some sort of protocol types that reflect that we're accepting different kinds of messages at different stages in an object lifecycle. In this example, after a file closes, it's a type error to try and read from it.

Instead, we generally munge it with properties, depending on lots of checks instead of structure.

We can solve state through more classes, of course. The Builder pattern handles a specific case of this quite nicely, you have one mutable construct that then returns an immutable construct.

But to use that more universally would lead to a profusion of classes.
That's equivalent to wrapping an enum in a class. Emulations of type hierarchies without OO often fail like this, having a A-or-B be literally the same type so losing out on type safety/forcing constant rechecking of the discriminant.
You're getting it wrong and you're confusing everybody. Detergent isn't non-toilet soap. Toilet soap can also be liquid soap. It took me all day to figure this out and understand what you were talking about.

Under toilet soap:

> In a domestic setting, "soap" usually refers to what is technically called a toilet soap, used for household and personal cleaning.

I'm not sure if that also includes detergent like dish detergent, but it's certainly not non-toilet soap.

Under non-toilet soap:

> Soaps are key components of most lubricating greases and thickeners. Greases are usually emulsions of calcium soap or lithium soap and mineral oil.[5] Many other metallic soaps are also useful, including those of aluminium, sodium, and mixtures thereof. Such soaps are also used as thickeners to increase the viscosity of oils. In ancient times, lubricating greases were made by the addition of lime to olive oil.[6]

> METALLIC SOAPS ARE COMPOUNDS OF ALKALINE metals or heavy metals and monobasic carboxylic acids containing from 7 to 22 carbon atoms. The water-insoluble metallic soaps are of particular interest to the coatings industry, although potassium and lithium soaps have limited water solubility.

They can also be lubricants for machines and you don't want to use any of this for cleaning anything at home.
Grey sun makes it B/W!
Going on a recess during a crisis is tantamount to desertion.
"Someone on CNBC noted that municipal bonds are being sold. That isn't mom & pop investors adjusting their portfolios: It's someone who needs liquidity."

People on investing forums often say that total bond and intermediate muni bonds are "the same, because the durations are the same", but the risk profiles are definitely different and that is not often discussed. Here's an example of why. I'd be curious if anyone here knows what's going on with munis.
Yep, and for good reason: they absolutely should keep working (and spreading the disease around) if they have it, because they cannot afford not to. This is the consequence of having a society where there's no real social safety net to handle crises like this.

Personally, I'm a well-paid tech worker, but even for me, if I'm quarantined, my company policy is that I cannot come to work (nor can I work from home), and I must take either PTO or (if that's exhausted) medical leave of absence (without pay). Luckily, I'm single and frugal, live well below my means, and have lots of savings because I'm somewhat paranoid, so I can easily live for a few months without pay, but this just isn't true for most people, especially people without families who aren't overpaid tech workers like me. So I certainly cannot criticize people at the low end of the scale who avoid getting quarantined: they have to do this to survive. If we don't like this, then maybe we should have done a better job voting for leaders who would handle health crises better and set up social safety nets for things like this.
Before rust, I would incrementally evolve an incomplete design into a complete design (building a tree by building leaves, branches, and a trunk and then assembling them.) In rust, my early incremental versions would have lifetime issues that I used to not worry about until later. Now I start with a very small complete version that I make bigger (building a tree by increasing the size of a sapling.)

I do everything this way now (JS, python, etc...)
An open call for a compilation of 20-second hand washing music
Working Remotely in Northern Italy During the Coronavirus Epidemic
Assuming that revolution means sidereal year, this discussion thread is speculating about how minute the changes in the sidereal year would be, and in what direction they would have been. I don't think there's confusion about the fact that the orders of magnitude larger change as discussed in the article is in the sidereal day, except perhaps for GGGGP's comment that started the thread.

>>>>> Wasn't the Earth's revolution on a different period back then too?

>>>> There is no force comparable to lunar tidal forces affecting the period of revolution

>>> But there are... The earth orbiting causes tiny tides on the sun [...] Over time, tidal drag will tend to make years longer.

>> Wouldn't tidal drag make years shorter?

> What's changing isn't that, it's the sidereal day.
Disease asymmetrically impacts the poor. Guess what they vote?
You have to pay to be tested in the US? I'm incredulous.

This will mean the virus sticks around quite a bit longer, and that has a material affect on the global population.
I have a hard time faulting the CDC for the response overall, but I just don't understand why they decided to make their own test at the beginning. Was it bravado? Did they think the 70% accuracy of the WHO test wasn't good enough?

If they didn't make their own test, they wouldn't have fubarred the manufacturing, which would have given us more tests.

One of the CDC's main goals, if not the main goal in this, is to spread out the panic. Given this goal, the fact that we're in flu season, and the lack of test kits, I can understand the stringent testing criteria. They choose the best option in a bad situation, and I think they've done a pretty good job. However, it seems like a lot of problems could have been avoided if they just used the WHO tests.
Interestingly enough from another current HN article posting [1]: "I have read accounts in the press that Dr. [Anthony] Fauci isn't really allowed to speak until Mike Pence has approved his messaging."

Be interesting whether this is official or behind the WH's back, this BBC article doesn't have too many details.

[1] https://news.ycombinator.com/item?id=22556600
But that's not true. While lethality is estimated at tops 3.6%, the cases requiring hospitalization, including breathing apparatus, etc are quite high, and it WILL overflood the capacity of hospitals in virtually every country that didn't take really really serious precautions, of which there are only a handful.

It will be a big problem both in Europe and in the US, because they are starting to take measures only now.
I have a hypothesis that Bitcoin post-2018 is largely held by a handful of major banks as a way to sidestep anti money laundering rules. It's widely known (and proven in court) that the major banks routinely serve billionaire-class criminals (real criminals like drug cartels and terror groups) and large crypto holdings and prop trading operations allow them to move money on and off their books with relative ease.

A slowdown in money laundering activity (as would be expected during an extended period of restriction of goods and services) would lead to a rapid drop in crypto prices.
How is no one is worried about viruses in moving water vs a puddle? (I've learned a lot about survival over decades, you can't tell me this is new information)

Just like the panic around COVID-19. China, who has more infections and more deaths than anywhere else combined, is already calming down. Yet the rest of the world is just starting in full panic mode.

Some people (medical leaders and scientists, not nut cases) are 100% convinced we should panic. This is not rational.

We have _scientific_ proof that COVID-19 is not a big deal. Yet here we are.
That's not true for tests developed in the lab they are used in.
If she testifies in open court, wouldn't that just lead to more charges against her?
AQR disagrees with you: https://www.aqr.com/Insights/Research/White-Papers/Pathetic-...
It's an essential cleaning supply for that sort of thing.

Another important point is that if you need something particularly sterile (well beyond what is needed for everyday applications), pressure cookers are essentially a home version of an autoclave, and many of the stronger ones are actually pretty decent at it. Be careful of course though.
Well, an e-trade account isn't typically considered an investment in and of itself, either, but that doesn't mean it isn't a reasonable thing for an investor to have.
It is, but there have been major bureaucratic delays, and no one was willing to step up and say "forget it, we are doing it". In addition, there have been shortages and/or problems with RNA extraction reagents/kits (this is a ssRNA virus) as well as viral nucleic acid sequence for positive control (positive control is critical for this type of testing).
Chloroform, phenol, and water are all availible in tanker car quantities.
Public universities in GA to remain open because of “low-risk” from Covid-19
This is the first bear market (drop of 20% from a recent peak in broad-based index) Bitcoin or the crypto-currency market has ever seen, 'traditional' or not, so it's really uncharted territory.
For what it may be worth, our church also has a very good (edit: free) 12-step program for any addiction (like porn or substances): https://addictionrecovery.churchofjesuschrist.org/steps?lang...

I think even just reading it, watching some videos, is worthwhile, but the complete program can be effective.
I know at one point apple would not let you do this even with a spouse's account. Once they knew you were deceased they closed the account. I was wondering if this was still the case.
Austria alone (8 Mio people) made to date more than 5000 tests, the US 11000....
Yes, it is RNA virus so it is an extra step that is not necessary in many other PCR based clinical tests.
Piggy-backing off this, does anyone have any tips for navigating the news when there's a large undercurrent of panic beneath the surface?

I get that the news has the motto of if it bleeds, it leads but I also need to know the major events occurring in the world.

Personally I've been trying to view the news as something that is more panic inducing in such a trying time. I've tried to recognize that the language being used is coming from people who may be just as scared as anyone else, and that feeds into a self-reinforcing loop.

I've also found that reading Reddit's comments are anxiety-inducing, so I've tried to stick to the study-and-facts-only subreddit: https://www.reddit.com/r/COVID19/
Sure, but many people have colds. Did you report a runny nose? Did you have a fever? If yes and no, then it's probably not COVID-19 and there's not much point testing you.

Regardless of how reasonable things seem at the moment, when it comes down to it I trust the Australian authorities and healthcare system in a way that I just don't for the US.
This is another misconception.

Gold can be held, yes. It also is expensive to verify, transport, and protect. This has proved problematic for holders of the past. A paper system had to be built on top of Gold, which severely diluted the value proposition as gold was confiscated and stockpiled centrally. Practically speaking, very few individuals hold gold and the utility of doing so is limited when you consider how liquidity in the gold market functions.

Bitcoin is a different beast. You hold the cryptographic keys (like a password) which let you move Bitcoin to someone else’s address (under their password). You don’t trust anyone: Bitcoin is verified by math, not humans. It is tangible in the same way that owning google.com is tangible (and unarguably valuable). Bits and bytes exist on a global network and only you can move them.

When compared to Gold, Bitcoin is interesting because it is highly transportable, easily divisible, and censorship resistant. Consider this: Bitcoin let’s you store $1T USD of dollars in your head, transport it anywhere in the world, and there’s not a single thing anyone else can do about it.
There were a lot of 2G pager systems used for emergency alerts
I was pushed several times to get a patent when I worked at IBM. I never did it because I didn't think anything I really did was an "invention". I think they have a whole team dedicated to ghost writing patents.
Wouldn't Italy be a worst example than Spain?
If you print $100 in your basement it is counterfeiting, punishable with 25 years in prison.

If you print 1 trillion as a banker it is called" "a bold initiative to calm market tumult".
I like the styling of traditional wristwatches more as well.

Have you seen the Fossil Hybrid watches? They look like a normal watch but can do ALMOST everything a smart watch does, including display text messages.

https://www.fossil.com/en-us/products/hybrid-smartwatch-hr-c...
Where does that money come from?
You're not considering the upside of relaxing these regulations. There are far more legitimate labs than there are theranoses.
> as a student it's a great way to beef up your resume

Really? I wouldn't view that as a positive unless we're talking about law students I guess.
True for much of it, but if you look at something like cord.h, it's almost free of template programs. Google C++ application code isn't all that spiffy, to be honest. I would say most of the code is dedicated to stuff that nobody outside of Google is going to care about. I think the base libraries are more interesting.
No. I'm referring to a moderator making a statement 'this has been detached', not some misunderstanding or confusion I'm having. You can find it on my profile recently.
doesn't mean you can't fly to the US from there.
Novel coronaviruses and high-lethality flu strains aren't going to stop appearing, and if anything are going to become increasingly common as the world population increases and becomes ever more interconnected. Putting a time limit on the social safety nets needed to deal with them means you have to rebuild the entire structure again every time it happens, and the only benefit is cutting costs by a few billion dollars a year in between outbreaks (less, when you consider training and turnover costs from creating an entire program from scratch and then destroying it every time). The US takes in upwards of $3 trillion in taxes: we can easily afford it, just shut down a military base or two somewhere.
>There are many ways to enjoy this story.

I'd suggest going with the visual novel anyways, since it has a bit more meat (like multiple endings) even if the anime is a pretty faithful telling. It's also on so many different platforms (including iOS), so it's pretty accessible.

I'd avoid Steins;Gate Elite like a plague though.
I hear some echoes of domain driven design / development in your comment. Have you looked into that?
The Good, the Bad, and the Interesting
I strongly disagree. Testing is much less important than the social net.

We will not be able to test everyone even if it's free, and we don't need to test everyone to flatten the curve. We need to keep people insulated which can only happen if people are able to survive while insulated.
This person does not exist.
To get the callstack before the exceptions unroll, on Windows you can utilize https://docs.microsoft.com/en-us/windows/win32/api/errhandli... but then you would have to skip few specific exceptions (that are normally issued, since these come really fast, and you'll see them)
Ah yes, the monolithic "media" run by liberal, capitalist organizations are "far-left"
Colds and flu have different symptoms.
Oh my god this is hilarious.

It encodes your message into the bill of rights.
Photopea is not a cloud application.
When market crashes, volatility shoots up through the roof and significantly increases value even for such deep out-of-the-money options, by far more than the difference between strike and underlying price. Essentially he made most of that money on volatility spike.
In Australia? Honestly, no. The public system treats everyone pretty much the same, I'm sure he had to wait in the same lines as anyone else.
Slackware still lives. I'm running it on my daily driver right now. I actually just started using Slackware a few months ago too, so it's gained at least one new user in the last 12 months.

Many updates are pushed to https://slackbuilds.org/ every week.

Things definitely seem to move slower than on other OSes, but I much prefer it that way. I still run a supported LTS kernel and a supported LTS Firefox release; as long as security updates keep coming I don't feel the need to upgrade to newer software by and large.
I know your comment is, at least somewhat, in jest, but it's kind of true.

My wife's boss has been spending a good bit of his workdays lately tracking and buying gold. But not buying physical gold. Just buying a promise from some agent that he owns some gold. Of course, that's not going to do him any good in a crisis; you can't eat gold, you can't drink it, pretty sure you can't wipe your ass with it. You can only trade it. And when resources become scarce, utility becomes far more important than value. And gold certificates, or whatever, will become even less desirable.
And there is nothing in that text that prohibits establishing a real social safety net with protections for workers. “Just amend it if you don’t like it” is a straw man in this context.
“Bitcoin let’s you store $1T USD of dollars in your head, transport it anywhere in the world, and there’s not a single thing anyone else can do about it.”

As of now the $1T can also disappear and nobody will even notice.
You're asking deep architecture questions that sound simple but require a lot of consideration.

* choose a front-end language your team is comfortable with, because it will need to be written quickly and be maintained
* choose a back-end language for the same reasons
* decide whether you're going with an SPA and start splitting requirements
* start with `ffmpeg` as your transcoder because it's free and easy
* plan for the scale you expect
* auto-deployment on the cloud for the machines converting video
* messaging so the app can add transcoding jobs to the queue, and the transcoders can take jobs from the queue, and status of jobs reported to the user
* research royalties you'll need to pay for the various types of video (MPEG-LA is a good place to start for h.264)
* do this _early_
* choose your tech based on your team's experience and comfort
* sometimes you'll need to hire to expand the comfort
* prefer OSS over commercial to start, but be prepared to spend money for support
* unless you need some specific functionality that is only available commercially

And a hundred other things :)

I've done this a couple of times for companies in the past (Primerica, ConocoPhillips), including transcoding _during_ uploading a couple of years before anyone else (like encoding.com) was doing it (totally bragging, yes).
You don't go in to get tested if you are suspected of having coronavirus. If the management is still in the contact tracing phase, they will send someone to you to take a swab.

If you have symptomatic CV and you go to a hospital waiting room to be tested, you have done a bad thing.
You can only opt out if you're belligerent and willing to waste your time.
On a trip back from Spain, flying in to Dulles, the agent immediately took my picture, even though I specifically said I did not want to. The agent said I had no choice, even though I knew this was false.
I was then escorted to a supervisor who questioned me for ~20-30 minutes. He said that if I had nothing to hide, I shouldn't need to worry.
I argued for as long as I could, but I had a connecting flight and needed to leave.. so I just gave up.
That would be fine, but it seems that fairly often, once they need those safety nets and not "those other people", those principles no longer apply.
Show HN: Bail While You Can – Escape Coronavirus in Bali
I love that style of writing. Neal Stephenson used it in his earlier work to great effect.
Well, what I'd say to that is:

* Somebody maintains that code. If it is only you you have a bus-factor of one if none of it is actually reviewed. If it is not you you are imposing a single persons idea of what the business problem is and how it should be solved on the maintainer, which they might not agree with

* Personal development depends on realizing when you are wrong or have used the wrong tool. If nobody challenges your decisions you will probably not realize that as often (or at all) and therefore not improve as much.

* Solving business problems means solving problems for a business. Usually businesses evolve over time, so the business problems might change. Who will understand the code in that case? How do you know the code is understandable to other people if nobody else reviewed it?

And as for the house example: before buying that house I would definitely hire somebody else to check it, and that is legally required in some countries. I don't trust anyone to rate their own work.

In this case the person who hired your consultancy bought the house, and they should definitely have an expert that did not build it check it.

---

Just a FYI: I'm also a consultant, but work on a project where we have discussions about how to structure the code and do code reviews and so on.
Rojo: Let Roblox developers use professional-grade software engineering tools
The old version language was bad to the extent that after playing with the tool for a few hours my thought was "why did you cripple such a good idea with such a bad language"??? I seriously considered digging out the Dragon Book to write a better language front end to it.
Very difficult, which is why work should have started, ahem, four months ago. Now we are, indeed, hopelessly behind.
Column based RNA purification is more reliable and more appropriate in a clinical lab. Qiagen is triple* overtiming production to meet demand.

*unscientific guess for literary effect
The headline misses the nuance that it's risking "attempted murder" if you don't self isolate, even if nothing comes of it. Surely there's some less drastic incentive. "Reckless endangerment" maybe?
so monadic tutorials had prior art..
I'm honestly not sure. Italy has some conditions that made it more vulnerable, like a larger portion of its population being older.
Italy and South Korea managed to scale up widespread testing and their economies are proportionately much smaller than the USA for their population.