Android Word Count
I was asked to add a word and character count to my Editor app. So I looked it up and found a Gist that uses BreakIterator. This relies on an embedded function that determines what is considered a word.
So I tested it and found that it gave different results to the linux
utility wc. However, the app already makes great use of regular
expressions, which include an expression for a word character \w
.
Pea and Ham (or Bacon) Soup
This soup is somewhat complicated to make, but delicious. Marrowfat peas need to be soaked overnight.
Ingredients
- Olive oil
- 1/3 cup dried marrowfat peas
- 1/2 teaspoon bicarbonate of soda
- 1/3 cup frozen or fresh peas
- 1/2 cup chopped ham or bacon pieces
- A medium sized onion, chopped finely
- Two or three cloves of garlic, chopped
- A stick of celery, chopped finely
- A medium sized carrot, grated
- 1/2 vegetable stock cube
- Milk
Method
- Soak the marrowfat peas overnight in a bowl of water with the 1/2 teaspoon of bicarbonate of soda.
- Discard the soaking water and rinse the marrowfat peas.
- Cover the bottom of a small saucepan with olive oil and place on a low heat. Add the onion and garlic and half the peas and marrowfat peas.
- Cover and allow to steam until the onion is soft.
- Scrape into a small bowl and zizz with a blender. This will make bright green sludge.
- Cover the bottom of the pan again with olive oil and add the bacon, if using. Place on a low heat.
- Allow the bacon to cook through before adding the celery, carrot, stock cube and the rest of the peas, or if using ham, add it last.
- Cover and allow to steam until the celery and carrot is soft.
- Add the green sludge from the bowl and cover with milk.
- Stir from time to time to prevent sticking and to prevent the milk from boiling until the marrowfat peas are soft. This may take up to 20 minutes.
- Serve with toast or crusty bread.
Caldo Verde
This is not the traditional method of making caldo verde. The cabbage should something like spring greens, collard greens or cavalo nero. Spinach beet works also. Roll up the leaves and slice thinly.
Delicious lunch for two.
Ingredients
- Olive oil
- Two or three green cabbage or kale leaves, sliced thinly
- A medium onion, chopped
- Two or three cloves of garlic, chopped
- A medium sized potato, preferably floury type, chopped into cubes
- About half a dozen slices of chorizo, chopped into small pieces and another half dozen slices left whole
- Half of a vegetable stock cube
- Milk
Method
- Cover the bottom of a small saucepan with olive oil and place on a low heat
- Add the chopped chorizo and allow to warm up until bubbling merrily
- Add the onion and garlic, the stock cube, the potato, and the cabbage/kale on top
- Cover and allow to steam until the potatoes mash easily with a fork
- Add milk to cover and mash most of the potato with the fork
- Allow to warm through until the milk starts to froth
- Meanwhile, warm up the chorizo slices in a small skillet over a gentle heat
- Season to taste and ladle into bowls, add the slices of chorizo and oil from the skillet on top
- Serve with toast or crusty bread
Turkey Gammon Broccoli Bake
This is a recipe for using up a Christmas turkey or chicken, gammon joint, veg etc. You will need a large saucepan for the veg and pasta, a small saucepan for the sauce and a casserole dish or similar to bake it in.
Ingredients
- Cooked turkey/chicken, chopped
- Cooked gammon, chopped
- Broccoli, cut into florets
- Any other veg that needs using
- Penne pasta
- Cheddar or Red Leicester cheese
- Plain flour
- Onion, chopped
- Garlic, chopped
- Celery, chopped
- Black pepper
- Dried oregano
- Olive oil
- Milk
Method
Meat, Broccoli and Pasta
- First cook the broccoli and any other veg in a large saucepan in the minimum of water. You will need enough veg to about half fill the dish you want to cook it in.
- While this is cooking, arrange the meat in the cooking dish, you will need enough to cover the bottom.
- When the veg is cooked reserve the cooking liquid and arrange the veg on top of the meat.
- Use the same saucepan to cook the pasta. You will need enough to fill up the other half of the cooking dish when cooked.
Cheese Sauce
- While the pasta is cooking cover the bottom of a small saucepan with olive oil and add chopped onion, garlic, celery, black pepper and oregano.
- Cook the onions, etc over a low heat until the veg turns soft and add about a heaped tablespoon of flour and stir it up. You will probably need to add more oil, or it will be too dry.
- Add the reserved veg cooking liquid and enough milk to half fill the pan. Keep stirring to stop it catching on the pan and add more milk as necessary.
- Add the cheese, chopped into small pieces and stir it in until it melts. The sauce needs to be runny enough to percolate down through the veg and pasta to the meat underneath.
Finish the Dish
- Drain the pasta and add to the dish and cover with the sauce.
- Grate cheese over the top of the dish, grind some black pepper over it and sprinkle with oregano.
- Place in a hot oven, 200°C for about 20 minutes until the top is browned and the sauce is bubbling.
- Enjoy.
Draught Hash Brown
Many years ago, in a hotel in Hollywood, we thought the breakfast was a bit overpriced. Someone suggested the Dunkin’ Donut across the road, so over we went. In there the guy was offering bacon, egg over easy, and hash brown for 99¢. I was intrigued with the hash brown, he just took a handful of grated potato from a plastic bag and chucked it on the griddle plate.
Ingredients
- Grated potato
- Vegetable cooking oil
Method
- Put some cooking oil in a hot medium sized skillet
- Grate your potatoes and put them in the pan
- Cook until browned underneath and turn over
- Serve when browned on the reverse side
Goes extremely well with bacon and eggs and the trimmings. If consolidated into a potato cake becomes a Swiss rosti.
Read more →