Shared posts

09 Sep 21:33

Teen Girls’ Brains Aged Rapidly During Pandemic, Study Finds

by Ellen Barry
Neuroimaging found girls experienced cortical thinning far faster than boys did during the first year of Covid lockdowns.
05 Sep 19:06

Surprising New Research Links Infant Mortality to Crashing Bat Populations

by Catrin Einhorn
Without bats to eat insects, farmers turned to more pesticides, a study found. That appears to have increased infant deaths.
03 Sep 17:34

Is My Blue Your Blue?

by bpierre

Article URL: https://ismy.blue/

Comments URL: https://news.ycombinator.com/item?id=41430258

Points: 1391

# Comments: 520

03 Sep 17:33

Rethinking Addiction as a Chronic Brain Disease

by Jan Hoffman
Some researchers argue that the roles of social environment and personal choice have to be considered in order to make progress in treating people addicted to drugs.
26 Aug 17:51

Getting to Know Kenya Through a Local Hiking Club

by Rolf Potts
The author sought an authentic experience, and found it in Lets Drift, “an exuberant Kenyan-centered enterprise” of people living in and near Nairobi.
21 Aug 21:25

Cycling the Western Balkans: A Wild, Yet Welcoming, Mountain Tour

by Sophie Stuber
High temperatures and higher mountains were no match for our author and her companion as they biked the Trans Dinarica, a new cycling route that winds through eight countries in the remote Dinaric Alps.
16 Aug 18:26

Ancient Egyptian Scribes Suffered Ergonomic Injuries

by Franz Lidz
The scriveners of ancient Egypt were more than papyrus pushers, but they suffered many of the same repetitive ailments as desk jockeys today, a new study suggests.
15 Aug 22:46

I put a toaster in the dishwasher (2012)

by ctoth
15 Aug 20:17

This FDA-Cleared Video Game for ADHD Helped Me Focus. But Then I Got Bored.

by Thom Dunn
A colorful illustration of someone playing a game on a phone.

If you’re one of the millions of Americans who live with ADHD, like I do, the ongoing national stimulant shortage may well have left you reeling.

For me, every month feels like a mind-numbing riddle as I’m forced to project-manage between the doctor’s office and the various pharmacies that may or may not have enough stock of the medication I rely on to help with my executive function disorder—the same condition that makes it so difficult to go through this rigmarole in the first place.

Then I heard about EndeavorOTC, a new, FDA-cleared video game designed to help treat ADHD symptoms.

I was skeptical at first, but I gave it a shot. It certainly wasn’t a substitute for the medicine I’m used to, but I did find it helpful as a supplemental treatment—for a while, anyway.

15 Aug 17:17

Why Youth Mental Health Is on the Decline: Report

by Christina Caron
Economic, climate and technology woes are weighing on young adults, a report finds. It recommends overhauling how we approach mental health care.
15 Aug 17:14

Postgres.new: In-browser Postgres with an AI interface

by kiwicopple

hey HN, supabase ceo here

This is a new service that we're experimenting with that uses PGLite[0], a WASM build of Postgres that runs in the browser. You might remember an earlier WASM build[1] that was around ~30MB. The Electric team [2] have gone one step further and created a complete build of Postgres that’s under 3MB.

Their implementation is technically interesting. Postgres is normally multi-process - each client connection is handed to a child process by the postmaster process. In WASM there’s limited/no support for process forking and threads. Fortunately, Postgres has a relatively unknown built-in “single user mode” [3] primarily designed for bootstrapping a new database and disaster recovery. Single-user mode only supports a minimal cancel REPL, so PGlite adds wire-protocol support which enables parametrised queries etc.

We have created https://postgres.new as an experiment. You can think of it like a love-child between Postgres and ChatGPT: in-browser Postgres sandbox with AI assistance. You can spin up as many new Postgres databases as you want because they all live inside your browser. We pair PGlite with an LLM (currently GPT-4o) and give it full reign over the database with unrestricted permissions. This is an important detail - giving an LLM full autonomy means that it can run multiple operations back-to-back: any SQL errors from Postgres are fed back to the language model so that it can have a few more attempts to solve the problem. Since it’s in-browser it’s low risk.

Some other features include:

    - CSV upload: you can upload a CSV and it will automatically create a Postgres table which you can query with natural language.

    - Charts: you can ask the LLM to create a chart with the data and change the colors of the charts.

    - RAG / pgvector: PGLite supports pgvector, so you can ask the LLM to create embeddings for RAG. The site uses transformers.js [4] to create embeddings inside the browser.
We’re working on an update to deploy your databases and serve them from S3 using pg-gateway [5]. We expect to have a read-only deployments ready by the end of the week. You can access them using any postgres-compatible tool (eg: psql).

Everything is open source. A huge shout-out to the Electric team who have been a pleasure to build with.

[0] PGLite: https://github.com/electric-sql/pglite

[1] Postgres-wasm: https://supabase.com/blog/postgres-wasm

[2] Electric: https://electric-sql.com/

[3] Single user mode: https://www.postgresql.org/docs/current/app-postgres.html#AP...

[4] transformers.js: https://github.com/xenova/transformers.js

[5] pg-gateway: https://github.com/supabase-community/pg-gateway


Comments URL: https://news.ycombinator.com/item?id=41224286

Points: 354

# Comments: 103

15 Aug 16:00

All of Earth's water in a single sphere (2019)

by tigerlily
14 Aug 21:49

Saving Australian Crocodiles by Yucking Their Yum

by Jack Tamisiea
The aquatic reptiles cannot resist eating invasive toads that are toxic, so scientists gave the crocodiles a dose of nonlethal food poisoning to adjust their behavior.
07 Aug 23:50

Her Epilepsy Seemed to Be Managed Well … Until It Wasn’t

by Lisa Sanders, M.D.
More than a decade after her original diagnosis, she suddenly had episodes of losing consciousness. Was this a different type of seizure?
07 Aug 17:59

A Psychiatrist’s Livestreams With a Twitch Streamer Raises Ethical Questions

by Ellen Barry
Did Dr. Alok Kanojia's livestreamed conversations with a troubled video game champion cross an ethical line?
06 Aug 21:37

Tsung-Dao Lee, 97, Physicist Who Challenged a Law of Nature, Dies

by Dylan Loeb McClain
At 31, he and a colleague won the 1957 Nobel Prize in Physics for discovering that subatomic particles, contrary to what scientists thought, are not always symmetrical.
04 Aug 15:38

Open Source Farming Robot

by pedrodelfino

Article URL: https://farm.bot/

Comments URL: https://news.ycombinator.com/item?id=41150095

Points: 711

# Comments: 356

03 Aug 15:56

25 years of production IPv6 in ESnet

by Michael Sinatra
Twenty-five years ago Saturday, on August 3, 1999, IPv6 history was made: ESnet was issued its IPv6 production netblock, which is still in use today.  The American Registry for Internet Numbers (ARIN) assigned the very first block out of its 2001:400::/23 allocation, and since then, ESnet has numbered its production IPv6 services out of 2001:400::/32.  … Continue reading 25 years of production IPv6 in ESnet
01 Aug 16:50

‘Weird and Daunting’: 7,000 Readers Told Us How It Felt to Focus

by Larry Buchanan and Francesca Paris
A review of an experiment that gave “permission” to stop and look.
31 Jul 16:54

If we want a shift to walking, we need to prioritize dignity

by philips
30 Jul 16:28

This Is What Happens When Tigers Try to Sneak Up on Small Bears

by Andrew Chapman
Videos in India show that sloth bears seem unaware of being stalked by the ferocious felines. When the tigers try to strike, the bears often get the better of them.
29 Jul 16:33

How a Crisis for Vultures Led to a Human Disaster: Half a Million Deaths

by Catrin Einhorn
The birds were accidentally poisoned in India. New research on what happened next shows how wildlife collapse can be deadly for people.
29 Jul 04:48

In the Beginning Was the Command Line (1999)

by conanxin
26 Jul 23:20

A Parent’s Existential Crisis: When All Financial Obligations Are Met

by Financial Samurai

After publishing my post, “When To Stop Contributing To A 529 Plan,” I felt a sense of emptiness. For years, I had been trying to find a logical way to decide when to stop saving for my children's college education. When I finally figured out the answer to my financial obligation, I lost some purpose. […]

The post A Parent’s Existential Crisis: When All Financial Obligations Are Met appeared first on Financial Samurai.

25 Jul 19:52

AlphaProof, a New A.I. from Google DeepMind, Scores Big at the International Math Olympiad

by Siobhan Roberts
A.I. is getting good at math — and might soon make a worthy collaborator for humans.
24 Jul 21:35

Taking my diabetes treatment into my own hands

by mjaniczek
23 Jul 03:58

Scientists discover a new hormone that can build strong bones in mice

by gmays
17 Jul 18:07

How Nutrition Can Improve Endurance

by Emily Wright

Do you find yourself struggling to find energy to complete longer hikes, bikes or climbs? We do too! We’ve compiled some general guidelines for optimizing nutrition for endurance.

Eating a balanced diet that meets your needs can give you a leg up. Think of your nutrition as another part of training. Learning what works for you and what foods to eat and when to make you feel your best, takes planning and practice. And like training, getting your nutrition dialed will help you crush it. 

Keep in mind that there are many things that make you unique: your goals, level of fitness, body size and composition, and diet. We recommend speaking with a licensed professional for the nuance you need to set yourself up for success.

Before Your Activity

Make sure you have the energy you need to get you through the physical and mental work of a challenging day. Whether you’re hiking to an alpine lake or setting out on a long distance ride  – you’re burning extra calories.
 
Having energy available when you’re exercising will improve your coordination, endurance, concentration, and your recovery afterwards. It also prevents irritability and helps you make good decisions when in the outdoors.
 
If you’re not sure how many calories you are eating, try tracking the foods you eat for a few days. You’ll also need to track your activity to know how much energy you need for the activity. To optimize your nutrition for endurance, log your food and exercise with Cronometer. It can sync with Strava too!
 
Pre-exercise foods should be high in carbs, moderate to low in protein, and low in fat and fibre.
 
If you’re going out for a longer run, hike or bike (1+ hours), have a larger snack or a meal no later than 2 hours before your workout, with a small snack (like a gel) 30 minutes before you begin.
 
"Foods with nitric oxide precursor compounds may improve athletic performance if consumed prior to exercise. Caffeine can also improve muscle strength short-term and improve mental focus, which can optimize athletic performance."
DJ Mazzoni
Registered Dieitian and Medical Reviewer at Illuminate Labs
Good food choices:
  • Sweet potatoes
  • Bananas
  • Gels/chews
  • Granola bars
  • Bagels – we really love bagels at Cronometer!
  • Rice
  • Foods rich in nitrates such as beets, beet powder, spinach & kale.
  • Foods rich in l-citrulline such as watermelon
  • Dark chocolate or coffee
Optimize your nutrition for endurance when climbing

During Your Activity

Having carbs in your system will help prevent fatigue and improve concentration.
 
For light to moderate exercise (up to an hour per day): aim for 3-7 g of carbs per kilogram of body weight every day, to make sure you have enough energy for your activity and recovery.
 
For harder, longer exercise over an hour: your carbohydrate needs will be more in the range of 6-10 g/kg body weight/day for a typical day.
 
Longer exertion and higher intensities are where you can benefit from eating more carbs. Even putting carbs in your mouth during exercise sends a signal to your brain that keeps you feeling good and helps sustain your level of effort.
 
So, if you find yourself getting tired or feeling fuzzy during your exercise, try eating or drinking something with carbs in it. Start with around 30 g of carbs and go up from there if you need it.
 
Foods to eat during activity:
  • Rice cakes (we love the ones in the Feed Zone Portables cookbook by Skratch Labs)
  • Potatoes (pre-boil and bring on your ride)
  • Gels/chews
  • Low-sugar cereal like Shreddies (you’ll get the iron from fortified cereals, important for endurance athletes!)
 
Whatever you bring, make sure you go for low acidity carbs so there’s less of a chance of heartburn or an upset stomach. It might take a bit of trial and error to find the right carbs for you!
Cronometer staff mountain biking in Revelstoke, BC
Nutrition for endurance is crucial for long days on the bike

After Your Activity

Protein in your diet promotes muscle building after your activities – meaning you’ll be stronger on the next!
 
To support your body, aim for 1.2-1.4 g of protein per kg of body weight each day.
 
Spread your protein intake between your meals and snacks throughout the day. This has better effects than having a lot of protein at once. 
 
Refuel with a 4:1 or 3:1 ratio of carbs to protein.
 
For example, if you’re making a smoothie, you would want it to have 30 grams of carbs for every 10 grams of protein. This ratio becomes more important to consider the longer or harder your activity. You may not need to refuel as methodically after a shorter stint. But if you’ve been out there for a while or working hard, this will help refill your carb stores, build strength, and repair muscle damage.
Proper hydration is fundamental to athletic performance

Drink Water

For peak performance, hydrate before, during and after exercise. A few hours before you head out, drink 5-10 ml/per kg of body weight.
 
You’ll start off well hydrated with enough time to get rid of excess beforehand, saving you time looking for a rest stop on the trail.
 
During and after activity, drink enough water to replace what you lost, without overdoing it. To estimate what you need, weigh yourself before and after a ride. Then, aim to drink fluid to replace what you lost.
 
For example, if you weighed 1 kg less when you wrap up for the day, aim to drink 1 L of fluid during your workouts. Drink more afterwards, too – roughly 0.25-0.5 litres for each kg of weight lost.
 
Up your fluid intake when you up the intensity or duration of your exercise and when it’s hotter, more humid or higher altitude than usual.
 
If it’s a hot day, or if you would consider yourself a sweaty person, add electrolytes to your water before and during your workout. If you can tolerate it, Gatorade can be useful as both a carb and a source of electrolytes.
 
A word of caution though as some find that consuming that much sugar in liquid form upsets their stomach. If that’s the case, look for a product like Nuun or Hammer Endurance Endurolytes.
 
When it comes to electrolytes, you want something low/no sugar, but also without artificial sweeteners like sugar alcohols, which may also cause stomach upset.
Cronometer staff mountain biking in Revelstoke, BC
Vitamin SHRED.

Essential Micronutrients

Eat a diet that gives you all the essential vitamins and minerals you need:

  • Vegetables
  • Fruits
  • Whole grains
  • Protein: legumes, eggs, tofu, fish and chicken.

     

Micronutrients

While tracking all the micronutrients is what sets Cronometer apart, there are a few highlighted here for athletes: iron, calcium and vitamin D.

Iron

Helps supply your muscles with the oxygen they need to make energy. Regularly getting a lot of exercise can increase your need for iron, so consider boosting your daily intake above the recommended dietary allowance; 18 mg/day for most adult women and 8 mg/day for adult men and post-menopausal women. This is more important if you are doing long endurance activities, vegetarian or, a woman who menstruates. 

Calcium & Vitamin D

Calcium and vitamin D are also important nutrients for endurance athletes. They help with muscle function as well as reducing the risk of injury.
 

Good sources of calcium include:

  • Spinach
  • Tofu
  • Yogurt
  • Cheese
 
Few foods contain vitamin D; sources include eggs and oily fish like salmon and sardines and milk often has vitamin D added.
 
We can make vitamin D when our skin is exposed to sun. Working out indoors, in the early morning or evening, wearing clothing or applying sunblock that covers your skin all limit your ability to make vitamin D this way. That might mean more reliance on dietary sources and supplements to meet your needs.
Cronometer staff mountain biking in Revelstoke, BC
Hydration, as we mentioned, is crucial!

Drink (Less) Beer

A celebratory brew after a long day, that fits within your energy needs, is part of a healthy diet. Drinking too much alcohol can impair your recovery, as well as your performance even after your hangover wears off.
 
If you feel like you’re not performing at your best, save the suds for the shower and curb your alcohol intake in the day or two before you plan to exercise.

For more of the details behind these recommendations and more information for competitive athletes check out the source:

Nutrition and Athletic Performance, Medicine & Science in Sports & Exercise: March 2016 – Volume 48 – Issue 3 – p 543-568. doi: 10.1249/MSS.0000000000000852

The post How Nutrition Can Improve Endurance appeared first on Cronometer Blog.

17 Jul 16:52

Stop Microsoft users sending 'reactions' to email by adding a postfix header

by wasmitnetzen
12 Jul 21:41

Three years in North Korea as a foreigner (2021)

by Hansig_jw