How To Find The GCD Of Two Integers In Javascript

I am writing this as a follow-up to two previous articles I wrote on how to find the gcd of two integers in Python and how to find the gcd of two numbers in PHP. The gcd of two integers is the largest integer that divides evenly into both integers with no remainder. This article describes how to write the JavasScript code, and then you can use it in a Firefox or Google Chrome console to calculate the gcd of the two integers. Continue reading “How To Find The GCD Of Two Integers In Javascript”

How To Create A New Username In MySQL

MySQL by default only creates one username, which is root. Creating new usernames in MySQL could make it easier to use MySQL and potentially more secure. This article will describe step-by-step how to create a new username in MySQL in Ubuntu (16.04 and 14.04) and the steps will be similar in Debian. Continue reading “How To Create A New Username In MySQL”