RSS Amplifier

Blog

Solarian Programmer

My Programming Ramblings

solarianprogrammer.comRSS feed ↗10 posts

Latest posts

Install Python with NumPy SciPy Matplotlib on macOS Big Sur (Apple Silicon arm64 version)

In this article, I will show you how to install Python with NumPy , SciPy and Matplotlib on macOS Big Sur. I will show you how to install natively the above three libraries, using arm64 Apple Silicon versions. I assume that you have one of the M1 or newer arm64 processors. If you have an Intel based Mac, please check my other article . MacOS Big Sur comes by default with Python 2.7 which, at this…

Getting Started with Clang and Visual Studio Code on Windows with MSYS2 and MinGW-w64

This is a short introduction in getting started with Clang on Windows 10 under MSYS2 and MinGW-w64. The Clang and LLVM binaries from https://llvm.org/ require that you to have Visual Studio 2019 installed on your machine, MSYS2 is a lighter alternative. In the last part of this article, I will show you how to use VS Code to build and debug a simple C++ program. This article is split into three…

Enable OpenSSH server on Windows 10

In this article, I will show you how to enable the OpenSSH server on Windows 10 and how to connect through ssh to a Windows 10 machine. By default, recent versions of Windows 10 have an OpenSSH client already installed, this means that you can use a Windows 10 machine to connect through ssh to other machines, typically Linux servers, that have an ssh server enabled. How about when you want to be…

Using the Visual Studio Developer Command Prompt from the Windows Terminal

In this article, I will show you how to use the Visual Studio command line compiler from the Windows Terminal . I will assume that you’ve already installed Visual Studio 2019 on your machine. In my case, I have installed the Community edition with the Desktop development with C++ workload. By default, the installer will create a few links for using the development tools from the classical Windows…

Getting started with C++ MathGL on Windows and Linux

In this article, I will show you how to install and get started with the C++ interface of MathGL on Linux and Windows. MathGL is a high quality scientific graphics library. In the first two parts of the article I will describe how to install the library and how to build a C++ MathGL example. In the third part of the article we’ll use MathGL to create a 2D function graphic and save it as an image…

Getting started with GSL - GNU Scientific Library on Windows, macOS and Linux

In this article, I will show you how to install GSL - the GNU Scientific Library on Windows, macOS and Linux, and how to compile and run a simple GSL program. GSL is a C library for numerical computations. You can use GSL for example to solve a linear system of equations, to fit a curve to a set of points, for numerical integration, statistical calculations and so on. You can find a detailed…

Install Code::Blocks and GCC 9 on Windows - Build C, C++ and Fortran programs

In this article I will show you how to install the Code::Blocks IDE on Windows and how to configure it to use GCC 9 for building C, C++ and Fortran programs. The advantage of this setup is that you will be able to compile any standard C99, C11, C++11, C++14, C++17 and Fortran program on your Windows machine. Please note, that Code::Blocks is available in two versions: as a standalone IDE, as an…

C++ Implementing a Chaos Game simulator

In this article, I will show how to implement in C++ the classical Chaos Game . We start with a regular polygon and a random initial point inside the polygon. Next, we randomly select one of the polygon vertices and add a new point at a fraction of the distance between the initial point and the polygon vertex. We take as initial point the newly generated point and iterate for a large number of…

Install GCC 9 on Windows - Build C, C++ and Fortran programs

In this article, I will show you how the install the GCC compilers on your Windows system using the MSYS2 software distribution. The advantage of this setup is that you will be able to build C, C++ and Fortran programs on your Windows machine and generate native Windows executables. Also, MSYS2 tends to offer the latest stable versions of GCC , which at the time of this writing is 9.2. There is…

C++20 span tutorial

According to the latest C++20 draft , a span is a non-owning view over a contiguous sequence of objects. In other words, a std::span is, in essence, a pointer, length pair that gives the user a view into a contiguous sequence of elements. The elements of a span can be, for example, stored in one of the standard library sequential containers (like std::array, std::vector), in a built-in C-style…