Blog

  • Cloning or Checking out a repository with GIT

    You have your own GIT repository or you wish to checkout a copy of a publicly or privately available repository to your computer.

    To checkout or as GIT calls it, clone, a repository the git clone command. This command accepts many different arguments. In your command line, type: git help clone for the full supported list.

    (more…)

  • JavaScript – Search a string for a substring

    You want to search a string variable to determine if it contains a matching substring value.

    To search for a string inside of a string contains several different methods, each offering their own benefit. The most common solutions involve the indexOf function or using a regular expression with the match function.

    (more…)

  • Set Cursor Position of textarea with JavaScript

    In the following example, I will create some basic functions to allow you to set where the cursor goes inside of a textarea or <input type=”text”>. Let’s dive right into the core JavaScript code that will leverage similar functions to a JavaScript array:

    (more…)

  • posh-git: the only GIT command line tool I use

    You’ve installed GitHub on Windows, but the UI sucks. So you want to use command line, but you want to easily know the state your changes are in at any given moment.

    The best command line tool that I use is posh-git. I use Windows for my local development which means I am using the Powershell version of posh-git.

    (more…)

  • 10 year anniversary of End Your If!

    I cannot believe this blog started 10 years ago today. My first post was called: YSlow – Helping slow web pages load faster. I honestly do not even know if that technology is still used. I certainly haven’t thought about it in more than 5 years.

    I always find it fascinating to scan through my historical articles. Each year you can see a theme of what technology I was using when. For example, in 2012 I was posting heavily about Node.js.

    In 2011 I self published my first book about CakePHP. That book would have never come together without this blog, as the very early articles were heavily focused on CakePHP. A PHP library I still use today for many of my sites.

    During the 5th year anniversary in 2014 I was focused on using Ninject with MVC 4 followed by unit testing and test-driven development.

    2015 contained a lot of great Knockout.js examples (which coincided with my book about the very subject).

    In 2016 I apparently didn’t blog once, yikes! In 2015 and the start of 2016 is when I wrote two books back-to-back and that was one of the most exhausting things I’ve ever done.

    2017 and 2018 contains a large mix of C# and JavaScript.

    So far 2019 is off to a good start with a wide variety of topics staying in my comfort zone of C#, JavaScript, CSS, and coming soon will be a few Git tips and tricks (my source control of choice).

    To another 10 years!