Ashique's Programming Diary
.:Useful for computer programmers and users:.
Wednesday, April 17, 2024
Switch PHP version in Ubuntu OS or Zorin OS
Tuesday, March 19, 2024
Install LAMP stack on Linux(Ubuntu OS, Zorin OS etc) for local development environment
---------------------
Sunday, February 25, 2024
Screen unblank in Zorin OS
If you press Super + L then Zorin OS goes to the lock screen and turns off your display.
But if you want to stay displayed ON, on your lock screen then you need to install extension manager first and then you need to install the below extension:
https://extensions.gnome.org/extension/1414/unblank/
With the above extension, you can keep the screen turned ON on your Zorin OS.
Friday, November 10, 2023
WP_LIST_TABLE - complete code for searching, listing, pagination
WP_LIST_TABLE - complete code for searching, listing, pagination:
1. First register a menu to maintain a view:
2. Now maintain list callback function:
3. List table class file code:
.:Happy coding:.
Tuesday, November 7, 2023
Hide calculate shipping for a specific product in woocommerce
Hide calculate shipping for a specific product in woocommerce:
Write the following code in your functions.php:
.:Happy coding:.
Saturday, September 9, 2023
Laragon - mysql issue during upgrading mysql V5 to V8
1. Stop Laragon.
2. Remove all files and folders from mysql-8 in laragon -> data -> mysql-8.
3. Open terminal and go to this directory: laragon -> bin -> mysql -> mysql-8 -> bin
4. Run this command: mysqld --initialize --console
5. Run this command: start mysqld
6. Enter in to mysql: mysql -u root -p
7. Password has given in step 42
8. Run this command: ALTER USER 'root'@'localhost' IDENTIFIED BY '';
9. Close mysqld window and start laragon.
Enjoy mysql 8 in laragon!
Tuesday, May 9, 2023
Mysql import from a SQL file by command line way
Mysql import from a SQL file by command line way:
Open command line and login to your mysql database by typing below command:
mysql -u root -p password then press enter.
mysql > source path_of_your_sql_file.sql Eg: if your file in D drive then path will be D:\mysql.sql
Then press enter all your tables will be imported soon.
Switch PHP version in Ubuntu OS or Zorin OS
First check where is installed your PHP by the below command: $ which php See PHP version by below command: $ php -v As I've installed P...
-
Fix Mysql crash in XAMPP: 1. Go to xampp -> mysql folder 2. Copy data folder and paste and rename it to data_old 3. Go to data folder,...
-
Sending email by Ajax form in Drupal 9: First make the HTML form, say it is here in this twig template: < div id = "shop-feedback-...
-
PHP script to export mysql database as sql file: ----------------------------------------------------------- <?php //Enter your data...