Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Copy File Permissions and Ownership to Another File in Linux?

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 1K+ Views

When backing up data or configuring software in Linux, you often need to maintain the same ownership and permissions across files. Instead of manually setting permissions for each file, Linux provides efficient methods to copy these attributes from one file to another using the chown and chmod commands with the --reference option. Copying File Ownership Use the --reference switch with chown to copy ownership from a source file to a target file ? Syntax chown --reference=source_file target_file Example Let's copy ownership from ref_file.txt to all_rivers.txt ? # Check current ownership ...

Read More

Create Shortcuts to Long and Complicated Paths in Linux (Gogo)

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 198 Views

Gogo is a tool to bookmark directories with long and complicated paths in the Unix shell. Because the long paths are difficult to remember and cumbersome to type in, gogo provides a simple way to create shortcuts. In this article we'll see how to install gogo and use it. Installing Git We first need to have git installed in our system which will be needed for gogo installation. To install git in an Ubuntu system follow the below command ? $ sudo apt install git Running the above code gives us the following result ...

Read More

How to define word-break property to allow words to be continued to the next line in CSS?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 369 Views

The CSS word-break property controls how words should break when they reach the edge of their container. This property is essential for maintaining readable text layouts, especially when dealing with long words or narrow containers that might cause text overflow. Syntax selector { word-break: value; } Possible Values ValueDescription normalDefault behavior - words break at natural break points break-allWords can break at any character to prevent overflow keep-allPrevents word breaks for CJK (Chinese, Japanese, Korean) text Example: Using break-all Value The following example demonstrates how word-break: ...

Read More

Python - Column summation of tuples

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 345 Views

Python has extensive availability of various libraries and functions which make it so popular for data analysis. We may get a need to sum the values in a single column for a group of tuples for our analysis. So in this program we are adding all the values present at the same position or same column in a series of tuples. Column summation involves adding corresponding elements from tuples at the same positions. For example, if we have tuples (3, 92) and (25, 62), the column summation would be (28, 154). Using List Comprehension and zip() Using ...

Read More

How to define two column layout using flexbox?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 5K+ Views

To create a two column layout using flexbox can be so easy if you have the knowledge of CSS display property. Flexbox is a layout model in CSS that provides an efficient and flexible way to arrange and distribute space between items within a container. It arranges elements in a single dimension, either horizontally or vertically, within a container. To know more about the CSS Flexbox Layout visit the attached link. Imagine we have parent div and inside that div we have two child div all we have to do is place those child div side by horizontally. ...

Read More

max() and min() in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 2K+ Views

Finding maximum and minimum values from a given list of values is a very common need in data processing programs. Python provides built-in max() and min() functions that handle both numbers and strings efficiently. Syntax max(iterable, *[, key, default]) min(iterable, *[, key, default]) Using max() and min() with Numeric Values Both functions work with integers, floats, and mixed numeric types to find the maximum and minimum values ? numbers = [10, 15, 25.5, 3, 2, 9/5, 40, 70] print("Maximum number is:", max(numbers)) print("Minimum number is:", min(numbers)) Maximum number is: ...

Read More

How to define the shape of the corners is animatable using CSS?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 197 Views

The CSS border-radius property can be animated to create smooth transitions between different corner shapes. This technique allows you to transform elements from sharp corners to rounded or circular shapes when users interact with them. Syntax selector { border-radius: initial-value; transition: border-radius duration; } selector:hover { border-radius: final-value; } Approach To create animatable corner shapes, follow these steps − Create an HTML element and assign it a class name Set the initial border-radius value (usually 0% for sharp corners) ...

Read More

Getter and Setter in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 21K+ Views

In Python, getters and setters are methods used to control access to an object's attributes. They provide a way to implement data encapsulation, ensuring that attributes are accessed and modified in a controlled manner. Getters retrieve the value of an attribute, while setters allow you to modify it. This approach helps prevent direct manipulation of attributes from outside the class. Basic Class with Public Attributes Let's start with a simple class that has a public attribute − class YearGraduated: def __init__(self, year=0): self.year ...

Read More

How to define all the list properties in one declaration using CSS?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 252 Views

The CSS list-style property is a shorthand property that allows you to define all list-related styling in one declaration. This property combines list-style-type, list-style-position, and list-style-image into a single, convenient statement. Syntax selector { list-style: [type] [position] [image]; } Property Values ValueDescription list-style-typeSpecifies the type of list marker (disc, decimal, square, etc.) list-style-positionSpecifies marker position (inside or outside) list-style-imageSpecifies an image as the list marker Example 1: Basic List Styling The following example demonstrates how to style an unordered list with decimal markers positioned inside − ...

Read More

Fractal Trees in Python

Pradeep Elance
Pradeep Elance
Updated on 15-Mar-2026 1K+ Views

Fractal patterns are everywhere in nature − a small branch resembles the entire tree, a fern leaf's part looks like the whole leaf. This self-repeating pattern concept is called a fractal tree. Python provides several modules to generate beautiful fractal trees programmatically. What is a Fractal Tree? A fractal tree is a mathematical structure that exhibits self-similarity at different scales. Each branch splits into smaller branches following the same pattern, creating a recursive tree-like structure. The recursion continues until reaching a specified depth. Using pygame Module The pygame module provides graphics functions to draw fractal trees. ...

Read More
Showing 19701–19710 of 61,297 articles
Advertisements