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

Computing

PHP declare(strict_types=1);

Last updated on October 23, 2019 by Sal Ferrarello

What does declare(strict_types=1); do in PHP? PHP is a weakly typed language, which means that when a value is of the wrong type, PHP tries to cast it to the proper type. For example if you try to add an integer and a string, echo 5 + “3”; PHP will try to cast the string […]

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

Filed Under: Computing, Draft, Programming Tagged With: PHP

git warning: path is unmerged

Last updated on August 30, 2019 by Sal Ferrarello

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.

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

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

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.

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

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

A little boy pushing a large toy car.

WordPress and Forcing Major Updates

Last updated on August 22, 2019 by Sal Ferrarello

On August 7, 2019 a proposal was made on the WordPress Make Core website to Auto-Update Old Versions to 4.7, which is a long term plan that would start with automatically upgrading those on the minimum supported version of WordPress to the next version. This proposal has created a great deal of conversation and controversy.

Filed Under: Computing, Recommendations Tagged With: WordPress

Why Can’t I Host My Website on My Own Computer?

Last updated on August 9, 2019 by Sal Ferrarello

Whenever I’m talking to someone interested in their first website and I tell them about paying a hosting company where the website will live, they’ll often ask, “Can I host my website on my own computer?” This is a great question and while ultimately the answer is no, it is worth looking at why.

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

Filed Under: Computing, Draft, Recommendations Tagged With: Hosting, website

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.

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

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

Vim Close All Buffers Except the Current One

Last updated on May 26, 2019 by Sal Ferrarello

Vim has a built-in command to close all windows except the current one (:only), which is nice for focusing on a single buffer. Sometimes I want to cleanup my buffers by closing all of the buffers except for the current one. This custom command is like :only for buffers instead of windows.

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

Filed Under: Computing, Draft, Solution Tagged With: neovim, vim

Brew Failure in Upgrading to the Development Version Neovim

Last updated on May 20, 2019 by Sal Ferrarello

I wanted to run the latest development version of Neovim (0.4.0) to use some of the latest features (e.g. the floating window). Unfortunately, my attempts to install it were failing. These are my notes on the problem and how I fixed it.

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

Filed Under: Computing, Draft, Solution Tagged With: neovim, vim

Vim netrw duplicate file

Last updated on May 20, 2019 by Sal Ferrarello

When using Vim sometimes I want to duplicate a file, however the default file explorer in Vim (netrw) does not handle this well. This is a Vim mapping I created to make duplicating a file easier.

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

Filed Under: Computing, Draft, Solution Tagged With: netrw, vim

Screenflow Mono Audio to Stereo

Last updated on May 7, 2019 by Sal Ferrarello

Using Screenflow 6 with my Scarlet Solo USB connection, I end up with a recording only on the left channel. I want my recording to be on both channels (in stereo). This is how I do that.

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

Filed Under: Computing, Draft, Solution Tagged With: Screenflow

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

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