MySQL: Check Database and Table Size

This process will work in all cases, whether you are accessing your database through the command line or using any GUI tool (like MySQL Workbench or HeidiSQL). Because the size-related information is already saved in a specific MySQL table. Check the table named “TABLES” from the database “information_schema”, you will find all the information related to the sizes of the tables.

Laravel: Run Queue in the Background using PM2

In production you have to run this command using some process manager that will keep the command running. 2 most simple ways to do that is using Supervisor or PM2.I use pm2 in such cases, as this seems simpler to me. Let’s see how to use PM2 for running Laravel workers in the background.

JavaScript: this – [full explanation]

This ‘this’ keyword is very confusing when you are writing code, especially when you read others’ code.This article’s goal is to eradicate those confusions. You have to remember a few things about ‘this’ and consider where you are using it and how you are using it.