Use the New Search Engine Jelly

Lakshmi Srinivas
Updated on 18-Oct-2019 07:28:10

274 Views

With all new search engines available it makes finding things lot easier. Yes, we are talking about the latest trending search engine Jelly or let’s say Ask Jelly. A search engine for busy people. It gets custom and concise answers for humans. But feeling and understanding are things which people still do better than algorithms.The latest version of Jelly i.e. Jelly 2.1 has a new feature referred as the magic answers. It can answer tens of thousands of questions. By magic answer we means that one great or best answer will be shown which is highly relevant with your question. ... Read More

Install and Use Docker on CentOS 7

Lakshmi Srinivas
Updated on 18-Oct-2019 07:16:55

953 Views

In this article, we will learn how to install Dockers. Dockers is a very good tool which runs the application on its own containers. It works like a virtual machine which are more portable and more resource friendly and more dependent on the host OS. There are two methods of installing Docker on CentOS 7. First method is to by installation using the existing OS or spinning the server with a tool called Docker Machine and making the auto installation.Here for demo purpose, we will install on the existing OS.Installing the Docker on CentOS 7Before we begin the installation we ... Read More

Configure Nginx with Gzip Module for Compression on CentOS 7

Lakshmi Srinivas
Updated on 18-Oct-2019 06:54:09

527 Views

In this article, we have configured Nginx which is already installed on CentOS 7 to serve the clients with gzip compression to reduce the size of the contents sent to the web site visitors. We can configure the websites to load faster which depends on the size of all the files that are downloaded by the web browser, we can do this by reducing the size of the files transmitted from the website and load faster, which also reduces the cost which we pay for the bandwidth usage. gzipis a popular data compression package, which we will configure Nginx with ... Read More

Set Up Production Elasticsearch Servers with Ansible

Samual Sam
Updated on 18-Oct-2019 06:40:48

426 Views

In this article, we will learn how to use Anisble to configure and install production Elastic Search cluster on CentOS7 which ensures that the Elasticsearch nodes will be secure from outside network .we will use VPN services to connect to the clusters.Elasticsearch is a very popular open source search, server which can be used for real-time distributed search and analysis of the data for better performance, stability and for scalability we need the Elasticsearch to be deployed across multiple servers as a cluster.PrerequisitesWe need a minimum of three CentOS 7 server environments with private networking since the Elasticsearch cluster needed ... Read More

Install and Configure Prometheus Using Docker on CentOS 7

Samual Sam
Updated on 18-Oct-2019 06:32:49

1K+ Views

In this article, we will learn how to install Prometheus server to collect the metrics and query them and also install Grafana – a web based graphical dashboard builder. Prometheus is an open source monitoring tool with time series database. It addresses many aspects for monitoring and generating a collection of metrics and graphs for resulting the data on the dashboards along with alerting.PrerequisitesTo complete this article we needed these resources CentOS 7 installed, a user with sudo access and Dockers installed.Installing the PrometheusWe are installing the Prometheus using the Dockers, so make sure that we already installed Docker on ... Read More

Install and Configure Puppet with Master Agent on CentOS 7

Samual Sam
Updated on 18-Oct-2019 06:24:28

341 Views

In this article, we will learn about how to install and configure open source Puppet agent/master on the CentOS 7, which is from Puppet Labs. Puppet is a configuration management tool that helps system administrator to automate the configuration, provisioning and management of the server infrastructure. The Puppet agents are called as nodes and we will be using the Puppet Server packages instead of the Passenger or any other environments.We needed a root or super-users access to the servers where we want to install the Puppet master.PrerequisitesWe needed a proper DNS which is configured on the puppet server so that ... Read More

Maximum Consecutive Zeroes in Concatenated Binary String in C++

Arnab Chakraborty
Updated on 17-Oct-2019 13:40:16

480 Views

Suppose we have a binary string of length n, another value say k is given. We have to concatenate the binary string k times. Then we have to find the maximum number of consecutive 0s in the concatenated string. Suppose binary string is “0010010”, and k = 2, then after concatenating the string k times, it will be “00100100010010”. So the maximum number of consecutive 0s is 3.The approach is simple. If the number has all 0s, then the answer will be n * k. If the string contains ones, then the result will be either the max length of ... Read More

Split Array into Equal Sum Parts in C++

Arnab Chakraborty
Updated on 17-Oct-2019 13:36:42

861 Views

Here we will see one problem. Suppose one array arr is given. We have to check whether the array can be split into two parts, such that −Sub of both sub-arrays will be the sameAll elements, which are multiple of 5, will be in the same groupAll elements which are multiple of 3, but not multiple of 5, will be in the same groupAll other elements will be in other groups.Suppose the array elements are {1, 4, 3}, then this can be split, because the sum of {1, 3} is the same as the sum of {4}, and the groups ... Read More

Run Python Code on Google Colaboratory

Pradeep Elance
Updated on 17-Oct-2019 13:25:07

830 Views

Google Colaboratory is a free Jupyter notebook environment that requires no setup and runs entirely in the cloud. It is hosted in google cloud and maintained by Google for the benefit of python coders who want to run and test python scripts using a cloud environment. In this article, we will see how to set up and run a google collaboratory cloud environment.Opening the Python NotebookWe navigate to this google link (https://colab.research.google.com/). It opens up the below screen. We choose the option NEW PYTHON3 NOTEBOOK from the bottom right corner as shown in the diagram below.Python CodeOptionsOn clicking the NEW ... Read More

Implement Dictionary with Python3

Pradeep Elance
Updated on 17-Oct-2019 13:20:17

293 Views

Dictionaries in python are a type of data structure that map keys to values as a key-value pair. They are one of the frequently used data structures and have many interesting properties. They are presented by enclosing them in a pair of curly brace like below.dict = {'day1':'Mon' ,'day2':'Tue', 'day3':'Wed'}The elements or key-value pairs in the dictionary are represented within single quotes and separated by a colon.Creating a DictionaryWe create a dictionary by assigning values written in the form of a key.ExampleDict1 = {'day1':'Mon' ,'day2':'Tue', 'day3':'Wed'} print(type(dict1)) print(dict1) # Using the dict() method dict2 =dict({('day1', 'Mon'), ('day2', 'Tue'), ('day3', ... Read More

Advertisements