My lessons from life and software development

  • Imagination Needed In Science

    I used to think that science, one of my favorite fields, was the opposite of imagination—that it was all about facts, formulas, and strict rules. If I wasn’t in a creative arts field, then I wouldn’t be using my originality. But the more I’ve learned, the more I’ve realized that science is full of wonder.…

  • Being a goldfish – the happiest animal on earth

    Below is a piece I wrote for my Unitarian Universalist group In the world of professional soccer, emotions run high and setbacks can be devastating. But sometimes, the most profound wisdom comes from the most unexpected sources. I’d like to start this talk by sharing a scene from “Ted Lasso”, one that surprisingly relates to…

  • The Secret to a Long Life

    Below is a piece I wrote for my Unitarian Universalist group Tldr: We have an abundance of time, if we are intentional about how we spend it. Let’s explore how to ensure our lives are filled with meaningful moments, and avoid wasting one of our most precious resources: time. It may seem hard to believe,…

  • Finding Balance in a Binary World

    Below is a piece I wrote for my Unitarian Universalist group When I was growing up, as a kid in school, math was my favorite subject (anyone else here?). The numbers were easy to relate to, the operations were practical, and everything was just so LOGICAL.  I think one of the things I loved the…

  • How to Thank our Earth

    Below is a piece I wrote for my Unitarian Universalist group The observable universe is 93 billion light years across. It’s estimated to have around 2 trillion galaxies, with each galaxy a home to 100 trillion stars and planets. And of all those planets we’ve been searching for signs of life since we first looked…

  • This I Believe – Scientific Method

    Below is a piece I wrote for my Unitarian Universalist group Hi, I’m Shane – son, husband, and father of two young girls. And I believe in the Scientific Method. Now I realize that might sound a little silly at first – this is church, not a science class – but hear me out. For…

  • Calculating “Business time” logic in PHP

    Struggling trying to come up with a solution to calculate the time difference between two datetimes, with respect to when a business is open? I was too. First approach I looked into was a package that does just this: https://packagist.org/packages/hughgrigg/php-business-time . Unfortunately it doesn’t allow much configuration for constraints. Ie, if you have different hours…

  • Using HeidiSQL to connect to PostgreSQL through SSH tunnel

    Was trying to connect to a PostgreSQL database running through VirtualBox locally, but is only exposed though SSH. In order to do that, I have to connect through an SSH tunnel. I found the following article here http://www.heidisql.com/forum.php?t=15472 that says: SSH tunnel is built into HeidiSQL for MySQL only. For using a tunnel to a PostgreSQL…

  • Man page for Node JS

    NODE.JS(1) NODE.JS(1) NAME node – Server-side JavaScript SYNOPSIS node [ -v ] [ –debug | –debug-brk ] [ –v8-options ] [ -e command | script.js ] [ arguments ] Execute without arguments to start the REPL. DESCRIPTION Node is a set of libraries for javascript which allows it to be used outside of the browser.…

  • Does CURL follow redirects by default?

    What happens when PHP’s CURL library encounters a 301 Redirect header? It depends. By default, it does NOT redirect. It will simply halt after the header is returned. However, there is an option you can set that allows it to follow up to 5 redirects in a chain: the CURLOPT_FOLLOWLOCATION setting. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); Hope that helps…

About Shane

Shane is the creator of musician’s tool SongKeyFinder, and developer inspiration CodeKindly