Curl is a fantastic tool for making web requests from the command line. As a developer, I find this tool particularly useful. Retrieve Content at a URL curl https://salferrarello.com/ Making a HEAD Call Sometimes, we want to see the Header Values returned from a URL using the HEAD. The HTTP HEAD method requests the headers […]
Dev Tips
git warning: path is unmerged
Sometimes after running git stash pop, I get a conflict warning and I want to discard any changes to a file. However, when I try to checkout the file I get an error message. Using reset and then checkout, lets me accomplish this goal.
Speed Up Video in Iframe
My wife has to watch some videos as part of an online course. These videos do not have speed controls, however she would like to watch the video at an increased rate (e.g. 1.5x the normal speed). The problem is the video appears in an iframe (which is in itself in an iframe) so targeting the video to change the speed with JavaScript is a little tricky. Here is how I did it.
setUp() must be compatible with PHPUnit\Framework\TestCase::setUp
When setting up a new site using PHPUnit 8.x and PHP 7.2, I got the error message: setUp() must be compatible with PHPUnit\Framework\TestCase::setUp Because we can now define the method as returning no value (with :void) and this is part of the method definition starting in PHPUnit 8.0.0, we need to add this in our […]
Markdown Avoid Auto Numbering
I spend most of my time doing my writing in markdown. One of the features I have mixed feelings about, is auto-numbering of ordered. There are often times when I need to modify the numbering. I like to do this by adding a backslash (\) before the period after the number, which renders the list as text. If you want to render the list with the ol/li markup, you can write the exact markup you want in your markdown document and it will render without any modifications.
SVG Looks Pixelated When Small
I was working with an SVG and when it was sized down too small it became pixelated.
Getting Started with CSS and WordPress
A great place to get started with web coding is CSS. CSS tells the web browser how to display the information on the page, for example the color, size, or font to use. WordPress makes it particularly easy to add your own CSS to your website.
Use CTRL-[ as Esc in Vim
The Esc key is not a convenient key to hit on the keyboard. While many will recommend you map another key to act as your Esc key, by default you can use Ctrl-[ instead.
ACF database vs JSON Precedence
When an Advanced Custom Fields (ACF) field group is defined both in the database and using the local JSON feature, the settings in the local JSON file always take precedence (except in the case of viewing the definition in the WP Admin screen).
View Current Commit Message during Git Rebase Conflict
When I do a git rebase and I get a conflict, I can use git log to see all the commits rebased thus far. However, I often get confused about what the current (incomplete) commit is that caused the conflict. It would be super helpful if I could see the commit message of the current commit. This command allows you to view the current (incomplete) commit during a rebase.