skysight-inc/HackerNews huggingface dataset:
IIRC, during the lockdown, every death is to be notified to the authorities.
Just answer: do you use vi?
The cooler your kitchen is to begin with, the less heat the fridge needs to dump.
Notation as a Tool of Thought [pdf]
React team made the wrong separation of problems with hooks.

Class component should lose its ability to render and replace it with attach functional renderer. In its place, class component should have composable and detachable state and substates with their own lifecycle, each communicating via events within the same context.

It will be truer to `ui = fn(state)` principle.

This is a result of contemplation after learning what the functional people and rust community are doing, and then coming back in front of my laptop showing my professional project in React and TypeScript.

Unstated (https://github.com/jamiebuilds/unstated) is a library that helps scoping and lifecycle separation.

I used in-house event library but there are a couple of libs out there providing this functionality like https://github.com/KeesCBakker/Strongly-Typed-Events-for-Typ...

It took me months to experiment and reach the decision which finally helps the team to write and iterate faster. I hope this will help everyone facing those React problems.
The bike hire stations you see in some big cities (e.g. London) are a better solution; you get charged for it until you put it back in the rack. Dumping the bike somewhere just means your credit card will keep charging. It should be the same for the scooters. Mind you, this requires the city to work together with the scooter company, which implies that the city will be pulling one company forwards which may be considered unfair competition in the US.

The city could also pick up any scooters that are in the way / abandoned and fine the owner company for each of them, which would be a big incentive for the company to deal with it themselves.
it's a complicated issue and you're right that the the unending source of dopamine hits from entertainment would certainly play a role - although that's not really unique to social media. I personally think that a bigger factor may be the instant gratification and validation that comes from followers/likes/comments/whatever. I think young kids especially (but certainly not exclusively) crave validation from their peers and social media is a perfect place to turn to for that.
Most companies set the limit on the working hours and its not such a big issue to adopt to. Post covid-19 this trend of WFH is going to be the norm

Even the software service companies are realizing the benefits of WFH. https://www.businesstoday.in/current/corporate/post-coronavi...
Well US has an obesity problem and this is considered to worsen Covid effects.
I won't be sad if it's true ;-)
You might enjoy reading the utilitarian philosophy work of Peter Singer [1]

A lot of charity donation is based on feelings rather than calculations about saved lives. Otherwise there would only be one charity, and it'd be distributing malaria nets and deworming tablets in Africa.

In my experience, if someone donates $20 to animals in response to lowpro's post, that's not money subtracted from their fixed charity budget that would otherwise have gone to humans. That's money subtracted from their household budget, that otherwise would have been spent on hobbies and bills. People who have fixed charity budgets simply don't donate from them in response to social media posts.

[1] https://en.wikipedia.org/wiki/The_Life_You_Can_Save
Yup, there is a very large percentage of the population, even in rural areas, that are awareof the danger posed.

Politicians, including the PM have clearly and multiple times explained their actions in a very clear and lucid language. Stateministers also have conveyed the same in a similar manner.

There was no tolerance on stupid questions from the beginning, and a huge emphasis has been put on scientists amd healthcare experts. Most of the experts also did not talk publicly, but advised the politicians.
One possible way I can think of is they're hosting their own mail server and route messages for all unknown addresses to some mailbox (not that uncommon as far as I know - people do that to avoid bouncing mails with a typo in the address).

With such a setup it would be possible to notice that NYT mail started coming to foo1000@... instead of foo@... after requesting account deletion. Username change could also be evident directly from the mail, or it was a trivial guess.
Most of their hardware kinda is, though not explicitly.
Dockerized Django Logging via Grafana Loki
My guess is there will be mandatory testing for students wanting to return, along with heavy disease surveillance. I also suspect even places claiming "normal operation" will not actually be normal — certain things will be virtual and other things not. There will likely be some reshuffling of teaching assignments too.

I noticed also (former professor) that my institution is now heavily incentivizing early retirement for those getting close to qualifying, and are not shy about linking it to coronavirus.

Finally, I think a lot of social distancing guidelines apply technically in many situations with lectures, etc.

It will be an interesting semester.
There is a town in Mexico where the locals chased away the loggers, gangsters and much of politicians. They do a lot of things themselves which normally you'd expect a government to do.

That is an extreme example (maybe necessary in gang infested areas of Mexico), but I wonder if it is time for communities to help themselves as much as they can, before looking to governments, institutions and billionaires. It sucks to be in this position though.
I don't actually understand your statement here - are scooter's public transportation? I thought they were owned by private companies. How is this board going to fuck up every kind of innovation in relation to public transportation.
There are differences in vaccine regimen too, which lead to be a statistically significant factor.
(edit) The first point is in reference to the BCG hypothesis, search at MedRHiv for similar entries such as:
Correlation between universal BCG vaccination policy and reduced morbidity and mortality for COVID-19"

In addition to early travel exposure, common travelling, social factors-vs-car culture, obesity and diabetes, etc.

Within Europe, the BCG hypothesis seems a differentiating factor, though further studies are necessary. The reason for the effect of the vaccine are not currently known.
Can someone answer this point I'm confused about: Why can't a phone generate bokeh blur using the same technique that an ordinary camera does, ie. a large aperture / small f-stop? IOW why is ML or depth sensing needed at all?
Personally I dislike var/auto in languages because I like having types explicitly written. But in case of languages like Java or Kotlin you can move the cursor over the variable name and you will see the type, also you can right-click and select "replace with explicit type" and it will work. In D, IDEs struggle with templates and can rarely index templated code (no wonder, because most of the code doesn't exist until build time).

Most people will tell you, "oh just use auto, it makes the code more generic". That's sweet, except as soon as I want to pass it to another function, I need to have the concrete type. Like you, I usually just copy-paste the full type from the error message and move on.
> You get an A, and you get an A--everyone gets an A!

I'm a prof at a SLAC. Many of the students I have are doing fine. But a good number of them are struggling. Some are working, sometimes many hours because their parents are out of work or anticipate being out of work. Some of them have illness in their family (I don't know of any who are themselves ill).

And for some of them it is that they are not good at this environment-- they didn't sign up for this. Online education is hard. Personally I perceive that especially for people on the left side of the curve, less learning takes place because they are often just not skilled at self-learning.

In the present environment, when working with students I often feel that this is a person who could well have learned, say, Elementary Statistics except that the circumstances hit them where they are weak. Some leeway is called for, it seems to me. I'm not talking about certifying them at something where they are not prepared for the following class (that is, no "Everybody gets an A"). But my school, and many others, is allowing people to choose "No grade" in some cases and that seems reasonable to me.
This has nothing to do with anti-success it's anti anti-social/asshole behaviour. I mean just Jeff Bezos (literally the richest or second richest person on the planet) asking his employees to donate each other sick days should make people boycott amazon. It's interesting how many people would never accept this sort of behaviour in their social circle, but somehow once a big corporate does it it's OK.
the bar has certainly been lowered about as far as it can be in terms of who can share their ideas/beliefs. It's a double-edged sword of previously unheard of freedom of speech and an unending supply of lies/bullshit/deception/ignorance. It makes cultivating a strong level of discernment one of the most necessary skills for surviving (sometimes literally) in todays world.
B+-trees degrade quite fast with the slightest hint of randomness in the inserted data.

To get around this unfortunate property people invented Log-structured Merge Trees - you keep new part of your data which is easy to insert randomly to and once in a while merge it (as sorted data!) with main data. This way degradation is greatly reduced at the expense of reading speed in case of merge.

BTW, LTMs are a variant of the logarithmic method - a way to create dynamic structures (fast to insert and query) from static ones (slow to insert, fast to query). Even sorted arrays can be made fast for insertion in this way.

Anyway, try to keep your insertion order as sorted as possible. Delay actual insertion into disk data if needed.
You are mixing a lot of different things:

* The reflection angle laws are due to the laws of conservation, see https://en.wikipedia.org/wiki/Snell%27s_law

* For a pure colour, the colour is simply the energy of the photons. Atoms have discrete stable electron orbits, and electrons moving between these levels will absorb or emit discrete levels of energy in the form of photons, which is why we have spectral lines. Reality is more complicated because part of the energy may be converted to vibrations of the atom itself (phonons).

* Another factor is the perception of colour. In physics to characterize light one measures its spectra, the intensity of the light versus its wavelength (wavelength = speed of light in vacuum / frequency). The perception of colour of these distributions isn't always always what one would expect.
Agreed!

After taking a course which used SICP, I was so inspired I wrote a functioning Scheme interpreter in a couple of evenings - in C, with no external libraries. It was pretty limited (no tail recursion), but could run examples from the book.

That is not going to work with python - even just parsing the program will need a whole bunch of extra knowledge.
Don't think I mentioned anything to generalize. Just what I observed in my city (Chennai) in my street.

What I was implying is that perhaps things did go okay in terms of slowing the spread in India: of course, there's probably more spread than is being reported, but that seems par for course everywhere.

I'm only worried that the lockdown is going to significantly affect the poorer communities worse at the expense of richer folks.
Please don't make fun of people, even if you disagree with them or their politics.
No, let’s reserve that for when the news is about the disastrous consequences of undesired decisions.
Lately I’ve been wondering if an upcoming generation is going to be more anti-technology, or at least anti-smartphone. I’ve got a 2.5 year old who will occasionally say, “put your phone down, daddy”, or even swipe it from my hand (though we of course try to discourage that, hah) when I’m not paying enough attention to him. As he has grown up and started doing this, it has made me much more aware of my phone time and generally decreased my usage. He clearly notices when I do use it and doesn’t like it if he’s expecting me to engage more with him. I’m curious if this will lead to him seeing smartphone use as some sort of uncool adult thing.
> Personally I've always thought "proofs" using "arithmetic" are right, but kind of stated backwards.

I've never considered them right at all. By saying something like

0.9... x 10 = 9.9...

and then saying that

9.9... - 0.9... = 9

you're basically just a priori defining 0.9... to be 1. In other words you're basically just defining 0.9... as a symbol to be some number x which has the property that 10x - x = 9. So you're basically just defining it to be 1.

I've never seen a proof of 0.9... = 1 using Peano arithmetic which made any sense to me. I doubt one actually exists in any true logical meaning. Unless you're making use of limits, completeness, or something equivalent I don't see how a proof could possibly make any sense.
How to Count Coronavirus Deaths – Why Einstein Was Right
Build, Train and Use Text AI Models Inside Google Sheets
Yeah I think "better C" is a space which has a really good reason to exist and I'm always interested to see new entrants.

IMO describing Rust as a "C replacement" is slightly off the mark because Rust's value proposition is very different from C. Rust is about giving you the best possible performance in a safe-by-default language. C is about giving you maximal control over memory, with a very thin layer of abstraction over the hardware.

C has traditionally been used in a lot of places where Rust's USPs add a lot of value -- for instance in kernel development -- simply because there wasn't a safe alternative. However I think there are other cases where the strengths of C still add value; for instance in game development you're largely trying to do high-throughput processing over large swaths of structured data, and Rust concepts which help safety like RAII just get in your way. Yes there are ways to get around this in Rust, but Rust is not really optimized for structured, manual memory management.

As a result I think there is plenty of room for something like C which just has better ergonomics and some more modern features.
What does it mean for you to 'use a PhD'?
I believe that even shitty decisions made by governments (or presidents, or companies, or individuals) are made completely rationally - but only from their perspective.

I mean take right-wing arguments (given that HN and a lot of the internet is mostly left leaning), to them, blaming immigrants for a lack of jobs and keeping them out to preserve jobs is completely rational. Cause and effect, obvious solution, etc. Anti-vaxxers and other pseudoscience movements that have sprung up recently also feel perfectly rational about the BS they're sprouting. I mean from what I can see from here the earth is flat, that's a rational observation to make.
> The problem with the JS class representation is that people already understand what classes and instances are, and that leads to incorrect inferences about how React is working.

The same goes for hooks. People already understand what functions and js scope are and that leads to incorrect inferences about how hooks work.

Even more severe, newcomers who learn hooks while learning JS at the same time will get deformed perspective on how functions and scope work in JS outside of React world.
Does anyone know what the background picture is?
With mouse-mode on, try holding down shift to escape to regular behaviour.
9M logs of Brits' road journeys spill from number-plate camera dashboard
Two reasons.

First, phone cameras all have a fixed aperture. If you set the aperture wide enough to get bokeh in a typical portrait shot, then the depth of field would be too narrow to be practical for general photography.

Second, the depth of field depends not only on the f-stop but also on the focal length (or, to put it another way, it depends on the absolute diameter of the aperture). Given the focal length of a typical phone camera, you'd need a lens with a very wide aperture to get significant background blur for subjects at portrait distance. Wider apertures complicate the complexity and expense of lens manufacture.

It is interesting to speculate on the use of very wide aperture lenses on future phone cameras, though. If such lenses could be made cheaply, one can imagine that the shallow DOF could be overcome via some form of automated focus stacking.
Business opportunity in that current asymmetry?
TIL: discombobulate

verb [ T ]

UK

/ˌdɪs.kəmˈbɒb.jə.leɪt/ US

/ˌdɪs.kəmˈbɑː.bjə.leɪt/

informal mainly humorous

to confuse someone or make someone feel uncomfortable
Better trying to find another E-Corp willing to do the same and stack both against each other.
I can agree with you about the burning forests.

Looking at the Spanish flu - it looks that if one were to account for famine, malnutrition, unsanitary conditions and other facts, it seems nothing out of the ordinary.
The charging standards also have software protocols the car must support. And some chargers will refuse to charge your car if it's the "wrong" brand. Tesla's chargers in Europe have CCS type 2 combo plugs but they won't charge non-Tesla vehicles whereas Ionity's chargers will charge anything that can plug into them.

CCS: https://www.charinev.org/index.php?id=170

CHAdeMO: https://www.chademo.com/
Most other electric cars besides Tesla were already using this.
Yep, python is probably one of the most human-readable and writable languages out there.
There are some dark corners, like the site above illustrates, but it is pretty easy to avoid them.

(It is still not the good fit for SICP, but that’s a different conversation)
This is a great idea. I maintain that Ada is a better "better C" than any of the alternatives I've looked into, but it has an obvious big hurdle: while it has approximately the same use cases as C, it is completely different in terms of looks and handling. One of the strong points of D is that it still seems very much like C. Very good call to emphasise this.
Getting Access to WhatsApp API
Is there anyone here working at Facebook or whatsapp
and can help me get access to the whatsapp business api?

Thanks.
I really doubt someone who thought the solution to being unable to delete an account is to change the account name put this much thought into what to change the account name to.
You say mass deaths are possible to hide, yet provide international sources of news.

I am an Indian, and let me tell you, if 10 people die, its a huge news. Its not possible to cover up anything in India.

You might point out about Kashmir, but Kashmir is a different case considering it had its own constitution and governance until very recently, and due to Pakistan sponsored terrorism, the state has stricter controls than the rest of India.
A handler for executing arbitrary code. What could possibly go wrong?
map(lambda x:x^2, filter(lambda x:x%6==0, map(lambda x: x*2, getNumbers())))

Would probably be a more pythonic way to do that, avoiding list comprehensions.
Easier to read with added lines and indentation.

But tbf I do appreciate the ability to chain operations in JS without subclassing objects like list.
Or not look at the sky, instead make sure to ask for your rights so that looking at the sky is something that just happens. No need to blame and shame people.
https://dlang.org/changelog/2.085.0.html#gc_precise
Because phone camera sensors are so tiny, and the physical focal length so short, the perceived depth of field is enormous; basically infinity all the time. The aperture that would be required to achieve physical bokeh at normal portrait ranges would be impractically huge.
Ikigai – A Reason for Being
India's median age is 28.1, US' is 38.1, Spain's is 42.7 and Italy's is 45.5.
Starship chilled. Starship pressurized. For the first time, it didn’t explode
Because you are limited by the mobile form factor. The camera lenses which produce these kinds of pictures can weigh 2lb alone. The sensors are also huge — over 800 sq mm. Without the hardware you can only match the DSLR optics by using software techniques.
The initial setup in Gentoo is definitely the hardest part but once stuff works, it seems to work until the end of time.

With the kernel, manual configuration more or less is the following:

1. emerge sys-kernel/gentoo-sources

2. Configure the kernel with "make menuconfig". Manual configuration is just turning on the stuff you need and turning off the stuff you don't. If you don't know what it is, either look it up until you do or leave it as default.

3. "make && make modules_install && make install".

4. Add any kernel modules to /etc/modules-load.d/

If you don't want to configure the kernel yourself(seriously would recommend learning to do this, it is surprisingly easy and once you do it once, you just tweak your config as necessary), you can use genkernel to automate the process. Running genkernel should work in almost every case unless you have some kind of esoteric hardware you need to support. I think you just need to run "genkernel all" nowadays to do a full genkernel config, build, and install.

As for X11, I definitely remember fighting with it a bit initially but nowadays it is supposed to essentially work out of the box more or less like this:

1. Add your GPU and input devices to /etc/portage/make.conf with "VIDEO_CARDS=", "INPUT_DEVICES=", and add X to your use flags.

2. Install xorg-server, xorg-drivers, and test it with xstart. Everything should work out of the box on most hardware.

3. Install your desktop/display manager of choice in portage and follow the wiki steps in the docs for said manager. For most of them this should essentially just involve enabling the services in OpenRC or Systemd.

No idea about wayland but that's mostly just because I haven't been able to be bothered with moving away from X11 for any good reason.
The Beginner’s Guide to Online Privacy
such a cool post. Upvote
Because of a few things :
1) in a camera, you’ll have a big (>1inch) sensor.
2) in a camera, you’ll have a much bigger lens diameter, thus a bigger aperture diameter (not f number).
Both effects will decrease the width of the focus point, wich will increase the bokeh effect.
Show HN: Simple tool to get more ratings/reviews for your podcast
D also now supports Ownership/Borrowing (experimental) on a per-function basis, meaning it can be added incrementally to an existing program.
Totally not an expert but isn't that because the lens itself is so small (w.r.t. distance to sensor) that it effectively is a small aperture and thus incapable of generating a narrow depth of focus?

Also, you probably want the depth of focus to be large for general purpose photography. And you don't have a variable aperture in that phone (I guess).
Science progresses one funeral at a time.
Popular Google Doodle Games Are Back
‘Trolls World Tour’ Breaks Digital Records and Charts a New Path for Hollywood
I really can't tell if your comment is some an anti-lockdown statement, or I'm completely missing what you are trying to get at.
This is very common (but not everyone experiences it when coming off). It’s called caffeine withdrawal.
> a (very) few people see them as potential spreaders

One problem is that although only a very few will see it this way, other people would be cautious about being caught up in it. This could affect the way they behave because if they think that somebody died in their house from this disease then they won't want to advertise that at all (eg by blowing horns) in case they were subsequently targeted. The fear is likely worse than the reality but behavior like this is driven more by fear.

However I can understand that ramraj07 says it seems unlikely on their street as it would surely be difficult in a close community to hide a van coming to take Auntie-ji away.