Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[beginners/tip] MealMaster files
04-09-2012, 11:15 AM
Post: #1
[beginners/tip] MealMaster files
It's a pity but there aren't much recipe managers for linux. Gourmet, Krecipes and a French one. Most of them are rather heavy (KDE, Gnome). Ofcourse you can use the internet, gnumeric or abiword for your own creations. But it's nice to look at other creations. One of the most used programs is MealMaster an old fashiod DOS program, no bell or whistles(There are at least 0.5 million recipes to find). Lot's of other programs used the format to 'save as' or the option to import these files.

The bad news is that the programs mentioned are to heavy for Delicate. The good news is that the .mmf files are plain ASCII.
Every recipe begins with: '*****imported from' or '-------imported from' and ends with a couple of stars or minus symbols, it depends on what MealMaster version is used). So you can read them with Leafpad or Midnight Commander. But some files are rather big, well I consider 3mb with plain text as big.

In that case I use the grep command to create a titlelist.
I'll go with the terminal to the directory where the .mmf files are stored and type the following command: grep 'Title:' example.mmf >>titlelist.txt
Only the titles are now being stored from the example.mmf in a file called titlelist.
After that I open leafpad and titlelist. If I see something what I like I copy the title and open the example.mmf and click on 'search' paste the title and voila it's there. :]

I know this isn't a replacement for a recipe manager and that MealMaster is working in DosBox. But I hope this may be a little help for those who like the kitchen as much as I do :]

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
04-09-2012, 02:02 PM
Post: #2
RE: [beginners/tip] MealMaster files
if you're sure there's no replacament for linux and it's easy to be developed .... then I'm volunteering for writing a simple GUI ... Shy
Visit this user's website Find all posts by this user
Quote this message in a reply
04-09-2012, 03:55 PM
Post: #3
RE: [beginners/tip] MealMaster files
Well, i've been looking for something like that (days and several times) and I know it for sure.
Those that I found where Gourmet, Krecipes and the French one.
They are using a lot of (heavy) dependencies. (Gnome, KDE or SQL)
Sure they can do more than just view MealMaster or MasterCook files, but.. not all of us need that.

I think that's ridiculous for just viewing plain ASCII files.
In the beginning I was using MealMaster (it's freeware) in combination with Dosbox, but that is a bit off an overkill too. That's why I'm using grep and the leafpad :]
The structure of .mmf or .MMF files are a bit different due the MM versions which are used.
I'll put 2 examples in it.

Code:
MMMMM----- Recipe via Meal-Master (tm) v7.01

     Title: C.v. Woods World Championship Chili
Categories: Meats, Main dish
  Servings: 12

      3 lb Chicken
      1 ts Oregano
  1 1/2 qt Water
      1 tb Cumin, ground
    1/2 lb Beef suet
    1/2 ts Msg
    1/4 c  Celery; finely chopped
      7 c  Tomatoes, peeled, chopped
      2 ts Sugar
      5 lb Pork chops, center cut, thin
      1 ts Cilantro
      4 lb Flank steak
      1 ts Thyme
      3 md Onions; cut into 1/2" pieces
      1 c  Beer
      3    Green peppers; 3/8" pieces
      2    Garlic cloves; chopped
      1 lb Jack cheese, shredded
      1    Lime; juiced
      6    Green chiles, long

  Cut chicken into pieces and combine with Water in large saucepan. Simmer 2
  hours then strain off broth.
  
  In 2 qt saucepan combine celery, Tomatoes and Sugar and simmer1 1/2 hours.
  
  BOil chiles 15 min until tender, remove seeds and cut in 1/4 in squares.
  
  Mix Oregano, Cumin, MSG,Pepper, Salt, Chili powder, cilantro and thyme with
  Beer until all lumps are dissolved. Add tomato mixture, chiles, Beer
  mixture and garlic to chicken broth.
  
  Melt suet to make 6-8 T  droppings.Pour 1/3 of suet drippings into skillet,
  add 1/2 Pork chops and brown. Repeat for remaining Pork chops. Add Pork to
  broth mixture and cook slowly 30 min.
  
  Trim all fat from flank steak and cut into 3/8 cubes. Brown flank steak in
  remaining drippings about 1/3 at a time. Add to Pork mixture. Return to
  simmer and cook slowly about 1 hour. Add Onions and Green Peppers, simmer
  2-3 hours longer, stirring with wooden spoon every 15-20 min. Cool 1 hour
  then refrigerate 24 hours.
  
  Reheat Chili before serving. About 5 minutes before serving time, add
  cheese.  Just before serving, add lime juice and stir with wooden spoon.

MMMMM
MMMMM----- Recipe via Meal-Master (tm) v7.01
new entry etc etc till MMMMM

Newer MealMaster files are like this

Code:
---------- Recipe via Meal-Master (tm) v8.05

      Title: Pizza Rounds
Categories: Pizza, Cheese/eggs, Breads
      Yield: 12 servings

      1 lb GROUND BEEF                         4 oz GREEN CHILIES
      1 lb HOT SAUSAGE                         1 ea DASH OREGANO
      2 c  GRATED CHEDDAR CHEESE               1 ea DASH GARLIC POWDER
      4 ea GREEN ONIONS, CHOPPED               1 ea LOAF FRENCH BREAD
      8 oz TOMATO SAUCE                  

  IN A LARGE SKILLET BROWN THE GROUND BEEF AND SAUSAGE. DRAIN WELL. STIR IN
  CHEESE, TOMATO SAUCE, CHILIES, OREGANO AND GARLIC POWDER. SPREAD ON THINLY
  SLICED FRENCH BREAD. PLACE UNDER BROILER UNTIL CHEESE BUBBLES. SERVE HOT.
  YOU CAN USE PARTY RYE BREAD INSTEAD OF FRENCH IF DESIRED.

-----

---------- Recipe via Meal-Master (tm) v8.05
New entry etc etc till -----

Maybe it's easy to program a simple viewer, I don't know...
They only thing that I'm pretty sure about is that I'm not gonna install KDE or Gnome for it :]

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
04-10-2012, 10:32 AM (This post was last modified: 04-10-2012 10:34 AM by nl2stk.)
Post: #4
RE: [beginners/tip] MealMaster files
This is what I use now, nothing special, just a quick Bash solution to automate some of the things I described above .
A tiny helping hand and very UGLY too Tongue
It was only meant to save me from typemismatches, and that is what it does :]
Well Tavvva if you can make a better solution, it's more than welcome.
Here is script that I use.
Code:
#!/bin/bash

# MealMaster-datafilereader for BASH
# No bells and whistles, just a small help
# Works with leafpad as a viewer
#
# (During a small bug??) It isn't possible to copy directly from the
# the ListFile.txt and use it for the mmf/MMF file.
# Therefore you must open another Leafpad and copy the title to it.
# If you open an MMF file you can copy the the title from the opened
# leafpad.
#
# Other information:
# If your having problems with the English measurements there are
# a lot of websites that can reach a helping hand.
# An example: http://www.cooking-solutions.com/conversions.html
#

clear

echo -e "\033[1m- Detected MealMaster datafiles  -\033[0m "
echo -e "\033[4m                                                                              \033[0m";
echo
ls *.mmf *.MMF
echo -e "\033[4m                                                                              \033[0m";
echo
echo
echo -e "\E[33;40mAvailable options:"; tput sgr0
echo
echo " [1] Create a TitleList file from MM"
echo " [2] Open TitleList file (don't forget to open leafpad ;) )"
echo " [3] Open mmf file, and use CTRL-F to 'find' the recipe title"
echo " [4] Delete TitleList file"
echo
echo -e  "\E[33;40mMake your choice:"; tput sgr0
read options

case "$options" in


  "1" )
  # "Create"
echo -n "Enter the filename and extension to create a listfile: "
read filename
grep 'Title:' "$filename" >>TitleList.txt
echo "List is created and the number of found recipes is:"
wc -l < TitleList.txt
  ;;
#

  "2" )
  # "Open TitleList"
leafpad TitleList.txt
  ;;
#

  "3" )
  # "Open mmf"
echo -n "Enter the name of the mmf file to be viewed: "
read filename
leafpad "$filename".*
  ;;
#

  "4" )
  # "Delete old"
rm TitleList.txt
  ;;
#
          * )
   # Default option.      
   # Empty input (hitting RETURN) fits here too.
   echo
   echo "Wrong choice."
  ;;

esac

# End

exit 0

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
04-11-2012, 10:07 PM
Post: #5
RE: [beginners/tip] MealMaster files
I just need to finish some linux related certifications and I'll be back and ready to work on that in few days ... stay tuned ..
Visit this user's website Find all posts by this user
Quote this message in a reply
04-13-2012, 08:35 AM
Post: #6
RE: [beginners/tip] MealMaster files
(04-11-2012 10:07 PM)tavvva Wrote:  I just need to finish some linux related certifications and I'll be back and ready to work on that in few days ... stay tuned ..

Important issues first, this is just a fun/handy part Smile
I guess no one is dying in the kitchen because (s)he can't cook without MealMaster Tongue

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2012, 10:25 PM
Post: #7
RE: [beginners/tip] MealMaster files
I just finished the exams and ready to move forward here ...
Visit this user's website Find all posts by this user
Quote this message in a reply
04-19-2012, 07:43 PM
Post: #8
RE: [beginners/tip] MealMaster files
(04-18-2012 10:25 PM)tavvva Wrote:  I just finished the exams and ready to move forward here ...

I hope that everything went well during the exams Smile
I have changed the batch file a little, but it's still handwork with copy and paste issues.

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
04-22-2012, 09:01 AM
Post: #9
RE: [beginners/tip] MealMaster files
(04-19-2012 07:43 PM)nl2stk Wrote:  
(04-18-2012 10:25 PM)tavvva Wrote:  I just finished the exams and ready to move forward here ...

I hope that everything went well during the exams Smile
I have changed the batch file a little, but it's still handwork with copy and paste issues.

Hi Theo ... yup, thanks for asking ... Now I have two certs hanging on the wall :]
Visit this user's website Find all posts by this user
Quote this message in a reply
04-24-2012, 10:54 AM
Post: #10
RE: [beginners/tip] MealMaster files
(04-22-2012 09:01 AM)tavvva Wrote:  Hi Theo ... yup, thanks for asking ... Now I have two certs hanging on the wall :]

Hehe.. I've got several papers which are lockup in safe place. My Novell papers are for the antiquestore (3.11/3.12). But it can be worser..I've got some Richmond related papers.. I hope they don't use it against me Tongue

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | DeLi(cate) Linux | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication