Vegan Pumpkin Pie

See the details in this recipe for preparing the fresh pumpkin.

Ingredients

  • 3 cups pumpkin, cooked and drained
  • 1/8 tsp salt
  • 1 tbsp cornstarch
  • 1 tsp vanilla extract
  • 1/2 tsp ground cinnamon
  • 1/4 tsp ground nutmeg
  • 1/4 tsp ground allspice
  • 1/4 tsp ground cloves
  • 2 tbs flour
  • 3/4 cup sugar (or less depending on how sweet the pumpkin is)
  • Pie crust

Directions

  1. Mix the sugar, flour, salt, cornstarch, and spices together in a large mixing bowl until well mixed.
  2. Add the pumpkin and vanilla and beat with a mixer until smooth.
  3. Pour into crust and bake for 45 min at 350 F and then for about 15 minutes at 375 if the crust is not yet brown.

Cool Completely Before Slicing. Cornstarch sets as it cools, not while it’s hot. Let the pie cool to room temperature at least four hours before cutting so the slices hold their sharp edges.

The Secret to Rear Brake Modulation is Inside Your Banjo Bolt

When riding a sport bike on the track, one of the ways to pick up time is to learn how to use the rear brake.

Most track day riders and racers will stay away from the rear brake entirely because it is easy to lock the rear wheel which makes for a very dicey entry into the corner. Using only the front brake is a good idea for newer riders who are still learning. More experienced riders know that using the rear brake is another tool in the toolbox to go faster, safer.

The top reasons to use the rear brake:

  1. Settle the chassis and reduce fork dive (Braking Zones)
    Applying a light touch of rear brake a fraction of a second before grabbing the front brake compresses the rear shock and pulls the back of the bike down. This keeps the bike flatter, reduces violent front-end dive, and stops the rear wheel from hopping or skittering during aggressive downshifts.
  2. Tighten your line mid-corner (Trail Braking / Apex Control)
    If you run slightly wide mid-corner, trailing a small amount of rear brake gently slows the bike and pulls the rear end down without loading the front tire (which is already busy handling cornering grip). This helps the bike turn tighter toward the apex without upsetting the suspension.
  3. Tame wheelies on corner exit and race starts (Anti-Wheelie)
    Modern sportbikes easily loft the front wheel under hard acceleration, both exiting corners and launching off the line. Covering the rear brake on race starts and dragging it when the front gets light lets you control wheelie height smoothly while keeping the throttle pinned. Unlike rolling off the throttle, which upsets the chassis and kills your drive, the rear brake lets you keep full power to the ground while keeping the front tire skimming the asphalt.
  4. Control rear tire spin (Corner Exit Traction)
    When leaning hard on corner exit and opening the throttle, light rear brake pressure acts like a manual traction control system. It takes the edge off sudden torque spikes, preventing the rear tire from breaking loose into a slide.
  5. Run off-track safely (Emergency Run-Off)
    If you blow a braking marker and end up in the grass or gravel trap, grabbing the front brake will almost tuck the front. Using the rear brake exclusively is the safest way to scrub speed off on loose surfaces while keeping the bike upright.

With that being said one of the ways to make it easier to use the rear brake is to reduce the size of the orifice in the banjo bolt on the rear master cylinder. This is a trick that I learned from Danny Walker, who runs the American Supercamp Riding School. I’ve taken this class a number of times and I would highly recommend it to anyone riding any kind of motorcycle.

Reducing the size of the orifice in the banjo bolt slows the rate that the fluid flows from the master cylinder to the caliper. This means that your foot runs out of pedal travel and downward leverage before enough fluid can squeeze past the bottleneck to overcome the natural flex in the lines and seals. In plain terms, it turns a hair-trigger on/off switch into a slow-building dimmer, giving you a wide, forgiving margin to modulate the brake without accidentally locking the rear tire.

What you will want is a number of banjo bolts with orifices of various diameter orifices to tune it correctly for your bike and the specific track.

To make them you will need the following

  • A handful of aluminum banjo bolts. Make sure to measure the diameter and thread pitch of the existing one and then buy ones that match
  • A bag of brake line crush washers
  • A handful of Mikuni BS30/97 air jets, I buy the 0.7mm ones and use that as my smallest starting point
  • A set of small drill bits with 1mm, 1.5mm, 2mm, 2.5mm, 3mm, 3.5mm bits
  • A couple 4.0×0.7mm starting taps and bottoming taps
  • A 3.3mm or 1/8″ drill bit
  • Cutting fluid
  • Green loctite

To make one of these:

Drill out the air jets

For each size that you want to create, drill out the orifice of the air jet. The way that I did it was to drill and tap a piece of aluminum that I could clamp in my vice. Then thread the jet into the aluminum piece, not too tightly, but tight enough that it holds it while I drill them out.

Install them into the banjo bolts

  1. Drill out the hole in the banjo bolt that goes into the master cylinder with the 1/8″ (or 3.3mm) bit.
  2. Use compressed air and to blow out the metal shavings
  3. Tap threads into it making sure to use cutting fluid
    1. First use the starting tap to cut threads into most of the channel
    2. Then switch to the bottoming tap to ensure that threads are cut for the entirety of the channel
  4. Put green loctite on the air jet threads ensuring to keep it out of the orifice and screw it into the tapped channel

Start out with a banjo bolt size in the middle and see how it feels. With spare fluid, crush washers, and a bleeder it only takes a few minutes to swap it out.

Baked Eggplant Parmesan

This is a small twist on the classic Eggplant Parmesan recipe; baked instead of fried eggplant. The end result is nearly indistinguishable from one made with fried eggplant and is much less greasy and healthier.

This is a bit of a loose set of ingredients because it all depends on how much eggplant you have . . . see below.

Ingredients

  • a few eggplants, this really depends on how much you want to make
  • a can of breadcrumbs
  • 3 or so eggs
  • ~1 cup of flour
  • fresh basil
  • 2 or 3 jars of spaghetti sauce. Or you could make your own and it much tastier
  • a couple of bags worth of shredded mozzarella cheese
  • a couple of bags worth of shredded Parmesan cheese
  • ground, or fresh ground, pepper

Directions

  1. Preheat your oven to 375F
  2. Wash and slice your eggplants into discs about 1/2 inch thick. Place them on a towel and lightly salt one side and let them sit for about 20 minutes to dry a bit.
  3. Get three medium sized mixing bowls. Into one put eggs and lightly beat them. The second, flour. And the third, some bread crumbs
  4. Lightly oil a cookie sheet with vegetable oil
  5. Take each eggplant slice and dredge it in the flour to coat both sides, then the egg, and then the breadcrumbs. Place the eggplant slices on the cookie sheet so that they do not overlap each other
  6. Bake for about 15 minutes a side or until they get golden brown. Flip and cook another 15 minutes
  7. Oil the inside of a large baking dish, large enough to hold two or three layers of your eggplant, the cheese, and sauce
  8. For as many eggplant slices that you have make a layer as follows: eggplants, then a generous amount of sauce, fresh basil, some Parmesan, mozzarella and some pepper.
  9. Continue to make layers until you are out of eggplant
  10. Put the baking dish into the oven and cook covered for about 20 minutes
  11. Remove the cover and bake until bubbly and the top starts to brown
  12. Remove from the oven and let sit for about 15 minutes and serve

How to Add Calcite to Your Home Acid Neutralizer

If your incoming water supply is acidic you will need to have an acid neutralizer and a water softener installed. The medium in the acid neutralizer is calcite and it slowly dissolves as it treats the water that flows through it. When you first purchase your unit and once it is flushed and in service you should shine a bright light through one side of it to see how full it is and mark it with a piece of tape or magic marker.

Over time, depending on the acidity of your water, you will need to replace the media as it dissolves.

Following are the steps to do so which includes servicing two different types of units; one with an inspection port (or domehole) and one without that requires unscrewing the head.

Supplies

  1. A helper is a must, doing it by yourself is very difficult
  2. A couple 50 lbs. bags of calcite. Having more than you think is better than not having enough. If you can find it at a retail store, or a company that services water treatment systems, it will be much cheaper since you will not have to pay shipping. Any type of calcite that is for acid neutralizers will work.
  3. N95 dusk masks
  4. A bunch of towels
  5. A approximately four or five foot section of hose or tubing
  6. A few five gallon buckets
  7. A large funnel
  8. Some food grade silicone lubricant for plumbing
  9. A short ladder or step ladder
  10. A bright flashlight
  11. A three foot dowel or other rigid rod you can use to check the calcite level as you fill it

For Both

Depressurize it. Hopefully you have sufficient bypass valves in the plumbing to and from the unit. Turn off the valve upstream to the unit and open either a drain valve or a faucet to relieve the pressure. Run the water until it is just a trickle.

For A Unit With an Inspection Port

  1. Mark with painters tape, or a magic marker, a corner of the cap, and mark the canister right by the tape. This will allow you to know how far the cap was screwed in so that you do not over tighten it when putting it back together.
  2. Hold a towel under/around the cap and slowly unscrew it while your helper is at the ready with the section of hose and a bucket.
  3. Once you get the inspection port off, put one end of the tube into the canister and suck on the other end to create a vacuum and siphon out about a 5 gallon bucket’s worth of water.

For A Unit Without an Inspection Port

  1. Unplug the electrical connection.
  2. Disconnect the head from the plumbing.
  3. Mark with painters tape, or a magic marker, a part of the head, and mark the canister right by the tape. This will allow you to know how far the head was screwed in so that you do not over tighten it when putting it back together.
  4. Have a helper hold a towel at the base of the head and unscrew it. Do this slowly. Unscrew it 1/4 of a turn and then back 1/8 of a turn. What you are trying to do is break any seal between the down pipe that goes to the bottom of the canister from the head so that you do not lift it out when you unscrew it. If you do happen do lift the down pipe, it makes it VERY difficult to reassembly and you will have to either trim the pipe, or lay the canister on it’s side to try to re-seat the down pipe and its base.

Adding the Calcite

  1. Use the hose to siphon out about as much water as you think you will need to add calcite.
  2. Have your helper hold the funnel in either the inspection port, or in the top of the canister. For units where you removed the head ensure that you DO NOT put calcite down the down pipe.
  3. One person will hold the funnel and other will climb up the step ladder and pour in the calcite. Wear your dust mask for this otherwise you will breath in a lot of very fine particles which are very bad for your lungs.
  4. Stop regularly to check the calcite level. Insert the rod into the canister to measure the level. You can also use a flashlight by shining against the opposite side of the canister, but if the calcite that you are replacing is a different color than the existing one you can accidentally overfill it. OVERFILLING IT IS A HUGE PAIN TO FIX. Ask me how I know this. If you overfill it, when it back washes the calcite will get stuck in the head and clog the drain tube and you will have to take it outside, and lay it on its side to dump out the excess calcite. All while ensuring that the down pipe does not come out. So, just add calcite slowly, checking regularly, until it is about two-thirds full.

Reassembly

  1. Ensure that the threads for either the inspection port or the head are clean by using a clean toothbrush and pouring water over them while gently scrubbing.
  2. Lube the top of the down pipe, if applicable, and any o-rings with food-grade silicone grease and re-assemble ensuring not to cross thread it.
  3. Screw until it starts to get snug and then re-align the tape marks made before disassembling it. If you can easily screw it past that point, you will need to go another 360 degrees to get to the correct torque.

Start-up Procedure for a Non Back Washing Head

  1. Start with both in and out flow bypass valves off.
  2. Turn a downstream faucet or hose bib on. Typically, these systems are plumbed with a ball valve overflow directly downstream from the unit.
  3. Turn the upstream water on.
  4. Open the downstream bypass valve all of the way
  5. Slowly open the inflow bypass valve to allow it to fill with water and push the air out.
  6. Once it is completely full and you can no longer hear any air moving through the system turn the downstream faucet off 85% and then completely open the inflow so that now both bypasses are completely open.
  7. Then connect a hose to the same downstream faucet or hose bib and open it about 30% and run it until the water is clear and all of the calcite dust is rinsed out.

Start-up Procedure for an Electronic Head

  1. Reconnect the flush outlet tube.
  2. Start with both in and out flow bypass valves off.
  3. Set the unit into manual regeneration/backwash mode. This will allow you to purge the air from the unit when turning on the water.
  4. Slowly open the inflow bypass until all of the air is purged from the system and only water is flowing out of the flush outlet tube.
  5. Once all air is purged open the inflow bypass all of the way and let the regen/flush cycle complete.
  6. Open the outflow bypass valve.
  7. You may have to run the regen cycle a few times until the water runs clear through the unit.

Clack WS1 EE

  • To enter the user programming mode press and hold NEXT and UP together for three seconds

Mount External, Encrypted, LMV drives

First decrypt the drive. When I plugged it in GNOME displayed a dialog and asked for the key. I’m guessing that cryptsetup luksOpen /dev/device device_crypt would work as well.

Run lvdisplay to get the LV Path for the logical volume that you want to mount.

Then, activate the volumes , there is a way to activate a specific one volume, but the following activates them all.

vgchange -ay

Then mount it

mount <lv-path> /mnt

My jq cheat sheet

jq is pure awesomeness. If every you want to “grep” through JSON data on the command line, this is the tool for you. Unfortunately, I don’t use it everyday, so when I do go to use it I forget the details for doing some basic operations.

Sample Data

[
    {
        "name": "Homer Simpson",
        "occupation": "Nuclear Safety Inspector"
    },
    {
        "name": "Marge Simpson",
        "occupation": "Mayor"
    },
    {
        "name": "Milhouse Van Houten",
        "occupation": "Student"
    },
    {
        "name": "Homeboy Van Somebody",
        "occupation": "Lawyer"
    }
]

Filtering

Often you will have json and you’ll want to filter out all objects that do not meet some criteria.

Selecting objects with a specific value

❯ jq '.[] | select (.name == "Homer Simpson")' sample.json 
{
  "name": "Homer Simpson",
  "occupation": "Nuclear Safety Inspector"
}

Outputting a new JSON object based on the input data

❯ jq '.[] | select (.name == "Homer Simpson") | {character_name: .name, job: .occupation}' sample.json 
{
  "character_name": "Homer Simpson",
  "job": "Nuclear Safety Inspector"
}

Using a regex

❯ jq '.[] | select (.name | test("Home"))' sample.json 
{
  "name": "Homer Simpson",
  "occupation": "Nuclear Safety Inspector"
}
{
  "name": "Homeboy Van Somebody",
  "occupation": "Lawyer"
}

Vegetarian Shepherd’s Pie

This is a recipe by Samantha Seneviratne.

Ingredients

Topping

  • 2 tablespoons kosher salt
  • 2 pounds russet potatoes, peeled and quartered (about 3 large)
  • 6 tablespoons unsalted butter
  • 1/2 cup whole milk
  • 1/2 cup sour cream
  • 1/2 cup packed grated Parmigiano-Reggiano cheese or vegetarian Parmesan (optional)
  • Freshly ground black pepper

Filling

  • 3/4 cup French lentils
  • 4 sprigs thyme
  • 3 1/2 cups vegetable broth
  • 1 teaspoon kosher salt
  • 4 tablespoons butter
  • 8 ounces sliced mixed mushrooms, such as button, cremlnl and shiitake
  • 1 large leek, white part only, thinly sliced (about 1 1/2 cups)
  • 2 medium carrots, peeled and diced (about 1 cup)
  • 2 cloves garlic, minced
  • Freshly ground black pepper
  • 2 tablespoons tomato paste
  • 2 tablespoons flour
  • 1 cup frozen peas, thawed
  • 1 to 2 teaspoons fresh lemon juice

Directions

  1. In a large pot, bring a gallon of water and 2 tablespoons salt to a boil over high heat. Add potatoes to boiling water and boil for about 15 to 20 minutes, until soft; a knife should go in with almost no resistance.
  2. Meanwhile, prepare the filling: In a 10-inch oven-safe skillet with high sides or an enameled cast-iron braiser over medium-high heat, bring the lentils, thyme and 2 cups of the broth to a simmer with 1 teaspoon salt. Reduce the heat and continue to cook the lentils, partly covered, until they are tender and most of the liquid is absorbed, about 20 minutes. Transfer the lentils to a bowl.
  3. Finish the topping: In a small saucepan or a microwave oven, heat 6 tablespoons of the butter and milk together until butter melts. Drain potatoes well and return to pot. Using a masher or a ricer, mash hot potatoes until smooth. Mix in the hot butter mixture and sour cream just until blended. Stir in 1/2 of the Parmigiano. Season to taste with salt and pepper. Cover and set aside.
  4. Finish the filling: Heat the oven to 375 degrees. Melt the butter in the 10-inch skillet over medium-high heat. Add the mushrooms and cook, stirring often with a wooden spoon, until they are deep golden brown, about 8 to 10 minutes. Reduce the heat to medium and add leeks, carrots and garlic, and continue to cook until tender, another 10 minutes. Season to taste with salt and pepper. Add the tomato paste and stir, cooking until it is well combined, another 2 to 3 minutes. Sprinkle flour over the mixture, stir and cook for 1 minute. Add remaining 1 1/2 cups broth, cooked lentils and peas, and cook until thickened. Remove thyme stems and stir in lemon juice to taste.
  5. Top the mixture with dollops of the mashed potatoes, then spread them out over the top. (Or transfer the lentil mixture to a 3-quart casserole dish and spread into an even layer, and top with potatoes.) Sprinkle with the remaining Parmigiano. Transfer to the oven and, if the mixture is at the top edges of your pan, set a foil-lined baking sheet underneath the pan to catch any drips. Bake the pie until the potatoes have begun to brown and the edges are bubbling, about 30 minutes. Let stand at room temperature for 15 minutes before serving.

PostgreSQL Query to Find Tables With Name LIKE

Sometimes you are working with a PostgreSQL database with A LOT of tables and looking for tables that contain a sub-string in their name. Following is a query that you can run that will return all of the tables that have the string in their name:

SELECT
  table_schema,
  table_name
FROM
  information_schema.tables
WHERE
      table_name LIKE '%<string>%'
  AND table_schema not in ('information_schema', 'pg_catalog')
  AND table_type = 'BASE TABLE'
ORDER BY
  table_name, table_schema
;

helm Cheat Sheet

Development Tips and Tricks

Test Template Rendering

Run the following. Instead of it installing the chart it will render the template and display the output

helm install --debug --dry-run <release-name> <path-to-chart-dir>

To test with an overriding value

helm install <release-name> <path-to-chart-dir> --dry-run --debug --set k=v

Deployments

  • List releases: helm list
  • Get the manifest for a release: helm get manifest <release-name> [flags]

Running GUI apps locally as root in a non-root session

There are instances when you need to run an X Window application. For me this is often running a terminator instance as root so that I can create tabs and split the window as still be root in each of those terminals.

In order for the root user to be able to connect to the X server you need to provide it with “credentials”. In this case it is on the same box and not over the network so the use of cookie authentication is acceptable.

As the user that is already authenticated to the X server run the following command to get the cookie used to connect to the the current $DISPLAY

rchapin@leviathan:~$ xauth list $DISPLAY
leviathan/unix:0  MIT-MAGIC-COOKIE-1  5fb2c0e68f4618ee4fa2202e1e4ae937

su to root and then run the following to add that cookie to roots authorization file

root@leviathan:~# xauth add leviathan/unix:0 MIT-MAGIC-COOKIE-1 5fb2c0e68f4618ee4fa2202e1e4ae937

You should now be able to run X windows applications from that root terminal.