Categories
Fixing Stuff Freenas Samuel

fixing file permissions for windows on freenas cifs share

So I ran into an issue today where I could not copy a file from my freenas machine down to my local windows machine. The exact error message was:

you need permission to perform this action

you require permission from Unix User\”username” to make changes to this file.

The solution to this problem is to open up your freenas shell window (just navigate to your machine in the browser window, login and hit shell). Once you do that locate the file you want to move and type “chmod 777 filename” and hit enter. That will change the permissions on the file and you will be able to copy it over to your local windows machine.

Categories
Fixing Stuff Samuel

auto trader theme fixes

to fix the pricing issues upload my local copy of the following:

taxonomy.php
this is the code:

template-search.php
this is the code:

promo_offer.php
(theme_config/extensions/shortcodes/shortcodes), this is the code:

' . $out .'

special_deals.php
(theme_config/extensions/shortcodes/shortcodes), this is the code:

' . $out . '

Let us know if you need more assistance.

side-right.php located in offer-views folder.

Categories
Fixing Stuff

Fixing WooCommerce Error

I was having the following error today on a woocommerce enabled website:

Division by zero in woocommerce/content-product.php on line 33

To Fix this issue:

1.) Navigate to Appearance > customize > section Woocommerce
2.) Change the selected column amount, grid style, and products per page.

*really just changing one will work, then save. This change is all you need to do, you can even change back to the original layout, woocommerce just needed to be saved in a different format.

Categories
Baseball

Breaking Down Jason Heywards deal

Jason Heyward left to joining the Chicago Cubs. People everywhere are promoting the idea that he left to join the cubs for less money than what the cardinals offered him. I’m going to break down why I think that is not correct, and why Jason Heyward maid a shrewd business decision that was all about money.

Offers:
Cubs 8 years, 184 million
23 million/year
Heyward has 2 outs, one after 3 years and 1 after 6 years

Cardinals:
10 years 200 million
20 million/year
No outs

In my view here is why Heyward choose the contract he did, it sets him up for a better contract in 3 years, and also gives him more guaranteed money now.

First 3 years
The first 3 years of Heywards deal reportedly pay him 78 million. That’s 26 million/year (factoring in bonuses). He has a clause to leave the contract without penalty after 3 years. If Heyward is doing well, he will leave the contract and pursue free agency. He will only be age 29, setting him up for a long term 8-10 year deal that will pay him well into his late 30’s. Had he taken the cardinals offer he would be coming out of that deal at age 36 will no viable way to get another long term deal.

In conclusion, Heyward chose:

26 million/year vs 20 million/year
The ability to hit free agency again at age 29 vs ability to hit free agency at age 36