Tagged articles
5000 articles
Page 16 of 50
Python Programming Learning Circle
Python Programming Learning Circle
Nov 23, 2024 · Fundamentals

Useful Python Tricks and Advanced Techniques

This article presents a collection of lesser‑known Python tricks—including string cleaning with translate, iterator slicing via itertools.islice, skipping header lines, keyword‑only functions, custom context managers, memory‑saving __slots__, resource limits, import control, and total_ordering—to help developers write cleaner, more efficient code.

Memory OptimizationPythoncontext manager
0 likes · 10 min read
Useful Python Tricks and Advanced Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Nov 22, 2024 · Artificial Intelligence

Introduction to Data Modeling with Scikit-Learn

This article provides a comprehensive guide to using Scikit-Learn for data modeling, covering linear regression and decision tree algorithms, including data preparation, model training, evaluation metrics, and visualization techniques for predictive analysis.

Decision TreesPythondata modeling
0 likes · 4 min read
Introduction to Data Modeling with Scikit-Learn
JD Cloud Developers
JD Cloud Developers
Nov 22, 2024 · Frontend Development

How Playwright Transforms Car‑Insurance UI Testing: From Recording to Automated Reporting

This article explains how Playwright can automate the UI testing of a car‑insurance H5 application, covering background challenges, tool installation, recording test cases, API response verification, building a full automated testing pipeline, and a demo that reduces manual effort while improving reliability.

Car InsuranceJavaPlaywright
0 likes · 10 min read
How Playwright Transforms Car‑Insurance UI Testing: From Recording to Automated Reporting
Practical DevOps Architecture
Practical DevOps Architecture
Nov 21, 2024 · Information Security

Python Script to Retrieve Domain SSL Certificate Expiration Date and Remaining Days

This article presents a Python script that retrieves a domain's SSL certificate information, parses its start and expiration dates, converts them to datetime objects, and calculates the remaining days until the certificate expires, providing a simple command‑line tool for monitoring certificate validity.

CertificateExpirationPython
0 likes · 3 min read
Python Script to Retrieve Domain SSL Certificate Expiration Date and Remaining Days
Test Development Learning Exchange
Test Development Learning Exchange
Nov 21, 2024 · Artificial Intelligence

Data Preprocessing: Standardization, Normalization, and Missing Value Imputation with Python

This tutorial demonstrates how to perform essential data preprocessing techniques—including standardization, min‑max normalization, and various missing‑value imputation methods—using pandas and scikit‑learn in Python, providing code examples and explanations to help you prepare datasets for machine‑learning models.

Pythonmissing value imputationnormalization
0 likes · 6 min read
Data Preprocessing: Standardization, Normalization, and Missing Value Imputation with Python
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 21, 2024 · Databases

How to Sync Redis with MySQL: Strategies, Code Samples, and Best Practices

This article explains why syncing Redis with MySQL is essential for performance and consistency, and details three implementation methods—database triggers, application-level double writes, and message queues—providing code examples, practical tips, and key considerations for reliable data synchronization.

Database TriggersMessage queueMySQL
0 likes · 8 min read
How to Sync Redis with MySQL: Strategies, Code Samples, and Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 20, 2024 · Artificial Intelligence

Resolving 02_DocQA.py Errors and Using LangChain to Call Large Models Locally

This guide explains how to fix the ArkNotFoundError in the 02_DocQA.py script by configuring a Doubao‑embedding endpoint, setting up a Conda environment with the latest LangChain packages, and provides step‑by‑step code examples for invoking both Zhipu glm‑4 and Volcano large language models via LangChain.

EmbeddingEnvironment setupLangChain
0 likes · 9 min read
Resolving 02_DocQA.py Errors and Using LangChain to Call Large Models Locally
Test Development Learning Exchange
Test Development Learning Exchange
Nov 19, 2024 · Fundamentals

Advanced Pandas Tutorial: Multi‑Index and apply Method

This tutorial demonstrates how to use Pandas' advanced features, including creating and manipulating multi‑level indexes, selecting data with hierarchical keys, resetting and sorting indexes, and applying custom functions to columns and rows using the apply method, with comprehensive code examples.

Data AnalysisMulti-IndexPython
0 likes · 5 min read
Advanced Pandas Tutorial: Multi‑Index and apply Method
Python Programming Learning Circle
Python Programming Learning Circle
Nov 19, 2024 · Databases

Overview of Lightweight Python Databases and Their Usage

This article surveys several lightweight Python databases—including PickleDB, TinyDB, ZODB, Durus, Buzhug, Gadfly, and PyTables—detailing their main features, typical use cases, cautions, and providing basic code examples to help developers choose and apply the right storage solution for small‑scale or prototype projects.

Data StorageDatabasesNoSQL
0 likes · 23 min read
Overview of Lightweight Python Databases and Their Usage
Model Perspective
Model Perspective
Nov 18, 2024 · Fundamentals

Explore Four Innovative Python Charts to Elevate Your Data Visualizations

This article introduces four innovative Python chart types—Radar Chart, Treemap, Ternary Plot, and Joy Plot—explaining their concepts, typical applications such as performance evaluation and market analysis, and providing complete code examples to help data analysts create compelling visualizations.

Data visualizationJoy PlotPython
0 likes · 8 min read
Explore Four Innovative Python Charts to Elevate Your Data Visualizations
Test Development Learning Exchange
Test Development Learning Exchange
Nov 16, 2024 · Artificial Intelligence

Basic Operations with NumPy Arrays in Python

This tutorial introduces NumPy array creation, manipulation, and fundamental mathematical operations, providing step‑by‑step code examples for importing the library, generating arrays with various functions, reshaping, indexing, slicing, and computing mean, variance, and standard deviation.

Array OperationsNumPyPython
0 likes · 6 min read
Basic Operations with NumPy Arrays in Python
Architecture and Beyond
Architecture and Beyond
Nov 16, 2024 · Artificial Intelligence

ComfyUI Architecture Overview: Initialization, Node System, Execution Flow, Cache Mechanism and Usage Limits

This article provides a comprehensive technical overview of ComfyUI, an open‑source, node‑based Stable Diffusion UI, detailing its modular initialization steps, node system design, execution pipeline, hierarchical cache strategies, resource management, error handling, API interfaces, and practical usage limits.

AI image generationCache systemComfyUI
0 likes · 25 min read
ComfyUI Architecture Overview: Initialization, Node System, Execution Flow, Cache Mechanism and Usage Limits
Test Development Learning Exchange
Test Development Learning Exchange
Nov 13, 2024 · Fundamentals

Python Fundamentals: String, List, Dictionary Operations and Common Techniques

This article provides a comprehensive Python tutorial covering essential string manipulations, list and dictionary operations, file handling, exception handling, performance measurement, and classic algorithmic examples such as palindrome checking, prime testing, and Fibonacci generation, each illustrated with clear code snippets.

AlgorithmsPythonfundamentals
0 likes · 20 min read
Python Fundamentals: String, List, Dictionary Operations and Common Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Nov 12, 2024 · Fundamentals

Comprehensive Python Syntax Cheat Sheet: 25 Key Concepts with Code Examples

This article presents a concise yet thorough overview of Python's essential syntax, covering printing, variable assignment, data types, control flow, functions, OOP features, decorators, context managers, generators, and advanced topics such as metaclasses and recursion, each illustrated with clear code snippets.

Code ExamplesProgramming BasicsPython
0 likes · 12 min read
Comprehensive Python Syntax Cheat Sheet: 25 Key Concepts with Code Examples
Test Development Learning Exchange
Test Development Learning Exchange
Nov 11, 2024 · Fundamentals

20 Practical Tips for Handling JSON Data in Python

These 20 practical Python tips demonstrate how to import the json module, serialize and deserialize data, read and write JSON files, format output, handle dates, Unicode, special characters, nested structures, large files, and error handling, enabling more efficient and flexible JSON processing.

Data ProcessingJSONPython
0 likes · 8 min read
20 Practical Tips for Handling JSON Data in Python
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Nov 11, 2024 · Fundamentals

How Does the Python VM Capture Exceptions?

The article explains Python's exception handling implementation, detailing how the virtual machine executes try/except/else/finally blocks, the bytecode instructions generated for each clause, the static exception table used for fast dispatch, and the effects of return and del statements on control flow and object lifetimes.

Pythonbytecodeexception-handling
0 likes · 19 min read
How Does the Python VM Capture Exceptions?
Test Development Learning Exchange
Test Development Learning Exchange
Nov 10, 2024 · Fundamentals

20 Essential Pandas Data Processing Methods with Code Examples

This article provides a comprehensive overview of 20 essential Pandas data processing methods with detailed code examples covering statistics, data cleaning, transformation, filtering, merging, grouping, sorting, reshaping, aggregation, window functions, time series analysis, conditional selection, indexing, slicing, visualization, type conversion, data filling, filtering, renaming, and import/export operations.

Data AnalysisData ProcessingData visualization
0 likes · 16 min read
20 Essential Pandas Data Processing Methods with Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Nov 9, 2024 · Fundamentals

A One-Month Python Learning Roadmap: Weekly Plans, Projects, and Career Preparation

This article presents a detailed four‑week, 28‑day Python learning roadmap that guides beginners from core concepts to real‑world projects, covering fundamentals, data structures, OOP, web development, databases, testing, and job‑search preparation, with daily time allocations and resource suggestions.

BackendPythoncareer-prep
0 likes · 10 min read
A One-Month Python Learning Roadmap: Weekly Plans, Projects, and Career Preparation
Test Development Learning Exchange
Test Development Learning Exchange
Nov 9, 2024 · Fundamentals

15 Common Python Variable Assignment Techniques

This article demonstrates fifteen practical ways to assign values to variables in Python, ranging from simple direct assignment and augmented operators to unpacking, dictionary unpacking, slicing, conditional expressions, and various comprehension forms, each accompanied by code examples and their outputs.

Code ExamplesPythonVariable Assignment
0 likes · 9 min read
15 Common Python Variable Assignment Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Nov 8, 2024 · Fundamentals

Common Python Built‑in Functions with Examples

This article introduces a collection of frequently used Python built‑in functions, explains their purpose, provides concise code examples for each, and shows the corresponding output to help readers write more efficient and readable Python code.

Code ExamplesPythonbuilt-in functions
0 likes · 14 min read
Common Python Built‑in Functions with Examples
Alibaba Cloud Observability
Alibaba Cloud Observability
Nov 8, 2024 · Cloud Native

Enable Python Probe for LLM Observability on Alibaba Cloud ACK

This guide explains how to integrate Alibaba Cloud's Python probe into a Kubernetes (ACK) environment to monitor large language model (LLM) applications, covering prerequisites, installation steps, Dockerfile modifications, resource permissions, and sample Python code for both server and client components.

ARMSDockerLLM
0 likes · 16 min read
Enable Python Probe for LLM Observability on Alibaba Cloud ACK
Test Development Learning Exchange
Test Development Learning Exchange
Nov 8, 2024 · Fundamentals

Comprehensive Guide to Common NumPy Array Operations

This article presents a thorough tutorial on NumPy array creation, indexing, reshaping, concatenation, splitting, copying, slicing, statistical analysis, boolean indexing, sorting, unique values, broadcasting, merging, insertion, deletion, transposition, flattening, multi‑dimensional merging, random sampling, dot and outer products, cumulative operations, and differences, providing code examples for each to boost data‑processing efficiency in Python.

Array OperationsData ProcessingNumPy
0 likes · 12 min read
Comprehensive Guide to Common NumPy Array Operations
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 8, 2024 · Fundamentals

Extracting Courier Addresses with Python: A Step‑by‑Step Guide

This article walks through a practical Python solution for parsing a list of courier records, extracting province information, grouping entries by location using dictionaries, and optionally applying regular expressions and pandas for further analysis, all illustrated with clear code examples and output screenshots.

DictionariesListsPython
0 likes · 11 min read
Extracting Courier Addresses with Python: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Nov 7, 2024 · Backend Development

9 Best Practices for Enterprise Python Development

This article presents nine essential best‑practice steps for building robust, maintainable Python backend applications, covering virtual environments, dependency management, logging, configuration files, testing, asynchronous I/O, Docker containerization, CI/CD automation, and ORM usage with a practical Flask example.

BackendPythonci/cd
0 likes · 11 min read
9 Best Practices for Enterprise Python Development
Test Development Learning Exchange
Test Development Learning Exchange
Nov 7, 2024 · Fundamentals

40 Essential Python pandas Scripts for Excel Data Processing

This article compiles 40 practical Python pandas scripts covering Excel file reading, sheet selection, date parsing, column manipulation, data filtering, sorting, grouping, merging, pivot tables, visualization, cleaning, and advanced operations, providing clear examples and output for each step to help data analysts efficiently handle tabular data.

ExcelPythonpandas
0 likes · 17 min read
40 Essential Python pandas Scripts for Excel Data Processing
Test Development Learning Exchange
Test Development Learning Exchange
Nov 6, 2024 · Fundamentals

Overview of Common Python Standard Library Modules

This article provides a concise overview of twenty essential Python standard library modules, covering their primary purposes and frequently used functions such as file handling, system interaction, data processing, networking, concurrency, compression, and serialization, helping developers improve productivity across various programming tasks.

PythonStandard LibraryTutorial
0 likes · 8 min read
Overview of Common Python Standard Library Modules
21CTO
21CTO
Nov 5, 2024 · Artificial Intelligence

Why Python Overtook JavaScript on GitHub: AI Projects Fuel Explosive Growth

The 2024 GitHub Octoverse report reveals that Python has surpassed JavaScript as the most used language, driven by a surge in generative AI projects and a 92% rise in Jupyter Notebook usage, highlighting the expanding role of AI and data‑science communities on the platform.

AIGitHubPython
0 likes · 5 min read
Why Python Overtook JavaScript on GitHub: AI Projects Fuel Explosive Growth
ITPUB
ITPUB
Nov 5, 2024 · Operations

Master EFLK: Deep‑Inspection Guide for Elasticsearch, Filebeat, Logstash & Kibana

This guide presents a comprehensive, step‑by‑step deep‑inspection plan for the EFLK stack, covering Elasticsearch health checks, node performance metrics, shard and index monitoring, Logstash and Kibana validation, DSL query examples, and automated Python‑based metric collection with cron scheduling.

ElasticsearchKibanaLogstash
0 likes · 13 min read
Master EFLK: Deep‑Inspection Guide for Elasticsearch, Filebeat, Logstash & Kibana
Python Programming Learning Circle
Python Programming Learning Circle
Nov 5, 2024 · Fundamentals

Why Python Does Not Need a Traditional Main Function

The article explains that unlike compiled languages, Python as an interpreted scripting language does not require a mandatory main function, clarifies the purpose of the __name__ == '__main__' guard, and advises using a simple entry script such as main.py for clean, idiomatic code.

Pythonbest-practicesmain function
0 likes · 6 min read
Why Python Does Not Need a Traditional Main Function
Test Development Learning Exchange
Test Development Learning Exchange
Nov 4, 2024 · Artificial Intelligence

Image Processing with Python: Pillow and OpenCV Guide

This guide demonstrates how to perform common image processing tasks in Python using the Pillow and OpenCV libraries, covering reading, displaying, saving, resizing, cropping, rotating, converting to grayscale, adding text, compositing, blurring, sharpening, enhancing, and extracting image metadata.

OpenCVPythoncomputer vision
0 likes · 5 min read
Image Processing with Python: Pillow and OpenCV Guide
Test Development Learning Exchange
Test Development Learning Exchange
Nov 4, 2024 · Fundamentals

Python Practical Guide: File I/O, CSV, JSON, HTTP Requests, SQLite, Scheduling, Logging, Argument Parsing, Compression, Subprocess, DateTime, Email, Image Processing, NumPy, Pandas, Regex, System Info, Socket Programming, and AsyncIO

This comprehensive Python tutorial demonstrates essential techniques such as file reading and writing, CSV and JSON handling, HTTP requests, SQLite operations, task scheduling, logging, command‑line parsing, compression, subprocess management, date‑time handling, email sending, image manipulation, numerical computing, data analysis, regular expressions, system information retrieval, socket networking, and asynchronous programming.

Data ProcessingFile I/OPython
0 likes · 9 min read
Python Practical Guide: File I/O, CSV, JSON, HTTP Requests, SQLite, Scheduling, Logging, Argument Parsing, Compression, Subprocess, DateTime, Email, Image Processing, NumPy, Pandas, Regex, System Info, Socket Programming, and AsyncIO
Test Development Learning Exchange
Test Development Learning Exchange
Nov 3, 2024 · Fundamentals

Understanding Python Method Resolution Order (MRO)

This article explains Python's Method Resolution Order (MRO), detailing its basic principles, the C3 linearization algorithm, and how attribute and method lookup work in single, multiple, and complex inheritance scenarios, accompanied by illustrative code examples.

C3 LinearizationMROMethod Resolution Order
0 likes · 8 min read
Understanding Python Method Resolution Order (MRO)
Python Programming Learning Circle
Python Programming Learning Circle
Nov 2, 2024 · Fundamentals

Common Python Errors and How to Fix Them

This article presents 17 frequent Python runtime and syntax errors, explains why they occur, and provides clear code examples and corrections to help beginners quickly identify and resolve these issues while improving their debugging skills.

DebuggingPythonRuntime
0 likes · 10 min read
Common Python Errors and How to Fix Them
Test Development Learning Exchange
Test Development Learning Exchange
Nov 2, 2024 · Big Data

Python Data Parsing and Large‑Scale Data Processing Techniques

This article introduces Python's built‑in modules and popular libraries for parsing CSV, JSON, and XML files, demonstrates advanced data manipulation with pandas, and presents multiple strategies—including chunked reading, Dask, PySpark, HDF5, databases, Vaex, and NumPy memory‑mapping—for efficiently handling very large datasets.

Big DataCSVData Parsing
0 likes · 14 min read
Python Data Parsing and Large‑Scale Data Processing Techniques
Architecture and Beyond
Architecture and Beyond
Nov 2, 2024 · Artificial Intelligence

Step-by-Step Guide to Training a LoRA Model with Flux1_dev on ComfyUI

This tutorial walks programmers through preparing a GPU cloud environment, installing ComfyUI, downloading Flux1_dev models, integrating a custom LoRA, labeling generated images, and finally training the LoRA using ai‑toolkit, providing detailed commands, configuration tips, and practical cost estimates.

AI image generationComfyUIFlux
0 likes · 12 min read
Step-by-Step Guide to Training a LoRA Model with Flux1_dev on ComfyUI
Test Development Learning Exchange
Test Development Learning Exchange
Nov 1, 2024 · Fundamentals

Comprehensive Python Basics: Variables, Data Types, Control Structures, Functions, OOP, Standard Library, and More

This article provides a comprehensive Python tutorial covering variables, data types, control structures, functions, classes, standard library modules, file I/O, exception handling, comprehensions, generators, decorators, modules, virtual environments, coding style, and Git version control, complete with example code snippets.

Control structuresFunctionsProgramming Basics
0 likes · 14 min read
Comprehensive Python Basics: Variables, Data Types, Control Structures, Functions, OOP, Standard Library, and More
Python Programming Learning Circle
Python Programming Learning Circle
Nov 1, 2024 · Backend Development

Designing a Python SDK for Cloud TTS Services: Critique and Refactoring of Volcengine's SDK

This article examines the shortcomings of Volcengine's Python TTS SDK, proposes a cleaner design using request interceptors or Auth objects, demonstrates refactored code examples with the Tetos library, and explains how to integrate signing logic into standard HTTP clients for more maintainable backend development.

BackendHTTPPython
0 likes · 10 min read
Designing a Python SDK for Cloud TTS Services: Critique and Refactoring of Volcengine's SDK
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 1, 2024 · Backend Development

Fixing Chinese Character Garbling in Python Web Scraping

This article walks through a real‑world Python web‑scraping issue where Chinese characters appear as garbled text, explains why the default encoding fails, and shows how setting the response’s apparent encoding resolves the problem, complete with sample code and practical tips for posting questions.

EncodingPythonWeb Scraping
0 likes · 5 min read
Fixing Chinese Character Garbling in Python Web Scraping
Sohu Tech Products
Sohu Tech Products
Oct 30, 2024 · Operations

Comprehensive EFLK (Elasticsearch, Filebeat, Logstash, Kibana) Deep Inspection and Monitoring Guide

This comprehensive guide details a step‑by‑step deep‑inspection and monitoring strategy for an Elasticsearch‑Filebeat‑Logstash‑Kibana (EFLK) stack, covering cluster health, node and shard metrics, index status, query profiling, Filebeat, Logstash and Kibana validation, DSL query examples, and a Python script for automated metric collection.

EFLKElasticsearchFilebeat
0 likes · 12 min read
Comprehensive EFLK (Elasticsearch, Filebeat, Logstash, Kibana) Deep Inspection and Monitoring Guide
Test Development Learning Exchange
Test Development Learning Exchange
Oct 30, 2024 · Fundamentals

Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices

This article explains Python magic (dunder) methods, their purposes, common examples such as __init__, __str__, __repr__, __len__, __getitem__, __setitem__, __delitem__, __iter__, __call__, __add__, __eq__, __hash__, and shows how to implement operator overloading, iterator and context‑manager protocols while discussing naming rules, performance, inheritance, type checking, and limitations.

Iterator ProtocolPythonSpecial Methods
0 likes · 19 min read
Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 28, 2024 · Fundamentals

How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace

The article explains that CPython stores function local variables in a statically‑indexed array (f_localsplus), accesses them via GETLOCAL/SETLOCAL macros, and builds the locals() dictionary on demand, showing how exec, variable assignment order, and the hidden local namespace interact with this mechanism.

CPythonPythonbytecode
0 likes · 27 min read
How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace
Python Programming Learning Circle
Python Programming Learning Circle
Oct 26, 2024 · Big Data

Python Data Visualization with Matplotlib: Steps, Functions, and Practical Examples

This article provides a comprehensive guide to creating visualizations in Python using Matplotlib and related libraries, covering the three‑step workflow of problem definition, data transformation, and parameter tuning, along with detailed code examples for figures, subplots, legends, annotations, saving files, and Pandas‑based plotting.

Pythondata-visualizationpandas
0 likes · 10 min read
Python Data Visualization with Matplotlib: Steps, Functions, and Practical Examples
Top Architect
Top Architect
Oct 26, 2024 · Information Security

WiFi Password Cracking Tool Using Python and PyWiFi

This article demonstrates how to build a Python GUI tool with Tkinter and the PyWiFi library to scan nearby Wi‑Fi networks, load a password dictionary, and perform brute‑force attempts to discover the correct Wi‑Fi password, including environment setup, code snippets, and execution results.

PythonTkinterWiFi
0 likes · 13 min read
WiFi Password Cracking Tool Using Python and PyWiFi
Test Development Learning Exchange
Test Development Learning Exchange
Oct 26, 2024 · Fundamentals

Master 24 Essential Python Tricks to Write Cleaner, Faster Code

This comprehensive guide walks you through 24 powerful Python techniques—from list, dictionary, and set comprehensions to advanced modules like itertools, functools, and asyncio—showing concise syntax, practical examples, and best practices that help you write more efficient, readable, and maintainable code.

Advanced TechniquesBest PracticesComprehensions
0 likes · 14 min read
Master 24 Essential Python Tricks to Write Cleaner, Faster Code
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 26, 2024 · Databases

Export MongoDB Data to CSV, Excel, JSON and More with mongo2file

This article introduces the mongo2file Python library that converts MongoDB collections into various table formats such as CSV, Excel, JSON, Pickle, Feather, and Parquet, explains its PyArrow dependency, shows installation and usage examples, discusses performance bottlenecks, and provides API reference details.

CSVData ExportExcel
0 likes · 11 min read
Export MongoDB Data to CSV, Excel, JSON and More with mongo2file
Test Development Learning Exchange
Test Development Learning Exchange
Oct 25, 2024 · Fundamentals

Implementing Dynamic Progress Bars in Python: Using tqdm, Manual Methods, and Various Libraries

This article explains how to create dynamic command‑line progress bars in Python, covering the easy‑to‑use tqdm library, a manual implementation with sys and time, and several alternative libraries such as colorama, rich, alive‑progress, click, progressbar2, and pyfiglet, each with code examples and installation instructions.

Pythoncoloramacommand line
0 likes · 10 min read
Implementing Dynamic Progress Bars in Python: Using tqdm, Manual Methods, and Various Libraries
Test Development Learning Exchange
Test Development Learning Exchange
Oct 24, 2024 · Fundamentals

Common Built‑in Functions and Popular Third‑Party Libraries in Python with Examples

This article lists essential Python built‑in functions, introduces widely used third‑party libraries such as NumPy, Pandas, Matplotlib, Scikit‑learn, TensorFlow, Requests, Beautiful Soup, Flask/Django, SQLAlchemy, SciPy, Pillow and OpenCV, and provides concrete code examples demonstrating their usage.

PythonThird‑party librariesbuilt-in functions
0 likes · 21 min read
Common Built‑in Functions and Popular Third‑Party Libraries in Python with Examples
Test Development Learning Exchange
Test Development Learning Exchange
Oct 23, 2024 · Fundamentals

Understanding Race Conditions, Deadlocks, Resource Contention, and Data Consistency in Multithreaded Python

This article explains common multithreading problems such as race conditions, deadlocks, resource contention, and data consistency issues, and provides Python code examples that demonstrate synchronization techniques, lock ordering, connection pooling, thread pools, and transaction management to ensure correct and stable concurrent execution.

Data ConsistencyPythondeadlock
0 likes · 10 min read
Understanding Race Conditions, Deadlocks, Resource Contention, and Data Consistency in Multithreaded Python
Test Development Learning Exchange
Test Development Learning Exchange
Oct 22, 2024 · Operations

Key Linux Server Performance Metrics, Monitoring Tools, and a Python Script for Automated Data Collection

When testing Linux server performance, you should monitor key metrics such as CPU usage, memory consumption, disk I/O, network bandwidth, process information, file system usage, system logs, boot and response times, context switches, and interrupts, using tools like top, vmstat, iostat, netstat, and custom Python scripts.

LinuxPythonperformance monitoring
0 likes · 8 min read
Key Linux Server Performance Metrics, Monitoring Tools, and a Python Script for Automated Data Collection
php Courses
php Courses
Oct 22, 2024 · Backend Development

Structured Approach for Migrating Python Functions to PHP

This guide outlines a systematic method for tracking, testing, and documenting the migration of Python functions to PHP, including creating a mapping table, using version control, writing unit tests, recording edge cases, and conducting regular progress reviews to ensure code quality and functional equivalence.

BackendPHPPython
0 likes · 4 min read
Structured Approach for Migrating Python Functions to PHP
Test Development Learning Exchange
Test Development Learning Exchange
Oct 20, 2024 · Backend Development

Python Examples of Distributed Task Queues, Message Brokers, RPC, and Serialization Libraries

This article provides practical Python code examples for various messaging and serialization tools—including Celery, RQ, Huey, ZeroMQ, kafka‑python, Pika, stomp.py, nats‑py, gRPC, Thrift, Protobuf, Avro, msgpack, and Flatbuffers—demonstrating how to set up producers, consumers, and services for asynchronous processing and data exchange.

Distributed TasksMessage queuePython
0 likes · 19 min read
Python Examples of Distributed Task Queues, Message Brokers, RPC, and Serialization Libraries
21CTO
21CTO
Oct 19, 2024 · Fundamentals

Why Does Python Still Use the GIL? Understanding Its Role and Alternatives

Python's Global Interpreter Lock (GIL) serializes thread execution to protect memory, but in today's multicore era it creates performance bottlenecks; this article explains what the GIL is, why it exists, its impact on multithreading, and how multiprocessing can bypass its limitations.

GILPythonmultiprocessing
0 likes · 6 min read
Why Does Python Still Use the GIL? Understanding Its Role and Alternatives
IT Services Circle
IT Services Circle
Oct 19, 2024 · Fundamentals

Understanding Python's Virtual Machine Execution and Runtime Stack

This article explains how the Python interpreter initializes its runtime environment, compiles source code into PyCodeObject bytecode, creates stack frames, and executes the bytecode using functions like PyEval_EvalFrame and _PyEval_EvalFrameDefault while detailing the role of the runtime stack and its associated C macros.

C++PythonRuntime Stack
0 likes · 21 min read
Understanding Python's Virtual Machine Execution and Runtime Stack
Test Development Learning Exchange
Test Development Learning Exchange
Oct 18, 2024 · Fundamentals

Comprehensive Python 3 Basics: Syntax, Data Types, Control Flow, Functions, Modules, and More

This article provides a thorough introduction to Python 3, covering fundamental syntax, core data types, operators, control structures, functions, modules, file I/O, error handling, object‑oriented concepts, and common standard‑library utilities, complete with runnable code examples for each topic.

Data TypesFunctionsPython
0 likes · 24 min read
Comprehensive Python 3 Basics: Syntax, Data Types, Control Flow, Functions, Modules, and More