Sina’s Blog: CS and AI

  • Learn SSH: Config File

    In this article series, I will explain how to use a command-line terminal to connect to secure shell (SSH) servers, using the config file for quick access to frequently used servers, and setting up an SSH server on macOS, Ubuntu, or CentOS. Table of Contents: – Introduction– SSH CLI Commands– SSH Config File SSH config file makes […]

  • Learn SSH: CLI Commands

    In this article series, I will explain how to use a command-line terminal to connect to secure shell (SSH) servers, using the config file for quick access to frequently used servers, and setting up an SSH server on macOS, Ubuntu, or CentOS. Table of Contents: – Introduction– SSH CLI Commands– SSH Config File Establish SSH […]

  • Install Python 3.7 on CentOS with all dependencies

    In this post, I will go through installing Python 3.7 and all its dependencies on CentOS. Unlike Ubuntu, Python is not readily accessible using ‘yum’ package manager on CentOS. Therefore, we first need to install a few packages before installing Python. Now that we installed all the dependencies, we need to download the latest Python […]

  • Learn SSH: Introduction to SSH on Unix-based systems

    In this article series, I will explain how to use a command-line terminal to connect to secure shell (SSH) servers, using the config file for quick access to frequently used servers, and setting up an SSH server on macOS, Ubuntu, or CentOS. Table of Contents: – Introduction– SSH CLI Commands– SSH Config File So, what […]

  • How to install Lapack on Mac OS?

    This is a question I get asked a lot. Lapack is actually included in Accelerate library provided by Apple. You can include it in the header file of your C++ source code. Refer to this post for more information on how to use Lapack included in Accelerate. If you like to use the latest version […]

  • Write a solver for systems of equations by using Lapack on Mac OS

    Apple provides the Accelerate library which includes the linear algebra library (Lapack). In this post, we will go through writing a simple C++ program to use this library on Mac OS. Let’s solve the following equations: We can rewrite the equations as: Now, let’s write our code: Now, run the code by using the following […]

  • What is my gateway address?

    Choosing a gateway address on Linux machines is an easy task to perform. Let’s consider a network consisting of three Linux machines as Figure 1 shows.  Let’s consider following subnet and IP addresses: Subnet 1: 10.0.0.0/24, IP Address 1: 10.0.0.1, and IP address 2: 10.0.0.2. Subnet 2: 11.0.0.0/24 and IP Address 3: 11.0.0.1. Subnet 3: 12.0.0.0/24 , […]

  • Asymmetric Static Routing Network using Ubuntu Machines

    In asymmetric routing, data packets take different paths to go from source to destination and to come back [source].  To set up an asymmetric network on Linux machines running Ubuntu 16.04, first, we need to configure the systems to act as routers. Let’s consider a network of 3 hosts and 3 routers as Figure 1 […]

  • MS SQL on MacOS: Connect to your database using Python

    In this article series, I’ll review the tools and options to connect to an MS SQL server on macOS. Table of contents: Use Oracle SQL manager to access your database Connect to your database using Python Microsoft has released a beta version of its ODBC driver for macOS. Here is a quick and easy guide […]

  • MS SQL on macOS: Use Oracle SQL manager to access your database

    In this article series, I’ll review the tools and options to connect to an MS SQL server on macOS. Table of contents: Use Oracle SQL manager to access your database Connect to your database using Python In order to connect to Azure SQL Database from MacOS (OS X) for free, you need two things: 1- […]