Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
I recently upgraded to a new system, and instead of running Arch Linux natively I've decided to run it inside VirtualBox on Windows 10. Below I note down the steps I took, which closely follow the excellent wiki pages of archlinux. But along the way, I also noted a few other steps steps I took to make this system very comfortable, which you'll have to figure out for yourself if you like them or not!
There isn't much of preparation required, given that I started from scratch, but I did have to setup my windows environment a little bit.
- Install the windows package manager chocolatey
- Install qBittorrent (which will be used to download an iso copy of arch) by running the following command from the command line
choco install qbittorrent
(recommended to run the command line as an adm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Error before fixing: | |
# Xlib: extension "XInputExtension" missing on display ":10.0". | |
# Xlib: extension "XInputExtension" missing on display ":10.0". | |
#Find Atom / VS Code installation folder, e.g. /usr/share/atom or /usr/share/code | |
dpkg -L atom | |
dpgk -L visual-studio-code | |
#Find libxcb1 installation folder, e.g. /usr/lib/x86_64-linux-gnu/libxcb.so.1 | |
dpkg -L libxcb1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Windows batch script to run 1+ Python program/scripts, sequentially, within their virtual environment. This can be called from Windows Task Scheduler. | |
set original_dir=%CD% | |
set venv_root_dir="C:\Python-Venvs\env-name" | |
cd %venv_root_dir% | |
call %venv_root_dir%\Scripts\activate.bat | |
python your_python_script.py <arg1> <arg2> <arg3> |