C Program for diamond pattern with different layers

Sunidhi Bansal
Published on 18-Oct-2019 16:06:58
Given with the number and the task is to generate the diamond pattern with the given n different layers and display it.ExampleInput: n = 3Output:Approach used in the below program is as follows −Input the number of rowsAnd in this pattern there are ((2 * n) + 1) rowsNumber of ... Read More

How to set up openvpn on ubuntu 16 04

Lakshmi Srinivas
Published on 18-Oct-2019 16:04:33
In this article, we will learn how to configure OpenVPN server on Ubuntu Linux. Yes, we can do it using a VPN (Virtual Private network) which allows you to connect to work place from untrusted networks privately and securely. For instance, If you are in a hotel or a coffee ... Read More

Reset the root user password on rhel7 xcentos7 x

Lakshmi Srinivas
Published on 18-Oct-2019 16:01:07
This article will be helpful if we forget the root password on Centos 7.x or RHEL 7.x. In the previous version of RHEL, we can easily break the root password, as by default SE-Linux is enabled. Also note that, RHEL has brought many special new features.Resting the Root PasswordReboot/Restart the ... Read More

How to configure and setup postfix mail transfer agent on ubuntu

Lakshmi Srinivas
Published on 18-Oct-2019 15:58:42
In this article, we will learn how to configure and install the most popular open source MTA (Mail Transfer Agent) Postfix, which can be used to route email delivery of the Linux Systems. Based on industry usage and estimates, most of the public mail servers are currently running on Postfix.Installing ... Read More

Importance of the Jackson @JsonInclude annotation in Java?

raja
Published on 18-Oct-2019 15:58:07
The Jackson @JsonInclude annotation can be used to exclude the properties or fields of a class under certain conditions and it can be defined using the JsonInclude.Include enum. The JsonInclude.Include enum contains few constants like "ALWAYS", "NON_DEFAULT", "NON_EMPTY" and "NON_NULL" to determine whether to exclude the property(field) or not.Syntaxpublic static enum JsonInclude.Include extends Enum<JSonInclude.Include>Exampleimport com.fasterxml.jackson.annotation.*; ... Read More

How to create photography website in a minute or less 2

Lakshmi Srinivas
Published on 18-Oct-2019 15:56:38
All those who are enthusiastic about photography, having a photography website is beneficial as it is a great way to show not only your work to the world but also your talent and commitment to the art of photography. That’s not all, it also helps you to reach your prospective ... Read More

C Program to add two fractions

Sunidhi Bansal
Published on 18-Oct-2019 15:55:49
Given with the input as fraction i.e. a/b and c/d where a, b, c and d can be any integer values other than 0 and the task is to add these two fraction to generate their final sum.Fractions are represented by −a / b, where a is known as numerator ... Read More

How to setup hostname in centos 7 x or rhel 7 x linux versions

Lakshmi Srinivas
Published on 18-Oct-2019 15:53:33
In this article, we will learn how to change the host name on CentOS 7.x / RHEL 7.0, by default after installation on CentOS 7 or RHEL the default hostname will be localhost.localdomain. This hostname will be used for various services, unlike the older versions we will try to change ... Read More

Openssh security best practices

Lakshmi Srinivas
Published on 18-Oct-2019 15:51:18
Secure Shell or SSH is a cryptographic (encrypted) network protocol operating at layer 7 of the OSI Model to allow remote login and other network services to operate securely over an unsecured network.OpenSSH is a premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic to ... Read More

How to find a list of block devices information

Lakshmi Srinivas
Published on 18-Oct-2019 15:48:06
lsblk command is used to display a list of information about all available block devices. However, it does not give a list of information about RAM disks. Examples of block devices are hard disk, flash drives, CD-ROM. This article explains about how to find a list of block devices in ... Read More
Advertisements