News for hackers. Stuff that matters.

bennettdams

Show HN: Summora – Everything, in summary

https://www.summora.com/

Hey HN!I have developed a platform for user-generated articles on any topic. The twist is that everything should be written in short form. The editor is built in such a way that an article is divided into segments (e.g. "chapters" for a book summary). Each segment then has bullet points, which define the actual content.https://www.summora.com/Here is an example article where I amateurishly...

( Read More... | no comments | on HN )
It is naive to believe that these 86%, assuming the numbers are true, have any impact on the food production at all.

Of all the cropland we have, 57% is used to produce human food and 43% is used to produce animal food.

https://ourworldindata.org/land-use-diets#more-plant-based-d...

The whole point is that you need way more crops in general to "produce" the same amount of calories & proteins. That's because feeding the animals with crops instead of eating them is highly inefficient in comparison to eating them directly. "As an example: beef has an energy efficiency of about 2%. This means that for every 100 kilocalories you feed a cow, you only get 2 kilocalories of beef back."

https://ourworldindata.org/land-use-diets#livestock-waste-a-...

With how much meat is eaten right now, there is just no way we have enough grazing land to produce enough meat. 99% of meat comes from factory farms. [1] These animals are always fed with crops, so there will always be land usage to product food for animals. And it is way more inefficient.

[1]: https://www.livekindly.com/99-animal-products-factory-farms/

You're quoting a literal farming foundation, so here is a neutral source:

https://ourworldindata.org/land-use#half-of-the-world-s-habi...

"If we combine pastures used for grazing with land used to grow crops for animal feed, livestock accounts for 77% of global farming land. Of all the land we use for agriculture, 77% of it is used for livestock."

These 77% are only responsible for 18% of the produced calories and 37% of the produced proteins.

So, if you leave out water consumption and most importantly animal walfare, eating meat is the worst thing you can to for the environment (when talking about food).

Re:Preact Signals on Wednesday September 07, 2022 @10:58AM (#32751502)
Does someone know why the counter for this issue is at "70", but the repo only shows "21" issues in total? Maybe there are deleted issues that are not part of the total counter?

https://github.com/preactjs/signals/issues?q=is%3Aissue

Re:The World Has Passed ‘Peak Agricultural Land’ on Friday August 19, 2022 @06:34AM (#32519355)
If you look at the land usage for animal products and compare it to their calorie & protein supply, the story gets even worse.

In short: Of all agricultural land, ~77% is used for meat/dairy production. This 77% are responsible for only 18% of the calories and 37% of proteins, the rest comes from the plants in our diet.

The numbers may vary a bit, but the scale stays the same. It's ridiculous.

https://u4d2z7k9.rocketcdn.me/wp-content/uploads/2021/03/Glo...

https://earth.org/data_visualization/adopting-a-plant-based-...

https://ourworldindata.org/land-use-diets#more-plant-based-d...

I'm suprised no one has mentioned "exurb1a", by far my most favorite channel on YouTube.

The videos are always thought-provoking, intelligent and hilarious as well.

I can recommend every single video of him.

https://www.youtube.com/channel/UCimiUgDLbi6P17BdaCZpVbg

I can recommend giving your component name (not file name) some identifier (like an underscore), so using VS Code's "Symbols" via command palette makes it easy to find and open them.

Screenshots: https://twitter.com/BennettDams/status/1529051702351085568

Re:Meta Is Transferring Jest to the OpenJS Foundation on Wednesday May 11, 2022 @12:58PM (#31342692)
Facebook stopped actively maintaining Jest months (years?) ago, so this is a good move for the community.

See this old HN thread:

https://news.ycombinator.com/item?id=30168241

..and the comment from the "only" remaining maintainer:

https://github.com/facebook/jest/pull/11529#issuecomment-102...

Re:Avoiding the top Nginx configuration mistakes on Wednesday February 23, 2022 @12:37PM (#30443825)
Isn't it ironic that even the writers of this article don't follow these rules in the examples on that page?

There is "Mistake 3: Not Enabling Keepalive Connections to Upstream Servers", where it says:

    In the location{} block that forwards requests to an upstream group, include the following directives along with the proxy_pass directive:

    proxy_http_version 1.1;
    proxy_set_header   "Connection" "";
Then, at "Mistake 10: Not Taking Advantage of Upstream Groups", the "location" block does not include these two directives, even though the "upstream" block contains a "keepalive" directive.
> are already searching for the wrong tool from the beginning

Agreed, that's why I wrote "realizing" and not "having". Some devs use Redux as a hammer when they actually need a screwdriver - they just don't know better.

The combination of React's native context with hooks and realizing that a lot of your state is just "server cache" data (which can be handled "better" than using Redux) is probably enough for 95% of React applications.

Kent C. Dodds has a great article covering both topics:

https://kentcdodds.com/blog/application-state-management-wit...