Articles on Trending Technologies

Technical articles with clear explanations and examples

Shutter the ultimate linux screenshot program

Samual Sam
Samual Sam
Updated on 21-Oct-2019 426 Views

Do you know “How to take screenshots in Linux operating system”? then this article is for you! There are many tools, which are available for Linux operating systems but one of the most reputed tool for screenshots which I would recommend is Shutter. It is an open source program and is written in perl. It is designed extremely well, offering an easy way to take screenshots of the entire screen, a region of the screen, a specific window, or even a website with a click of a button.Features of ShutterThe main attributes of the shutter tool are listed below –It ...

Read More

Check if a number is formed by Concatenation of 1, 14 or 144 only in C++

Arnab Chakraborty
Arnab Chakraborty
Updated on 21-Oct-2019 275 Views

Here we will see one problem, that can tell that whether a string or a number is a concatenation of 1, 14 or 144 only. Suppose a string is “111411441”, this is valid, but “144414” is not valid.The task is simple, we have to fetch a single digit, double-digit and triple-digit number from the last, and check whether they match with any of these three (1, 14 and 144), if we get one match, divide the number with it, and repeat this process until the entire number is not exhausted.Example#include #include using namespace std; bool checkNumber(long long number) ...

Read More

Check if a number can be expressed as sum two abundant numbers in C++

Arnab Chakraborty
Arnab Chakraborty
Updated on 21-Oct-2019 224 Views

Suppose we have a number. We have to express this as sum of two Abundant number, if yes, print the numbers, otherwise print -1. A number is said to be Abundant number is sum of all proper divisor of the number, denoted by sum(n) is greater than the value of number.To solve this, we will store all abundant numbers into a set, and for given number n, run a loop for i = 1 to n, and check n and (n – i) are abundant or not.Example#include #include #define N 100005 using namespace std; set getAbundantSet() {   ...

Read More

Check if a given string is a rotation of a palindrome in C++

Arnab Chakraborty
Arnab Chakraborty
Updated on 21-Oct-2019 405 Views

Here we will see, one string is palindrome after certain rotation or not. A palindrome is a string that is the same in both directions. A string rotation is a palindrome if that is like AAAAD. this is not a palindrome directly, but its rotation AADAA is a palindrome.To check a string is rotated palindrome or not, then we will check this is a palindrome or not at the first time, after that, rotate it by one character, then check again, this checking will be performed n amount of time, where n is the number of characters.Example#include #include ...

Read More

Check if a circle lies inside another circle or not in C++

Arnab Chakraborty
Arnab Chakraborty
Updated on 21-Oct-2019 680 Views

Suppose we have two circles (center points, and the radius values), we have to check one circle is fit inside another circle or not. There are three possible causes.The smaller circle lies completely inside the bigger one, without touching each other. In this case, the sum of the distance between the centers, and the smaller radius, is lesser than a bigger radius. So the smaller one will be inside the bigger one.The second case is the smaller circle is inside the bigger ones, but also touches the circumference of the bigger circle.The third case is, some part of the smaller ...

Read More

How to install gnome desktop on centos rhel 7 using yum command

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 21-Oct-2019 2K+ Views

GNOME is a totally intuitive and user friendly desktop environment for CentOS and RHEL 7.x based system. The latest version of GNOME Desktops are GNOME 2 to GNOME 3 and the GNOME Shell desktop. Most of the users who prefer traditional desktop environments can get it via GNOME’s classic mode. It is also fully configurable with extensions. If you have done basic installation, this article will give insights on – how to install Gnome GUI on a CentOS 7 or RHEL 7 using a command line options.Installing Gnome GUITo install Gnome GUI, use the following commands-$ yum grouplistThe sample output ...

Read More

How to optimize and compress jpeg or png images in linux

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 21-Oct-2019 597 Views

Do you want to optimize the images or compress images without losing its original quality before uploading them to any cloud or local storages? There are plenty of GUI applications or web applications which are available that will help you to optimize the images. This article helps you to optimize and compress JPEG or PNG images in Linux Command Line.Using jpegoptimjpegoptim is a simple utility to optimize JPEG images without losing quality. It provides lossless optimization and “lossy” optimization based on the setting with a maximum quality factor.To install jpegoptim , use the following command –$ sudo apt-get install jpegoptimThe sample ...

Read More

Maximum Subarray Sum using Divide and Conquer algorithm in C++

Arnab Chakraborty
Arnab Chakraborty
Updated on 21-Oct-2019 1K+ Views

Suppose we have one list of data with positive and negative values. We have to find the sum of contiguous subarray whose sum is largest. Suppose the list is containing {-2, -5, 6, -2, -3, 1, 5, -6}, then the sum of maximum subarray is 7. It is the sum of {6, -2, -3, 1, 5}We will solve this problem by using the Divide and Conquer method. The steps will look like below −Steps −Divide the array into two partsFind the maximum of the following threeMaximum subarray sum of left subarrayMaximum subarray sum of right subarrayMaximum subarray sum such that subarray ...

Read More

How to find and sort files based on modification date and time in linux

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 21-Oct-2019 2K+ Views

While working with computers, we have a habit of saving a lot of information in our computers such as files, folders, etc. Normally desktop looks like a mess but the problem arises when users want to search a modified file on a particular date or time. There are simple commands which are available in Linux to search a modified file. This article describes “How to Find and Sort Files Based on Modification Date and Time in Linux”.List Files Based on Modification TimeThe list command shows a list of files, directories, information about date and time of modification or access, permissions, ...

Read More

How to show historical and statistical running time of linux systems

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 21-Oct-2019 261 Views

The important part of the system administrators is to monitor and examine for a way long Linux system has been strolling. It is a just right concept to hold tracking up time of the Linux systems to optimise the system assets. This article describes Tuptime tool that can help System Administrators to know for how long a Linux machine has been up and running.Tuptime tool is used for reporting the historical and statistical running time (uptime) of Linux systems, which tracks it between restarts.FeaturesRegister the first boot timeTracks System startupsCounts System shutdownsCalculates uptime and downtimeCalculates largest, average, low uptime and downtimePrint ...

Read More
Showing 56861–56870 of 61,297 articles
Advertisements