• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)

Disable Core WordPress Update Notice

Last updated on February 7, 2022 by Sal Ferrarello

When working on projects, I often want to strictly control the version of WordPress that is running. However sometimes one of the other administrators on the site sees the “WordPress 5.9 is available! Please update now.” message and clicks it, thereby prematurely updating to a newer version of WordPress core. This notice can be disabled.

Filed Under: Dev Tips, Programming, Solution Tagged With: WordPress, WordPress Core

git reset –hard vs git checkout -f

Last updated on February 8, 2022 by Sal Ferrarello

I recently had a conversation about “git reset –hard” vs “git checkout -f”, and it turns out they do the same thing. This is one of the tricky things about Git, there are often multiple ways to do the same thing.

Filed Under: Computing, Dev Tips Tagged With: Git

git alias tab completion for functions

Last updated on February 6, 2022 by Sal Ferrarello

When creating a Git alias that points to a function, sometimes Git provides the wrong tab completion by default (e.g. filename completion instead of branch name completion). This is how we can tell Git, which type of completion to use.

Filed Under: Dev Tips, Programming, Solution Tagged With: Git, git alias

git reset vs revert

Last updated on November 15, 2021 by Sal Ferrarello

Conceptually, “git reset” is erasing your last change while “git revert” is adding a new change that undoes your previous change.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Computing, Dev Tips, Draft Tagged With: Git

Check CORS Value from Command Line

Last updated on November 11, 2021 by Sal Ferrarello

I was checking a number of URL endpoints for CORS restrictions today and I wondered if I could check from the command line. Here are some example curl statement that get me the information I’m looking for. I think there is an opportunity for a custom function here but for now, these notes will do.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: CORS, curl

You’re Lucky to Have Special K

Last updated on October 19, 2021 by Sal Ferrarello

At breakfast, I told my son, “You’re lucky to have Special K cereal for breakfast.”

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Funny, Parenting Tagged With: original joke

Display Keyboard Shortcut in WordPress Gutenberg

Last updated on October 15, 2021 by Sal Ferrarello

In Gutenberg (a.k.a. the WordPress Block Editor), keyboard shortcuts are displayed differently on Apple devices and other devices, e.g. ^H on an Apple device and Ctrl+H on other devices. This is accomplished with wp.keycodes.displayShortcut.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: Gutenberg, JavaScript, WordPress

Using jq and nvm to set Node version

Last updated on March 3, 2022 by Sal Ferrarello

The nvm command allows you to switch between versions of node. Often a project will include a .nvmrc file to specify the version of node to use. Even if a project does not contain an .nvmrc file, you may be able to read the preferred node version from package.json and use that value with nvm.

Filed Under: Computing, Dev Tips, Programming, Solution Tagged With: command line, jq, node, nvm

ReactJS Component Limited Time Render HOC

Last updated on October 8, 2021 by Sal Ferrarello

I wanted to render a ReactJS component for a limited amount of time every time (think of a notification that pops up and then goes away). Ideally, we would like to be able to apply this limited time rendering to any component, so this was an excellent candidate for a Higher Order Component (HOC).

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Computing, Dev Tips, Draft, Programming, Solution Tagged With: React

Percent of Doctors Vaccinated Against COVID-19

Last updated on September 6, 2021 by Sal Ferrarello

I was interested in the percent of U.S. Doctors who have been vaccinated against COVID-19 and the results I found online were surprising. While the American Medical Association (AMA) reports “96% physicians have been fully vaccinated for COVID-19”. The Association of American Physicians and Surgeons (AAPS), reported nearly 60 percent said they were not fully vaccinated against COVID. Why are these numbers so different? As a former AP Statistics teacher, I wanted to find out.

Filed Under: Math Tagged With: statistics, survey

  • «Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to page 6
  • Interim pages omitted …
  • Go to page 40
  • Next Page»

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in