karthikeya Boyini

karthikeya Boyini

1,420 Articles Published

Articles by karthikeya Boyini

1,420 articles

How to Test your Broadband Speed from Linux Terminal

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 363 Views

Testing your broadband internet speed from the Linux terminal is useful for network diagnostics and monitoring. The speedtest-cli tool provides a command-line interface to test download/upload speeds using speedtest.net servers. Installing Python pip First, install Python pip which is required for installing speedtest-cli ? $ sudo apt-get install python-pip The output will show package dependencies being installed ? Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libbs2b0 libopusfile0 libqmmp-misc libqmmpui0 libsidplayfp linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic ...

Read More

Fish – A Smart and User-Friendly Interactive Shell for Linux

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 284 Views

The Fish (Friendly Interactive Shell) is an innovative command-line shell for Linux and Unix-like systems. Unlike traditional shells that disable features by default to save resources, Fish enables powerful features out of the box to enhance user productivity. Key Features of Fish Shell User-friendly and interactive interface Smart autosuggestions based on command history Web-based configuration interface Syntax highlighting with 256 terminal colors X clipboard integration Built-in error checking and validation Comprehensive help system Arrow key navigation for suggestions Installing Fish Shell Step 1: Install Python Software Properties First, install the required dependencies − ...

Read More

Using Iterations in Python Effectively

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 301 Views

In this article, we will learn about different iteration methods in Python and their effective implementation. Python provides several approaches to iterate through data structures, each with its own advantages and use cases. Using While Loop with Index This method uses a while loop with manual index management ? languages = ("Python", "C", "C++", "Java") print("The topics available on TutorialsPoint are:") i = 0 while (i < len(languages)): print(languages[i]) i += 1 The topics available on TutorialsPoint are: Python C C++ Java This ...

Read More

Using List as Stack and Queues in Python

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 7K+ Views

In this article, we will learn how to implement Stack and Queue data structures using Python lists. Both are fundamental data structures with different ordering principles: stacks follow LIFO (Last In First Out) while queues follow FIFO (First In First Out). We'll cover the core operations for both structures − Insertion operation (Push for stacks, Enqueue for queues) Deletion operation (Pop for stacks, Dequeue for queues) Display / Traversing operation ...

Read More

Python Rational numbers (fractions)

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 2K+ Views

Any number which can be expressed as a quotient or fraction in the form of p/q is called a rational number. The fractions module of Python's standard library provides functionality for rational number arithmetic with exact precision, avoiding floating-point rounding errors. Creating Fraction Objects The fractions module defines a Fraction class that can be constructed in various ways ? Using Numerator and Denominator from fractions import Fraction n1 = Fraction(2, 5) print(n1) n2 = Fraction(6, 15) # Automatically reduced to lowest terms print(n2) n3 = Fraction(10, 1) print(n3) n4 = ...

Read More

Socket Programming with Multi-threading in Python?

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 5K+ Views

Socket programming with multi-threading allows a server to handle multiple clients simultaneously. While a basic socket server can only serve one client at a time, multi-threading creates separate threads for each client connection, enabling concurrent communication. Multithreading Concepts Multithreading is a core concept in modern programming languages, especially Python, due to its simple thread implementation. A thread is a sub-program within a program that executes independently while sharing the program's resources like memory. When multiple threads execute simultaneously within a single process, it's called multithreading. Python Threading Modules Python provides two modules for thread implementation − ...

Read More

Website Blocker Using Python

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 2K+ Views

Website blockers are commonly used in corporate environments to restrict access to social media and entertainment sites during work hours. Instead of relying on third-party applications, we can create our own custom website blocker using Python's built-in libraries. Prerequisites Python 3.x installed Basic knowledge of Python Administrator privileges (required to modify system files) How It Works Every operating system has a hosts file that maps hostnames to IP addresses. By redirecting blocked websites to the local loopback address (127.0.0.1), we can prevent access to specific sites during designated hours. ...

Read More

Develop Notepad using Tkinter in python

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 3K+ Views

Tkinter is a standard GUI library in Python that enables developers to create desktop applications. In this tutorial, we'll build a fully functional notepad text editor with file operations, editing features, and menu functionality using Tkinter. Prerequisites Python installed (3.x recommended) Tkinter module (comes pre-installed with Python) Note: Tkinter is included as a standard library with Python 3.x installations. Notepad Menu Structure Our notepad will contain four main menu categories with their respective sub-items: File Menu: New, Open, Save, ...

Read More

Print Colors of terminal in Python

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 862 Views

In the terminal, if you want to make text appear in colored mode, there are numerous ways in Python programming to achieve it. Python offers several modules and built-in methods to add colors to terminal output. Using the termcolor Module The termcolor module provides ANSI color formatting for terminal output. It's one of the most popular libraries for adding colors to text. Installation First, install the termcolor module using pip − pip install termcolor Basic Usage Here's how to use termcolor to print colored text − import sys from ...

Read More

Replacing strings with numbers in Python for Data Analysis

karthikeya Boyini
karthikeya Boyini
Updated on 25-Mar-2026 991 Views

In data analysis, converting categorical strings to numerical values is essential for machine learning algorithms and statistical analysis. Python provides several methods to map string values to integers efficiently. Consider this sample dataset with stock recommendations ? Company Industry Recommendation HDFC Bank Finance Hold Apollo Healthcare Buy Hero Automobile Underperform Yes Bank Finance Hold M&M Automobile Underperform Fortis Healthcare Buy We need to convert the Recommendation column to numerical values: Buy=1, Hold=2, Underperform=3. Method 1: Using ...

Read More
Showing 1–10 of 1,420 articles
« Prev 1 2 3 4 5 142 Next »
Advertisements