Modal/Popup window in WordPress admin

If you need to create modal/popup window in WordPress admin, its easy. You can use buit-in thickbox jquery library. It’s very well documented @ https://codex.wordpress.org/Javascript_Reference/ThickBox, though lets see quick integration sample code below. Load thickbox js and css by calling function <?php add_thickbox(); ?> Add a link to html with class name ‘thickbox’ example below – … Read more

Upgrading Ubuntu, do-release-upgrade vs upgrade

It depends on which ubuntu version you have and upgrade to? Let’s see difference first : do-release-upgrade – will upgrade to next release from version installed. Example use this to upgrade from 14.04.5 LTS to 16.04.1 LTS upgrade – upgrade will install/upgrade to latest versions of all installed packages.

Installing Zip and Unzip on Ubuntu

To install Zip and Unzip by using the apt-get install command, perform the following steps. Enter the following command to download the package lists from the repositories and update them: Enter the following commands to install Zip and Unzip: To verify whether Zip and Unzip are installed correctly, run the following commands:

Installing cURL on Ubuntu

Steps to install cURL by using the apt-get install command on Ubuntu Enter the following command to download the package lists from the repositories and update them: Enter the following command to install cURL: To verify that cURL is running correctly, enter this command:

Installing the OpenJDK Java environment on Ubuntu

To install the OpenJDK Java environment for Ubuntu by using the apt-get install command, perform the following steps. To make openjdk-8 available to the APT environment, perform the following steps: Enter the following command to add the Personal Package Archive (PPA) for Java SE Development Kit 8: Enter the following command to download the package lists from … Read more

Installing OpenSSH on Ubuntu

Steps to install OpenSSH by using the apt-get install command. Enter the following command to download the package lists from the repositories and update them: Enter the following command to install the OpenSSH server: To check the version of OpenSSH that is running, enter the following command:

Debug ionic apps installed on device using google chrome

Run following command on terminal – ionic cordova run  –device –debug Next it will ask platform, example android Then Open chrome and Web Inspector in chrome, and follow below menu path. From right side menu “Customize and contorl DevTools” -> More tools ->  Remote Devices It will show list of devices, click on your device, … Read more

AWS SSL for EC2 instance

As AWS SSL certificates are free to use, just you need to use with them LB i.e. load balancers which have some cost. Let’s go through steps to integrate – Step 1 – Setup EC2 and make sure you are running any web server on it to test in the browser, so we can test … Read more