Deploying to github pages with gh-pages

Using gh-pages npm module to build and deploy a React app to github pages I get this error:

Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option).

According to this answer to an issue logged on the project, gh-pages expects your remote repo to be named ‘origin’ and doesn’t work if you use any other name when you ‘get remote add’ you repo for a project. Add the same repo with the name ‘origin’ and then it works as expected.

Managing and switching node versions with nvm

If you’re working on multiple projects with different node versions, switching versions can get tricky. nvm is a version manager for node that allows you to easily switch between versions. For example, I have a later non-LTS version installed, but to avoid issues like this one that I run into with later versions:

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

… I need to switch back to the current LTS version to avoid this error. This is easy with:

nvm use --lts

Connecting ForeFlight to MS Flight Simulator with Flight Events

Some Electronic Flight Bag (EFB) apps such as FltPln and ForeFlight can also connect to most of the popular flight sim apps like Xplane, MS FSX and FS Flight Simulator 2020.

FlightPlane has some great instructions for connecting to flight sims using a number of different approaches. The easiest option I’ve found so far is to download the Flight Events app from https://events.flighttracker.tech/ . Press the Join button top right and follow the instructions.

Enable the ‘Broadcast data to local network’ option. Initially ForeFlight didn’t show the Flight Events panel under ‘More… Devices’ until I entered the current ip address of my iPad on my network in Flight Events (instead of the default broadcast option) :

and the Flight Events appeared in the Devices panel here:

Click ‘Flight Events’, enable, and then ForeFlight is sync’d with your sim.