DB Settings After creating Laravel project with Composer, you need to modify two files to set DB environment. /.env will have multiple DB setting as below or similar. On the example below show two…
Waterloo Math
Math Platform
Articles and updates about anything.
DB Settings After creating Laravel project with Composer, you need to modify two files to set DB environment. /.env will have multiple DB setting as below or similar. On the example below show two…
I used three images in my docker compose yaml file, They are mysql, wordpress and certbot. 1. certbot from Let's Encrypt certbot is image from Let's Encrypt and it is free. The docker compose syntax…
MySQL can be installed as simple as below. $sudo apt install mysql-server mysqld.conf $sudo vi /etc/mysql/my.cnf (<- dev server uses this ) $sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf [16.04 | 18.04…
Apache configuration files for HTTP(Port 80) and HTTPS(Port 443) can be found as below. $sudo vi /etc/apache2/sites-available/ 000-default.conf $sudo vi /etc/apache2/sites-available/ default-ssl.conf…
LAMP server used to be installed as default. For 18.04 and 20.04, LAMP server can be installed as below. $sudo apt install tasksel $sudo tasksel install lamp-server For 22.04, Apache and MySQL server…
(Source: https://stackoverflow.com/questions/54708210/how-to-change-aws-rds-instance-type-without-downtime) Instead of changing the instance type of the current instance, Add a new instance first.…
First of all, you can read and follow the article below to understand the limitation of RE650 and to start the set-upWhy my Range Extender is unable to detect 5GHz wireless network of my root router?…
The default message of Password Protection can be inappropriate since it start with "This survey...". For most of cases, this statement is true but it is not necessarily correct for all of cases.…
It is possible to limit the size of text box by setting "maxlength" attribute of input text box JavaScript is used for this purpose to be precise it is jQuery script. jQuery can be inserted for each…
When Custom Validation is used. It can be confusing for users because error messages do not show the exact reason for the error. The JavaScript code below can stop a respondent to type further than…
The method below was presented in php.net site and it works as intended for the most of time. function isUTF8($string) { return (utf8_encode ( utf8_decode ( $string ) ) == $string); } Here is code to…
This code is not mine and it is copied from Stack Overflow as usual. history.pushState(null, document.title, location.href); window.addEventListener('popstate', function (event) {…
It is worthwhile to check with phpinfo() function if sever variables are all available for your server to implement the code as below. $pos = strpos($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']);…
The glob() function is used to get an array of filenames or directories. Then, array_multisort() function is sorting filenames according to the file's created time. Lastly, it can be presented as…
It is needed to select some records randomly to take sample data from a table. MySQL can accomplish this task by using rand() function in order by clause as below. In case selecting 20 users…