Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Change or Set System Locales in Linux

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

We often need to customise the operating system to match our preferences like the language we want to use, the time zone we are in, or the type of currency which would become the default in the OS. In this article we will see how to customise these options which is known as locale. Checking Current Locale We can check the current locale by using the locale command as shown below. We get a list of variables which can be reset to different values as per our choice ? $ locale Running the above ...

Read More

Creating a Tabbed pills and Vertical pills navigation menu in Bootstrap

Jaisshree
Jaisshree
Updated on 15-Mar-2026 912 Views

Bootstrap provides several options for creating navigation menus, including tabbed pills and vertical pills. These navigation components use Bootstrap's built-in classes to create stylish and functional menus that work well on all devices. Syntax /* Tabbed Pills Navigation */ .nav.nav-pills { /* Horizontal pill navigation */ } /* Vertical Pills Navigation */ .nav.nav-pills.flex-column { /* Vertical pill navigation */ } Method 1: Tabbed Pills Navigation Tabbed pills arrange navigation links horizontally, where each tab represents a different section. When a tab is clicked, the corresponding ...

Read More

Display Command Output or File Contents in Column Format in Linux

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

When working with files containing multiple columns, data can appear cramped and difficult to read. The column command in Linux helps format text into readable columns with proper spacing and alignment, making data analysis much easier. Sample File Let's examine a sample CSV file with iris dataset that we'll use to demonstrate the column command ? $ cat iris.data The output shows cramped CSV data ? Id, SepalLengthCm, SepalWidthCm, PetalLengthCm, PetalWidthCm, Species 1, 5.1, 3.5, 1.4, 0.2, Iris-setosa 2, 4.9, 3.0, 1.4, 0.2, Iris-setosa 3, 4.7, 3.2, 1.3, 0.2, Iris-setosa 4, 4.6, ...

Read More

Creating Snackbar using HTML, CSS and Javascript

Jaisshree
Jaisshree
Updated on 15-Mar-2026 1K+ Views

Snackbars are notification bars that appear at the bottom of a web page to display an important message, usually to confirm an action or provide feedback to the user. They are displayed on the screen for a few seconds and then disappear automatically. They are an essential element of user interface design and are widely used in web applications. Syntax A basic snackbar consists of HTML structure, CSS styling for positioning and animations, and JavaScript for show/hide functionality − .snackbar { visibility: hidden; position: fixed; ...

Read More

Add trailing Zeros to a Python string

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

When processing strings in Python, you may need to add trailing zeros for formatting purposes such as padding numbers or creating fixed-width strings. Python provides several methods to accomplish this task efficiently. Using ljust() Method The ljust() method returns a string left-justified within a specified width, padding with a given character. Combined with len(), it allows dynamic zero padding ? Example # Add trailing zeros to a Python string # initializing string text = 'Jan-' print("The given input: " + text) # Number of zeros required n = 3 # Using ljust() to ...

Read More

Programs for printing pyramid patterns in Python

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

Taking advantage of the for loop and range function in Python, we can draw a variety of pyramid structures. The key to the approach is designing the appropriate for loop which will leave both vertical and horizontal space for the position of the symbol we choose for drawing the pyramid structure. Pattern 1: Right-Angled Triangle We draw a right angle based pattern where each row contains an increasing number of stars ? def pyramid(p): for m in range(0, p): for n in range(0, m+1): ...

Read More

Creating a skewed background using CSS

Jaisshree
Jaisshree
Updated on 15-Mar-2026 3K+ Views

A skewed background is a design effect that creates a diagonal or angled appearance on the background of a web page or element. This effect can be achieved using CSS transforms to skew the container element, along with other CSS properties like background-color, gradients, and images to create the desired visual effect. Syntax /* Using transform */ .skewed-element { transform: skewY(angle); } /* Using clip-path */ .clipped-element { clip-path: polygon(coordinates); } Method 1: Using Transform Property The following example creates a skewed background using the ...

Read More

Program to make Indian Flag in Python

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

Python's libraries for drawing graphs have very extensive features which can not only give us charts but also provide flexibility to draw other diagrams like flags. In that sense, those modules have an artistic touch. In this article we will see how to draw the Indian flag using the libraries NumPy and Matplotlib. Approach Create three rectangles of same width and draw them with appropriate colors and borders representing the tricolor. Use pyplot function to draw the circle of the Ashoka Chakra at the center of the middle rectangle. ...

Read More

How to set the width of the bottom border animatable using CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 1K+ Views

In CSS, the border-bottom-width property controls the thickness of an element's bottom border. You can create smooth animations by combining this property with CSS animations and keyframes to gradually change the border width over time. Syntax selector { animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { 0% { border-bottom-width: initial-width; } 100% { border-bottom-width: final-width; } } Example 1: Animating Div Bottom Border The following example demonstrates how to animate a div's bottom border width from 5px to 25px and ...

Read More

Program to create grade calculator in Python

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

In academics, it is a common requirement to calculate student grades based on their assessment scores. In this article, we will create a Python program that assigns grades using a predefined grading criteria. Grading Criteria Below is the grading criteria used in our program − Score >= 90 : "O" (Outstanding) Score >= 80 : "A+" (Excellent) Score >= 70 : "A" (Very Good) Score >= 60 : "B+" (Good) Score >= 50 : "B" (Above Average) Score >= 40 : "C" (Average) Score < 40 : "F" (Fail) Program Structure Our ...

Read More
Showing 19631–19640 of 61,299 articles
Advertisements