Server Side Programming Articles

Page 108 of 2109

Kill a Process by name using Python

Siva Sai
Siva Sai
Updated on 27-Mar-2026 2K+ Views

Processes are an essential component of managing system resources in programming. You might occasionally need to stop a process if it is acting erratically or consuming excessive resources. Python offers excellent tools for these system-level activities through libraries like psutil. In this article, we'll show you how to use Python to kill a process by name. Installing Psutil The psutil (process and system utilities) library is a cross-platform library used to retrieve process and system information. Install it using pip if you don't already have it ? pip install psutil Finding a Process by ...

Read More

Introduction to Dynamic CLI in Python

Siva Sai
Siva Sai
Updated on 27-Mar-2026 384 Views

Understanding how to create command-line interfaces (CLI) is crucial in modern programming. Python makes it simple to construct dynamic CLIs with its extensive library support. This article covers dynamic CLI construction in Python with practical examples. Why Command-Line Interfaces? Command-line interfaces allow direct interaction with your program through well-defined commands and parameters. They are essential for running scripts, automating processes, and testing software efficiently. Python Libraries for CLI Python provides several libraries for building dynamic CLIs. The most popular are argparse, click, and fire. This article focuses on Click and Fire libraries. Getting Started with ...

Read More

Introduction to Dask in Python

Siva Sai
Siva Sai
Updated on 27-Mar-2026 729 Views

As data continues to grow exponentially, having tools that can handle large-scale data processing becomes crucial. Dask is a versatile parallel computing framework for Python that enables scalable analytics. This article will provide you a comprehensive introduction to Dask with practical examples. What is Dask? Dask is a flexible parallel computing library that makes it easy to build intuitive workflows for ingesting, cleaning, and analyzing large datasets. It excels at processing datasets that don't fit in memory and integrates seamlessly with popular Python libraries like NumPy, Pandas, and Scikit-Learn. Installation You can install Dask using pip, ...

Read More

Introduction to Confluent Kafka Python Producer

Siva Sai
Siva Sai
Updated on 27-Mar-2026 2K+ Views

In today's data-driven ecosystem, Apache Kafka serves as a powerful event-streaming platform for high-throughput data processing. The Confluent Kafka Python Producer provides a seamless way to integrate Kafka's capabilities into your Python applications, enabling efficient data publishing to Kafka topics. What is Confluent Kafka Python Producer? The Confluent Kafka Python Producer is part of Confluent's Kafka Python client library that offers a Pythonic interface to Apache Kafka's data streaming capabilities. It enables Python applications to produce data to Kafka topics, working alongside Kafka Consumers to create complete distributed messaging systems. Installation Install the Confluent Kafka Python ...

Read More

Introduction to Chempy in Python

Siva Sai
Siva Sai
Updated on 27-Mar-2026 2K+ Views

Python has a robust ecosystem of libraries built to fulfill the demands of diverse technical and scientific fields. ChemPy is a Python package designed to address problems in chemical engineering and computational chemistry. This article provides an overview of ChemPy's capabilities with practical examples. What is ChemPy? ChemPy is an open-source Python library that provides tools for chemistry calculations including thermodynamics, equilibrium computations, and chemical kinetics. Whether you're modeling chemical reactions, determining substance properties, or running complex simulations, ChemPy offers a comprehensive computational environment. Installation Install ChemPy using pip ? pip install chempy ...

Read More

Introduction to Brython

Siva Sai
Siva Sai
Updated on 27-Mar-2026 583 Views

Python is known for its simplicity and readability, making it an excellent choice for beginners. With its rise in popularity, the demand for Python to run in the browser also grew. Brython, an acronym for Browser Python, is an innovative solution that allows you to write client-side web applications using Python instead of JavaScript. What is Brython? Brython is a browser-based implementation of Python 3 that translates Python code to JavaScript. It enables developers to create client-side scripts in Python, leveraging Python's elegant syntax while accessing web technologies and DOM manipulation capabilities. Setting Up Brython You ...

Read More

How to install Setuptools for Python on Linux?

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 2K+ Views

Having the correct setup tools and packages installed is crucial for Python development on Linux. Setuptools is one such tool that plays a vital role in effortlessly building, distributing, and installing Python packages. This article will provide you with a detailed walkthrough of the installation process for Setuptools on Linux, ensuring that you possess all the necessary components to commence your Python application development smoothly. Prerequisites Before we proceed with the installation procedure for Python on Linux, it is important to ensure that you have fulfilled a few prerequisites. These conditions are essential for a seamless installation ...

Read More

How to add a border around a NumPy array?

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 1K+ Views

Adding a border around a NumPy array is useful in image processing, data visualization, and scientific computing. NumPy provides several methods to add borders: zero padding, constant padding, and concatenation. In this article, we will explore three different techniques to add borders around NumPy arrays with practical examples. Method 1: Zero Padding with np.pad() The simplest method uses np.pad() with mode='constant' (default padding value is 0) ? import numpy as np # Create a sample 2D array original_array = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) # Add border of width ...

Read More

How to activate Tkinter menu and toolbar with keyboard shortcut or binding?

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 1K+ Views

When it comes to enhancing user experience, providing keyboard shortcuts or bindings for menu and toolbar items can greatly improve accessibility and efficiency. Tkinter stands as a popular choice for developing interactive applications in Python. In this article, we will explore the process of activating Tkinter menus and toolbars using keyboard shortcuts or bindings, empowering developers to create more intuitive and streamlined applications. How to Activate Tkinter Menu and Toolbar with Keyboard Shortcuts To enable keyboard shortcuts or bindings for activating Tkinter menus and toolbars, you can use two key approaches ? Accelerator parameter ? ...

Read More

How to access a NumPy array by column?

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 2K+ Views

When working with datasets in Python, accessing specific columns of a NumPy array is a fundamental operation for data analysis and manipulation. NumPy provides several powerful methods to access columns efficiently. In this article, we will explore different techniques to access columns in a NumPy array, from basic indexing to advanced boolean filtering. Method 1: Basic Indexing Basic indexing is the simplest way to access a column. Use the colon ":" operator to select all rows and specify the column index ? Example import numpy as np # Create a sample NumPy array ...

Read More
Showing 1071–1080 of 21,090 articles
« Prev 1 106 107 108 109 110 2109 Next »
Advertisements