After creating a pushing a new branch to GitHub (or any remote), when I do “git pull” I often get an error that says “There is no tracking information for the current branch”. The Git config value “autoSetupRemote”, introduced in Git version 2.38, lets us avoid this entirely error.
vim.keymap.set() coc to confirm completion with lua
I’m currently rewriting my Neovim configuration using lua rather than using vimscript. I’m using the coc.nvim plugin and want to map return (
Beginner Mastodon Intro
As a Mastodon beginner I wanted to document what I’ve learned while everything is still new and fresh to me. You can find me on Mastodon at phpc.social/@salcode.
Moving to a Different Mastodon Server
When I first signed up for Mastodon, I created my account salcode on https://mastodon.social/. Eventually I decided I wanted to be on a smaller server, specifically https://phpc.social/. These are my notes on how I made this move.
trailingslashit() vs untrailingslashit()
WordPress has two functions that can be helpful when dealing with the final character of a URL, trailingslashit() and untrailingslashit(). I find it preferable to use untrailingslashit() for two reasons: 1. It does not break empty checks and 2. It makes my sprintf() statements more readable.
Compare composer.json on Two Different Git Branches
I have composer.json files on two different branches and I want to compare their (non-dev) dependencies. This is the command I run to compare the “require” section of composer.json on my current branch to the “require” section of composer.json on another branch.
HP Laserjet 1020 Printer on a Mac
My HP Laserjet 1020 printer no longer has supported drivers for my Mac. Here are the drivers and settings I used instead.
Tarenheit: A New Temperature Scale
My son is studying unit conversions in school and as a family we were discussing how you can’t use the same technique (multiplication) when converting between Celsius and Fahrenheit. Out of this conversation came a new temperature scale, Tarenheit (rhymes with Fahrenheit). Tarenheit is exactly 32° less than Fahrenheit.
Robert Preston visits Reading PA
Joke: Did I ever tell you about the time I got to welcome Robert Preston to a baseball game in Reading, PA? I was there to greet him when he got out of his limo and I asked him, “Who is your favorite minor league ball team?” and he replied, “Fightins, star greeter.”
Check If We Can Do a Git Fast-Forward Merge
When I’m working with Git, there are times I want to check if I can do a fast-forward merge but I do NOT want to actually perform the merge.