SSL Certificates Tutorial

Tue 30 March 2021

TLS versus SSL

TLS (Transport Layer Security Layer) and SSL (Secure Sockets Layer) are protocols which provide secure communication. Both are cryptographic protocols which encrypt data and authenticate a connection when transfering date on the internet.

TLS is a more recent version of SSL, it is based on SSL and …

Category: Security

Read More

Simple Linear Regression Model

Fri 13 November 2020

Simple Linear regression assumes that the relationship between a dependent variable y and explanatory variable x, can be modelled as a straight line of the form y = a + b * x; a and b are the regression coefficients. a represents the y‑intercept (the point where a graph of a function …

Category: Modelling

Read More

Read from console in C++

Wed 01 January 2020
#include <iostream>
#include <string>
#include <sstream>
#include <vector>

using namespace std;

int main() {
  // read 2 integers, seperated by space
  int a, b;
  cout << "Enter 2 integers, seperated by space: ";
  cin >> a >> b;
  cout << "a: " << a << ", b: " << b << endl;

  // read single word c-style string.
  // NB: May not contain spaces.
  char season …

Category: Snippets [C++]

Read More

Split a string in C++

Wed 01 January 2020
#include <string>
#include <iostream>
#include <sstream>
#include <vector>

using namespace std;

vector<string> split(const string& s, char delimiter) {
   vector<string> tokens;
   string token;
   istringstream tokenStream(s);
   while (getline(tokenStream, token, delimiter)) {
      tokens.push_back(token);
   }
   return tokens;
}

int main() {
  string a = "";
  string b = "ab^cd";
  string c = "ab^cd …

Category: Snippets [C++]

Read More

ASCII

Wed 01 January 2020

ASCII (American Standard Code for Information Interchange) is a commonly used 7 bit character encoding scheme which provides up to 128 character encodings.

ASCII Character Table

Dec Hex Char Description
0 00 ^@ Null (NUL)
1 01 ^A Start of heading (SOH)
2 02 ^B Start of text (STX)
3 03 …

Category: Standards

Read More

Greek Alphabet

Wed 01 January 2020

The greek alphabet is invented around 800 BC by the ancient greeks. Besides its usage in the greek language, it is widely used in many domains of mathematics and science. E.g. around the year 1600, Johannes Bayer used the greek alphabet to name the 172 brightest stars.

Uppercase Lowercase …

Category: Standards

Read More
Page 2 of 2

« Prev