Python: Partition and RPartition

Found a neat pair of methods that were added in Python 2.5 — it’s like split/index except it handles breaking the string into two elements for you. A tuple is returned with the part before the separator, the separator, and the part after the separator. If the separator is not found, element 0 and 1 are empty strings.

 

C:\Users\lisa> python
Python 3.13.3
Type “help”, “copyright”, “credits” or “license” for more information.
>>> test = “This is a string | with pipe characters as | delimiters in the string”
>>> print(test.rpartition(“|”)[0])
This is a string | with pipe characters as
>>> print(test.partition(“|”)[0])
This is a string
>>>

Pizza – AIP Style

The idea was to make a pizza-like meal without any wheat, tomatoes, or refined sugar. This crust didn’t work so well, and the sauce is more of a barbecue sauce than a tomato paste.

The dough was the Paleo Baking Flour from Bob’s Mill — recipe from the back of the bag. I added some ground flax seed. It was something, but didn’t hold up as a pizza crust.

Sauce was a “banana ketchup”

  • 2 cups mashed ripe banana
  • 1 Tbsp olive oil
  • 1 large onion, chopped
  • 3 cloves garlic, minced
  • 1 tsp ginger, minced
  • 1/2 c apple cider vinegar
  • 1/2 cup maple syrup
  • 2 Tbsp coconut aminos
  • 1/2 ground tumeric
  • 1/2 tsp salt
  • up to 1/2 cup water

Heat olive oil in a pan, add onion, garlic, and ginger and saute until onions are translucent. Add mashed banana and stir. Mix in remaining ingredients except water. Cool over low heat for at least 15 minutes. Remove from heat and allow to cool. Blend in a food processor until a smooth puree forms.

Fresh “sausage” – cube pork, sprinkle with salt and fennel seeds. Allow to sit for at least 15 minutes. Grind, saute until cooked.

Topped the dough with sauce, fresh sausage, and cheese (still working on a good AIP cheese replacement!). It was good, but not pizza.

 

Pasta – AIP Style

Sauteed one medium onion, a handful of baby carrots (mostly for color), and steamed cauliflower. Pureed all in a blender with ~1 tsp tumeric, salt, 1 Tbsp of nutritional yeast, and garlic (next time, roast the garlic … this just tasted like raw garlic!).

This created a sauce for the pasta

Cooked garbanzo bean pasta and added the sauce. Stirred and served.

So it kinda looks like noodles and cheese … but it doesn’t taste anything like mac and cheese.

Blender – Applying The Scale

We were playing with Blender this evening to modify a 3d model to mount the mirror on our Ranger — it reminds me a lot of learning vim where there’s just a lot of hidden “type this character and it does magic stuff“. Which, ironically, I love vim because of this … however I’ve also been using vi and vim since 1994. So I know the random character to type. Blender … not so much yet.

Oddity of the day — after scaling an object, you need take an additional step otherwise it’s not really scaled and measurements show up with unexpected values. To reset the scale:

Hit Ctrl + A
Select Scale in Object Mode to apply the current dimensions as the new scale of 1

 

They call this applying the scale. Which … I expected it did when I entered the scale factor and stuff changed size on the screen. But now I know!

Iced Green Tea

I got some Sencha green tea that’s supposed to be very healthy for us, but steeping yielded heavy tannin taste. Using cooler hot water helped, but it still wasn’t something I’d look forward to drinking every day. So I tried cold extraction – a half gallon of cold water and about 1/4 cup of green tea in a large mason jar, set in the fridge for at least 12 hours. It’s quite good – light, refreshing, and there’s absolutely flavor there.