Live data from Hacker News

Show HN: App creates a meal plan that satisfies your nutrition constraints

eatthismuch.com

61–70 of 115 posts

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#61
For reference, the "Generate" button does nothing on

    Firefox 2.0.0.11
    Debian 4.0
    Version: Eee PC 1.0.1
    Build Info: 2007-10-19 13:03 
Yes, I know that's really old, but it's what I'm using on the road (for complicated reasons).

I'll try your app later on a rather more modern system - it looks interesting.

Added in edit: Now had a look - really good. Will investigate more later, but I can see why it won't work on older, less capable browsers. Still a shame, but understandable. Nice work.

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#62
post #48

From the fortune files: This is the first numerical problem I ever did. It demonstrates the power of computers: Enter lots of data on calorie & nutritive content of foods. Instruct the thing to maximize a function describing nutritive content, with a minimum level of each component, for fixed caloric content. The results are that one should eat each day: 1/2 chicken 1 egg 1 glass of skim milk 27 heads of lettuce. --…

This was our assignment for an AI class many years ago - take USDA and a GA with constraints set by users to generate meal plans.

I remember being told to eat a kilo of salt :)

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#63

Earlier quoted context omitted.

I would happily drink [a liter] of whole milk every morning Same here, plus you could throw in some stevia & cocoa to make it chocolate milk without adding much extra energy.

Off topic for the thread but seeing as you highlighted it: isn't 'liter' the US spelling, while 'litre' is the (correct) UK one? (I'm in Ireland, and tend to cringe when I see 'Americanisms' :( )

Just because it's "litre" in the UK and "liter" in the US doesn't make one correct and one incorrect. The latter is the correct spelling in American English.

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#64
post #59

Earlier quoted context omitted.

There's a sliding scale for this sort of thing For instance: I would happily drink 4 cups (which sounds to me like approx 1litre ... I really dislike 'cup' measurements) of whole milk every morning

Agreed, I think cup is irrelevant outside of US - UK - AUS. Here it's just like saying drink "4 glasses of milk" - how much is this exactly? As usual it's a bit obnoxious to think your only customers / users come from those countries.

cup is basically irrelevant in the UK too.

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#65
post #48

From the fortune files: This is the first numerical problem I ever did. It demonstrates the power of computers: Enter lots of data on calorie & nutritive content of foods. Instruct the thing to maximize a function describing nutritive content, with a minimum level of each component, for fixed caloric content. The results are that one should eat each day: 1/2 chicken 1 egg 1 glass of skim milk 27 heads of lettuce. --…

I think I saw the similar story, but the requirement was to get the cheapest version. The result was 10 liters of vinegar, iirc.

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#66

I'm not drinking 4 cups of whole milk for breakfast. I'm probably never going to eat a cup of almonds and some celery for lunch... I think you need to put some serious work into making sure that each suggestion is appetizing as opposed to rummaging through the pantry and finding something that technically meets the requirements.

Yes, apparently it's using celery to "round up" the values if it's "not there" yet and it needs some more calories.

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#67
post #62
post #48

From the fortune files: This is the first numerical problem I ever did. It demonstrates the power of computers: Enter lots of data on calorie & nutritive content of foods. Instruct the thing to maximize a function describing nutritive content, with a minimum level of each component, for fixed caloric content. The results are that one should eat each day: 1/2 chicken 1 egg 1 glass of skim milk 27 heads of lettuce. --…

This was our assignment for an AI class many years ago - take USDA and a GA with constraints set by users to generate meal plans. I remember being told to eat a kilo of salt :)

That sounds like an insult. "Hey, buddy! Go eat a kilo of salt!"

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#68

Hey guys! I made the site and someone brought the post to my attention. I'm out right now and probably won't be able to reply to any comments tonight, but of course all of your feedback is incredibly valuable to me and I'll try to reply ASAP.

My first few tries were wonky, but after adding more cooking time the suggestions came out GREAT!

Extremely well done! I've bookmarked it and will be back.

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#69

Earlier quoted context omitted.

There's a sliding scale for this sort of thing For instance: I would happily drink 4 cups (which sounds to me like approx 1litre ... I really dislike 'cup' measurements) of whole milk every morning

I would happily drink [a liter] of whole milk every morning Same here, plus you could throw in some stevia & cocoa to make it chocolate milk without adding much extra energy.

Wouldn't that amount of whole milk just make you vomit? (not an expert, just asking). Is there some trick to keeping it down?

Re: Show HN: App creates a meal plan that satisfies your nutrition constraints

#70
I need a way to tell it that I want my calories to come from 60% carbs, 20% protein and 20% fat.

I also want it to include protein in every meal.

And as few simple carbs as possible. Fruit is fine-ish, but no processed sugar. Bread-like things should be limited to whole grain if at all possible.

How do I do that?

Post reply on HN