skysight-inc/HackerNews huggingface dataset:
My system could be improved, but I wrap cronjobs in a shell script that doesn't output anything on non-error exit codes. It doesn't do de-dupe, it's a quick hack.

Wrapper:

https://git.eeqj.de/sneak/hacks/src/branch/master/cronify/cr...

In /root/.forward:

|"/usr/bin/envdir /etc/environment.d /usr/local/bin/email_to_webhook"

That email_to_webhook can be found here:

https://gist.github.com/sneak/2b7d5348efcf00e7537a69dccef93d...

The script isn't mine, I found it somewhere.

I try to set up my cronjobs so that they don't output anything to stdout (they can log to syslog, logs are collected) if the process doesn't need attention. If it shows up in slack, I deal with it.

To do what you're trying to do, I'd figure out some way of getting my cron output into Sentry, or maybe just Sentry-ify all of my cron processes like you would do with any other program, and then ignore their output/return codes when running from cron.
While I understand the reality, this is just how a lot of us did not imagine Internet should be / would be. It's 2020, we should have some way to connect them instead of hoping the victim's post go viral forcing the "Big ones" to act on that particular case.
Nylon isn't generally known to be autoclavable (at least I avoid it when I want to sterilize parts in house (R&D at a medical device company).
I think something like a $10K tax rebate per person would be more appropriate.

1. It'll help people cover their bills
2. It'll put a shit-ton of money out to help reboot the economy when this all blows over.
Student loan interest on government loans is suspended? Am I reading this right?

EDIT: Found some info, although it's unclear what exactly qualifies the loan: https://www.nytimes.com/2020/03/14/business/student-loans-co...
I don't think the compiler should have to check for overflows. but I also don't think its right to assume there is no such thing as overflows.
I admit this is just a shower thought, but airlines could really help in the current situation by transporting sick people across the world (e.g. from Italy to China) to even out hospital demand.
The Implications of Hitting the Hard 0% Interest Rate Floor
Good point, this reinforces the importance of owning your relationship to your users outside of the platforms that we are just share cropping on.
It's weird that we expect the law to be perfect yet we don't expect that of other things. I think you make a lot of valid points. However, I think you miss the forest for the trees. The point is, if you don't like this system, another one would need to be put in its stead. Short of any ideas how that would work, I'm skeptical of the claim that these laws are illegitimate. I guess you don't think we should respect criminal law either? Should we not put any white collar criminals away at all because so many go free? It's an absurd argument that you are making, ultimately.
Frankly, Rust is not the example I would take about successful evanglization: the numerous Rewrite It In Rust (RIIC) posts, the ones asking on an inquisitional tone why the project haven't been written in rust, or those who changed the topic to rust in unrelated discussion (that's literally trolling) that is happening in a lot of threads here are really off-putting.
Extensible doesn’t mean the code itself gets changed often. It would help to read up on SOLID [1] design principles and books on software development. Actually implementing SOLID would come by reading good code, getting mentored and from experience.

[1]: https://en.m.wikipedia.org/wiki/SOLID
Almost exactly 12 minutes for me as well.
Genghis Khan’s Treasures
This may seem redundant, but can you confirm that the video from the Japanese resident of Nanjing is a fairly accurate representation of what it was like in Nanjing before the restrictions were loosened? Also, you didn't say it, but I assume you actually live in Nanjing currently?

I have read countless comments online asking how can it be possible for China's case numbers to be nearly non-existent at this point and the Nanjing video paints the picture completely for me, an average American.

Another comment in this thread talks about symptoms and what it's like actually having the virus.

If a series of videos existed that showed a) what it's like having the disease (I haven't seen any videos showing that but the top comment on this thread as of now is a good first-person explanation of a "mild" case) and b) the lockdown response necessary to keep the numbers down or eliminate them altogether I feel like more people would be able to take this seriously here.

Of course I also watch that Nanjing video and realize that I don't see how it's possible that Americans would ever go for such extreme measures, which makes one think that the UK "let them get sick to get herd immunity" starts to make more sense.
Yes, pdf page 50 of [1] has a graph with a thoroughly worked example.

[1] http://people.stern.nyu.edu/jhasbrou/TeachingMaterials/STPPm...
I just realized I'm wrong about something that could be important: companies that survive might have to take on enough debt to do so that they are not able to compete will with new companies or companies that filed bankruptcy...

Any sane airline is going to try to file bankruptcy of some form now to protect themselves from new competitors that come around. There is bankruptcy provision for not paying debts for a few months while your reorganize. If you are in a tourism industry you should contact a lawyer and figure out the pros and cons of what you can do now to protect yourself in the future.
> society often feels taken advantage of by people with vast well-stocked fortunes.

Given that the rich will survive this with a dent to their fortunes, while everyone else is risking losing their house, jobs, health, and even lives, this isn’t a feeling, but the reality.

If the outcome of this pandemic is Capitalism devolving into greater wealth concentration and inequality, and the consequence of that concentration is ever increasing precarity and material harm for everyone else, it is terribly ill suited for this and all other crises.
It's not US, its the man is from a country under lots of international sanctions (for good reasons), that may have been to places with even more sanctions. The US laws prevent companies from doing business with those regions (again, for good reason).
So GitHub actions are probably based on some intel, and they blocked account only to comply with lay and not to get fined.
I mean, with all you know the man could have been to Crimea.
That would be considered corruption and would be normally be persecuted as government employees are considered to have a duty of care to the public they serve.
> Direct, debt free issuance of a citizens dividend to every US citizen. Coupled with a wind-down of the debt bubble.

There are three ways to make it possible: 1) issue government debt to pay for it 2) increase taxes to cover it 3) print money to cover it.

Number 3) will cause significant inflation, so it will effectively be paid for by tax on cash savings. High inflation is really bad, it’s a terrible idea.

1) has the problem of only working temporarily: you cannot indebt yourself indefinitely, at some point the service payments will become simply untenable.

2) is the only one practical, but the only way to make it work in practice is to increase taxes all across the population. In result, this will be $1000 monthly only for the very poor. For people around the median, this will balance out to zero or negative.

So, the only way this destroys debt bubble is by 1), inflation destroying cash debt. This is terrible: businesses will not have access to debt to finance operations, mortgages will not be accessible for people without significant savings to buy houses, etc. All around, a terrible idea.
> This is not a situation that will last long term

Why, then, can’t the airlines just issue bonds, like governments do in this situation? Large companies already do this to fulfill short-term dips (see https://en.m.wikipedia.org/wiki/Commercial_paper); this would just be the longer-term version. As long as the dip will predictably resolve, banks should be willing to secure the bonds.
One of my coworkers did a basic implementation of SDF (signed distance fields) based on the Valve white paper [1]. He was implementing smoothing for fonts but the work applied to most vector shapes. IMO, it gave exceptional results and he claimed it was a reasonably simple implementation.

1. https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007...
Just resolved it seems. Hit us in the middle of a huge enterprise demo. We’re moving off Heroku as fast as we can, but we need to make the jump to containerization first and it’s hard to prioritize infra projects these crazy days.
Tips for getting remote work right
opening sentence:

> precise, narrowly-understood terms

ha! if only zero trust were precise! By narrowly-understood, the author means "well understood by those that speak jargon, but impenetrable to outsiders". In this case though, there's a nice irony in that statement.
As well as the advice elsewhere in the thread about reducing soil fertility to prevent grasses outcompeting wildflowers, it's worth noting that many species may take more than one year to establish. Annuals like — in the UK — poppies and cornflowers are more likely to grow the first summer after they're planted so can be used as attractive cover whilst perenials are taking seed.
I have honestly no clue, seemed weird at the time to me as well.
heck significantly more in the nordic countries

I think some of them instituted programs to fix vitamin D deficiency a while ago:

https://www.nutraingredients.com/Article/2015/05/28/Sweden-t...

Damn, one would think in our data-crazy world stats like vitamin D deficiency by country would be one search away. But in reality, it's pretty hard to find and even harder to verify.
Yep, I have the RoboRock S5 and it's light years ahead of my old Roomba.

I honestly have no idea how Roomba is still in business
We had approximately 13 minutes of downtime across all apps. Even Heroku's own docs were down
Just to note if you are going to use SARS as a comparison:

SARS-CoV-1 completely disappeared after two flu seasons and hasn't been seen in decades now.
Because means testing requires a massive, and in this case ad hoc, bureaucracy established to evaluate who should get money. Good luck establishing that. Mailing out checks is actually cheaper and technically feasible, in comparison.

Additionally, not everyone in debt got there by way of lack of personal responsibility. One ambulance ride and ER would send many minimum wage earners into debt, even if they were responsible with their earnings.
I'd say write the least amount of code you can.

While you're adding a feature it's always tempting to go down the "what if" route and make some kind of crazy interface that is extensible and able to accept plugins and all that. The problem is you're likely making it extensible in ways that turn out to be useless down the road.

Just code the least amount you have to in order to achieve the current goal. That way down the road it's easy to delete what you did, or code up some changes to it. I personally think the worst thing you can do is write code that is all things to all possible future features.
First Patients to Be Dosed Today in Moderna's Covid-19 Vaccine Trial
It's a bold move to attack the main contributor of the opensource project upon which your business is based...
Github does a lot of search engine discoverability improvements for you, if you self host, you probably have to spend that effort yourself. Very few non-GH projects do even the minimum, page descriptions, social metainfo (description, nice preview), and that's really sad. If you do however spend a bit of that effort, you can absolutely do without GH.
One of the interesting questions would be how much a basic income would affect people's willingness to work, and we would not be getting that out of this experiment. In fact, I can't imagine anything useful we'd be getting out of that experiment, except for its effects in similar very dramatic circumstances.
I guess that answers the question, at least…
I'd like to see more information on what to do if you are sick. Even younger people have gotten serious respiratory complications and it would be great to have information on how to care for yourself or your family short of heading to the hospital and contributing to the overwhelming of their staff.
That should be fixed. Thanks for calling it out.
I'm in Tel Aviv right now. The Israelis are acting very civilly, helping one another, and are prepared. Don't forget, because of our neighbor problem, everyone has ventilators/gas masks, and shelters with provisions! Nearly everyone has served in the military. It's a very well-prepared nation.
Not even remotely:

1) Number of cases is not flat. Even by now.

2) There was a slowed growth in late cases.

It fits Weibull statistics. Late spread is random but responds to distance. (A'la Rayleigh.)
Do you think that might be hard to do given the content of the article you commented on?
Airlines should pull themselves up by their bootstraps! Maybe they can find side jobs during this downturn. Have they considered doing part time food delivery?
Makes sense, China currently has a shortage of global pandemic and Italy could stand to benefit by exporting it
The Neato and RoboRock vacuums are the only ones I recommend for their efficient navigation. Although I had three different Neatos die on me, so now I only use RoboRock.
Thats an interesting thought.
not sure if this will solve all your problems, but i am using https://healthchecks.io/ for my cron stuff (backups mostly). It only pings me (Email and pushover, but other options available) when a cron task misses a schedule... it can talk to other services, so it might help...
It's downright dangerous. Sometimes I have to hold my hand up to block my side view mirrors at night just to avoid being blinded. I keep thinking that people have their brights on. And at the same time, other drivers forget to turn their headlights on at night, and it takes time for my eyes to re-adjust enough to see them.

I never thought that I would want to see some regulation around maximum headlight brightness, but I really really do.
I'm not disagreeing, but it also helps to look at the EXPLAIN output (including things like width and rows) for queries to better understand what's actually happening. That helps build intuition, but like you said, major version releases can change that behavior. Postgres is usually pretty good at documenting those changes, though.
We do, but like many things here, it varies from state to state: https://en.wikipedia.org/wiki/Vehicle_inspection_in_the_Unit....

In New York, where I live, inspections are done by private mechanics (with a state license). There's a posted inspection standard (https://dmv.ny.gov/brochure/new-york-state-vehicle-safetyemi...). Lights must be "of an approved type," but I'm not sure how you can reliably check this in a shop.

Also, some mechanics are more stringent than others. Some are outright shady. New York sets a flat $37 fee for inspections, paid to the mechanic. The fee is low, so there's an awful incentive here to look for high-margin items that "need" to be repaired to pass the inspection. Brakes and windshield wipers are some of those items. A set of aftermarket light fixtures -- if they can even be identified -- not so much. (This is anecdotal, but I've experienced this type of inspection on more than one occasion.)

Other states, like New Jersey, do inspections solely at state-owned inspection facilities.

Regarding sales, it's not illegal to manufacture off-spec fixtures. It's illegal to have them on your car on a public road.
something seems to be wrong with the JHU dashboard.

i only get data from the mobile version, the web version seems to be unable to display data.

not to fud but the last couple of days the confirmed cases for US seems to be doubling daily. i hope this is an indication of changes in testing and reporting efficiency.

this modelling in this page seems to follow what has happened , and may provide a tentative view ahead.
This is cool. My friend and I once visualized our timeslot with our product roadmap on a circular timescale.

For those looking for something similar on your devices, there is an app called "Circa" - https://apps.apple.com/us/app/circa-time-zone-converter/id96...

Circa³ shows timezones, the overlaps, and your selected calendar events.
> individuals that have been spending all their earnings without putting anything away for a rainy day, and corporations too

In the US, half of all people having almost nothing to put away. Comparing this state of affairs to what corporations do with billion in profits is beyond parody.
Which are either comparably small, or can be deferred, by virtue of just... Not paying them on time. You're better off not paying your HOA on time, than not paying your bank.

People have expenses, too. Food, transportation, healthcare. Hard to deal with when you don't have a job. The landlords will have to deal with their other expenses, too. At least they aren't going to get their properties repo-d, after their tenants stop paying.
Write shallow code, code that is the simplest solution for the problem

If the word "architect" springs to mind then you are doing it wrong
Yeah, but no one wants a planeful of sick people being loaded up at their local hospitals.
I'm glad I'm not the only one who noticed a context is basically a form of dynamic scoping, but with a tendency towards weaker type guarantees. Dynamic scope is incredibly useful for cross-cutting concerns. However, I implemented this but found several problems in practice I've never reconciled.

The two big issues where:
1) "User managed" namespaces
2) Multi-process programs, or perhaps multi scope programs

The issue with "user-managed" namespaces is basically one of lexical scoping. In traditional dynamic scope, all variables in the dynamic scope are global. As such people tend to accidentally overwrite other people's variables. I've thought through some ways around this, but none have been elegant.

The more important, and foundational one takes some explaining. Consider some code:

type Work struct {
Ctx context.Context
Result chan<- int
}

func NewWork(ctx context.Context, c chan<- int) *Work {
return &Work{
Ctx: ctx,
Result: c,
}
}

type Worker struct {
c <-chan *Work
}

func NewWorker(c <-chan *Work) {
return &Worker{
c: c,
}
}

func (w *Worker) Work(ctx context.Context) {
for work := range w.c {
// We now have two contexts,
// the context of the work call, and
// our "local" context"
// Both are usefull!
}
}

func main() {
workers := make([]*Worker, 0, 10)
workChan := make(chan *Work, len(workers))

for i, _ := range workers {
workerContext := context.Default()
workers[i] = NewWorker(workChan)
go w.Work(workerContext)
}

http.HandleFunc("/bar", func(w http.ResponseWriter, r *http.Request) {
httpContext := context.Default()
work := NewWork(ctx, result)

fmt.Fprintf(w, "Got Result, %q", <-result)
})
log.Fatal(http.ListenAndServe(":8080", nil))

}

As we can see in the work function above, context is more than just your function chain. Now arguably dynamic scope doesn't need to handle this, but it is very commonly the case in CSP/etc. based languages our most relevant scope does not come from dynamic scope.
I mean, if we are talking 1 in a million, it proves nothing. All websites block users for different reasons (including being geographically in regions under US sanctions, in which case they have to block a user according to law, not their wish).
Right, but instead of defeatism, people ought to start self-hosting sooner rather than later.
A Maze in Abracadabra
The goal is create as many delays as possible, to maximize the duration and number of people who can stay home instead of spreading the virus. It doesn't address the root problem because we can't solve the problem - people will have to go back to work eventually. We're not a post-scarcity society yet.
better a perpetual with negative interest
It's borderline irrelevant. I'd want to see things like rent/mortgage payments alleviated or suspended for the duration.
IIRC "getting kicked out of their homes" is not a thing during an official state of emergency, it shouldn't be possible to evict renters for nonpayment right now. The same should apply for mortgage foreclosures, penalty interest/late fees on loans, etc - so if you can't pay these things because of the emergency consequences, you simply don't pay.

We need to tackle the financial consequences of the related economic crisis, but that can be done afterwards when all of this is over; right now what matters is tackling health issues and also the immediate financial issues of people being able to obtain core goods and services - and $1000 per person can buy a decent amount of food and necessities; let's sort out the rent debts when there's a vaccine available.
My understanding (based only on investor filings, I left Google long before GDPR was drafted) is that Google's plan is basically just to set aside several billion dollars every quarter for GDPR fines and pay them as a cost of doing business. Many of Google's critical product features wouldn't work without the "internal data free-for-all". If EU regulators really make a stink about it (rather than just setting fines that can be covered by profit) they'd likely just pull out of the EU.
They would certainly be paid for their services.
The Germans flagged 6 million jews during ww2. They should have self hosted
> I also feel that it's poor taste for a Russian living in an authoritarian state to liken github to the gulag.

I'm not saying that to defend Russia, but here the authoritarian state imposing unilateral sanctions to individuals and companies of a few selected states is the US... This is also sometimes done against EU companies as well. This needs to change.
He did not try chkdsk, the default tool to fix file systems on Windows?
I was hoping for X Window...
The quote that follows is from a once-popular proposal for batch auctions that was essentially nixed by incumbents that profit from complexity in the existing market structure. You may want to check out pdf page 50 of [2] for a detailed description of the demand curves described in the quote.

"During the batch interval (e.g. 1 second), traders submit bids and asks as price-quantity pairs. At the conculsion of each batch interval, the exchange 'batches' all of the recieved orders and computes the market-level supply and demand curves. If supply and demand intersect, then all transactions occur at the same market-clearing price."

The demand curves can be degenerate, which means we have to address two edge cases: "Bids and asks of exactly the market-clearing price may get rationed (pro-rata). If there is a range of market-clearing prices, choose the midpoint"

[1] https://www.cftc.gov/sites/default/files/idc/groups/public/@...
[2] http://people.stern.nyu.edu/jhasbrou/TeachingMaterials/STPPm...
That's not the reading I'm arguing for. The reading I'm arguing for is that it requires Congress to declare war when it is appropriate for Congress to do so
Well, hate it or not but they're an absolutely vital industry in the modern day. It would be better for the world to bailout the airline industries, than to not have airlines.