[about] :: [index] :: [github]

How To Install OpenBSD7.0 on DigitalOcean

Recently, I had to set up a new server based on OpenBSD on DigitalOcean. While they do support non-Linux systems such as FreeBSD, they do not provide official supports for other BSD flavours such as OpenBSD. In this guide, we will see how to overcome this small inconvenient by manually flashing the installer image in the boot sector of the hard drive. Let’s get started. Create A New Droplet The first thing we need to do is to create a new droplet from the main menu of DigitalOcean as shown in the following picture.
Read more →

How to use Smart Pointers in C++

In this guide we will see smart pointers in C++ as a replacement to the old, unsafe, C-like pointers. I will assume that you have some knowledge of modern C++(i.e., $\geq$ C++11) and of object oriented programming. What Is a Smart Pointer? A smart pointer is an object that simulates a normal pointer while ensuring the program to be free of memory leaks. It achieves that by providing an automatic memory management system that deletes an object if no longer in use.
Read more →

Evaluating Limits With Euler’s Number

In calculus, there are many ways to evaluate(i.e., finding the actual value) a limit. There is not a preferred method over another, you have to learn all of them and choose the right one according to the limit you are trying to solve. In this guide, we will see how to solve limits using Euler’s number($e$). Before going further, I will assume that you already know the formal definition of a limit, how to solve them(at least the simpler one) and the basics of algebra.
Read more →

Install Arch Linux w/ LVM + LUKS + Systemd-boot

In this guide we will see how to install Arch Linux on UEFI AMD64 system with LVM and LUKS. Please, do not use it as a replacement of the arch wiki, instructions here get outdated pretty fast and while they were correct at the time of writing, I cannot guarantee that they will stay correct in a year or two. Download ISO Image First, we need to download the live ISO of archlinux from official website, then flash to a USB drive with:
Read more →

Asymmetrical Cryptography - An Overview of DH, RSA and ECC

Introduction To Public Key Cryptography Public key cryptography(also known as asymmetrical cryptography) is a type of cryptography that relies on a pair of cryptographic keys(i.e., private key and public key); this kind of cryptography is the opposed of the symmetrical cryptography where each actor must know the cryptography key before receiving or sending a message. Why It Is So Important? Asymmetrical cryptography is probably the most important kind of cryptography - at least in computer science - since it allows two parts who have never met each other before to safely exchange information over an insecure communication channel.
Read more →