Categories
Samuel Thoughts

A Great Thought Framework

From James Clear:

If you only do the work when it’s convenient or exciting then you’ll never be consistent enough to achieve results.
Professionals stick to the schedule, amatures let life get in the way.
Professionals know what is important to them and work toward it with purpose, amatures get pulled off course by the urgencies of life.
Professionals take action even when the motivation does not feel right
The only way to become excellent is to become endlessly fascinated by doing the same thing over and over. You have to fall in love with boredom.
The greatest threat to success is not failure, but boredom. 

Categories
Samuel Thoughts

A Healthy Thought

I had a bit of a setback day today. Nothing major at all, just several small things on the project that I’m working on didn’t go smoothly. Just small stuff like having to make multiple trips to the hardware store to buy something I didn’t realize I would need (not properly going through doing the task mentally beforehand can cause these types of double trips). After a few of these types of things added up towards the end of the day I was feeling a little annoyed and felt like it wasn’t the best day. Combined with the fact that I was not able to workout it gave the day a not so great feeling.

But as I reflected on it tonight I realized that the line from starting a project through to the finish is not a 100% straight line upwards. Today was a little bit of a jaz down day on that line, but tomorrow will most likely end up being a zip back up and feeling great. In terms of project status we really are getting close to completing our 2nd story unit now, in 1 – 2 weeks I think we are going to be seriously considering when to move and how best to get settled in. Ultimately with Christmas coming up in about 14 days there might be a little bit of a delay in deciding to move, but I don’t think it will be due to the house not being ready it will be more due to us just being super busy with holiday and family stuff and not wanting to feel super rushed with the move.

Categories
Samuel Thoughts

An Excellent Video

I found this video today and really enjoyed it, wanted to save it so that I could easily come back and find it later

Categories
Samuel Thoughts

A Good Thought To Remember

Watching this video (https://www.youtube.com/watch?v=oBH2Mdvl9ik&list=RDtkb26vFEp94&index=1) almost makes me sad cause sometimes I think we are all decent singers but then you listen to a dude like this and you realize some people just have a completely different level, kinda like we all learned that playing sports where eventually we learned like oh shit – people are way better than me. I kinda realize that about our work sometimes too, as in some developers just have another gear mentally.  Dross approaches that I feel like, but even still there are just insane people out there, guys who have done shit like invent a crypto currency haha so its cool to listen to that song, but it makes me feel all of those thoughts/emotions, which really are not bad per say, I feel like its 100% great to live a solid – non famous – non rich life, but then for whatever reason I just have this deep seeding feeling that comes from like the back of my head deep down somewhere, that say’s I’m supposed to do something pretty big with my life.  I dunno what exactly, and its not necessarily correlated to money or fame, but a kind of goodness – or something that benefits the planet or a large enough amount of people that I’ll be talked about to some capacity after my death by more than just my close group of family and friends.

If I’m perfectly honest I’ve had this overall thought since I was about 15 years old. I’ve felt like I should find a church in St. Louis, one that is most likely has predominantly black members. And that I would really enjoy that church, maybe because we had an African American man at the church I went to as a kid who ran the choir, one day he ran the entire service and just played music the whole time. It was freaking awesome and I actually enjoyed it, so maybe I’m wronly picturing a church with predominately African American’s as being a place that would more “real” and fun/musical than the stiff fake ass church I went to in the county as a kid. Literally 90% of what that church did was have a cermon – talk about the need for donations – then use those donations to build a bigger church – then talk more about how expensive it was to run the new huge building so they needed more donations to operate it…. at a young age I added up all the money and asked my parents, why didn’t they just take that money and buy food for homeless people, or do some actual good with it instead of just building a huge new building? Basically they were so self serving and talked so fake about helping people, so it left me with a very bad taste in my mouth for organized religion. But in my vision the church I find in the city is awesome, and filled with really cool people. And I’m able to setup a program that helps young kid’s with Ellen’s mom. We meet with the kids once per week and make them a big ass awesome dinner, and just hang out with them and be a positive roll model and or influence in their lives. And we also offer to lend our knowledge to church members during this time window, so they have someone to talk to about life stuff. Between my mom (highly successful lawyer) Ellen’s dad (highly successful business man) My dad (extremely knowledgeable about cars and fixing almost anything that runs), Me (very knowledgeable with IT/website/computer stuff + finances and accounting/bookeeping).

I think with all that knowledge we could help people out, so they didn’t get taken advantage of, and we could help kids out with college applications and or Job applications ect… I dunno it just seems like we could make a big difference in people’s lives. And also once we get the sisters house paid down or off, we could rent 1 or 2 of the units out to really good people from the church, we could just talk to people and find some really deserving family and just totally change their life, let them live at the sisters house for super cheap, and have their kids go to a great school in Mason.

Categories
Quotes Samuel

Amazing Quote

Stumbled accross an amazing quote today, from Brandon Lee – Son of Bruce Lee:

Well, I would say this: when you move down the road towards mastery of the martial arts—and you know, you are constantly moving down that road—you end up coming up against these barriers inside yourself that will attempt to stop you from continuing to pursue the mastery of the martial arts. And these barriers are such things as when you come up against your own limitations, when you come up against the limitations of your will, your ability, your natural ability, your courage, how you deal with success—and failure as well, for that matter. And as you overcome each one of these barriers, you end up learning something about yourself. And sometimes, the things you learn about yourself can, to the individual, seem to convey a certain spiritual sense along with them.

…It’s funny, every time you come up against a true barrier to your progress, you are a child again. And it’s a very interesting experience to be reduced, once again, to the level of knowing nothing about what you’re doing. I think there’s a lot of room for learning and growth when that happens—if you face it head-on and don’t choose to say, “Ah, screw that! I’m going to do something else!”

We reduce ourselves at a certain point in our lives to kind of solely pursuing things that we already know how to do. You know, because you don’t want to have that experience of not knowing what you’re doing and being an amateur again. And I think that’s rather unfortunate. It’s so much more interesting and usually illuminating to put yourself in a situation where you don’t know what’s going to happen, than to do something again that you already know essentially what the outcome will be within three or four points either way

Categories
Fixing Stuff Laravel Samuel

Laravel Comapact PHP 7.3 Temporary Fix

With PHP 7.3 being automatically pushed out to a lot of servers recently we noticed a bug that came up on severeal older Laravel sites. The bug is:

compact(): Undefined variable: operator 

public function addWhereExistsQuery(self $query, $boolean = 'and', $not = false)
    {
        $type = $not ? 'NotExists' : 'Exists';
 
        $this->wheres[] = compact('type', 'operator', 'query', 'boolean');
 
        $this->addBinding($query->getBindings(), 'where');
 
        return $this;
    }

A Fix for this bug can be found on this stack overflow article: https://stackoverflow.com/questions/56726263/compact-undefined-variable-operator

The specific fix is:

$this->wheres[] = compact('type', 'operator', 'query', 'boolean');

you just remove the 'operator' parameter

Please note this is just a temporary fix to remove the error page. The long term fix for this is that the version of Laravel will need to be updated, and then composer update needs to be run to pull in the latest packages that will work with the new version of Laravel, and they will handle the new behavior of the compact method. The old version allowed for empty variables to be passed to the compact method, but in PHP 7.3 if an empty variable is passed to the compact method it presents you with that nice error message 🙂