Articles on Trending Technologies

Technical articles with clear explanations and examples

Tutorix - AI Tutor

How to use ansible for setting up production elasticsearch servers with cluster

Samual Sam
Samual Sam
Updated on 18-Oct-2019 533 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

How to install and configure prometheus using docker on centos 7

Samual Sam
Samual Sam
Updated on 18-Oct-2019 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

How to install and configure puppet with master agent on centos 7

Samual Sam
Samual Sam
Updated on 18-Oct-2019 427 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

How to Join Several Partitions on Linux

Samual Sam
Samual Sam
Updated on 17-Oct-2019 614 Views

In this article, we will create a single partition on Linux using 2 drives of 20 GB each to make a 40 GB single mount point so that we can store the data in one place with more space on the volume. Here, we are using a package called ‘mhddfs‘ which is a driver for Linux that combines several mount points into a virtual disk. This is a fuse based driver which provides an easy solution for large data storage that combines many small file systems into a single big virtual file system.Features of MhddfsWe can get System information and ...

Read More

Jawbone UP3 vs Fitbit Charge HR

Samual Sam
Samual Sam
Updated on 17-Oct-2019 236 Views

Jawbone and Fitbit are the two popular companies that design and develop awesome fitness trackers. More often than not, the products developed by these two companies have the tinge of perfection and look as immaculate as they should be. Having said that, the fitness tracker of Jawbone is the attention grabber and self-proclaimed “world’s most advanced tracker” called UP3. In the case of Fitbit, it is the cynosure of all eyes which is rightly called Charge HR. Approach any individual with average technical acumen, and ask him about the best fitness trackers, he would name either Jawbone UP3 or Fitbit ...

Read More

Algorithm for implementing Distributed Shared Memory

sudhir sharma
sudhir sharma
Updated on 16-Oct-2019 6K+ Views

Shared memory is the memory block that can be accessed by more than one program. A shared memory concept is used to provide a way of communication and provide less redundant memory management.Distributed Shared Memory abbreviated as DSM is the implementation of shared memory concept in distributed systems. The DSM system implements the shared memory models in loosely coupled systems that are deprived of a local physical shared memory in the system. In this type of system distributed shared memory provides a virtual memory space that is accessible by all the system (also known as nodes) of the distributed hierarchy.Some ...

Read More

Algorithm to generate positive rational numbers in Java

sudhir sharma
sudhir sharma
Updated on 16-Oct-2019 946 Views

Rational Numbers − A number that is expressed in the form of p/q. Given the condition that p and q both should be integers and q should not be equal to 0.Positive rational numbers are those numbers whose final values are positive. For this, either p and q both should be positive or p and q both should be negative.In this problem to generate positive random numbers up to a given number. We have to generate a finite number of positive rational numbers to n i.e. we will find rational numbers between 1 to n. For this algorithm, we will ...

Read More

Difference between the list() and listFiles() methods in Java

Maruthi Krishna
Maruthi Krishna
Updated on 15-Oct-2019 1K+ Views

The class named File of the java.io package represents a file or directory (path names) in the system. To get the list of all the existing files in a directory this class provides the list() and ListFiles() methods.The main difference between them is thatThe list() method returns the names of all files in the given directory in the form of a String array.The ListFiles() method returns the objects (File) of the files in the given directory, in the form of an array of type File.i.e. If you just need the names of the files within a particular directory you can ...

Read More

Byte Streams in Java

Maruthi Krishna
Maruthi Krishna
Updated on 15-Oct-2019 8K+ Views

These handle data in bytes (8 bits) i.e., the byte stream classes read/write data of 8 bits. Using these you can store characters, videos, audios, images etc.The InputStream and OutputStream classes (abstract) are the super classes of all the input/output stream classes: classes that are used to read/write a stream of bytes. Following are the byte array stream classes provided by Java −InputStreamOutputStreamFIleInputStreamFileOutputStreamByteArrayInputStreamByteArrayOutputStreamObjectInputStreamObjectOutputStreamPipedInputStreamPipedOutputStreamFilteredInputStreamFilteredOutputStreamBufferedInputStreamBufferedOutputStreamDataInputStreamDataOutputStreamExampleFollowing Java program reads data from a particular file using FileInputStream and writes it to another, using FileOutputStream.import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class IOStreamsExample {    public static void main(String args[]) throws IOException { ...

Read More

Program to replace all the characters in of a file with '#' except a particular word in Java

Maruthi Krishna
Maruthi Krishna
Updated on 14-Oct-2019 697 Views

The split() method of the String class. splits the current string around matches of the given regular expression. The array returned by this method contains each substring of this string that is terminated by another substring that matches the given expression or is terminated by the end of the string.The replaceAll() method of the String class accepts two strings representing a regular expression and a replacement String and replaces the matched values with given String.To replace all the characters in of a file with '#' except a particular word (one way) −Read the contents of a file to a String.Create ...

Read More
Showing 56901–56910 of 61,298 articles
Advertisements