Sunday, May 30, 2021

How to switch between php versions

 Install/upgrade php switch between php versions

sudo a2dismod php8.0
systemctl restart apache2

sudo a2enmod php7.4
systemctl restart apache2


$ sudo update-alternatives --set php /usr/bin/php7.4
--------------------------
if a2dismod php8.2 throws  error : php8.2 module cannot be found
run below command to install it
sudo apt-get install libapache2-mod-php8.2
Then a2dismod php8.2 will work  
 
---------------------- 
References:
https://www.cloudbooklet.com/how-to-upgrade-php-version-to-php-8-0-on-ubuntu/  

Thursday, May 27, 2021

laravel barcode pos software

 https://laravelarticle.com/laravel-barcode-tutorial

composer require milon/barcode:^5.0 

(//ly dompdf to 0.8.5)

https://github.com/abedputra/Inventory-Stock-With-Scanner

https://www.zebra.com/us/en/support-downloads/printers.html

Steps to deploy to Magento

 1. Take DB backup of integration and dev. Download those backup to your laptop.
2. Upload the dev DB backup to integration server. (upload to /tmp/ location as if has write permission.)
3. Git Clone integration server in your laptop.
4. Paste the app/code folder of dev into the cloned integration code.
5. Commit and push to the integration server.
6. Truncate the integration DB.
7. Import the dev DB backup (which is uploaded to /tmp/) into the integration database.

 To fix cron check

https://meetanshi.com/blog/set-cron-in-magento-2/ 

https://support.magento.com/hc/en-us/articles/360033099451

 

To learn about different products

https://www.customerparadigm.com/six-types-of-magento-product-types/

Saturday, May 15, 2021

Convert a bootable USB to normal

 Search 'Discs' In Ubuntu ,from applications, to get the name of the partition


sudo wipefs --all /dev/sdb
 
Now, the filesystem has been wiped and the flash drive is completely clean. You can check that with: 

 

sudo fdisk -l
 
ou should see that the USB flash device has no partition. You need to create one. 

Create the new partition using the command line

sudo cfdisk /dev/sdb

 

 
 

Format the USB drive with FAT

sudo mkfs.vfat -n 'ALU' /dev/sdb1 

Wednesday, May 5, 2021