Communicating Sequential Processes is a processing paradigm. The concept of CSP were first introduced and described by Tony Hoare in 1978 in his paper Communicating Sequential Processes. The basic of it is a formal language to describe patterns of interactions in concurrent systems. The formal language in mathematics are defined typically as the alphabet or

# Author: Bjarne

## Golang convert float to string

To convert a float to string in Go Golang you can use the string format function fmt.Sprintf Source: https://golang.org/pkg/strconv/

## Can’t uninstall program in Windows 10

Trying to uninstall program from programs and features in control panel can get you an error. Either it can’t find the uninstaller or you don’t have sufficient access like admin rights even though you do have administrator access. So what you can try is using Microsoft own fix for installing or uninstall a program by

## Converting Typescript const to function

In Typescript you can create functions in multiple ways either by using the function directly or having it bound to a const. We will first give an example of a const To convert this into a function change the first line. Your const name will be the function name, the argument will be added to

## Getting started with R how to install a package

To install a package in R call the install function in the prompt like this Then when you have install swirl you can load in the library in your R file by using library() Now the library swirl has been loaded and you can now call the swirl functions Source: https://www.rdocumentation.org/packages/utils/versions/3.6.2/topics/install.packages

## What does the =~ mean in bash

The character ~ is called tilde. And in relation to bash it’s used for regular expressions. The tilde ~ is part of the operator, so you need to use the equal and tilde like =~ If you e.g. have It will perform a regular expression match of your string, in this case txt matching you

## How to plot a matrix in R

To plot a matrix in R you can convert it to an array. So you could use the rnorm() function Source: https://www.rdocumentation.org/packages/compositions/versions/2.0-1/topics/rnorm

## How to add an extra row to data frame in R

Here is a quick example of how to add extra rows to a data frame in R. I’m using the colMeans() function to calculate a new value I want to add. First loading the data into a data frame with as.data.frame(). Then doing a simple for loop going from one to ten. Lastly adding the

## How to calculate mean for multiple columns in R with colMeans

There are multiple ways to calculate the mean for a column in R. So if you have a small amount of column. Or only need the mean of one of the column, you could use the mean() function. We’ll see later how to do it with colMeans(). You can’t do a range on the column.

## How to increment for loop by two in R

A simple for loop iterating by one can be done by using the range To increment by two you can use the seq function This will print out every second number, since it is iterating by two here. Source: https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/seq