Install Elasticsearch using Repositories

Install Elasticsearch using Repositories You can easily install Elasticsearch using APT and YUM repository – Install Elasticsearch Using APT repository – Install Elasticsearch Using Yum repository Install Elasticsearch 5.0 on Debian: Step 1: Download and Install Elasticsearch Public signin key wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add – Step 2: Installation using APT Repository…

Read More
Ansible Playbook Validation

Ansible Playbook validations

Ansible Playbook validations : While writing ansible playbook sometime we need to validate extra vars parameter or tasks. So that we can run ansible playbook without any fatal error or warning. These are few condition you might validate If specific extra vars parameter are passed then execute some task. extra vars parameter having specific value….

Read More
$this vs self in PHP

$this vs self in PHP

$this refers to the current object of the class and self refers to the current class itself.$this can not be used inside static function whereas self can be used inside static function. When we need to access static function and reference static member variable then we can’t access through $this because a property declared as…

Read More
Merge array recursively in PHP

Merge array recursively in PHP

If you want merge array recursively in php then you can use array_merge_recursive function. It will merge all the array elements having same string keys and it returns the resulting array. Syntax: Note :- Values in the input array with numeric keys will be renumbered with incrementing keys starting from zero in the result array….

Read More
New features in PHP 5.6

New features in PHP 5.6

Here is list of New features in PHP 5.6 1) Variadic functions via …2) Argument unpacking via …3) Changes in File uploads4) Importing namespace functions5) Exponentiation Operator in PHP (**) 1) Variadic functions via … Currently variadic functions are implemented by fetching the function arguments using func_get_args() . If we want to pass random number…

Read More
Verified by MonsterInsights