Never use git push –force. Seriously, don’t use it. You should always use –force-with-lease instead. We’ll look at the problem with –force and how –force-with-lease addresses the issue.
Both HEAD^ and HEAD~ can be used in Git to refer to previous commits but in different ways.
Recently, I had the opportunity to work with some elementary students on their math fast facts (i.e. single-digit addition, subtraction, multiplication, and division). I noticed that I was able to keep the students much more engaged with one simple change.
By default Vim is the editor used when writing a Git commit message. While I love Vim, it does work very differently than most other editors. A good option for those who are not comfortable with Vim, is to use a different editor. This is how to setup Git to use a different editor.
The interactive rebase feature of Git is one of my favorites. I love being able to squash multiple commits into one commit or re-order my commits for clarity. My one complaint is the Git interactive rebase commit order is wrong (at least for the way my brain works).
When creating slides for my talks I use Reveal.js, which allows me to create slides using HTML. These are my general notes about creating presentations this way.
When I started attending WordPress conferences, I found it challenging to connect with people. Unofficial WordCamp Breakfasts have been a great way to start my day and meet people in small groups.
Is an extended warranty worth it? An extended warranty is a form of insurance, and those who sell insurance make their money on the fact they collect more money than they pay out in claims. Therefore at face value, purchasing an extended warranty (or any form of insurance) is statistically not profitable. However, I have my own guidelines on when to purchase it or not.
Slow websites are painful. An important value to look at when optimizing your website is the TTFB (Time Til First Bye), which is the delay between when the request is sent to the server and server actually responds. These are some of my notes on improving (e.g. reducing) the TTFB of a WordPress website.
When I’m ordering food (e.g. french fries), I often find myself doing the math. For 30% more money, I can double the amount of fries I get (i.e. 100% more fries). Clearly, this significantly reduces my cost per fry, which results in me buying the larger fry. However the problem is the cost per fry […]