SSL Certificates Tutorial
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 …
Read More
Simple Linear Regression Model
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 …
Read More
Read from console in C++
#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 …
Read More
Split a string in C++
#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 …
Read More
ASCII
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 … |
Read More
Greek Alphabet
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.
Read More