Viewing 11 to 20 of 86 items
Archive | Experience RSS feed for this section

Ubuntu – Laptop’s touchpad doesn’t work

In this tip, we will see a solution that will fix a non-working laptop’s touchpad. The problem often occurs after upgrading your Ubuntu distribution to Ubuntu 16. Solution Open the terminal and run these commands: sudo apt update sudo apt install xserver-xorg-input-synaptics or sudo apt install –reinstall xserver-xorg-input-synaptics Then reboot your laptop: sudo reboot Hope  Full Article…

1

Magento – Get the last order ID

There are many ways to get the last order ID in Magento, here is the detail:  1. From the checkout session.   $lastOrderId = Mage::getSingleton(‘checkout/session’) ->getLastRealOrderId(); $orderId = Mage::getModel(‘sales/order’) ->loadByIncrementId($lastOrderId) ->getEntityId(); This solution will not work in case you want to get the last order ID in the backend. 2. From the model. $orders =  Full Article…

0

Mysql – Grant a user permission to only show a view

Here are some SQL queries that you need to execute to grant the permission for existing user to a specific view. The first command: GRANT SELECT ON <database_name>.<view_name> TO <user>@<host>   The second command: GRANT SHOW VIEW ON <database_name>.<view_name> TO <user>@<host>

0

Centos 7 – Add swap partition

Introduction One of the easiest ways to make your server more responsive, and guard against out-of-memory errors in your application, is to add some swap space. Swap is an area on a storage drive where the operating system can temporarily store data that it can no longer hold in memory. This gives you the ability to increase  Full Article…

0