Crock Pot Black Bean Soup

Prep: 20 minutes; Cook: 2 hours; Total: 2 hours 20 minutes; 8 Servings


  • 3 15oz. cans black beans drained and rinsed
  • 1 4 oz. can green chilis
  • 1 cup chunky salsa
  • 1 cup vegetable broth
  • 1/2 medium white onion, finely minced
  • 3 tablespoons minced garlic
  • 2 tablespoons cumin
  • 1.5 tablespoons chili powder
  • 1 teaspoon paprika
  • 1/4 teaspoon salt
  • 1/4 teaspoon pepper


  1. Place everything in a slow cooker, mix well, and cover.
  2. Cook on high for 2 hours, stirring
Continue reading “Crock Pot Black Bean Soup”

Thai Curry Tofu

Curried tofu made with coconut milk.

  • 1 tablespoon canola oil
  • 1 (12 ounce) package extra-firm tofu, drained and cubed
  • 1 tablespoon seasoned salt, or to taste
  • 1 tablespoon butter or margarine
  • 1 small onion, chopped
  • 3 cloves garlic, minced
  • 1 (10 ounce) can coconut milk
  • 2 teaspoons curry powder
  • ½ teaspoon salt
  • ¼ teaspoon ground black pepper
  • ¼ cup chopped fresh cilantro
  1. Heat oil in a large skillet over medium-high heat. Add tofu cubes, season with seasoned salt and
Continue reading “Thai Curry Tofu”

Baseline Settings for a VirtualBox Instance for a GUI under Debian 10

The following is a list of the basic VirtualBox settings to start with when using a VM with a GUI. Make sure to install the Guest Additions on the VM as well.

  • System
    • Motherboard
      • 4+GB of RAM, or whatever you have available
    • Processor
      • 2+ CPU (if you have the available cores/threads)
  • Display
    • As much Video Memory as you can spare
    • Graphics Controller: VBoxVGA

Continue reading “Baseline Settings for a VirtualBox Instance for a GUI under Debian 10”

Mousse au Chocolat or Chocolate Mousse Recipe

Serves 8 to 10

  • 4 x 1 ounce-squares unsweetened chocolate
  • 3/4 cup sugar
  • 1/4 cup water
  • 6 eggs, separated
  • 2 tablespoons dark rum
  1. In top of double saucepan combine chocolate, sugar and water. Cook over hot water, stirring occasionally, until chocolate is melted.
  2. Add egg yolks, one at a time, beating well after each addition. Remove from heat; cool.
  3. Meanwhile, in mixing bowl beat egg whites until stiff but not dry.
  4. Stir rum into chocolate mixture; pour over egg whites.
Continue reading “Mousse au Chocolat or Chocolate Mousse Recipe”

message=class configured for SSLContext:$TLSContext not a SSLContext When Mocking Static Methods in Class

When mocking static classes with Junit4, Mockito and PowerMock, you may see the following log messages after annotating your test class if the code that you are testing is making HTTP connections:

message=class configured for SSLContext:$TLSContext not a SSLContext

Your annotations for the class (or method) typically include the following:

@PrepareForTest({ SomeClassYouWantToMock.class })

This may cause some confusion, especially if whatever other code that you may have ONLY uses HTTP. Add the following to your annotations to tell → Continue reading “message=class configured for SSLContext:$TLSContext not a SSLContext When Mocking Static Methods in Class”

Creating a Counter or Progress Bar for a Python Program

I’ve written a number of Python apps where I would like it to print some sort of counter or progress bar to STDOUT to let me know that it is still running instead of locked up or died somehow without me being able to see it.

I had tried using a couple of different existing progress bar related modules but none of them really worked except in a very specific use case.

So, after a bit of futzing around I → Continue reading “Creating a Counter or Progress Bar for a Python Program”

How To Spy and Verify a Static Void Method in Java

The Mockito and PowerMockito libraries for JUnit4 are not always the most intuitive.

Following is an example of how to spy and verify a static void method.

    public void testAdd() {

        // Prepare the Utils class to be spied.

        // Run the test and get the actual value from the OUT
        int actualValue = App.add("Test1", 1, 1);

         * To verify the number of times that we called Utils.doSomething we
         * first need to tell the PowerMockito library 
Continue reading “How To Spy and Verify a Static Void Method in Java”

Using sed with regex capture groups

There are many times when you have a file from which you want to extract specific strings based on a regex and using a capture group is a very efficient way to parse multiple strings from the same line.

I have found that sed is the easiest way to do so on the Linux command line.

Given the following input file:

This is a line of text with a year=2020 month=12 in it
This line of text does not have 
Continue reading “Using sed with regex capture groups”

Configuring rsyslog to rotate log files from log messages streamed to it from a Systemd service

In general, I have moved to writing all of my applications to write their log output to STDOUT. This makes running them on the command line, in an IDE, on a bare metal box, VM, or in a container completely decoupled from how you store and view the logs. No more having multiple logging configs for each flavor of deployment.

In this particular case, I am running an application in a container (but it isn’t necessary that it is in → Continue reading “Configuring rsyslog to rotate log files from log messages streamed to it from a Systemd service”

12×9 Sheet Pan Cookie Cake

This is for a 12×9 inch sheet pan cookie cake.


  • 3 cups all-purpose flour
  • 1 TBSP cornstarch
  • 1 1/2 tsp baking soda
  • 1/2 tsp salt
  • 1 cup light brown sugar
  • 1/3 cup granulated sugar
  • 2 1/4 cups unsalted butter
  • 1 cup dark or semi-sweet chocolate chips
  • 2 eggs
  • 1 TBSP vanilla extract

If you have a stand mixer this is much easier, but if all you have is a hand mixer that will work too.

  1. Preheat oven to 350
Continue reading “12×9 Sheet Pan Cookie Cake”