skysight-inc/HackerNews huggingface dataset:
I take your point, but let's be fair. My attitude was "this code is bad and I'm going to demonstrate my skill by improving it" when it should have been "please teach me what design and implementation concerns went into the choice of algorithm here". I was lucky to get a gentle and thoughtful correction for my presumptions.
Exactly, it's akin to a run on a bank - if all account holders of any bank withdraw all their money at once - NO bank would cope with that. Though a run on toilet paper just hit the supply chain, so you get these bumps. Come mid to end of summer, there will be a surplus of toilet paper due to the run of panic buyers fueling panic buyers all over-stocked.
There are various memes floating around about how there's going to be a surge of kids conceived during this quarantine/social distancing times.

In short, it seems likely people are going to have more sex when they are stuck at home.

OTOH, I know people with children who are going crazy. I don't they are encouraged to have more children.
Show HN: ActionsPanel – Manually Trigger Your GitHub Actions
Hi all!

I wanted to share a small project that I've been working on with a buddy.

https://www.actionspanel.app/

One of the problems that currently exists with GitHub Actions is the fact that there is no way to easily trigger your Actions unless you cause some kind of GitHub event. This could be pushing a new commit, or creating an issue on a repository. But if you just want to run an arbitrary action, there's not currently a good way to do that.

This is a well known feature request:
https://github.community/t5/GitHub-Actions/GitHub-Actions-Ma...

GitHub somewhat recently added an API for `repository_dispatch` which is an available trigger for a GitHub Action. There are many blog posts that explain how you can create a Personal Access Token to send your own `repository_dispatch` via some curl command or postman request.

For example:
https://goobar.io/2019/12/07/manually-trigger-a-github-actio...

ActionsPanel uses this same API but does so with a GitHub App token so that you don't need to worry about managing your own PAT. This also makes it much easier to trigger your actions across teams with multiple people. Then you don't need to share the PAT with each other or each create your own PATs.

You configure your buttons with a declarative yaml file that you leave in the repo, and ActionsPanel will read that file and dynamically create your UI for you to trigger your actions.

We'd love to get your feedback on this project. It's very simple still but solves the core problem of triggering your actions.

If you do have feedback or any questions, feel free to post in this thread, or email us directly at support (at) actionspanel (dot) app

Looking forward to your feedback!
Actually there were reparations.
It's actually even worse than that on the ground in HK right now.

Ban on non-residents. Groups of more than 4 people are broken up. A growing skittish-ness about "foreigners", (thought to be the people who brought the second wave of infections to HK). Etc etc.

HK and Tokyo are not examples to be emulated, they are examples of what we should be trying to avoid.
To be fair, in my experience it is often the case that asymptotic complexity is a good proxy for real-world performance, even for small values of n. Not always, but often.

I think it's fine that the academic courses focus a bit more on what's better in theory than in practice, because there are always caveats to "in practice"; the person who writes the special-purpose genomics libraries was also once a new grad.
I've been coding in Python for 15 years, and from what I see in the numerous places I get to work, yes, it worked.

It's just that aghast people are the most vocal. You don't hear the 90% of people that are happy. They don't take the time to speak up. But the unhappy complain all the time.
Exactly. A simple online search for the phrase "Facebook SDK" will reveal plenty. It's not like you need forensic accounting level research to see that the SDK does much more than provide a simple login mechanism.
> Affinity, you pay like, what, fifty bucks, and you’re done.

It’s currently half off, so you can grab it for 25!
I don’t even understand what the distinction is. For instance PG&E in California is a private company but regulated by the government. I pay for service and if I stop paying they cut me off. Isn’t Comcast internet service the same thing? A private company but regulated by the FCC.

The only difference I can think of is there are still multiple providers for internet service available in most places. Would making internet a public utility just mean giving a government granted monopoly to one provider per region and forbidding anyone else from selling internet service?
The same reason that there are spikes in child births 9 months after a long snowstorm.
When you do big O analysis you get best case, worst case, and average case. You have to do some thinking about the structure of you data when doing big O analysis.
Zero competition in an egregiously high amount of locations in the United States.

The internet is a fundamental human right, like access to water and power. It is now required by most school systems. It should be protected by Net Neutrality legislation and in places with zero competition, treated as a utility. Or, at minimum, the laws should make it easier to allow for competition — such as outlawing geographic cable internet monopolies, outlawing cable company monopoly deals with cities and counties, and providing access to physical infrastructure for new players in the space.

Your anecdote, while understandable, doesn’t apply to all. My utilities are just fine with customer service just fine.
Right, if there's a resurgence I'm not participating. The cure would be worse than the disease.

I encourage susceptible populations to quarantine themselves, rather than everybody quarantining. We must work, date, and life must go on.
>Q: Do you have a theory on what’s going on?

> A: Not really....

I wasn't familiar with Reply All and only listened to this episode after it was mentioned in a comment here on HN about two weeks ago.

P.J. Vogt is selling himself short. It is a fantastic piece of investigation. The story unfolds beautifully. I had a smile on my face the entire way through. When they finally played the song at the end I grinned from ear to ear in delight.

What the hell isn't to love about it?
> As of GCC 10, that option text is now a clickable hyperlink (again, assuming a sufficiently capable terminal)

Seems like mostly only GNOME Terminal and iTerm2. Here’s some that apparently won’t work:

- Konsole

- Kitty

- LXDE Terminal

- MATE Terminal

- hyper

- Windows Terminal

- ConEmu

- PuTTY

... so it’s kind of weird to suggest this is an accepted standard. Especially since some of the discussions in feature requests suggest they will likely not implement it due to security concerns or otherwise.
If A's stabbing of B causally led to B's descendants being poor and B's descendants being rich, then we should obviously transfer some wealth from A's descendants to B's descendants. That's just good economic/political incentive design.

EDIT: To be clear, I'm not claiming anything about this Dutch case, I'm just playing along with your contrived example.
I hope we are not on an exponential curve with this too. Covid reminded us how exponential are surprising.
> it's always sea level rise this and coastal floods that. i'm fucking sick of this idiotic rhetoric.

The true picture is closer to "sea level rise, coastal floods, changes of average temperature -> a chunk of the planet suddenly becoming uninhabitable -> mass migration -> lots of suffering, starvation, death, possibly war". But maybe this chain of reasoning has too many steps for a regular person to follow. Maybe the communication needs to focus on "no more food X in stores once average temperature in place Y goes above Z degrees"?
Login/pay walled
New method for show subtitles with speed-reading [YouTube]
I've been trying to keep up with all the new photography concepts in this thread, but "Faster Glass" is throwing me off?

How can glass lenses be "faster?" Allow you to shoot with a faster shutterspeed?
Same in UK, least form my experience - was a blip and all those who overstocked now saturated and with that, not an issue - just the run hit supply chain demand and gave the impression of a shortage when it was only a short-term shortage due to panic buyers over-stocking.

But people worried about non-fire safe cladding seemed equally happy to fill their homes with flammable paper - the hypocrisy of madness plays out in many ways.
There is a dereference past the bounds of the query in one case in the last code sample, but there is no deference beyond the bounds of the source string.

You're probably thinking in C# or Java; remember that in C the convention is that a zero char ends strings. If the source string is shorter than the query string then the code will encounter a zero char in the source string at the same time as it encounters a non-zero char in the query string, and the inequality will end the loop before the beyond-bounds dereference.

There are other defects; can you find them?
“ Hong Kong and Singapore were early examples of places that were able to contain the spread of the virus”

coughTAIWANcough

Again for the people in the back:

T•A•I•W•A•N
"Please note that these books are not protected by copyright in India, either because their copyright has expired or because the books are not covered under the Indian copyright laws. Anyone located in India may read and download them."

"Readers not located in India must check the laws of their territory before downloading any of the content on this website."
I’m generally a libertarian, anti-bureaucracy type, but this is an issue I align with. Having the government provide the bulk of last mile dumb fiber seems to be the best way to move forward internet speeds.

Opponents always point towards the remarkable improvements in wireless internet speed, but those of us who understand the technology know it’s not a replacement for fiber. Why compare simple, vacuum packed download tests? Of course people don’t utilize their upload speed: it’s miserably slow! Of course they don’t use more bandwidth: they get charged an arm and a leg for it!
Truck Border Crossing Times Map of Europe
There are though, when it checks for '\0'.

`starts()` looks like it's not checking if len(source) < len(query), but if, say, query="foobar" and source="foo", when i = 3 the line

if (source[i] != query[i])
return false;

will evaluate to

if ('\0' != 'b')
return false;

so `starts()` will correctly return false.

Always if len(source) < len(query), we'll return false when we get to i=len(source), because source[len(source)] != query[len(source)] as source[len(source)] == '\0' and query[len(source)] != '\0' since len(query) > len(source).
> Only something that middle class or higher can use

I think it's more nuanced than that. I've stayed in AirBnBs that were clearly being run as a major source of income by people who otherwise didn't have many options for income (remote areas, Native reservations, etc.). I remember staying in a spare structure in the Navajo nation a few years back, it was run by an elderly couple who were looking after their 3 granddaughters and literally had no other way to make income to support themselves or the girls. They said AirBnB and a prepaid cell phone had literally turned around their entire economic situation.

Separately, it has enabled many of my friends who are on the lower end of the economic spectrum to afford to go places with their family as AirBnBs are usually cheaper than hotels and generally larger and often include kitchens (further saving costs eating out while traveling). One of my friends in particular (in his 40s) took his first out-of-state family vacation ever due to this. Before this they never ventured further than a few hours drive from where they lived because they simply couldn't afford it.

I also entirely agree that they need to be better regulated, and that they can have a deleterious effect on local housing prices. Japan seems to have taken some serious steps towards finding a good balance of regulation and availability for these things. On a trip to Japan we stayed in hotels and AirBnBs and in every case the BnBs were cheaper, larger, and generally better than the hotels. However, they're only allowed to use them as short-term rentals for 180 days per year, must be licensed and have other restrictions on when they can be used. [1]

I don't know if Japan's approach is the right one, but the number of AirBnBs available in Japan make me think that it hasn't destroyed the legitimate marketplace for this type of side income (where AirBnB is at its best) while also making it much harder for people to soak up the local rental market as speculators with "accommodations" being used to reduce risk in their investment portfolio.

1 - https://www.asiaone.com/asia/airbnb-says-forced-cancel-booki...
I didn’t even know Affinity had a student discount. I’m not even a graphics designer and I have it for I have it for all my devices. It’s great to not have to pay a subscription just to tinker around with Photoshop-level tools, and I am very glad that it exists and is so high-quality.
>Other thank some claims about land management and herbal medicine, what were that not only more advanced in but FAR more advanced?

Snark detected.
Declassified: CIA Explains Consciousness, Meditation, Holograms, Telepathy
Hint: what is the correct behaviour of this method when given empty strings? Every string contains the empty string as a substring.
The cure would likely be worse than the disease for you.

Are millions of people dying an acceptable trade-off for us to be able to date?
Yes i know, my comment was really a jab at semver as i'm a huge proponent of keeping backwards compatibility.
Learn on their own they must.
Amsterdam has a museum on how Dutch activities in their colonies financed the expansion of the city and the construction of the canals.
It’s a luxury only for the wealthy? My parents went on walkabout through the 60s and 70s dragging their kids behind them (starting about age 3, and not even two for my sister) and it was great. All over South and Southeast Asia and Western Europe. We certainly saw the countries in ways that would have been invisible had we been staying in luxury hotels, or spent the whole of the first 15 years of my life in Australia.
They are insultingly low amounts and almost seem like adding insult to injury.
On the other hand, your time is never free - to the point that no matter how much you pay for a math book, you will end up paying incomparably more with your time spent studying it.
It seems to think I’m going via a proxy (45.60.155.107), which is in California, operated by Incapsula Inc

Sounds likely
Now that governments have proven that people will let them imprison everyone at any time, just by saying "virus", they're gearing up to do it again, all the time, forever, whenever it would be convenient.

After they've done it a few times, they'll just make it permanent.

By everyone agreeing to huddle terrified in their homes over nothing, we have permanently ended free movement and free assembly in our societies.
Of course, if this code were running in a server, or if it were part of a library that was widely used, then suddenly you have the potential for a DoS vulnerability.

The narrative would then be that the microseconds you saved all those devs over the years were wiped out when hackers took down your system.
what I know about US is that localities allow for 1-2 providers to run cables, wonder if similar thing is in place in Canada. So while FTC can make noises, nature of anticompetitive pricing is very antifragile.
Being an island nation is definitely an advantage in this regard.
Fuck China.

If Iran had intentionally spread this virus the way CCP has done, there would already be war but because it came from China, here we are worried about being called racist.

It's quite jarring when you compare this to how the world reacted after 9/11.

When I hear people say things like "China bought the world time" it's infuriating. The CCP needs to pay.
C++20 Coroutines
Huh?

From first principles there is no reason why anyone should think that their won't be 2 billion vaccines tomorrow (perhaps via divine intervention). Heck, from first principles I'm not even sure Australia exists (Maybe Australia is a giant hoax. After all, i have never been there.)

Proving things from first principles is really hard. The fact you weren't able to disprove a statement from first principles is not strong evidence the statement is actually true.
> Is it really so hard to help other people learn, and to accept that the only advantage you have on them is starting earlier?

If only the world were that black-and-white. It took me a long time to realize the habits I learned from my father in this area were toxic. Not everybody got the same upbringing you did, it sounds like yours was more advantageous than mine in that respect.
It's amazing how many people copy-paste knowledge without doing the most basic logical checks on it.

For example, nobody yet explained to me how flattening the curve is gonna make much difference when say NYC has 3,000 ventilators, and the average time on a ventilator is 20 days. If 1/100 of NYC's 8 million population need a ventilator that'd still be 80,000 ventilators needed.

So flattening would reduce the deaths to 74,000 instead of 77,000?

[To be clear I'm not saying this math is exact. But I am saying I am owed the actual math by people who want me to change my life over it]
Sure, but if a non professional takes a bad swab on average it wouldn't be safe to talk about deploying these to workplaces and send people back to work like Trump wants to do. Even less if you think about these people testing positive after an hour of commute on public transport.
The "malice" aspect is a great one and I did not go into that in this post because of course back in the 1990s we were not at all concerned that someone would maliciously craft inputs that would slow down this algorithm.

In modern code we'd want to do a threat model that considered the consequences of untrusted inputs.
Cause and effect, it will settle down in week or two and those who overstocked won't be buying more and those who are responsible and now short due to the hoarders of panic are slowly getting back to normal.

But certainly an insight into the culture and humanity of some people. Alas we have a society that seems to always see good responsible people suffer at the hands of the irresponsible.
I always envy people who work on this level instead of cobbling systems together that integrate several systems all with their own set of flaws and you can be happy if you can make them work together somehow. The algorithm stuff seems pretty simple in comparison. A very local problem that can be profiled well and you can understand most of the factors at play.
Something I saw on Twitter the other day:

"in 9 months there will be a baby boom, entirely consisting of firstborn children"
That's great for iOS users, but it doesn't mention anything about the Android client. Nor do they discuss the tracking that the webapp still does even though they explicitly state they still allow FB login via browser. Isn't this more of a sorry for getting caught rather than an actual apology?
Has the author never heard of the Lifeline Program for Low-Income Consumers (aka Obamaphones)? This program already provides a benefit designed to provide free access to mobile internet. The $10 per month subsidy may not seem like much, but it'll buy you ~1Gb per month via Tracfone, for example. It's important to note that this program includes a requirement that "Obamaphones" be hot-spot enabled so that they can be used with laptops (i.e. by kids who have homework on school-provided laptops).

https://www.fcc.gov/consumers/guides/lifeline-support-afford...
Cat found infected with Covid-19 in Belgium
Except it is a struggle. It's often a struggle to get newer devs to stop wasting time, it's often a struggle to get them to focus on the problem you're trying to solve instead of the new library all the cool kids are using, etc.

I agree with the "more than they deserve" mentality, but let's be honest here: it's a struggle.

We've all been through it as new devs, and we'll all help new devs struggle through it as well.
>>The court recognised in its ruling that the sums granted the relatives of victims were “disproportionate” to the suffering caused.

Makes no sense, unless the court couldn't give more by statute. He saw his father killed and was deprived of his love and financial care. This is a joke, after 8 years, $11K
> I also don't understand how do freelancers stay calm, don't they basically have to be in a job, client-seeking mode all the time?

I am pretty sure that most of them are prudent enough to plan for this. Employees might not need to think for these kind of situations but freelancers frequently do.
Technically this is clickbait - the title's implication is that we'll have more lockdowns in the future, while the article only talks about how the current lockdown will ebb and flow. If something is lifted and reinstated its really the same lockdown, not a new one.

I was hoping to read an article about the potential of other coronaviruses or threats that may cause global lockdowns in the future.
The headline's meaning is obvious - it's clear what you are doing.
I think many would love if Twitter was partitioned by age - certainly make it less toxic in many respects.
It's also hard to make a strong case for it not being a significant factor, even with cherry picking.

In any case, even if killing someone's family members just so happened to help increase their country's GDP in the long run, that doesn't mean that they shouldn't be compensated the killing of their family.

When thinking about what we "should" do here, we're really just thinking about what policies would create the most ideal incentives in service of creating a better world in the long run.
Huawei (and probably others) experimented with using multiple cameras to increase light sensitivity. They used monochrome sensors for luminance data along with color sensors. Recently that has fallen out of favor as lenses have improved, bigger apertures have become popular, and sensors themselves have improved, from RGBY sensor in the P30 to various quad-bayer arrangements.
Can we ban please all videos on free energy?
I don't want to get into an argument about specs. Huawei and Samsung just released a 100 MP phone this month. So even in the specs department, Sony is behind, and was no further ahead than phones back then.

Increasing mega pixel count, and adding eye tracking is not that innovative. Computers could do eye tracking for a long time.

Also for video, really fast auto focus is not always desirable. Sometimes you want a slower smoother ramp.
You also don't want everything to be in focus, often you want things to be blurred out in the background, to bring attention to your subject. The small choice of lenses, really limits how you can do that on a sony camera.

The lack of stabilization, horrible rolling shutter, and plastic look to their image, with awful skin tones, is what Sony should innovate on.

Here's a video comparison of skin tones. This girl switched from a $500 Canon g7x mark ii to a $1000 Sony RX one generation ahead. Canon has 1080p, Sony 4k. You would thing it would be an easy win for the Sony. But sony somehow Sony manages to bring out every blemish and adds a green tone to her face.

http://www.youtubemultiplier.com/5db87f9d399d0-sony-rx-vs-ca...

This guy does funny camera reviews. Perfectly summarizes what some of the problems with Sony are.
https://youtu.be/Xf6Y1QPXRb0?t=238
>>I think this is just a bad idea.

The son that saw his father being killed is still alive.
http://archive.is/ArYf9
Shallow depth of field blur is not a Gaussian blur though. Attempts at faking shallow depth of field with that filter will not result with true bokeh.