9 May 2020

C++. Include file. File Path

If the directory is in another path, you'll have to qualify the pathname. remember that .. goes one directory up. so, let's say the cpp file is in directory "myproject/a/source.cpp" and event.h is in "myproject/b/event.h". Your include would look like this:

#include "../b/event.h"

14 Apr 2020

13 Apr 2020

Setup Serial Port VM VirtualBox

for macOS, Unix

Enable in Virtual Box

Ports -> 
Host Device:
/dev/tty.wchusbserial1420

Important! In the guest system install drivers for the device that will be used with the port.

7 Feb 2020

How to set Python3 as a default python version on macOS?

Look where Python is installed.
ls -l /usr/local/bin/python*

Change the default python symlink to the version you want to use from above.
Note that, we only need to choose the one that ends with python3.*. Please avoid using the ones' that end with config or python3.*m or python3.*m-config.

ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python

Close the current terminal session or keep it that way and instead open a new terminal window.

Run this:
python --version

Popular Posts