American Standard Code for Information Interchange is referred to as ASCII. An ASCII code is the numerical representation of a character, such as “a” or “@,” or an action of some kind because computers can only interpret numbers. Since ASCII was created so long ago, non-printing characters are now seldom ever utilized for what they […]
How Does RSA Encryption Work
A popular public-key cryptosystem for secure data transfer is RSA (Rivest-Shamir-Adleman). In addition, it is among the oldest. The surnames of Ron Rivest, Adi Shamir, and Leonard Adleman, who first publicly published the algorithm in 1977, are the origin of the abbreviation “RSA.” The English mathematician Clifford Cocks created a comparable method in secret at […]
Whatsapp is not Working for Some Users
2022-10-25 Numerous users are reporting problems with the app’s text sending and receiving capabilities, which suggests that WhatsApp may be experiencing a bug. The number of people reporting the outage of WhatsApp has sharply increased, according to Downdetector, a company that measures online outages throughout the world. Around 30,000 internet reports according to Downdetector indicate […]
MySQL How To Create a New User and Grant Permissions
Creating a New User SSH to your Ubuntu system and login to MYSQL instance using root user mysql -u root -p Once you have gained access to the MYSQL, add your user using CREATE USER command CREATE USER ‘username’@’host’ IDENTIFIED WITH authentication_plugin BY ‘password’; Run the following command to create a user that authenticates with […]
Whats New in Spring Boot 3.0.0-RC1
This release includes 135 enhancements, documentation improvements, dependency upgrades, and bug fixes. Now, without requiring any particular settings, you can convert your Spring Boot applications to native executables using the regular Spring Boot Maven or Gradle plugins. This release also provides a new section in the reference documentation that explains the concepts behind ahead-of-time processing […]
List All Users in MySQL Database
Login to the database as root user mysql -u root -p Once you have logged in as root user, run the following command to list the user, host and encrypted password SELECT User, Host, Password FROM mysql.user; output : MariaDB [(none)]> SELECT User, Host, Password FROM mysql.user; +———-+———–+——————————————-+ | User | Host | Password | […]
How to List all Forign Keys of a SQL Table
List Forign keys of a table SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_SCHEMA = ‘<database>’ AND REFERENCED_TABLE_NAME = ‘<table>’; List Forign keys of a table column SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_SCHEMA = ‘<database>’ AND REFERENCED_TABLE_NAME = ‘<table>’ AND REFERENCED_COLUMN_NAME = ‘<column>’; Drop a Forign Key from a Table MySQL: ALTER TABLE Orders DROP […]
Install PM2 on Ubuntu
Using yarn: yarn global add pm2 Using npm npm install pm2 -g Using debian apt update && apt install sudo curl && curl -sL https://raw.githubusercontent.com/Unitech/pm2/master/packager/setup.deb.sh | sudo -E bash –
How to Completely Uninstall Nodejs, npm and node in Ubuntu
sudo apt-get remove nodejs sudo apt-get remove npm Then go to /etc/apt/sources.list.d and remove any node list if you have. Then do a sudo apt-get update Check for any .npm or .node folder in your home folder and delete those.
Bubble Sort in Java
In bubble sort ,an array is traversed from first element to last element. Then, current element is compared with the next element. If current element is greater than the next element, it is swapped. public class BubbleSortExample { static void bubbleSort(int[] arr) { int n = arr.length; int temp = 0; for(int i=0; i < […]