numbers background picture of Bill

My Diet-Minder Program

The following will make little sense without a word or two about the background. I have been using my Diet-minder program on a daily basis for over a year now. It takes effort, but I’ve got the process down to a few minutes a day. Second, I did not loose one pound as a result of my recording what I eat. Lets say I was not overweight prior to to loosing 12 pounds, but that I feel more comfortable now that I can see my toes again. I lost these 12 pounds over a period of one and a half months by eating less. About half of what I normally ate. Once I attained my weight goal, I gradually increased my food intake to maintain that weight. If you want to know more about my weight loss experience you can read “My Weight Loss Story.

Tracking what I eat with my Diet-minder program was more a matter of curiosity at first. This is not to say that it doesn’t keep me on my toes as far as caloric intake goes. It does. But at one point I began to wonder if I was eating the right mix of carbohydrates, protein, fats, sodium, fiber, and cholesterol. These things also matter. This is where the program I call Diet-Minder comes in. It tracks not only calories, but also things like carbohydrates, protein, fats, sodium, fiber, and cholesterol. At the end of the day I can see at a glace if I am getting enough or too much of each.

Tracking requires some effort. But once you get in the habit of writing down what you eat, it becomes automatic. I’ve tried a couple of ways to do this, but found the easiest is a steno pad and a small scale. Any scale that measures ounces will do. Mine was an old postage scale. I simply jot down what I eat, and when necessary weigh the portion. I rarely eat out, but when I do, I make the best estimate I can. I never bring a scale to the restaurant.

Menu For A Typical Day

I egg poached
2 oz potato
9 almonds
1 cups spinach
3 oz corn
1 bowl of my home made soup
1 cup of berries
.5 tablespoons of peanut butter
1 corn tortilla
1 bowl of corn oat cereal
1 cup of milk
1 ounce of cheese
2 beers
half cup of yogurt
3 ounces chicken breast

The Diet Minder Program

New Diet Minder


almonds count This serving
apple oz This serving
appleSauce half cup This serving
banana one This serving
bbfish one This serving
BBQ sauce 2Tbs This serving
beer lite 16oz This serving
berries This serving
broccoli oz This serving
cabbage oz This serving
carrot oz This serving
Mozzarella cheese 1 oz This serving
chicken oz This serving
corn oz This serving
cornTortillas each This serving
crispyOats 1 serving This serving
egg each This serving
eggWhite ea This serving
ham Lunchmeat 3 slices This serving
hotCoco This serving
Italian Dressing 2Tbs This serving
kale This serving
liverwurst oz This serving
mayo 1tbs This serving
mixed veg 1 cup This serving
2% Milk 8 oz This serving
mushrooms one cup cooked This serving
myloaf 1 inch This serving
mySoup per serving This serving
oatmeal 1 serving This serving
olive oil 1 tbs This serving
orange 6 oz This serving
pasta 2 oz This serving
peas oz This serving
peanutButter 1 tbs This serving
peppers oz This serving
pickel b&b 5 slices This serving
pintoBeans oz This serving
popcorn 1 serving This serving
pork chop (60 Na/4 label) 1 oz This serving
potatoes oz This serving
rice 1 oz This serving
salmon oz This serving
sardines 5oz can This serving
sausage oz This serving
spinachCooked 1 cup This serving
tomatoes canned 1 can This serving
tomatoes canned no salt 1 can This serving
tuna This serving
tomatoPlum each This serving
whiskey 1.5 oz This serving
wine 5 oz This serving
yogurt half cup This serving
oneCal This serving
oneMgNa This serving

Data Summary

Calories Carbs Protein Fat Sodium Fiber Cholesterol

Data summary for spread sheet transfer.

Storage And Retrieval To Local Storage

To store the day's data by parameter to your local storage you must enter a retrival key. This can be any continuous series of characters, but it is suggested that you use the current mmddyy as your key. For example for November 15, 2020 the key would be 111520.

Enter your key Then press Save

To view data for a specific day you will have to enter the key you saved it under. So if you saved your data as suggested by date yymmdd, all you need to do is enter this key, and press the find key.

Enter your key Then press Retrieve
For the data stored with the key

Here is a summary for the day you selected



The Results After Data Entry

The following results from entering the above data into the program follow:

Data Summary

Calories 1421 Carbs 155 Protein 84 Fat 23 Sodium 982 Fiber 24 Cholesterol 330

Data summary for spread sheet transfer.(This format makes copy and paste into a spreadsheet easy.)

1421
155
84
23
982
24
330

Storage And Retrieval To Local Storage

To store the day's data by parameter to your local storage you must enter a retrival key. This can be any continuous series of characters, but it is suggested that you use the current mmddyy as your key. For example for November 15, 2020 the key would be 111520.

Enter your key
010101
Then press Save

To view data for a specific day you will have to enter the key you saved it under. So if you saved your data as suggested by date yymmdd, all you need to do is enter this key, and press the find key.

Enter your key
010101
Then press Retrieve
For the data stored with the key

Here is a summary for the day you selected
1421.4 calories
154.7 carbs
84.5 protein
22.8 fat
982.0 sodium
24.3 fiber
330.0 cholesterol

The Diet-minder program is written entirely in JavaScript and runs locally on your computer. If you are interested in seeing the code, and perhaps modifying it for your particular needs you can right click on this page and scroll down until you see the line The Diet Minder Program. The program starts around line 169 and ends around 1210). Warning. This is not for the faint of heart. However, if you are a JavaScript guru, this should not be a problem. And if you are, please don’t criticize my humble attempt at writing this program.


Copyright 2021, William Johnson