Articles on Trending Technologies

Technical articles with clear explanations and examples

Add one Python string to another

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

String concatenation in Python combines two or more strings into a single string. Python provides several methods to add strings together, with the + operator and join() method being the most common approaches. Using the + Operator The + operator concatenates strings by combining them sequentially. This is the most straightforward method for joining strings ? first_string = "What a beautiful " second_string = "flower" print("Given string s1:", first_string) print("Given string s2:", second_string) # Using + operator result = first_string + second_string print("Result after adding strings:", result) Given string s1: What ...

Read More

How to place background image using ::before pseudo selectors in CSS?

Mohit Panchasara
Mohit Panchasara
Updated on 15-Mar-2026 7K+ Views

To place background image using ::before pseudo selectors, we will be using background-image and ::before pseudo element. CSS ::before pseudo-element is used to add content before the selected element with the content property allowing to insert text, images, or decorative elements, without modifying the HTML structure. This technique is particularly useful when you want to add a background image that can be styled independently from the main element, providing better control over layering and positioning. Syntax selector::before { content: ""; background-image: url("path/to/image.jpg"); position: absolute; ...

Read More

Add list elements with a multi-list based on index in Python

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

When working with nested lists, you may need to add elements from a simple list to elements within a nested list based on their index positions. This operation pairs each element from the simple list with the corresponding sublist in the nested list and adds the simple list element to each item in that sublist. If the lists have different lengths, the operation is limited by the shorter list. Below are three efficient methods to accomplish this task. Using for Loop This method uses nested loops to iterate through both lists simultaneously. We take the length of ...

Read More

Advanced JavaScript Animation Techniques using CSS and JavaScript Libraries

Mukul Latiyan
Mukul Latiyan
Updated on 15-Mar-2026 615 Views

As web development continues to evolve, creating engaging and interactive user experiences has become an essential part of modern web applications. From subtle micro-interactions to complex visual effects, animations play a crucial role in capturing the attention of users and conveying information in a dynamic and visually appealing manner. JavaScript, in combination with CSS and various JavaScript libraries, offers powerful techniques for creating advanced animations on the web. In this article, we will delve into the world of advanced JavaScript animation techniques, exploring how CSS transitions and JavaScript libraries can be harnessed to bring your web animations to life. ...

Read More

How to Watch TCP and UDP Ports in Real-time in Linux?

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

In computer networks, services running on Linux systems communicate using protocols like TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) along with specific port numbers. Monitoring these ports in real-time helps system administrators track network activity, troubleshoot connectivity issues, and ensure security. List of Open Ports To view all currently open ports that are listening for connections, use the netstat command with specific flags ? $ sudo netstat -tulpn The flags have the following meanings ? t − Enable listing of TCP ports u − Enable listing of UDP ports l ...

Read More

How to Create a Combined Child Selector in SASS?

Ayushya Saxena
Ayushya Saxena
Updated on 15-Mar-2026 318 Views

Sass (Systematically Awesome Style Sheets) is a CSS preprocessor that extends CSS with powerful features like variables, nesting, mixins, and inheritance. One of Sass's most useful features is the ability to create nested selectors, including combined child selectors that target direct children of elements. Syntax parent { > child { property: value; } } What is a Child Selector? A child selector (>) targets only the direct children of a parent element, not deeper nested descendants. In CSS, ...

Read More

How to View Colored Man Pages in Linux?

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

Man pages are important reference documents for Unix/Linux users, but their default appearance is plain text that can be hard to read. This article shows how to add colors and highlighting to man pages to make them more readable and easier to follow. Using most The most command is a pager that can display colored man pages. First, install it using your package manager ? sudo apt install most Once installed, add most as your default pager by adding this line to your .bashrc file ? export PAGER="most" Reload your ...

Read More

How to divide text into two column layout using HTML and CSS?

Tapas Kumar Ghosh
Tapas Kumar Ghosh
Updated on 15-Mar-2026 5K+ Views

Creating a two-column text layout is a common web design requirement for displaying content side-by-side. This can be achieved using HTML div elements combined with CSS positioning properties like float or modern layout methods like flexbox. Syntax .column { width: 50%; float: left; } Properties Used The following CSS properties are commonly used for two-column layouts − width − Defines the width of each column (typically 50% or specific pixel values) float − Positions elements side-by-side (left/right) margin − Creates spacing around columns padding ...

Read More

How to Run a Command with Time Limit (Timeout) In Linux

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

Sometimes a Unix command may run for a very long time without giving the final output or it may keep processing giving partial output from time to time. In such scenarios we need to put a time frame within which either the command must complete or the process should abort. This is achieved by using timeout tools. Using timeout Tool The timeout tool forces a command to abort if it cannot complete within a given time frame. This is a built-in utility available on most Linux systems. Syntax timeout DURATION COMMAND [ARG]... Where ...

Read More

How to dynamically create \'@-Keyframe\' CSS animations?

Tapas Kumar Ghosh
Tapas Kumar Ghosh
Updated on 15-Mar-2026 741 Views

In CSS, the @keyframes rule specifies a sequence of styles that an element should go through during the animation. The @keyframes rule allows you to create dynamic animations by defining specific points (keyframes) in an animation timeline where certain CSS properties should have particular values. These styles are then applied to elements via the animation property, which sets the animation's duration, timing function, and other properties to create smooth transitions between keyframe states. Syntax @keyframes animation-name { 0% { /* CSS properties */ } 50% { /* CSS ...

Read More
Showing 19611–19620 of 61,297 articles
Advertisements