Live data from Hacker News

Show HN: Create a perfect meal with linear programminga

mathfood.com

21–27 of 27 posts

Re: Show HN: Create a perfect meal with linear programminga

#21

This is generally quite nice. To add to some of the other feedback, I felt it could do with more verbose help text and more importantly for my brief play with it, more focus bringing basic staples to the top of results for food search. I tried to add just bacon and it took rewatching the demo video and some guesswork to figure out searching for 'bacon raw' would get to basic bacon. Trying just 'bacon' or 'pork' only…

The search definitely needs work. The food database is from the USDA so the descriptions are wordy. For what its worth, when you're searching you can use an exclamation mark to negate a term. For instance "!baby !cere banana" gets me all banana related foods that don't have "baby" or "cere" in them (which for some reason is a lot).

Re: Show HN: Create a perfect meal with linear programminga

#22
post #16

Looks interesting... How is this different than MyFitnessPal + a Macros calc? is open source?

Open source? The LP engine is, but the site probably has a bit of code stink in it @ the moment. Once I get some time to clean it up, I might open source it. Benefits to open sourcing?

Not super familiar with MyFitnessPal, but MathFood allows you to say "I want waffles, eggs, and bacon for breakfast but I want to keep to my super strict diet ratios. How do I build this meal to hit those ratios?".

Re: Show HN: Create a perfect meal with linear programminga

#23
post #22
post #16

Looks interesting... How is this different than MyFitnessPal + a Macros calc? is open source?

Open source? The LP engine is, but the site probably has a bit of code stink in it @ the moment. Once I get some time to clean it up, I might open source it. Benefits to open sourcing? Not super familiar with MyFitnessPal, but MathFood allows you to say "I want waffles, eggs, and bacon for breakfast but I want to keep to my super strict diet ratios. How do I build this meal to hit those ratios?".

What's the LP engine please? Thanks!

Re: Show HN: Create a perfect meal with linear programminga

#24
post #22

Earlier quoted context omitted.

Open source? The LP engine is, but the site probably has a bit of code stink in it @ the moment. Once I get some time to clean it up, I might open source it. Benefits to open sourcing? Not super familiar with MyFitnessPal, but MathFood allows you to say "I want waffles, eggs, and bacon for breakfast but I want to keep to my super strict diet ratios. How do I build this meal to hit those ratios?".

What's the LP engine please? Thanks!

Can't promise its pretty but: https://github.com/JWally/jsLPSolver

Re: Show HN: Create a perfect meal with linear programminga

#25
I don't get the final result. It's in grams? I then have to figure out how many eggs or chickens make up 300 grams? Weighing everything gets annoying. I'd rather eyeball.

For me it's clearer to work by pictures of the food, like http://office-k-chiro.com/wp-content/uploads/2014/02/office-... that's what I'm dealing with IRL and it's easier to memorize 5 jumbo eggs vs 300 grams.

And by that logic, I'd rather drag and drop pictures to build up the meal, get the nutritional information after than the other way around.

Re: Show HN: Create a perfect meal with linear programminga

#26
post #25

I don't get the final result. It's in grams? I then have to figure out how many eggs or chickens make up 300 grams? Weighing everything gets annoying. I'd rather eyeball. For me it's clearer to work by pictures of the food, like http://office-k-chiro.com/wp-content/uploads/2014/02/office-... that's what I'm dealing with IRL and it's easier to memorize 5 jumbo eggs vs 300 grams. And by that logic, I'd rather drag and…

It is in grams.

Watch the video demo from around right here: https://www.youtube.com/watch?v=irTdDJ6fu-c#t=97

When I'm doing the same problem in the actual tool, there's a "details" button which pops up a screen telling you the meal's details and how much of each food to eat.

You can click on the foods in this area and it'll tell you how many eggs 300g egg whites requires (I actually click on cheese in the video, but you get the idea).

Re: Show HN: Create a perfect meal with linear programminga

#27
post #26
post #25

I don't get the final result. It's in grams? I then have to figure out how many eggs or chickens make up 300 grams? Weighing everything gets annoying. I'd rather eyeball. For me it's clearer to work by pictures of the food, like http://office-k-chiro.com/wp-content/uploads/2014/02/office-... that's what I'm dealing with IRL and it's easier to memorize 5 jumbo eggs vs 300 grams. And by that logic, I'd rather drag and…

It is in grams. Watch the video demo from around right here: https://www.youtube.com/watch?v=irTdDJ6fu-c#t=97 When I'm doing the same problem in the actual tool, there's a "details" button which pops up a screen telling you the meal's details and how much of each food to eat. You can click on the foods in this area and it'll tell you how many eggs 300g egg whites requires (I actually click on cheese in the video, but…

Yea that's pretty well hidden in the UI. My attention span didn't last to the end of the video.
Post reply on HN