Tagged articles
5000 articles
Page 11 of 50
dbaplus Community
dbaplus Community
Apr 23, 2025 · Databases

Why Redis Used Memory Jumped to 78 GB and How to Diagnose It

A Redis instance suddenly reported 78.9 GB of used_memory against a 16 GB maxmemory limit, triggering massive key eviction; this article explains how INFO reports used_memory, what the metric actually measures, how Redis 7 changes memory accounting, the exact eviction conditions, and provides a Python script to pinpoint the memory‑hogs.

Memory ManagementPythoneviction
0 likes · 17 min read
Why Redis Used Memory Jumped to 78 GB and How to Diagnose It
php Courses
php Courses
Apr 23, 2025 · Backend Development

Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices

This article explains the fundamentals of Python coroutines and the asyncio library, covering basic concepts, key components, practical examples, advanced techniques such as mixing with threads, cancellation handling, performance optimizations, and common troubleshooting tips for asynchronous programming.

Pythonasynchronous programmingasyncio
0 likes · 9 min read
Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices
Volcano Engine Developer Services
Volcano Engine Developer Services
Apr 22, 2025 · Artificial Intelligence

What Is Model Context Protocol (MCP) and How It Transforms LLM Applications

Model Context Protocol (MCP) is an open standard that standardizes how large language models interact with external tools and data, enabling seamless function calls, simplifying prompt engineering, and allowing developers to build modular AI applications without handling low‑level integration details.

AI integrationFunction CallingLLM
0 likes · 16 min read
What Is Model Context Protocol (MCP) and How It Transforms LLM Applications
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 22, 2025 · Artificial Intelligence

Introduction to Retrieval‑Augmented Generation (RAG) and Vector Indexing with StarRocks and DeepSeek

This article explains the fundamentals of Retrieval‑Augmented Generation, demonstrates how to create and query vector indexes using StarRocks, shows how DeepSeek provides embeddings and answer generation, and walks through a complete end‑to‑end RAG pipeline with code examples and a web UI.

AIDeepSeekEmbedding
0 likes · 20 min read
Introduction to Retrieval‑Augmented Generation (RAG) and Vector Indexing with StarRocks and DeepSeek
Code Mala Tang
Code Mala Tang
Apr 21, 2025 · Fundamentals

Unlock Python’s Secrets: Master Namespaces and Scope Explained

This article demystifies Python namespaces, explaining how names map to objects, distinguishing them from scope, detailing the LEGB rule, illustrating built‑in, global, local, and nested namespaces, their lifecycles, and showing practical debugging techniques with locals() and globals().

NamespacesPythonscope
0 likes · 9 min read
Unlock Python’s Secrets: Master Namespaces and Scope Explained
Code Mala Tang
Code Mala Tang
Apr 20, 2025 · Backend Development

Poetry vs requirements.txt: Which Python Dependency Tool Wins?

Poetry is a modern Python dependency and packaging tool that consolidates environment management, dependency resolution, and publishing, offering deterministic builds and integrated workflows, while requirements.txt provides a simple, widely compatible list of packages; the article compares their features, advantages, limitations, and demonstrates usage, including Docker integration.

DockerPoetryPython
0 likes · 14 min read
Poetry vs requirements.txt: Which Python Dependency Tool Wins?
Code Mala Tang
Code Mala Tang
Apr 19, 2025 · Fundamentals

Master HTML Parsing in Python: BeautifulSoup, lxml, and html.parser Compared

Learn why HTML parsing is essential for web scraping, explore three popular Python libraries—BeautifulSoup, lxml, and the built‑in html.parser—covering installation, core usage, advanced techniques, and a comparative analysis to help you choose the right tool for your project.

Pythonbeautifulsouphtml-parsing
0 likes · 11 min read
Master HTML Parsing in Python: BeautifulSoup, lxml, and html.parser Compared
IT Services Circle
IT Services Circle
Apr 19, 2025 · Fundamentals

7 Common Pitfalls in Python Function Writing and How to Avoid Them

This article explains the most frequent mistakes developers make when defining Python functions—such as mutable default arguments, inconsistent return types, overly large functions, outdated string formatting, missing type hints, manual index tracking, and misuse of try‑except for flow control—and provides clear, best‑practice solutions with code examples to write cleaner, more maintainable, and efficient Python code.

Error HandlingPythonenumerate
0 likes · 8 min read
7 Common Pitfalls in Python Function Writing and How to Avoid Them
php Courses
php Courses
Apr 18, 2025 · Fundamentals

Understanding Multithreading in Python with the threading Module

This article explains Python's multithreading concepts, covering thread creation via subclassing Thread or using target functions, synchronization mechanisms like Lock, RLock, and Condition, and discusses the impact of the Global Interpreter Lock, helping readers apply threading effectively for I/O‑bound tasks.

GILPythonSynchronization
0 likes · 9 min read
Understanding Multithreading in Python with the threading Module
Test Development Learning Exchange
Test Development Learning Exchange
Apr 18, 2025 · Fundamentals

Essential Python Standard Library Modules for System and File Operations

This article introduces several essential Python standard‑library modules—including os, shutil, subprocess, signal, sys, platform, logging, getpass, pwd, and grp—explaining their primary functions for file and process management, system information, logging, and user/group queries, and provides concise example code for each.

OS modulePythonfile management
0 likes · 4 min read
Essential Python Standard Library Modules for System and File Operations
Java Captain
Java Captain
Apr 17, 2025 · Artificial Intelligence

Demonstrating the Full Lifecycle of Model Context Protocol (MCP) with Tool Calls

This article explains how the Model Context Protocol (MCP) enables large language models to retrieve up‑to‑date external information through standardized tool calls, illustrating the complete end‑to‑end workflow with Python code for the MCP server, client, and host, and discussing its advantages for building AI agents.

AI AgentLLMMCP
0 likes · 21 min read
Demonstrating the Full Lifecycle of Model Context Protocol (MCP) with Tool Calls
Nightwalker Tech
Nightwalker Tech
Apr 17, 2025 · Artificial Intelligence

LangGraph Explained: Advanced AI Workflow Framework and Hands‑On Guide

This article introduces LangGraph, the next‑generation framework built on LangChain for constructing complex, stateful AI applications, compares it with LangChain, showcases real‑world deployments, and provides a step‑by‑step Python tutorial for building a smart customer‑service chatbot with looped reasoning, tool integration, and human‑in‑the‑loop support.

AI workflowAgentChatbot
0 likes · 20 min read
LangGraph Explained: Advanced AI Workflow Framework and Hands‑On Guide
Sohu Tech Products
Sohu Tech Products
Apr 16, 2025 · Artificial Intelligence

Comprehensive Guide to Building AI Datasets: From Source Collection to Data Augmentation and Validation

This guide walks readers through every stage of building high‑quality AI training datasets—from locating open‑source data and defining goals, through collection, annotation, cleaning, large‑scale processing, optional augmentation, and splitting, to validation—using a medical QA example for fine‑tuning DeepSeek‑R1.

AI fine-tuningPythondata augmentation
0 likes · 18 min read
Comprehensive Guide to Building AI Datasets: From Source Collection to Data Augmentation and Validation
Code Mala Tang
Code Mala Tang
Apr 15, 2025 · Fundamentals

What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators

This article demystifies Python’s for-loop by explaining how iterable objects and iterators work under the hood, illustrating the iterator protocol with code examples, and providing practical custom iterator implementations, common pitfalls, and tips for efficient data processing.

IterablePythondata-processing
0 likes · 9 min read
What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators
Baobao Algorithm Notes
Baobao Algorithm Notes
Apr 15, 2025 · Industry Insights

Why GLM‑Z1‑AirX Hits 150‑200 TPS: A Deep Dive into LLM Speed Benchmarking

The article examines the slowdown caused by long‑chain‑of‑thought LLMs, presents a Python benchmarking script, compares token‑per‑second performance of several models—including the ultra‑fast GLM‑Z1‑AirX—and demonstrates a real‑time anti‑fraud use case that benefits from sub‑second response times.

GLM-Z1-AirXLLMPython
0 likes · 13 min read
Why GLM‑Z1‑AirX Hits 150‑200 TPS: A Deep Dive into LLM Speed Benchmarking
php Courses
php Courses
Apr 15, 2025 · Fundamentals

Top 20 Most Common Python Standard Library Modules

This article introduces the twenty most frequently used Python standard library modules, such as os, sys, math, random, datetime, json, re, collections, itertools, argparse, and others, explaining their core functionalities and providing concise code examples to help developers efficiently manage files, data, networking, and more.

ModulesPythonStandard Library
0 likes · 8 min read
Top 20 Most Common Python Standard Library Modules
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 15, 2025 · Artificial Intelligence

Unlock AI Agents with Model Context Protocol (MCP): Deep Dive & Code

This article explains the Model Context Protocol (MCP) introduced by Anthropic, detailing its client‑server architecture, protocol and transport layers, message types, lifecycle, and practical implementation in Python and TypeScript to build a custom AI agent that can both converse and perform tasks.

AI agentsMCPPython
0 likes · 24 min read
Unlock AI Agents with Model Context Protocol (MCP): Deep Dive & Code
AI Large Model Application Practice
AI Large Model Application Practice
Apr 14, 2025 · Artificial Intelligence

What Is Google’s New Agent2Agent (A2A) Protocol and How Does It Enable AI Agent Interoperability?

This article explains the motivation behind Google’s Agent2Agent (A2A) protocol, describes its architecture and key components, compares it with the MCP protocol, and provides a step‑by‑step demo with code showing how to build, run, and test an A2A‑enabled AI agent system.

A2AAI InteroperabilityAgent2Agent
0 likes · 14 min read
What Is Google’s New Agent2Agent (A2A) Protocol and How Does It Enable AI Agent Interoperability?
Alibaba Cloud Observability
Alibaba Cloud Observability
Apr 14, 2025 · Cloud Native

How to Connect Grafana to Large Language Models with MCP (Model Context Protocol)

This guide shows how to use the Model Context Protocol (MCP) to build a lightweight server that links Grafana dashboards to large language models, covering MCP concepts, FastMCP setup, Python client implementation, environment preparation, and integration with Cherry Studio for seamless AI-driven data access.

AI integrationCloud NativeGrafana
0 likes · 12 min read
How to Connect Grafana to Large Language Models with MCP (Model Context Protocol)
php Courses
php Courses
Apr 14, 2025 · Fundamentals

Creating and Using Custom Exceptions in Python

This article explains why custom exceptions are needed in Python, shows how to define them—including simple, information‑rich, and subclassed variants—provides practical code examples such as inventory‑shortage and API‑request errors, and outlines best practices for naming, documentation, and inheritance.

Custom ExceptionsError DesignException Handling
0 likes · 6 min read
Creating and Using Custom Exceptions in Python
Continuous Delivery 2.0
Continuous Delivery 2.0
Apr 14, 2025 · Backend Development

Building a Simple MCP Time Server with FastMCP and Cursor

This article walks through solving Cursor's inaccurate date handling by installing an MCP time server, creating a minimal FastMCP‑based MCP server in Python, configuring Cursor to use it, and demonstrating how to automate time‑stamped task tracking with practical code examples.

CursorMCP ServerPython
0 likes · 6 min read
Building a Simple MCP Time Server with FastMCP and Cursor
Test Development Learning Exchange
Test Development Learning Exchange
Apr 13, 2025 · Backend Development

Mastering API Request Wrappers in Pytest: Reusable GET, POST, PUT, DELETE

Learn how to boost code reuse and maintainability in API automation by encapsulating common HTTP methods (GET, POST, PUT, DELETE, etc.) within a Pytest-friendly RequestUtil class, complete with logging, exception handling, session management, dynamic headers, and timeout support, plus practical test examples.

API testingHTTP requestsPython
0 likes · 11 min read
Mastering API Request Wrappers in Pytest: Reusable GET, POST, PUT, DELETE
DevOps Engineer
DevOps Engineer
Apr 13, 2025 · Fundamentals

Setting Up Sphinx and ReadTheDocs for Automated Documentation in Python Projects

This guide explains why Sphinx and ReadTheDocs are a powerful combination for generating and hosting documentation, and provides step‑by‑step instructions—including installing dependencies, initializing the project, configuring conf.py, adding a .readthedocs.yml file, and linking the repository—so that documentation is built automatically on each commit.

DevOpsPythonReadTheDocs
0 likes · 6 min read
Setting Up Sphinx and ReadTheDocs for Automated Documentation in Python Projects
Code Mala Tang
Code Mala Tang
Apr 12, 2025 · Fundamentals

Mastering Manacher’s Algorithm: Find the Longest Palindromic Substring in O(N)

Manacher’s algorithm transforms the classic longest palindromic substring problem into a linear‑time solution by preprocessing the string with separators, tracking palindrome radii, and efficiently updating the center and right boundary using mirror positions, with detailed Python code and step‑by‑step illustrations.

Manacher algorithmPythonString processing
0 likes · 12 min read
Mastering Manacher’s Algorithm: Find the Longest Palindromic Substring in O(N)
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 12, 2025 · Fundamentals

How to Group and Map Data in Pandas: 5 Practical Methods

This article walks through a common Python data‑processing challenge—grouping numeric identifiers with corresponding strings—by presenting five distinct Pandas‑based solutions, complete with code snippets and visual results, enabling readers to efficiently transform raw lists into organized dictionaries.

Code ExamplesPythondata-processing
0 likes · 8 min read
How to Group and Map Data in Pandas: 5 Practical Methods
Test Development Learning Exchange
Test Development Learning Exchange
Apr 11, 2025 · Backend Development

Using Pytest Markers to Categorize and Run Test Cases

This article explains how to define, register, and use Pytest markers to classify test cases such as smoke, regression, and integration tests, demonstrates command‑line options for selective execution, and shows dynamic marker assignment with practical code examples.

Automation testingPythonTest Selection
0 likes · 5 min read
Using Pytest Markers to Categorize and Run Test Cases
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 11, 2025 · Fundamentals

How to Remove Adjacent Duplicates from a Python List – 5 Simple Methods

This article walks through a common Python data‑processing challenge—removing consecutive duplicate elements from a list—by presenting five distinct solutions, including itertools.groupby, list comprehensions, explicit loops, generator functions, and enumerate, each illustrated with code snippets and output screenshots.

Pythongeneratoritertools
0 likes · 5 min read
How to Remove Adjacent Duplicates from a Python List – 5 Simple Methods
php Courses
php Courses
Apr 10, 2025 · Fundamentals

Python File Path Handling: os.path and pathlib Guide

This article explains how to work with file and directory paths in Python, covering absolute and relative path concepts, the os.path module functions, the modern pathlib API, common operations such as joining, normalizing, traversing, and creating files and directories, and best practices for cross‑platform compatibility.

File PathsPythoncross‑platform
0 likes · 8 min read
Python File Path Handling: os.path and pathlib Guide
Code Mala Tang
Code Mala Tang
Apr 10, 2025 · Fundamentals

Unlock Python’s Hidden Power: Mastering Context Managers for Cleaner Code

This article explains what Python context managers are, how they work under the hood, and why they are far more useful than simple file handling, providing practical examples ranging from resource management and testing to advanced asynchronous usage and common pitfalls.

PythonResource Managementbest practices
0 likes · 21 min read
Unlock Python’s Hidden Power: Mastering Context Managers for Cleaner Code
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

Python Code Optimization Techniques for Faster Execution

This article presents a comprehensive collection of Python performance‑boosting techniques, covering fundamental optimization principles, avoiding global variables and attribute access, eliminating unnecessary abstraction and data copying, loop optimizations, just‑in‑time compilation with numba, and selecting appropriate built‑in data structures to achieve significant speed improvements.

BenchmarkingPythonbest-practices
0 likes · 15 min read
Python Code Optimization Techniques for Faster Execution
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

10 Practical Python Code Simplification Techniques

This article presents ten concise Python techniques—including list comprehensions, zip, lambda functions, generators, f‑strings, collections, decorators, enumerate, the walrus operator, and itertools—to dramatically reduce code length, improve readability, and boost development efficiency.

GeneratorsPythondecorators
0 likes · 6 min read
10 Practical Python Code Simplification Techniques
php Courses
php Courses
Apr 9, 2025 · Fundamentals

Comprehensive Guide to File Operations in Python

This article provides a thorough introduction to Python file operations, covering opening modes, reading and writing techniques, context managers, advanced handling like binary files and CSV processing, best practices, and practical exercises to master file I/O.

File I/OPythonprogramming
0 likes · 8 min read
Comprehensive Guide to File Operations in Python
Mingyi World Elasticsearch
Mingyi World Elasticsearch
Apr 8, 2025 · Backend Development

Boost Elasticsearch 8.x Search with Vector Embeddings

This article explains how vector embeddings enhance Elasticsearch 8.x search, walks through the concepts of dense vectors, shows step‑by‑step Python and Logstash pipelines for generating and storing embeddings, compares their pros and cons, and offers guidance on selecting the right approach for large‑scale log data.

ElasticsearchLogstashPython
0 likes · 12 min read
Boost Elasticsearch 8.x Search with Vector Embeddings
php Courses
php Courses
Apr 8, 2025 · Fundamentals

Understanding Python Closures and Decorators

This article explains Python closures and decorators, detailing their definitions, formation conditions, practical examples, common use cases, and how decorators rely on closures, while providing code snippets for counters, timing, and repeatable execution.

DecoratorFunction WrappingHigher-Order Functions
0 likes · 14 min read
Understanding Python Closures and Decorators
Tencent Technical Engineering
Tencent Technical Engineering
Apr 7, 2025 · Cloud Native

Deploying MCP Server on Serverless Cloud Functions with Cube Secure Containers

The article explains how to deploy a Model Context Protocol (MCP) server—illustrated with a Python weather‑query example—on Tencent Cloud Function using either a Docker image or direct code upload, leverages Cube’s high‑security lightweight containers for fast start‑up, and highlights serverless benefits such as automatic scaling, cost efficiency, and simplified operations compared with Kubernetes for AI agents and tool integration.

Cloud FunctionsCube Secure ContainerDeployment
0 likes · 21 min read
Deploying MCP Server on Serverless Cloud Functions with Cube Secure Containers
21CTO
21CTO
Apr 7, 2025 · Fundamentals

Why Python’s New PEP 751 Lock File Format Matters for Reproducible Installations

Python has adopted the new PEP 751 lock‑file format, a standardized .toml‑based solution that replaces diverse, tool‑specific formats, enabling reproducible installations without dynamic resolution, and sparking discussion among core developers and packaging tool creators about adoption, compatibility, and the challenges of standardizing across the ecosystem.

PEP 751PythonReproducible Builds
0 likes · 5 min read
Why Python’s New PEP 751 Lock File Format Matters for Reproducible Installations
Goodme Frontend Team
Goodme Frontend Team
Apr 7, 2025 · Frontend Development

How to Shrink Gigantic Web Fonts to Kilobytes: Subsetting & WOFF2 Tricks

This article explains why Chinese web fonts can be huge, compares TTF and WOFF2 sizes, and provides practical steps—including font subsetting with Python fontTools and on‑the‑fly loading via the FontFace API—to reduce font files from megabytes to a few kilobytes and dramatically speed up page rendering.

Font SubsettingPythonWOFF2
0 likes · 9 min read
How to Shrink Gigantic Web Fonts to Kilobytes: Subsetting & WOFF2 Tricks
Code Mala Tang
Code Mala Tang
Apr 5, 2025 · Fundamentals

How to Write Loop-Free Python Code: Faster, Cleaner Alternatives

This article explains why traditional Python loops can hurt performance and readability, and demonstrates six loop‑free techniques—including list comprehensions, map/filter, built‑in functions like sum/max/min, NumPy vectorization, generators, and dictionary/set comprehensions—providing concise, faster, and more Pythonic code examples.

NumPyPythonfunctional programming
0 likes · 10 min read
How to Write Loop-Free Python Code: Faster, Cleaner Alternatives
Fun with Large Models
Fun with Large Models
Apr 4, 2025 · Artificial Intelligence

MCP Explained: The Revolutionary Protocol for Large‑Model Real‑World Interaction

The article analyzes the Model Context Protocol (MCP) introduced by Anthropic, detailing its standardized, distributed architecture that overcomes the limitations of Function Calling, and provides step‑by‑step Python examples for building MCP client and server, demonstrating how large language models can reliably interact with external tools.

MCPModel Context ProtocolPython
0 likes · 16 min read
MCP Explained: The Revolutionary Protocol for Large‑Model Real‑World Interaction
Code Mala Tang
Code Mala Tang
Apr 3, 2025 · Backend Development

Build an Anthropic MCP Server with FastAPI in Minutes

This guide explains why the Anthropic MCP protocol is essential for AI‑agent integration and walks you through building a FastAPI server, adding the fastapi‑mcp extension, and configuring the MCP endpoint so your application can communicate seamlessly with AI agents.

AI agentsFastAPIMCP
0 likes · 5 min read
Build an Anthropic MCP Server with FastAPI in Minutes
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 3, 2025 · Artificial Intelligence

Build a Text‑and‑Image Article with Alibaba Cloud AI Custom Plugin in 5 Steps

This tutorial shows how to use Alibaba Cloud's Baileian platform to create a workflow that generates a Xiaohongshu‑style article together with matching images by leveraging a custom large‑model plugin, Python script nodes, and image‑generation tools, complete with step‑by‑step configuration and code examples.

AIImage GenerationPlugins
0 likes · 14 min read
Build a Text‑and‑Image Article with Alibaba Cloud AI Custom Plugin in 5 Steps
Model Perspective
Model Perspective
Apr 3, 2025 · Artificial Intelligence

Turning Metrics into Music: A Sensitivity & Specificity Song Explained

This article showcases an AI‑generated song that teaches the four core classification metrics—sensitivity, specificity, precision, and recall—by presenting lyrical explanations, a confusion‑matrix overview, Python code for MIDI creation, and a step‑by‑step guide to producing the final video.

AI musicEvaluation MetricsMIDI
0 likes · 8 min read
Turning Metrics into Music: A Sensitivity & Specificity Song Explained
php Courses
php Courses
Apr 3, 2025 · Fundamentals

Understanding Higher-Order Functions in Python

This article explains Python's higher-order functions, covering their definition, how they can accept or return other functions, built-in examples like map, filter, reduce, and demonstrates custom higher-order functions, closures, and decorators with practical code snippets.

MAPPythonclosures
0 likes · 6 min read
Understanding Higher-Order Functions in Python
Code Mala Tang
Code Mala Tang
Apr 3, 2025 · Fundamentals

Unlock Python’s Ellipsis (…) – Powerful Uses Beyond Slicing

Discover how Python’s three-dot ellipsis (…) isn’t just a placeholder but a versatile singleton object used for slicing multidimensional arrays, marking unfinished code, enhancing type hints, and even evaluating to True, with practical examples and insights into its unique behavior.

NumPyPythonSingleton
0 likes · 6 min read
Unlock Python’s Ellipsis (…) – Powerful Uses Beyond Slicing
Sohu Tech Products
Sohu Tech Products
Apr 2, 2025 · Artificial Intelligence

How SecretFlow Enables Privacy‑Preserving AI Model Training with Secure Multi‑Party Computation

SecretFlow is an open‑source privacy‑computing framework that lets multiple parties perform encrypted data analysis and AI model training without exposing raw data, offering unified MPC, federated learning and differential privacy features, with step‑by‑step Docker installation, Python examples, and a modular architecture for secure multi‑party computation.

AI model trainingData ProtectionPrivacy Computing
0 likes · 11 min read
How SecretFlow Enables Privacy‑Preserving AI Model Training with Secure Multi‑Party Computation
Architect
Architect
Apr 2, 2025 · Artificial Intelligence

Connecting LLMs to External Tools with Anthropic’s Model Context Protocol (MCP)

This article explains the open‑source Model Context Protocol (MCP) created by Anthropic, describes its client‑server architecture for safely linking LLMs with external data sources and tools, and provides a complete step‑by‑step Python tutorial—including environment setup, server and client code—to demonstrate MCP in action.

AI agentsLLM integrationLangChain
0 likes · 9 min read
Connecting LLMs to External Tools with Anthropic’s Model Context Protocol (MCP)
Code Mala Tang
Code Mala Tang
Apr 1, 2025 · Backend Development

Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess

This article explains why limiting a function's execution time is crucial for stability, and demonstrates multiple Python techniques—including the func-timeout library, custom multiprocessing, subprocess.run, and signal handling—to set and manage timeouts effectively.

Error HandlingPythonfunction timeout
0 likes · 8 min read
Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess
php Courses
php Courses
Apr 1, 2025 · Fundamentals

Understanding Python Magic (Dunder) Methods

This article explains Python's magic (dunder) methods, categorizing them by purpose—construction, representation, comparison, arithmetic, container behavior, callability, and context management—and provides clear code examples illustrating how to customize class behavior for more Pythonic, intuitive objects.

Object-OrientedPythondunder methods
0 likes · 11 min read
Understanding Python Magic (Dunder) Methods
php Courses
php Courses
Mar 31, 2025 · Fundamentals

Understanding Inheritance and Polymorphism in Python OOP

This article explains the core object‑oriented programming concepts of inheritance and polymorphism in Python, detailing their advantages, syntax, method overriding, and practical examples that demonstrate code reuse, extensibility, and flexible interfaces through class hierarchies and duck‑typing.

InheritanceOOPPolymorphism
0 likes · 7 min read
Understanding Inheritance and Polymorphism in Python OOP
Code Mala Tang
Code Mala Tang
Mar 30, 2025 · Fundamentals

Master Python’s locals() and globals(): When and How to Use Them

Learn the essential differences between Python’s locals() and globals() functions, how they reveal variable scopes, how to modify them safely, and practical use cases such as dynamic variable creation, debugging, and performance considerations, all illustrated with clear code examples.

PythonVariable Scopedebugging
0 likes · 7 min read
Master Python’s locals() and globals(): When and How to Use Them
Python Programming Learning Circle
Python Programming Learning Circle
Mar 30, 2025 · Game Development

Tank Battle Game Tutorial Using Pygame

This article provides a step‑by‑step tutorial for building a classic tank battle game with Python's pygame library, covering the visual layout, core game loop, and detailed source code for all game elements such as tanks, bullets, obstacles, and UI screens.

Pythontank game
0 likes · 26 min read
Tank Battle Game Tutorial Using Pygame
Python Programming Learning Circle
Python Programming Learning Circle
Mar 30, 2025 · Fundamentals

Creating a Desktop Pet with Python and PyQt5: Materials, Implementation Code, and Packaging Guide

This article explains how to gather GIF assets, write a PyQt5 desktop‑pet application in Python—including directory layout, window initialization, tray integration, random positioning, mouse interaction, and context menus—and finally package the program into an executable using PyInstaller.

Desktop petPythonpackaging
0 likes · 19 min read
Creating a Desktop Pet with Python and PyQt5: Materials, Implementation Code, and Packaging Guide
Test Development Learning Exchange
Test Development Learning Exchange
Mar 30, 2025 · Fundamentals

Using Pytest Assertions and Allure Reports for API Automation Testing

This article explains how to leverage Pytest's flexible assertion mechanisms together with Allure's rich reporting features to build a clear, efficient API automation testing framework, covering basic and custom assertions, assertion libraries, report generation, project structure, test case writing, and execution steps.

PythonTesting frameworkpytest
0 likes · 8 min read
Using Pytest Assertions and Allure Reports for API Automation Testing
Code Mala Tang
Code Mala Tang
Mar 29, 2025 · Fundamentals

Better Ways to Handle Missing Values in Python Instead of Returning None

This article explains why returning None for missing values can cause unexpected errors in Python code and presents five practical alternatives—including default values, raising exceptions, special objects, type‑hinted optional returns, and dataclasses—to handle absent data safely and cleanly.

Default ValuesPythondataclasses
0 likes · 4 min read
Better Ways to Handle Missing Values in Python Instead of Returning None
Code Mala Tang
Code Mala Tang
Mar 29, 2025 · Fundamentals

Master Python Project Setup: From Git Init to uv Automation

This guide walks you through building a Python project from scratch, covering Git initialization, virtual environment creation, version management with pyenv, dependency handling with Poetry and the all‑in‑one tool uv, plus commands for installing, adding packages, running tests, and formatting code.

PoetryPythonproject setup
0 likes · 7 min read
Master Python Project Setup: From Git Init to uv Automation
Test Development Learning Exchange
Test Development Learning Exchange
Mar 29, 2025 · Backend Development

Master Data‑Driven API Testing with Pytest’s @parametrize

This guide explains why data‑driven testing is essential for API automation, introduces Pytest’s powerful @pytest.mark.parametrize decorator, and provides step‑by‑step examples—including single‑parameter, multi‑parameter, dynamic data generation, fixture integration, and external data sources—to boost test coverage and maintainability.

API testingData‑Driven TestingPython
0 likes · 6 min read
Master Data‑Driven API Testing with Pytest’s @parametrize
Qborfy AI
Qborfy AI
Mar 29, 2025 · Artificial Intelligence

Mastering LangChain: Build LLM Apps with Chains, Agents, and Vector Stores

This tutorial walks through the limitations of simple prompt usage, introduces LangChain as a framework for building full‑featured LLM applications, explains its core concepts and components, and provides step‑by‑step code examples for installing, configuring, and running a basic LangChain demo.

AI ApplicationLLMLangChain
0 likes · 11 min read
Mastering LangChain: Build LLM Apps with Chains, Agents, and Vector Stores
AI Code to Success
AI Code to Success
Mar 28, 2025 · Artificial Intelligence

Unlocking the Power of Support Vector Machines: Theory, Code, and Real‑World Uses

This comprehensive guide explores Support Vector Machines—from their historical roots and core mathematical principles to practical Python implementations, visualization techniques, and diverse applications such as image recognition, text classification, bioinformatics, and financial risk assessment—while also weighing their strengths and limitations.

PythonSupport Vector Machineclassification
0 likes · 19 min read
Unlocking the Power of Support Vector Machines: Theory, Code, and Real‑World Uses
Eric Tech Circle
Eric Tech Circle
Mar 28, 2025 · Artificial Intelligence

How to Build a High‑Performance Local Text‑to‑Image Service with Flux and Cursor IDE

Learn step‑by‑step how to set up a stable, high‑efficiency local text‑to‑image generation service using the Flux model series on Alibaba Cloud’s Baile​n platform, integrate it with Cursor IDE’s MCP tool, configure environments, manage API keys, and run the service with sample code and results.

AI Model DeploymentCursor IDEFlux
0 likes · 13 min read
How to Build a High‑Performance Local Text‑to‑Image Service with Flux and Cursor IDE
Code Mala Tang
Code Mala Tang
Mar 27, 2025 · Fundamentals

Why Returning None Is Bad and Better Ways to Handle Missing Values in Python

Returning None for missing data can cause unexpected crashes, so this article explains why that approach is problematic and demonstrates safer alternatives in Python, such as using default values with dict.get, raising exceptions when appropriate, and employing result objects to clearly indicate success or failure.

Error HandlingNone handlingPython
0 likes · 3 min read
Why Returning None Is Bad and Better Ways to Handle Missing Values in Python
Architect
Architect
Mar 27, 2025 · Artificial Intelligence

How to Use Anthropic’s Model Context Protocol for Seamless LLM Integration

This article explains Anthropic’s open‑source Model Context Protocol (MCP), its client‑server architecture, resource and tool definitions, sampling workflow, and provides step‑by‑step Python examples for building a PoE2 hot‑fix fetcher and a simple chatbot that leverages MCP to connect large language models with external data sources and functions.

AI toolsLLM integrationMCP
0 likes · 14 min read
How to Use Anthropic’s Model Context Protocol for Seamless LLM Integration
Python Programming Learning Circle
Python Programming Learning Circle
Mar 27, 2025 · Information Security

Decrypting Password‑Protected Zip Files with Python

This article explains how to use Python's built‑in zipfile module and the third‑party rarfile library to brute‑force and decrypt encrypted zip archives, handle Chinese filename encoding issues, and generate password permutations efficiently with itertools for flexible password lengths.

Information SecurityPythonfile decryption
0 likes · 9 min read
Decrypting Password‑Protected Zip Files with Python
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 27, 2025 · Artificial Intelligence

Unlock Massive Data with AI: MaxFrame’s AI Function Makes LLM-Powered Analytics Easy

This article introduces MaxFrame’s AI Function on Alibaba Cloud’s MaxCompute platform, detailing how built‑in large language models like Qwen 2.5 and DeepSeek‑R1 enable seamless text classification, information extraction, summarization, and more through simple Python APIs and distributed processing.

AI FunctionMaxComputeMaxFrame
0 likes · 21 min read
Unlock Massive Data with AI: MaxFrame’s AI Function Makes LLM-Powered Analytics Easy
DataFunTalk
DataFunTalk
Mar 27, 2025 · Artificial Intelligence

OpenAI Adds MCP Support to Agents SDK, Advancing Standardized AI Workflows

OpenAI has updated its Agents SDK to support Anthropic's Model Context Protocol (MCP), enabling developers to connect AI agents with diverse data sources and tools through a standardized interface, while providing official documentation, example code, caching, and tracing features to streamline AI workflow integration.

AI workflowAgents SDKMCP
0 likes · 8 min read
OpenAI Adds MCP Support to Agents SDK, Advancing Standardized AI Workflows
php Courses
php Courses
Mar 27, 2025 · Fundamentals

Understanding Python List Comprehensions and Generator Expressions

This article explores Python's list comprehensions and generator expressions, detailing their syntax, performance characteristics, memory usage, multi‑level nesting, and practical tips such as dictionary/set comprehensions and integration with functional programming, helping developers choose the appropriate tool for efficient data processing.

Memory OptimizationPythondata-processing
0 likes · 6 min read
Understanding Python List Comprehensions and Generator Expressions