How to properly join threaded metal plumbing fittings

For a while I struggled with ensuring that a joint between two metal plumbing fittings did not leak. On my most recent project that required multiple threaded fittings I took some time, did my research, and finally sorted out the details.

There are four things to do that will ensure a water tight joint:

  1. Join like metals together: Use the same, or similar, metal types for both male and female fittings. If you have copper pipe, use a copper or brass fitting. When joining dissimilar types, the threads of the harder metal can distort or destroy those of the softer metal and will result in a leak.
  2. Use professional teflon tape: Do not use the cheapo, thin tape that you get at the commercial hardware store. Go to a professional plumbing supply store and get a thicker tape that is made for the type of metal you are using. Wrap it 3 or 4 times, and no more. Too much tape can cause it to bunch up and leak. Wrap it on the male threads, clockwise as you are looking directly at the male fitting with it pointed towards you so that when you screw it into the female fitting it continues wrapping the tape tight and not unwinding it. When applying it, unroll a bit of it and hold it to the male threads with your thumb, then wrap it around, pulling it tight into the valleys of the threads, but not too tight that it rips the tape. It is important that the tape is seated into the valleys of the threads.
  3. Use a good quality pipe dope, and less that you think: Once the tape is applied, coat it with pipe dope. Only fill the valleys of the threads so that the ridges of the threads are still visible.
  4. Tighten it to that “just right” torque: There is no universal torque spec for all plumbing fittings. Apply the same principle from automotive mechanics; ensure that you do not cross-thread the fitting and then tighten it until it starts to snug up and then tighten it “just a bit more” instead of “as tight as possible”. This is the most difficult part and does require some experience.

How to calibrate a Whirlpool WTW4816FW3, or similar, washing machine

There are many similar models of both Whirlpool, Amana, and Maytag washers to which this process applies. One of the first things to do with these machines if they are acting a bit wonky is to re-calibrate them.

The process is a bit esoteric and after finding a video of it online I wanted to write it down for future reference. In the following directions when it says “turn it R”, it means to turn the center control knob one “click” to the Right. “turn it L”, means one “click” to the Left.

  1. Turn the middle selector knob counter-clockwise, two “clicks” past Normal
  2. Turn it back to 12-o-clock, Normal
  3. Turn the knob, in the following sequence: L R R R L R. At this point, all of the indicator lights below the center knob should be blinking
  4. Turn the knob R until just the Done light is on
  5. Turn it R one click at a time until just the Rinse light is on
  6. Press the Start button
  7. It will run through the calibration process which takes about 1 to 2 minutes

Then run the washer as normal.

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

PDF Commands Cheat Sheet

Following are a number of common PDF processing commands on a Linux box

Convert a series of images to a PDF

convert image-1 image-2 ... images.pdf

convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF’ @ error/constitute.c/IsCoderAuthorized/426.

ImageMagick, specifically version 6 (im6), is preventing the conversion of PDF files due to a security policy. To address this

  1. As root, edit /etc/ImageMagick-6/policy.xml
  2. Search for the line <policy domain="coder" rights="none" pattern="PDF" />
  3. Update rights="none" to rights="read|write"
  4. Save the xml file

DID Motorcycle Chain Rivet Flare Specifications

I have decided to exclusively use DID chains where they make an applicable part. I have found that they last the longest and are not too much more expensive than competing products. I have also exclusively been using rivet master links as they are much more reliable than the clip types and the tools to properly rivet them are trivial to acquire.

Each time I replace a chain I have to go searching for the rivet flare dimensions, so I decided to just post them.

The following are specs from 2022. I am not sure if they have changed since.

Prepping a Motorcycle for Long-Term Storage

The best thing for a motorcycle is to ride it regularly. However, if you are not going to ride your motorcycle for two years or more the best thing for it is to mothball it properly so that it will not suffer long-term damage in storage.

Wash, polish, and wax

Give the motorcycle a really good bath. First rinse it and then wash all of the painted surfaces with soap and water. Then rinse and go back and use mineral spirits on a paper towel to remove any tar or hard to remove dirt. Then wash again with soap and water to remove the grime and mineral spirits and and rinse well. Wash the wheels, forks, swing arm, exposed parts of the engine, and exhaust trying not to get water into the exhaust. Use a leaf blower to blow most of the water from the bike and then use either a leather chamois or soft microfiber cloth to dry the painted surfaces.

Once the body work is completely dry, polish and wax it.

Clean, clean, clean

Remove all of the body work and clean as best you can. If the bike is really dirty, take it back outside and use a soft brush with soap and water to remove any grease and grime from engine casings, swing arm, forks, side and center stand, wheels, etc. You can also use WD-40 and/or Windex and soft rags to clean off grease and dirt.

Clean the chain with a proper cleaner that will not damage the o-rings or x-rings and a soft tooth brush.

Change the coolant

Drain the coolant by removing the coolant drain bolt (usually on the water pump) as best you can and then flush with a quart or so of fresh coolant. Re-install the coolant drain plug with a new crush washer and tighten. Fill with fresh coolant. When it is almost full, gently squeeze the exposed radiator and coolant hoses to force air to bubble up to the fill opening of the system. Continue to do this until you cannot fill it anymore. Flush and then fill the overflow reservoir and then run the bike.

Let it get hot, until the fans come on and then turn off the bike and let it cool. Let it cool about 10 minutes or so and then change the oil (see below).

Once it is completely cool, open the coolant fill cap and top off the system. Also top off the reservoir.

Change the oil and filter

While the motor is still warm change the oil and filter and fill with fresh oil. Turn it over, or run it to fill the oil filter and then top it off.

Drain Carburetors or Depressurize Fuel Lines

If you have carbs on your bike completely drain them. If your bike is fuel injected, remove the connection to the fuel pump from the wiring harness and start the bike, it should only run for a second until it stalls. This will relieve the pressure in the fuel lines to the injectors and mostly drain the fuel rail.

Fog the Engine

Remove the spark plugs from each of the cylinders spray some engine fogging oil into each of the cylinders and then turn the motor over a few times. Replace the plugs.

Drain Fuel Tank and Fuel Lines and Fog the Tank

One of the worst things that you can do for the bike is to leave it with fuel in it for a few years. You will almost certainly come back to a rusted out tank and the fuel pump and lines clogged with some terrible gunk.

Completely drain the tank. This is a bit more difficult than it sounds as you want to get ALL of the liquid fuel out of it. Start by turning off the petcock, attaching a fuel line to it and putting the other end into a sufficiently sized fuel container and turning the petcock to “Reserve” to drain as much fuel as possible.

If your bike has the fuel pump in the tank itself, without a petcock, you can either

  • Get a hand/ball fuel transfer pump and insert one end of the hose into the lowest part of the tank and pump it out
  • Disconnect the pump from the wiring harness and attach one end of some fuel line to the fuel pump outlet and put the other into a fuel container. Then power the pump directly with a 12v power supply to pump out the fuel. Ensure that as you turn off the pump as soon as it is dry or you can damage the pump

Once you have removed as much of the fuel as possible get some absorbent, long, rags; an old pair of kids sweat pants works great. Hold the tank vertically so that the lowest part is now the front of the tank and all of the remaining fuel has moved to what is now the lowest point. Stuff the rag into the tank towards what is now the lowest part of the tank to try to soak up as much of the remaining fuel as possible, making sure not to completely insert the cloth into the tank because you will need to remove it. Pick the tank up and move it around to try to get the fuel to come in contact with the cloth. Then, carefully, remove the now gasoline soaked cloth and discard it. Pick the tank up and gently rotate it. You should no longer hear fuel sloshing around in it. Continue the process until you no longer hear any liquid sloshing around.

Using compressed air, blow into the tank opening to try to dry out the remaining fuel. Then leave it open, overnight, to dry out.

The next day, take a full can of fogging oil (you can use the rest of the can that you used to fog the motor) and spray that into the tank. Removing the gas cap assembly will make it easier to spray into the tank at different angles. Try to coat the entire interior surface of the tank. Once you have emptied the can into the tank, reinstall and close the gas cap and then gently turn it around to ensure that you have coated the interior of the tank.

Flush Brake and Hydraulic Fluid

Completely flush all hydraulic fluids. Brakes and, if your bike has it, the hydraulic clutch. You can start by opening the reservoir and sucking out any fluid in there and then refilling it before flushing each of the systems. Ensure to run at least three reservoirs or more through each system until the fluid comes out completely clear. Top off with fresh fluid.

Lube Cables

Remove and lube all cables; throttle, choke, and clutch.

Lube/Coat the Chain

Lube the chain liberally with an appropriate chain lube. This will help prevent the chain from corroding.

Remove the Battery

Finally, remove the battery completely from the bike. More likely than not, if it is going to sit unused for a long time you will need to get a new one anyway and you do not want to worry about having to keep it on a tender or corroding and leaking acid all over your bike.

Put it up on “Blocks” Indoors and Cover it

Find a safe place to store it. The best places to store it, in descending order

  1. Climate controlled indoor space
  2. A garage
  3. A shed

Ideally, you will store it suspended by the frame and not the suspension.

Get a front stand that lifts the bike with a pin that inserts into the bottom of the steering stem and use that to lift the front wheel off of the ground.

If your bike has a center stand use that to raise the rear wheel off of the ground. You will probably need to put it on a few blocks of wood so that it raises it high enough to match the height of the front stand. If it does not have a center stand, you will need to fabricate some sort of stand on which the lower part of the frame rests, where the swing arm mounts to the bike

Cover the bike with a proper motorcycle cover.

Thanksgiving Roast Turkey

Ingredients

  • 12 – 20 pound turkey
  • 1 large yellow onion, quartered
  • 1 orange, quartered
  • 1 apple, quartered. It doesn’t matter what kind as it is going to cook inside the turkey and you will not eat it
  • 3/4 oz fresh rosemary
  • 3/4 oz fresh sage
  • 3/4 oz fresh thyme

Herb Butter

  • 1 cup unsalted butter, softened
  • 1/2 tsp salt
  • 1/2 tsp fresh ground pepper
  • 6 – 8 cloves of garlic, minced
  • herbs

Directions

  1. If the turkey is frozen, thaw it in the fridge for 24 hours for each 5 pounds of turkey. Ensure that your fridge is between 40 and 32 degrees F.
  2. Take the turkey out of the fridge 1 hour before putting it into the oven to let it come to room temperature. You can factor in the time to prep it.
  3. Preheat oven to 325 F and adjust your oven rack so that the turkey will sit in the center of the oven.
  4. Chop all of the fresh herbs but keep them separated
  5. To make the herb butter, combine the softened butter, minced garlic, salt, pepper, one tablespoon chopped rosemary, one tablespoon chopped thyme, and 1/2 tablespoon chopped sage.
  6. Remove the turkey from the packaging and remove the giblets and neck from the cavity. I usually put the neck in the cavity when cooking it. Pat the turkey dry with paper towels.
  7. Season the cavity with salt and pepper.
  8. In a large mixing bowl, combine the onion, orange, and apple and remaining chopped herbs and then stuff the cavity with this mixture and the neck. Use one or two trussing needles to close the cavity. Pull the skin together and then poke the needle through both sides of the skin. Then turn the needle and poke it through the skin going back the other direction, as if you were going to sew it closed, but leave the needle passing through both sides.
  9. Loosen the skin above the breasts and spread a couple of tablespoons of butter between the skin that the breast meat.
  10. Place the turkey in the roasting pan and tuck the wings under the bird or tie them to the bird with kitchen twine.
  11. Use a silicone rubber band to bind the legs together over the now closed cavity so that the legs are held close to the body. If necessary use kitchen twine to ensure that the legs and wings are held close so that they do not over cook. You want what is essentially a single blob of turkey without any bits sticking out.
  12. Spread or brush the herb butter over the outside if the turkey to include the legs and wings
  13. Roast at 325 F for about 12 – 15 minutes per pound, until the internal temperature is 160 degrees. Start cooking the turkey covered or tented in foil. Then remove for the last hour or so so that it browns.
  14. Check the turkey half way through the estimated cooking time and then other times as you get closer. Realize that the internal temperature does not rise in a linear fashion, but it more of a gradual exponential curve. It will take less time for it to rise 10 degrees towards the end of cooking than towards the beginning or middle. When testing the turkey with a thermometer check in the deepest part of the breast, and in the thigh between the body, ensuring not to hit a bone.
  15. Once at 160 degrees F, remove the turkey from the oven. Transfer it from the baking pan to a suitably sized cutting board and cover it with tinfoil and then a few layers of kitchen towels. This is the final cooking stage. The meat will continue to cook and cool slowly and as a result maintain its juices and moisture. Save the drippings in the pan to make gravy
  16. Let it sit for about 45 minutes and then carve it.

How to quit Amazon

I have considered quitting Amazon over the past few years, however Jeff Bezos recently kowtowing to Trump was the last straw.

Will it end up costing me more money to purchase some items and will it take longer for me to get them? For sure, but I am willing to live with that.

The first thing that I wanted to do was to get my purchase history. Often time, I will search through it to remember something that I bought in the past. It seems that Amazon offers a way to download a CSV of that data.

How to download all of your purchase history

  1. Login to Amazon
  2. Rollover Accounts & Lists and towards the top of the list select Account
  3. Scroll down to the bottom of the page and look for the Manage your data or similarly titled section. The YouTube video that clued me into this was only a year old and the verbiage on the page was different in the video
  4. Click on Request your data
  5. Click on Your Orders
  6. Click Submit request
  7. You will then be sent a confirmation email in which will contain a link that you will need to click on to start the process

The web page to which the confirmation email took me read

We will provide your information to you as soon as we can. Usually, this should not take more than a month. In exceptional cases, for example if a request is more complex or if we are processing a high volume of requests, it might take longer, but if so we will notify you that there will be a delay.

So, it could take up to 30 days to receive an email from them with the link to download your data.

Alternatives

Part of the problem of Amazon is that it is so good at aggregating products and has become the defacto product search engine. The fact is that most of the products on Amazon can be found through other online retailers.

Just search for what you want online and scroll past the Amazon links :).

There are also other “product aggregation marketplace” retailers

  • ebay: ebay used to be primarily for used and hard to find items that people would bid on, but there are now many retailers that are selling new products there.

I will expand this list as I find and use them.

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"
}