HNHacker News
TopNewBestAskShowJobs

umangsh

104 karma · joined November 30, 2020

https://www.umangsh.com
submissionscomments
umangsh··on YouTube search results full of AI slop
Most, if not all top results uploaded in the last 3 months, are AI generated. Not sure if there's a way to restrict searches to older, pre-AI content.
umangsh··on Most states start school too early in the morning
Belief in "the science" akin to religious faith, is counter to the scientific method.

Good science happens when the best scientist is wrong.

umangsh··on Show HN: Alpaca.cpp – Run an Instruction-Tuned Chat-Style LLM on a MacBook
30B fp16 takes ~500 ms/token on M2 Max 96GB. Interestingly, that's the same performance as 65B q4 quantized.

65B fp16 is ungodly slow, ~300,000 ms/token on the same machine.

umangsh··on PostgREST – Serve a RESTful API from any Postgres database
DRF (https://www.django-rest-framework.org/) provides a lot of functionality out of the box for REST views. In addition, DRF braces (https://django-rest-framework-braces.readthedocs.io/en/lates...) helps share form and serializer objects reducing a lot of duplicate effort.
umangsh··on The Obsessive Calorie Counters of Reddit
Note: Article is from 2019.

While the risk of nutritional deficiencies when tracking 1200 calories/day is higher, it's possible to make choices with whole foods that are satiating and satisfy daily micro-nutrient requirements despite low calorie intake.

For instance, for a 1500 cal/day diet, the following mealplan is quite a bit of food:

Sample Lunch: https://i.imgur.com/ZTeKsX4.png

Sample Dinner: https://i.imgur.com/sX2g5dL.png

Daily nutrition tracker: https://i.imgur.com/YrGjSQJ.png

umangsh··on The Essential Django Deployment Guide
That's a great list! decouple (https://pypi.org/project/python-decouple/) is a useful alternative for managing secrets. It converts values to the correct data type which is nice.

Another detail that matters deciding VPS vs PaaS - batch job processing. Heroku dynos restart once every 24 hours, longer jobs can't be scheduled.

umangsh··on Cornell, Oxford to lead grants aimed at boosting iron nutrition
Cool site, the sliders are super intuitive for exploration. I was pleasantly surprised to see Cauliflower rank high in Choline, it's more readily available from animal sources. Do the portion sizes differ for each item? Eggs have 7.6x times Choline from Cauliflower per 100g based on USDA data:

Cauliflower nutrition: https://fdc.nal.usda.gov/fdc-app.html#/food-details/169986/n...

Eggs nutrition: https://fdc.nal.usda.gov/fdc-app.html#/food-details/748967/n...

umangsh··on Cornell, Oxford to lead grants aimed at boosting iron nutrition
Calcium can inhibit iron absorption. If your multi-vitamin has calcium, it likely won't have iron.
umangsh··on Cornell, Oxford to lead grants aimed at boosting iron nutrition
Besides Iron and Zinc - keep an eye on daily intake for Magnesium, Potassium and Calcium. I wasn't happy with the increasing number of supplements in my diet, so I set out to hit daily RDIs on macro and micro-nutrients without any supplements. See the evolution of my meal planner tech stack here: https://www.umangsh.com/blog/the-right-tool-for-the-job/

Most repeated food suggestions by the planner:

1. Almonds (Vitamin E), Chia, Pumpkin seeds are micro-nutrient dense.

2. Liver is nature's multivitamin, Chicken/Beef/Turkey liver all good choices (Vitamin A, Iron, Zinc).

3. Eat your greens - mix and match Arugula, Spinach, Kale, Collards, Chard, etc (Magnesium, Potassium).

umangsh··on Why Elon Musk’s Quest to Revive Twitter Is Likely to Fail
https://www.tesla.com/blog/secret-tesla-motors-master-plan-j... (2006)

https://www.tesla.com/blog/master-plan-part-deux (2016)

umangsh··on Caffeine and Exercise Performance
> You also get to see what foods have what, it’s interesting. Like how one little prickly pear has 200% of your vitamin E needs.

Do you have a source for this (USDA FDC data and google-fu don't concur)? I'd love to have alternate options for Vit E besides almonds :). It's a fat soluble vitamin, available from nuts and nut oils - vegetable sources are harder to find.

https://www.famnom.com/my_food/294b1d1d-6ca3-47ac-9cd4-bfbd6...

https://www.google.com/search?q=prickly+pear+nutrition

umangsh··on Caffeine and Exercise Performance
Besides Magnesium, Vit D and Zinc, Potassium and Calcium are other micro-nutrients that affected general well-being for me. Both have relatively high daily RDIs (Potassium - 4700mg/day, and Calcium - 1300mg/day for adults) which can be difficult to hit without supplements, unless your diet includes servings of vegetables and dairy.

Potassium: https://www.famnom.com/nutrient/1092/

Calcium: https://www.famnom.com/nutrient/1087/

umangsh··on An app can be a home-cooked meal (2020)
I really enjoyed the article. I've several personal apps, and as with home cooked meals, I've a favorite 'home-cooked app' that I iterate on more than others.

Famnom evolved from spreadsheets, to python scripts, to a web-only django app hosted locally, to a web + ios + android client apps. I find it useful daily, and it has a few other regular users (besides my family), though arguably my family are my toughest users :).

umangsh··on Ask HN: What's the best source code you've read?
https://github.com/django/django Django's codebase is a pleasure to read. The directory structure is intuitive to navigate, and test coverage is great.
umangsh··on Saturated fat: villain and bogeyman of cardiovascular disease?
FDA RDIs are useful as an average guideline imo, while individual acceptable limits can vary. 2300 mg/day (https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfr...) Sodium is not that hard to exceed when consuming processed foods:

1. One serving of TGI Friday fries is 33% of daily sodium intake: https://www.famnom.com/my_food/8eaaea4d-e97d-4a38-8125-4b923...

2. One cheese pizza slice is 28%: https://www.famnom.com/my_food/485759ea-8507-4af7-9efe-bf61b...

Eat food, not too much, mostly unprocessed foods.

umangsh··on High-dose Vitamin B6 reduces anxiety and strengthens visual surround suppression
Liver is a nutrient powerhouse! Chicken, beef, lamb liver all good choices in moderation. However, few are unsafe for consumption even in small quantities - https://www.nature.com/articles/164530a0
umangsh··on High-dose Vitamin B6 reduces anxiety and strengthens visual surround suppression
FDA RDIs (https://www.fda.gov/media/99069/download):

- Vitamin B6: 1.7mg

- Vitamin B12: 2.4mcg

The study uses 100mg Vitamin B6 (~60x RDI) and 1000mcg Vitamin B12 (~417x RDI) for a month. High doses have been previously associated with toxicity symptoms:

- Vitamin B6 (> 100mg/day): https://pubmed.ncbi.nlm.nih.gov/18060778/, https://pubmed.ncbi.nlm.nih.gov/15473987/.

- Vitamin B12 (1000mcg/day for 2 weeks): https://pubmed.ncbi.nlm.nih.gov/31018715/

Personally, I would try to get Vitamin B6/B12 from diet as much as possible. B6 is available from a variety of foods (https://www.famnom.com/nutrient/1175/). Interestingly, Vitamin B12 is available from dairy and milk (https://www.famnom.com/nutrient/1178/), not just meat.

umangsh··on Removal of Heroku free product plans
Just moved a django app from heroku hobby to fly.io. flyctl CLI, the documentation was super easy to work with. Fly.io Trial Plan is a decent alternative for Heroku hobby dynos (SSL certs through Let's Encrypt was a pleasant surprise).
umangsh··on Ask HN: Meal Planning App?
Famnom's (https://www.famnom.com) MealPlanner allows meal planning for families optimizing for available foods / recipes in the kitchen, nutrition preferences (customizable) and taste preferences (customizable) (no shopping lists though).

Code's available at https://github.com/umangsh/famnom and https://github.com/umangsh/famnom_flutter if you want to run your own app and server.

umangsh··on Ask HN: Developers who switched from native development to Flutter, how is it?
Flutter worked really well for Famnom (https://news.ycombinator.com/item?id=32204944). Write once - run anywhere, solid documentation, rich plugins and libraries (for e.g state management through https://bloclibrary.dev/), and an expanding developer community are great.

However, there are observable performance gaps with native. For e.g. scroll performance and dropdown fields can sometimes feel abrupt.

umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
"The Oracle" sounds like a cool feature!
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Thanks! MealPlanner generates suggestions through a constraint programming solver, taking into account any foods consumed earlier in the day. The home page tracker shows nutrient consumption (and deficits) for the day.
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Demo account WIP. https://github.com/umangsh/famnom README has sample user journeys that may be helpful in the meantime.
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
> Some changes that more-or-less stuck: - More sun for Vitamin D - More Avocados - Omega-3 from fish oil - Nutritional Yeast for B Vitamins - More greens (especially for magnesium) - Spinach in smoothies - Less sugars, carbs, and bread - Parmesan cheese for calcium - More beans

+1 for blind spots. Choline (eggs), Iodine (Iodized salt, seaweed), Zinc (pumpkin seeds, etc) are a few others in my experience. Intuition builds up steadily after tracking a while. Good luck!

umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Noted, thanks for the feedback. A demo account would be useful.
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Absolutely open to contributions :). Didn't pay attention to licensing yet, will look at options.
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Thanks!
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Data is sourced from USDA, and it's updated every six months. Whole hog ingestion happens here: https://github.com/umangsh/famnom/blob/main/nutrition_tracke...
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Your point about nutritional variability with location and time is valid. USDA periodically refreshes nutritional information for a variety of foods (https://fdc.nal.usda.gov/log.html) and provides location data for collected food samples. For tracking purposes, averages are a workable approximation imo.
umangsh··on Show HN: Famnom – Nutrition tracker and meal planner for families
Interesting, why do you think so?

There are definitely variations between different authorities (NHS, FDA, etc). FDA RDIs provide a sane default, and users can update nutrition preferences based on their health goals.

Page 1 of 2Next →