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]
**********************************************************************
CHEESE SPAETZLE:
Ingredients: For 4 persons
- 500 grs. of flour
- 5 eggs
- 1/8 ltrs. of water
- 2 onions
- 2 cloves of garlic
- 200 grs. of cream
- 250 grs. of grated Emmentaler
- salt, pepper
Tools:
- Spaetzle board
- Spaetzle grater
Preparation: Mix a pasty dough with the flour, eggs, and water (use a
mixer if available, otherwise ask someone to take turns...). Take a
medium sized pot, fill with water, add some salt, and bring to a
boil. Grate small portions of the dough into the boiling water (see
drawing below, don't give up too early, it needs some practise). Take
them out after the Spaetzle swim at the surface. Put them in a bowl
with some water and keep them warm in the oven. Continue with the rest
of the dough. Note: the water has to be boiling all the time. Cut the
garlic into tiny cubes, and mix them with cream, salt, and pepper. Put
alternating layers of Spaetzle and cheese in a casserole, pour the
cream on top, and put it into the oven at about 150 C for 20
minutes. Cut the onions into half rings and fry them slowly until they
are brown. Garnish the Cheese Spaetzle with the fried onions and
enjoy. (You should take white wine with this dish.)
How to grate Spaetzle:
/<-----------
Spaetzle grater / move up and down
--------->/
/ o o
/ oooooooo<-------- dough
/ooooooooooooo
/o/-------------------------
| Spaetzle board
o \-------------------------
ooo ||
o<------------------------ Spaetzle falling
|| into the water
~~~~~~~~~~~~~~~~~||
||
boiling water ||
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!