At some point when pushing your code to a remote server (e.g. GitHub, Bitbucket, GitLab) you’re going to see an error that says, “failed to push some refs” and “Updates were rejected because the tip of your current branch is behind its remote counterpart”. This occurs when someone else pushes code to the remote server that you don’t have. Don’t panic, we can fix this.
There are lots of ways to target a git commit and one way that I often forget to use (but really like it when I remember) is targeting a specific git commit by the commit message.
The checksum is like a fingerprint for the file. A file is processed through a known algorithm which results in the checksum, a.k.a “hash”, which is a string of letters and numbers unique to that file, e.g. 8ab686eafeb1f44702738c8b0f24f2567c36da6d. If the file is modified, the resulting checksum will be different. This allows a quick way to […]
At php[tek], I got the opportunity to meet Nicolas Steenhout. In addition to everything else he does, in the php[tek] slack channel he shared some recommendations for transcription companies.
On the Mac OS X bash command line, you can delete all directories, with the exception of one, in the following way. If our current directory has sub-directories and we want to delete all of them except, ./really-important-do-not-delete, we can run $ shopt -s extglob $ rm -rf !(really-important-do-not-delete) $ ls really-important-do-not-delete $ original source
I like to use Reveal.js for building my slide decks. Getting an image to display full-screen (while avoiding the image being cut-off) can be difficult. The data-background-size attribute provides a solution to this problem.
With the newly released WordPress 5.0, which includes the new block-based Gutenberg editing experience, many people are installing the Classic Editor plugin to retain the previous behavior. The Classic Editor plugin is the official solution being prescribed for these situations. No problem, install the Classic Editor plugin and 5.0 will be indistinguishable from 4.9.8 for […]
Search tips for Twitter copied from tweet thread at https://twitter.com/TexanTruth42/status/996533468707414016
When dealing with distances in space, I’ve found that I don’t have a good conceptual framework for understanding these large distances. I’ve found reframing these distances in terms of “Car Years” (and “Car Days”) to be helpful. What is a Car Year? A car year (cy) is the distance covered by traveling at 60 miles […]
Recently, I was commenting to my wife that I find myself often going to my Draft posts for notes I’ve taken on completing some task. I complained that these posts were not ready to be published as they had not met my high standard of quality (i.e. I hadn’t removed the most obvious typos and […]