Recipe¶
Octopus has a recipe CalculationMode that will print you a tasty recipe, randomly selected from those available in the package. This is typically used as smoke test to check that the binary is compiled and installed correctly.
Let us try this out by running the following cells:
mkdir -p 7-recipe
%%writefile 7-recipe/inp
CalculationMode =recipe
Writing 7-recipe/inp
!cd 7-recipe && octopus > out.log 2>&1
************************** Calculation Mode **************************
Input: [CalculationMode = recipe]
**********************************************************************
Sugo con zucchini (per la pasta)
Ingredients for 4 persons:
- 2/3 of an onion
- 500 gr of pasta
- 1 clove garlic
- 1 carrot
- 1 stick of celery
- 4 zucchini (courgettes)
- 2 cans of peeled tomatoes
- olive oil
- salt/pepper
Recipe: cut the carrots, celery and onion into small pieces. Slightly fry
them in olive oil. Then add the zucchini, cut in medium-sized pieces. Before
the onion turns red, add the tomatoes and let it boil slowly for (at
least) 20 min. Keep stirring. Add salt and pepper to your taste. If the
sauce is too acid, you can add a small amount of milk. Serve with (lots
of) boiled pasta.
DISCLAIMER: The authors do not guarantee that the implementation of this
recipe leads to an edible dish, for it is clearly "system-dependent".
There are currently recipes available in English, Spanish, Italian, and Basque. Which one you get is controlled by the LANG environment variable, so if you run LANG=es octopus, you may get:
!cd 7-recipe && LANG=es_ES.UTF-8 octopus > out_es.log 2>&1
************************** Calculation Mode **************************
Input: [CalculationMode = recipe]
**********************************************************************
PULPO A FEIRA:
Ingredientes: Para 4 personas
- 2 kg. de pulpo
- 2 kg. de papas / patatas
- 100 grs. de aj� / chile / piment�n picante
- 100 grs. de sal gorda
- aceite
Preparaci�n: Se lava el pulpo en agua fr�a, se pone una olla de cobre con
agua al fuego y cuando rompa a hervir se coge el pulpo, se mete y se saca
del agua tres veces dejando que en cada intervalo vuelva a hervir el agua.
Se deja cocer el pulpo durante unos 20 minutos retir�ndolo del fuego y
dej�ndolo reposar durante 5 minutos. A continuaci�n, se quita del agua y
se corta en trozos finos con unas tijeras. Para servirlo se pone en unos
platos de madera condiment�ndolo por este orden: sal, piment�n, aceite y
se a�aden unos cachelos (Patatas).
DISCLAIMER: The authors do not guarantee that the implementation of this
recipe leads to an edible dish, for it is clearly "system-dependent".
Contributions in other languages are welcome!