Sometimes we setup dev environment on locally and use ‘virtual host’, check steps below for OS X El Capitan virtual host setup. Prerequisites: working Apache server OS X El capitan Virtual host setup steps- Go to terminal login to root user if you are not root, Step 1 : Like ubuntu, we need to add domain… Continue reading OS X El Capitan Virtual host setup
Sometimes, we are confused with external hard drive file system selection, so decided to write this post for myself, let’s see options available are as below: External hard drive file system Compatibility : File System / OS Windows Ubuntu Mac NTFS Y Y Y -( Read-only ) to write need third party plugins like ntfs-3g FAT32 (4gb… Continue reading External hard drive file system
With the growing age and less usage in daily life we forget math tables, but with the help of below trick, we can write any two digit number table is very easily. Lets try Two digit number table of 24 02 04 24 04 08 (04+0) 48 06 12… Continue reading Two digit number table, easy math trick
After installing nodejs, we need to install npm packages to include module likes async, request, etc. We need to fix npm permissions for a current so he can have permissions to write to directories that npm will use to store global packages. You will get this permission error while installing npm packages globally without ‘sudo’. npm ERR! Error: EACCES, ….… Continue reading fix npm permissions
Usually we share youtube videos using iframe in website, sometime we do not need default controls and title, its very easy to remove them. Just pass following “get” parameters to youtube url. showinfo=0&controls=0 ex.
Cent os : php nginx documet class not found error sudo yum install php-xml
Requirement: If you want to add endpoint, let say “books” to CPT author, and wants to change view in template. Solutions: No need to use “add_rewrite_endpoint” function because as of today, we can not add endpoint to CPT only ( we can add endpoints to either page or archives or all links, etc using add_rewrite_endpoint function )… Continue reading WordPress custom post type endpoint
Linux, nginx, MySQL, PHP – LEMP AWS server setup Step 1 : Create account on AWS and select right region for you create ec2 instance with Ubuntu AMI. Step 2 : Do ssh login to server and update OS using command sudo apt-get update Step 3 : Lets install nginx, php, mysql one by one using… Continue reading Linux, nginx, MySQL, PHP – LEMP AWS server setup