Categories
Fixing Stuff Laravel Samuel

Fixing Laravel Localhost Email Issue

While updating a clients site today we ran into an error message when trying to do a test on a submission for a new contact form that was created, the error message read:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html

To Fix This Issue we Completed the Following Steps:

I am using PHP 7.1.9 for my WampServer, so change 7.1.9 in the example below to the version number you are currently using.

;curl.cainfo

  • Change it to:

curl.cainfo = "C:\wamp64\bin\php\php7.1.9\cacert.pem"

  • Make sure you remove the semicolon at the beginning of the line.
  • Save changes to php.ini, restart WampServer, and you’re good to go!

That fixes our issue with the curl error if we are using localhost to server our site, but if we are using php artisan server to dispaly the webpage then we also need to complete the steps below:

If your laravel project is located in c:\wamp\laravel\ then you should be able to call http://localhost/laravel/public and see the default laravel welcome page or your own.

  1. Open your /app/config/app.php file and check that the value of url directs to your project. 'url'=>'http://localhost/laravel/
  2. Then open your .htaccess file and add the RewriteBase rule under the RewriteEngine On Line RewriteBase /laravel/public/

Credit for these answers goes to:

Categories
Quotes Samuel Thoughts

A Great Quote

This is an excellent Quote I stumbled onto today and wanted to preserve it so I could easily come back and find it in the future:

If you don’t stack up to your own values, well — guess what? Everything prior to this moment is over, and everything after this moment is yet unwritten in your life’s great story, and you are the sole author and arbiter of what takes place in your garden. There are no excuses; there can be no bitterness towards an unjust world, because in your garden, there is only beauty and light and good, fertilized by the decisions you choose to make
Categories
Phase Two Samuel Sisters House

Plumbing Tips

Please excuse the lack of polish on this post, this is mainly written as a helpful list that I can look back on in the future and hopefully remember some of the intricacies I’ve learned by trial and error from plumbing my new house.  This is written from my perspective as a total novice plumber, before attempting the sisters house remodel project I had never done any meaningful plumbing in my life, so many of these items below will cover base level errors that anyone who is attempting a plumbing project without any prior knowledge will run into, hopefully someone out there finds some of these tips helpful as well 🙂

  • Whenever possible create a scaffolding between two ladders, it’s much easier to work on than a traditional ladder.
  • Assembling pieces: Create the assembly of pieces you’re working on and dry fit the entire thing together.  IE if you are creating a shower trap and drain connection to a main line, create the vertical piece, the trap, and the connection to the main line before gluing any joints together.
  • Gluing Tips:
    • Use a small mallet to get the dry fit pieces very tight
    • Look at what you’re gluing and determine the part closets to the drain. So for example on a p-trap glue the last fitting that ties into the vertical up to the actual drain, glue that piece last as it is the most critical piece, and it can rotate.
    • Glue in 1 direction, IE if you are connecting a shower to main line glue from the main line towards the shower fixture, don’t glue one piece from the main line then one piece by the shower drain, stay moving in 1 direction or you will end up in a bind.
    • Try to glue as many of the pieces as possible on the ground, its way easier to push the pieces together and form a great connection on the ground than above your head.
    • After gluing any piece, reassemble all parts your working on and dry fit them again. Don’t glue multiple joints on the ground without re dry fitting the whole assembly. The process will start to feel super repetitive, but as soon as you glue multiple joints without re-dry fitting everything and putting it back in place you will end up with a fitting rotated improperly or at the very least you will end up with a fit that is far worse than if you re-assemble each time before gluing the next piece.
    • Use a marker to mark the desired location on both pieces you are gluing.  Don’t mark multiple pieces only mark the one you are currently gluing as the position will likely change somewhat as you progress.
  • Always buy the longer 5 inch metal stud guards, they offer better protection from rouge drywall screws.
  • Rules on 90’s and Bends:
    • Use long sweeping elbows when the flow of water is going to slow down, IE if you are transitioning to a long horizontal run. 
    • Use short sweeping elbows when you are transitioning to a vertical pipe.
    • Use long sweeping elbows when you are catching water from a vertical drop and transitioning to a long horizontal run.
  • Rules on Vents:
    • Try your best to create a dry vent for each fixture
    • When you’re connecting in vents in the attic convert the pipe to 3 or 4 inch as quickly as you can and then join all your 2 inch vent connections into that, don’t just multiple 2 inch connections together you will create a choke point and overload your vents.
    • Use an air trap vent on island sinks.
Categories
Fixing Stuff Samuel Uncategorized

A Couple Physical Therapy Exercises

Jaw pain: 

*these are great as well: https://www.healthline.com/health/tmj-exercises#exercise

  1. Place the tip of your tongue on the roof of your mouth. Open your mouth as wide as you comfortably can, and hold for 5-10 seconds.
  2. Place the tip of your tongue on the roof of your mouth. Glide your lower jaw out as far as it will go and then back in as far as it will go. Hold for 5-10 seconds in each position.
  3. Slowly and steadily open your mouth as wide as it will comfortably open, with your tongue in a neutral position. Hold for 5-10 seconds then close your mouth. Next, open your mouth slightly and glide your lower jaw back and forth 5-10 times.
  4. Close your mouth. With your head facing straight ahead, glance to the right with your eyes only. Extend your lower jaw to the left and hold for 5-10 seconds. Repeat on the opposite side.
  5. Place a thin object, such as a pencil or paintbrush, in between your front teeth. Slide your lower jaw forward so that the object rests in between your back teeth and front teeth. Hold for 20 seconds.

knee and hip pain:

1. Lengthening Stretch

Because the iliotibial band is a connective tissue and not a muscle, you can’t really stretch it (or it would take too much force than you are capable of). But that “tight” sensation can be alleviated by stretching the surrounding muscles. This move stretches the tensor fascia latae, a muscle that runs across the hip and outside of the leg. Cross the injured leg behind the other leg and lean toward the uninjured side. First, stretch with your arms over your head, creating the shape of a bow from ankle to hand with the injured ITB on the outside, then bring your arms down to touch the ankle on the inside of the bow. Hold for 15 seconds and repeat 10 times. Perform 3 sets a day.

2. Clam Shell

Place a resistance band around your legs just above the knees and start by lying on your left side with head resting on left arm, knees bent and stacked. Slowly draw right knee up toward ceiling to open legs like a clamshell. Perform the exercise slowly with emphasis on good form. Build up to 3 sets of 10 repetitions on each leg. When this exercise becomes easier and the leg remains pain-free during the process, you can move on to more advanced strengthening.

3. Side Leg Lift

Start by lying on your left side with legs straight and feet stacked. Lift your right leg straight up, then extend the leg backward in that plane, move it forward, and then return it to the starting position. Form is very important. Check that you have a straight line from shoulder to ankle with the top hip slightly in front. (Do not let the top hip rotate backward.) Perform the sequence slowly with toe pointed down. Build up to 3 sets of 10 reps for each leg. Once you can handle that with no pain, make the move harder by lifting body into a side plank position with shoulder directly over elbow and hips lifted as shown. Build up to 3 sets of 10 reps for each leg.ADVERTISEMENT – CONTINUE READING BELOW

4. Single-Leg Squat

Start standing and shift weight to right leg. Balancing on right foot, send hips back and bend right knee to lower one-quarter of the way down into a squat. Make sure the knee stays straight over the foot and does not collapse inward. Extend arms straight out for balance.

After you have mastered the straight quarter squat, make the exercise more challenging by mimicking running form, extending the unsupported leg behind you and bringing it through to lift the knee in front of you. Ultimately, work your way up to touching the ground in front of you on the forward lean. Then you can progress to holding a medicine ball overhead.

5. Hip Hike

When strong enough, eccentric strengthening works the hip abductors in the same manner in which they function during running. Stand with left foot on a step or a stair, and let the right foot hang off. Place hands on hips for balance, then raise the other foot by lifting your hip on that side, while taking care to stay in a straight, upright position. Slowly lower the hip to the bottom of your range of motion, while staying upright. Perform 10 repetitions on each side and build up to 3 sets.

Categories
Samuel Thoughts

My Current Meal Plan

For reference, my current meal plan is below:

Breakfast: 

  • 3 free range eggs with ground chicken teriyaki & sweet potatoes 
  • 20 oz Protein Drink or Amazing Greens drink w/MCT oil, strawberry protein & everly drink mix to taste

Lunch: 

During Summer A Big Salad From The Garden with:

  • Lettuce Cut Salad From Garden – or romaine/spinach mix
  • 1oz chopped cashews
  • 1/2 chopped apple or pear
  • 1/3 cup shredded cheese
  • Hot Giardiniera
  • Olive Oil & Vinegar
  • Mustard
  • Optional Grass Fed Ground Beef or Shredded Chicken

During Winter A Big Medley Of:

  • 1 Cup cauliflower rice
  • 3/4 cup chopped and cooked sweet potatoes
  • 1/2 cup frozen carrot slices
  • 1/2 cup frozen broccoli florets
  • Giardiniera hot peppers to taste
  • Scope of frozen sweet peppers from the summer garden to taste
  • Wholbers stone ground mustard to taste
  • Greek Yogurt to taste

*A great meat hack is to purchase all meat in bulk from a local meat processor or farmer. You will save massively over store bought prices.

Dinner:

  • 1 Cup cauliflower rice
  • 3/4 cup chopped and cooked sweet potatoes
  • 1/2 cup frozen carrot slices
  • 1/2 cup frozen broccoli florets
  • Optional 1/2 cup ground turkey or beef or 1 chicken breast
  • Giardiniera hot peppers to taste
  • Scope of frozen sweet peppers from the summer garden to taste
  • Wholbers stone ground mustard to taste
  • Greek Yogurt to taste

This meal plan has a roughly 32 carbs, which based on my previous eating habits feels about perfect for my body. If I want to mix in an optional dessert, it can be a rice cake with almond butter and a light dusting of erythritol, for an added 18 grams of carbs.  Beyond that, I get plenty of carbs during social events and/or date nights. If I want to get fancy and cook a decadent meal I just find one from this website and follow along (https://www.seriouseats.com/recipes).  Transitioning to this meal plan cut my monthly food budget from $600/month to roughly $250.

Categories
Samuel Thoughts

Just A Simple Guy

In many ways all I want to really be is a simple guy.  Growing up however, I honestly thought for a long time that I would be a professional athlete. Either a hockey or baseball player.  I suppose that might even be a pretty common thought for many kids as they grow up.  Once I got into College and I realized professional sports were not in the cards, this was about the time that I was starting my own business.  For several years after I started my business I thought that I would build something that would catapult my business into stardom. Building something like Twitter, or Facebook, basically some type of software as a service business.  I even chased this dream for several years, squandering over 40 thousand dollars on one large scale project.  Luckily before I wasted too much time and energy chasing that dream I realized that I actually didn’t want to own a large company, or even really be a part of one.  I would much rather keep the company small, work at my own pace and make enough money to live comfortably but I had no need for truck loads of money to buy a bunch of fancy possessions.

As I get into my 30’s now, it is a strange feeling to realize that I don’t want to be some big famous type of person, a professional athlete or president of the United States or even president of a big company.  For all my life I’ve had a great confidence that emanates from deep down in me. A confidence that has motivated and driven me.  I’m honestly not even 100% sure where it comes from, but even to this day if you ask me if I can do something or figure something out, pretty much anything, I’d tell you that I can.  I’d take on the challenge and direct so much mental energy and focus at it that the problem would wilt under the pressure.

But it’s odd knowing that I might never be a well-known inventor or businessman. Someone who will be studied in history books.  That I might just live a completely ordinary life, be a great husband, a great dad, a great friend & accomplish some impressive feats (like renovating a 100 year old house… a feat I’m currently working on )

It’s odd though; I still cant escape that nagging feeling that my character in this game of life is supposed to do something big and meaningful that impacts the world…. I guess we’ll just wait and see how it turns out!