• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Draft Posts
  • Speaking
  • Connect
    Twitter GitHub
You are here: Home / Archives for Dev Tips

Dev Tips


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

setUp() must be compatible with PHPUnit\Framework\TestCase::setUp

Last updated on August 26, 2019 by Sal Ferrarello

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 […]

Filed Under: Dev Tips, Draft, Programming, Solution Tagged With: PHP, PHPUnit


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

Markdown Avoid Auto Numbering

Last updated on August 26, 2019 by Sal Ferrarello

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.

Filed Under: Computing, Dev Tips, Draft, Solution Tagged With: Markdown


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

SVG Looks Pixelated When Small

Last updated on August 14, 2019 by Sal Ferrarello

I was working with an SVG and when it was sized down too small it became pixelated.

Filed Under: Dev Tips, Draft, Solution Tagged With: svg

WordPress Customizer button in Admin Bar.
Warning! This is a draft, not a finalized post. See full draft disclosure.

Getting Started with CSS and WordPress

Last updated on August 13, 2019 by Sal Ferrarello

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.

Filed Under: Dev Tips, Draft, Programming Tagged With: Customizer, WordPress


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

Use CTRL-[ as Esc in Vim

Last updated on August 2, 2019 by Sal Ferrarello

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.

Filed Under: Computing, Dev Tips, Draft, Recommendations Tagged With: vim


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

ACF database vs JSON Precedence

Last updated on July 17, 2019 by Sal Ferrarello

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).

Filed Under: Dev Tips, Draft Tagged With: Advanced Custom Fields, WordPress


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

Composer Ignore Cache

Last updated on June 11, 2019 by Sal Ferrarello

How to install dependencies with Composer (while ignoring your cached local versions). Typically, we shouldn’t have to do this but if we’re trying to recreate problems someone else is having it can be helpful.

Filed Under: Dev Tips, Draft, Solution Tagged With: composer

Boy looking through binoculars.

View Current Commit Message during Git Rebase Conflict

Last updated on May 27, 2019 by Sal Ferrarello

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.

Filed Under: Dev Tips, Solution Tagged With: Git, git-rebase


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

HubSpot API call fail INVALID_DATE not midnight!

Last updated on May 21, 2019 by Sal Ferrarello

When making a HubSpot API call to update a date picker field, I’m getting a response with “response code 400”, “error INVALID_DATE”, and the message includes “not midnight!”. This is why I’m getting this error and how I fixed this call.

Filed Under: Dev Tips, Draft, Programming, Solution Tagged With: DateTime, HubSpot


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

WordPress Database Prefix

Last updated on April 29, 2019 by Sal Ferrarello

By default all of the WordPress database tables will start with the prefix “wp_” (e.g. wp_users, wp_posts, etc.). Because this is the default value, you’ll often hear the tables referred to (and written about) using the “wp_” prefix. Let’s look at how and why this prefix is modified.

Filed Under: Dev Tips, Draft, Programming Tagged With: database, WordPress

  • «Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • …
  • Page 13
  • Next Page»

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