Tagged articles
5000 articles
Page 7 of 50
Data Party THU
Data Party THU
Sep 25, 2025 · Artificial Intelligence

Mastering Triplet Loss in Sentence‑Transformers: A Step‑by‑Step Guide

This article explains the concept of triplet loss, its mathematical formulation, the different batch‑wise implementations in the sentence_transformers library, their advantages and drawbacks, and provides a complete Python example for training a text‑embedding model with Triplet Loss.

EmbeddingPyTorchPython
0 likes · 12 min read
Mastering Triplet Loss in Sentence‑Transformers: A Step‑by‑Step Guide
Tech Freedom Circle
Tech Freedom Circle
Sep 25, 2025 · Operations

RAGFlow Link Tracing: GPS‑Style Observability for LLM‑Powered Applications

The article explains why RAGFlow needs end‑to‑end link tracing, introduces OpenTelemetry’s core concepts, shows how custom tracing utilities are implemented in Python, describes the layered architecture, provides concrete Docker and YAML configurations, and offers best‑practice guidelines for performance monitoring and fault diagnosis.

Distributed SystemsLLMOpenTelemetry
0 likes · 24 min read
RAGFlow Link Tracing: GPS‑Style Observability for LLM‑Powered Applications
Tech Freedom Circle
Tech Freedom Circle
Sep 25, 2025 · Artificial Intelligence

How RAGFlow’s Agent Engine Turns Retrieval into a Problem‑Solving AI

This article explains how RAGFlow upgrades a traditional RAG system from a passive question‑answer engine to an active problem‑solving agent by integrating the ReAct reasoning‑action‑observation loop, a visual canvas workflow, and a modular component‑tool ecosystem, with concrete Python implementations and code examples.

AI agentsPythonRAGFlow
0 likes · 16 min read
How RAGFlow’s Agent Engine Turns Retrieval into a Problem‑Solving AI
BirdNest Tech Talk
BirdNest Tech Talk
Sep 25, 2025 · Artificial Intelligence

How to Install and Configure LangChain for LLM Development

This guide walks you through installing the LangChain library, adding model‑specific packages, verifying the setup with a Python script, configuring API keys via environment variables or a .env file, and preparing to use OpenAI‑compatible models such as DeepSeek or Qwen.

API keysEnvironmentInstallation
0 likes · 8 min read
How to Install and Configure LangChain for LLM Development
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 25, 2025 · Fundamentals

Mastering Python Async: From Generators to Async/Await and Real-World Use Cases

Explore the evolution of Python asynchronous programming—from basic generators and yield expressions to advanced async/await syntax, including practical examples like network requests, file I/O, producer-consumer patterns, performance comparisons, error handling, and best-practice recommendations for efficient, scalable code.

GeneratorsPythonasync/await
0 likes · 16 min read
Mastering Python Async: From Generators to Async/Await and Real-World Use Cases
Python Programming Learning Circle
Python Programming Learning Circle
Sep 24, 2025 · Fundamentals

Master Python Virtual Environments: Prevent Dependency Conflicts

Learn why Python virtual environments are essential for isolating project dependencies, compare the three main tools—venv, virtualenv, and conda—and follow step‑by‑step commands to create, activate, manage packages, export requirements, and integrate environments into real‑world development workflows.

Pythondependency managementdevelopment workflow
0 likes · 8 min read
Master Python Virtual Environments: Prevent Dependency Conflicts
Python Programming Learning Circle
Python Programming Learning Circle
Sep 23, 2025 · Fundamentals

Master Python Shallow vs Deep Copy: Avoid Hidden Bugs and Boost Your Code

This article explains the difference between shallow and deep copying in Python, shows why simple copies can unintentionally modify original data, provides visual memory diagrams, demonstrates multiple copying methods with code examples, compares performance, and offers practical guidelines for choosing the right copy technique in real projects.

Memory ManagementPythoncopy module
0 likes · 10 min read
Master Python Shallow vs Deep Copy: Avoid Hidden Bugs and Boost Your Code
Python Programming Learning Circle
Python Programming Learning Circle
Sep 23, 2025 · Fundamentals

Unlock Python Power: Master Decorators in Minutes

This article explains Python decorators—from basic analogies and the underlying concepts of higher‑order functions and closures to practical examples like timing and logging decorators—showing how to enhance functions dynamically without altering their source code while preserving metadata with functools.wraps.

Code ExampleDecoratorHigher-order function
0 likes · 8 min read
Unlock Python Power: Master Decorators in Minutes
Data STUDIO
Data STUDIO
Sep 23, 2025 · Backend Development

Three Ways to Convert a Python Script into an .exe File

This article explains why turning a Python script into a standalone .exe can simplify distribution, improve usability, protect source code, and enhance portability, and it provides step‑by‑step guides for three popular tools—PyInstaller, auto‑py‑to‑exe (py2exe), and cx_Freeze—along with a concise feature comparison.

Pythonauto-py-to-execx_freeze
0 likes · 10 min read
Three Ways to Convert a Python Script into an .exe File
Fun with Large Models
Fun with Large Models
Sep 22, 2025 · Artificial Intelligence

Building Conditional Branch and Loop Graphs with LangGraph AI Agents

This tutorial demonstrates how to use LangGraph's low‑level API to create stateful conditional‑branch, loop, and combined graphs for AI agents, showing step‑by‑step definitions of Pydantic state models, node logic, edge configuration, compilation, and test execution with concrete code examples.

AI agentsLangGraphPydantic
0 likes · 12 min read
Building Conditional Branch and Loop Graphs with LangGraph AI Agents
21CTO
21CTO
Sep 22, 2025 · Fundamentals

What’s Driving Python’s 2025 Surge? Survey Reveals AI, Web, and Rust Trends

Based on a survey of over 30,000 Python developers, the 2025 report shows half are newcomers, AI‑assisted coding is exploding, FastAPI leads web frameworks, most still run legacy versions, Rust‑based tools gain traction, and PostgreSQL remains the dominant database, shaping Python’s future direction.

AIFastAPIPython
0 likes · 11 min read
What’s Driving Python’s 2025 Surge? Survey Reveals AI, Web, and Rust Trends
Data STUDIO
Data STUDIO
Sep 22, 2025 · Frontend Development

Is Pynecone the Full‑Stack Python Web Framework You’ve Been Waiting For?

This article introduces Pynecone, a Python‑only full‑stack web framework, explains its advantages over Flask/Django, walks through installation, project setup, and building a simple multiply/divide app with code examples, and highlights its suitability for data‑science dashboards and rapid prototyping.

Data Science AppsFull‑Stack Web FrameworkPynecone
0 likes · 13 min read
Is Pynecone the Full‑Stack Python Web Framework You’ve Been Waiting For?

Getting Started with Tree-sitter: High‑Performance Code Parsing and Multi‑Language SQL Extraction

Tree-sitter is a high‑performance incremental parsing library that supports over 50 languages; the article explains its core features, typical use cases such as editor syntax highlighting and static analysis, and walks through a concrete multi‑language SQL extraction implementation in Java, Python, and XML.

PythonSQL extractionTree-sitter
0 likes · 6 min read
Getting Started with Tree-sitter: High‑Performance Code Parsing and Multi‑Language SQL Extraction
AI Algorithm Path
AI Algorithm Path
Sep 21, 2025 · Fundamentals

Mastering Python Virtual Environments: A Step‑by‑Step Guide

This article explains why Python virtual environments are essential for avoiding dependency conflicts, walks through creating and activating a venv, demonstrates installing, listing, and removing packages with pip, and shows how to manage requirements with a requirements.txt file.

Pythondependency managementpip
0 likes · 8 min read
Mastering Python Virtual Environments: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Sep 19, 2025 · Fundamentals

Compare Python Project Scaffolding: Cookiecutter, PyScaffold, PyBuilder, Poetry

This article reviews four popular Python project scaffolding and build tools—Cookiecutter, PyScaffold, PyBuilder, and Poetry—detailing their installation, generated directory structures, and typical make or tox commands, helping developers choose the most suitable workflow for organizing and packaging Python code.

CookiecutterPoetryPyScaffold
0 likes · 11 min read
Compare Python Project Scaffolding: Cookiecutter, PyScaffold, PyBuilder, Poetry
Python Programming Learning Circle
Python Programming Learning Circle
Sep 19, 2025 · Operations

Which Docker Base Image Is Best for Python Apps? A Practical Comparison

This article evaluates several Docker base images—Ubuntu, CentOS, Debian, Amazon Linux 2, official Python images, and Alpine—by examining stability, security updates, dependency freshness, library richness, Python version, image size, LTS support, and build time to help developers choose the optimal foundation for Python applications.

AlpineBase ImageDocker
0 likes · 17 min read
Which Docker Base Image Is Best for Python Apps? A Practical Comparison
Data STUDIO
Data STUDIO
Sep 18, 2025 · Artificial Intelligence

Build a RAG App from Scratch: Master Text Chunking, Vector Retrieval, and Coreference Resolution

This tutorial walks through building a Retrieval‑Augmented Generation (RAG) system from the ground up, covering document parsing, text chunking strategies, vector store creation with ChromaDB, semantic search, prompt engineering for LLMs, conversation memory, coreference handling, and practical optimization tips, all illustrated with complete Python code.

ChromaDBPythonRAG
0 likes · 19 min read
Build a RAG App from Scratch: Master Text Chunking, Vector Retrieval, and Coreference Resolution
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 18, 2025 · Fundamentals

Master Python’s With Statement: Build Elegant Context Managers for Safer Code

This tutorial explains why traditional try‑finally resource handling is cumbersome, introduces Python’s with statement and the underlying __enter__/__exit__ magic methods, provides practical examples such as timers, database connections, temporary directories, and shows how to simplify custom managers with contextlib while covering best practices and performance considerations.

Exception HandlingPythonResource Management
0 likes · 10 min read
Master Python’s With Statement: Build Elegant Context Managers for Safer Code
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 17, 2025 · Fundamentals

Unlock Massive Memory Savings in Python with __slots__: A Complete Guide

This article explains how Python's default class memory overhead can be dramatically reduced using the __slots__ magic attribute, providing detailed code examples, memory and speed benchmarks, practical use cases, limitations, and best‑practice recommendations for developers who need high‑performance, memory‑efficient objects.

Memory OptimizationPython__slots__
0 likes · 12 min read
Unlock Massive Memory Savings in Python with __slots__: A Complete Guide
Fun with Large Models
Fun with Large Models
Sep 16, 2025 · Artificial Intelligence

LangGraph Data Analysis Assistant Agent: Step‑by‑Step Project Guide (Part 5)

This tutorial walks you through building a LangGraph-powered data analysis assistant that converts natural language into SQL, executes queries via NL2SQL and NL2Python tools, visualizes results with a Python interpreter, and deploys the agent using LangGraph CLI and Agent Chat UI for end‑to‑end interaction.

AI AgentAgent Chat UILangGraph
0 likes · 21 min read
LangGraph Data Analysis Assistant Agent: Step‑by‑Step Project Guide (Part 5)
Data STUDIO
Data STUDIO
Sep 15, 2025 · Artificial Intelligence

Build a Music Genre Classifier with KNN and MFCC from Scratch

This tutorial walks through building a music‑genre classification system using the GTZAN dataset, extracting MFCC features, implementing a K‑Nearest Neighbors classifier in Python, and achieving roughly 70% accuracy on test data.

Audio ProcessingMFCCMusic Genre Classification
0 likes · 14 min read
Build a Music Genre Classifier with KNN and MFCC from Scratch
Data STUDIO
Data STUDIO
Sep 15, 2025 · Artificial Intelligence

Understanding Linear and Logistic Regression: From MSE to Cross‑Entropy

The article explains linear regression and logistic regression fundamentals, covering loss functions such as mean‑squared error and cross‑entropy, analytic solutions, feature expansion for non‑linear separability, and provides Python code examples to illustrate the concepts.

Pythoncross entropylinear regression
0 likes · 7 min read
Understanding Linear and Logistic Regression: From MSE to Cross‑Entropy
Python Programming Learning Circle
Python Programming Learning Circle
Sep 13, 2025 · Fundamentals

30 Essential Python Tricks Every Developer Should Know

This article compiles thirty practical Python tips and best‑practice snippets—ranging from version checks, IPython shortcuts, list comprehensions, memory profiling, data classes, swapping variables, dictionary merging, string manipulation, emoji handling, image display, map usage, set operations, counters, chained comparisons, terminal colors, date parsing, integer division nuances, to character‑set detection—each illustrated with clear code examples for immediate use.

PythonTipsbest practices
0 likes · 19 min read
30 Essential Python Tricks Every Developer Should Know
Python Programming Learning Circle
Python Programming Learning Circle
Sep 13, 2025 · Fundamentals

Master Python String Manipulation: 11 Essential Techniques

This guide walks you through eleven practical Python string operations—including case conversion, whitespace trimming, numeric checks, character replacement, splitting, prefix/suffix testing, formatting, encoding, joining, and binary conversion—each illustrated with clear code examples you can run instantly.

Pythonprogramming basics
0 likes · 6 min read
Master Python String Manipulation: 11 Essential Techniques
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 12, 2025 · Fundamentals

When Should You Use Threads, Processes, or Asyncio in Python? A Practical Guide

This article explains the difference between concurrency and parallelism, the impact of Python's GIL, and provides a detailed comparison of threading, multiprocessing, and asyncio with code examples, performance tests, decision flowcharts, best‑practice tips, and a summary table to help you choose the right concurrency model for your tasks.

Pythonthreading
0 likes · 14 min read
When Should You Use Threads, Processes, or Asyncio in Python? A Practical Guide
Architects Research Society
Architects Research Society
Sep 11, 2025 · Artificial Intelligence

15 Must‑Know Python Libraries Every Data Scientist Should Use

Discover the top 15 Python libraries that every data scientist should master, ranging from workflow frameworks like Kedro and low‑code tools such as PyCaret to powerful optimization and monitoring packages, each with brief descriptions and links to explore their capabilities.

AI toolsPythonlibraries
0 likes · 3 min read
15 Must‑Know Python Libraries Every Data Scientist Should Use
Dunmao Tech Hub
Dunmao Tech Hub
Sep 11, 2025 · Databases

Master LMDB with lmcmd: A Powerful Command-Line Client

lmcmd is a Python‑based command‑line client for the Lightning Memory‑Mapped Database (LMDB) that offers efficient key‑value operations, import/export, searching, and database management, with easy installation via pip and a Redis‑style interface for rapid debugging and data handling.

CLI toolLMDBPython
0 likes · 5 min read
Master LMDB with lmcmd: A Powerful Command-Line Client
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Sep 11, 2025 · Artificial Intelligence

8 Powerful Open‑Source AI Agent Frameworks to Master Agent Development

Building robust AI agents involves complex task decomposition, tool use, multi‑agent collaboration and memory, but this article surveys eight open‑source frameworks—Autogen, crewAI, agno, eliza, Mastra, Trigger.dev, Motia, and agents—detailing their capabilities, language support, star counts and key use‑cases to help developers get started.

AI agentsPythonTypeScript
0 likes · 6 min read
8 Powerful Open‑Source AI Agent Frameworks to Master Agent Development
21CTO
21CTO
Sep 10, 2025 · Fundamentals

What’s New in Calibre 8.10? Key Features and Fixes for Ebook Management

Calibre 8.10, the latest open‑source ebook management tool built with Python, introduces tooltip template customization, improved MTP driver support, enhanced keyboard preferences, and several bug fixes including Kindle APNX handling, Read Aloud restoration, and Markdown output recovery across Windows, macOS, and Linux.

CalibrePythoneBook Management
0 likes · 3 min read
What’s New in Calibre 8.10? Key Features and Fixes for Ebook Management
IT Services Circle
IT Services Circle
Sep 10, 2025 · Fundamentals

How to Solve LeetCode 757: Minimum Set Intersection of Size Two with a Greedy Approach

The article first discusses common interview pitfalls before presenting a detailed greedy solution for LeetCode problem 757—finding the smallest set that intersects each interval in at least two points—complete with problem description, algorithmic reasoning, complexity analysis, and implementations in Java, C++, Python, and TypeScript.

LeetCode 757PythonTypeScript
0 likes · 11 min read
How to Solve LeetCode 757: Minimum Set Intersection of Size Two with a Greedy Approach
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 10, 2025 · Fundamentals

Master Python Decorators: Boost Your Functions in Minutes

This article explains Python decorators with clear analogies, walks through the underlying concepts of higher‑order functions and closures, provides practical code examples such as timing and logging decorators, discusses common pitfalls like lost metadata, and shows how to preserve it using functools.wraps.

Best practiceHigher-order functionPython
0 likes · 10 min read
Master Python Decorators: Boost Your Functions in Minutes
Eric Tech Circle
Eric Tech Circle
Sep 10, 2025 · Artificial Intelligence

Deploy High‑Performance Local LLMs with vLLM: A Step‑by‑Step Guide

This article walks through installing and configuring vLLM for local large language model inference, compares it with Ollama and LM Studio, details environment setup, model download, testing scripts, and shows how to expose an OpenAI‑compatible API for production use.

Inference OptimizationModelScopeOpenAI API
0 likes · 11 min read
Deploy High‑Performance Local LLMs with vLLM: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Sep 8, 2025 · Big Data

Unlocking E‑Commerce Insights: How Python & SQL Reveal User Behavior and Boost Sales

This article analyzes a JD e‑commerce dataset using Python and MySQL to calculate key metrics such as PV, UV, conversion rates, attrition, daily activity, hourly trends, user‑behavior funnels, purchase intervals, retention rates, product sales, and RFM segmentation, and then offers data‑driven recommendations to improve traffic, conversion, and user loyalty.

PythonRFMconversion funnel
0 likes · 37 min read
Unlocking E‑Commerce Insights: How Python & SQL Reveal User Behavior and Boost Sales
IT Services Circle
IT Services Circle
Sep 8, 2025 · Fundamentals

How to Count Subarrays with Sum K Using Prefix Sum and HashMap

This article first highlights Ctrip's employee benefits, then presents the LeetCode 560 subarray sum problem with detailed explanations and multi-language implementations using prefix sum and hash map, including Java, C++, Python, and TypeScript solutions, and discusses time and space complexities.

LeetCodePrefix SumPython
0 likes · 6 min read
How to Count Subarrays with Sum K Using Prefix Sum and HashMap
php Courses
php Courses
Sep 8, 2025 · Backend Development

Which Web Language Will Dominate by 2025? PHP, Python, or Node.js

This article evaluates PHP, Python, and Node.js across performance, ecosystem, trend adaptability, and community support, forecasting how each technology may evolve by 2025 and which scenarios could make one the preferred choice for developers.

2025 ForecastNode.jsPython
0 likes · 6 min read
Which Web Language Will Dominate by 2025? PHP, Python, or Node.js
Data STUDIO
Data STUDIO
Sep 8, 2025 · Artificial Intelligence

CuPy vs NumPy: Achieving Over 10× Speedup with GPU Acceleration

The article explains how replacing NumPy with the GPU‑compatible CuPy library can dramatically accelerate array computations, walks through installation prerequisites, demonstrates benchmark scripts showing up to ten‑fold speed improvements, discusses data type effects, custom kernels, and hybrid CPU‑GPU workflows for large‑scale data processing.

CUDACuPyGPU Acceleration
0 likes · 21 min read
CuPy vs NumPy: Achieving Over 10× Speedup with GPU Acceleration
Python Programming Learning Circle
Python Programming Learning Circle
Sep 6, 2025 · Fundamentals

Stop Reinventing the Wheel: Use Python’s Built‑In Queue for Fast, Thread‑Safe Tasks

Python developers often create simple queues with lists using append and pop(0), but this approach has O(n) complexity and thread‑safety issues; the article explains how the built‑in queue module provides efficient, thread‑safe FIFO, LIFO, and priority queues, with code examples for single‑thread and multithreaded task processing.

Producer ConsumerPythonQueue
0 likes · 5 min read
Stop Reinventing the Wheel: Use Python’s Built‑In Queue for Fast, Thread‑Safe Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Sep 5, 2025 · Fundamentals

10 Hidden Python Tricks to Supercharge Performance

This article reveals ten often‑overlooked Python performance techniques—from using enumerate and array structures to leveraging Numba, Polars, and generators—showing how careful coding, profiling, and modern libraries can turn sluggish scripts into lightning‑fast production workloads.

GeneratorsPolarsProfiling
0 likes · 9 min read
10 Hidden Python Tricks to Supercharge Performance
Data STUDIO
Data STUDIO
Sep 4, 2025 · Fundamentals

Seven Must‑Know Python 3.14 Features That Boost Performance and Developer Experience

The upcoming Python 3.14 release introduces seven major enhancements—including template strings (PEP 750), lazy type‑annotation evaluation (PEP 649), an external debugger API (PEP 768), native Zstandard compression (PEP 784), an upgraded REPL, UUID module improvements, and stricter finally‑block rules—each aimed at improving speed, safety, and usability for developers.

Pythondebugger-apifinally
0 likes · 11 min read
Seven Must‑Know Python 3.14 Features That Boost Performance and Developer Experience
DataFunSummit
DataFunSummit
Sep 3, 2025 · Artificial Intelligence

Demystifying MCP: A Simple Guide to Building LLM Tool Integration Servers

This article explains the Model Context Protocol (MCP), its three‑layer architecture, its core advantages, and step‑by‑step development of an MCP server in TypeScript (with Python and C++ examples), showing how LLMs can invoke tools for tasks like Unreal Engine code analysis.

LLMMCPPython
0 likes · 16 min read
Demystifying MCP: A Simple Guide to Building LLM Tool Integration Servers
IT Services Circle
IT Services Circle
Sep 3, 2025 · Fundamentals

Unlock Python’s Magic: Master Dunder Methods for Cleaner, Powerful Code

Learn how Python’s special “dunder” methods like __str__, __add__, __eq__, __iter__, and others let you customize object representation, arithmetic, comparison, and iteration, turning your classes into intuitive, built‑in‑type equivalents with clear examples and practical code snippets.

Code ExamplesObject-OrientedPython
0 likes · 8 min read
Unlock Python’s Magic: Master Dunder Methods for Cleaner, Powerful Code
Python Programming Learning Circle
Python Programming Learning Circle
Sep 2, 2025 · Fundamentals

10 Essential Python Libraries Every Developer Should Master

This article introduces ten highly useful Python libraries—youtube‑dl, Pillow, BeautifulSoup, pdfplumber, pyperclip, pydub, requests, pyautogui, Scrapy, openpyxl, and MoviePy—detailing their purpose, installation commands, and concise example code to help developers quickly apply them in real projects.

Code ExamplesDevelopmentPython
0 likes · 9 min read
10 Essential Python Libraries Every Developer Should Master
Data STUDIO
Data STUDIO
Sep 2, 2025 · Artificial Intelligence

Understanding NAS: Core Algorithms and Python Implementations

This article reviews Neural Architecture Search (NAS), explains its bi‑level optimization formulation, compares three major search strategies—reinforcement learning, evolutionary algorithms, and differentiable gradient‑based methods—provides complete Python code for each, and analyzes experimental results highlighting performance trade‑offs and remaining challenges.

Deep LearningDifferentiable Architecture SearchEvolutionary Algorithms
0 likes · 25 min read
Understanding NAS: Core Algorithms and Python Implementations
Python Programming Learning Circle
Python Programming Learning Circle
Sep 1, 2025 · Fundamentals

Why Python Dictionary Keys Overwrite Each Other: Hashing, Equality & Identity

This article explores three Python quirks: how dictionary keys with equal numeric values overwrite each other due to hashing and equality rules, why a return statement inside a try block is superseded by a return in the finally clause, and how object identity and id values behave, including hash collisions and memory reuse.

Exception HandlingHashingPython
0 likes · 4 min read
Why Python Dictionary Keys Overwrite Each Other: Hashing, Equality & Identity
Data STUDIO
Data STUDIO
Sep 1, 2025 · Fundamentals

5 Python Libraries That Rescue Crashing Code

The article walks through five Python libraries—tqdm, Joblib, Pathlib, Cachetools, and Hydra—showing how each can turn buggy, slow, or hard‑to‑manage scripts into clearer, faster, and more maintainable code with concrete examples.

HydraPythoncachetools
0 likes · 5 min read
5 Python Libraries That Rescue Crashing Code
Fun with Large Models
Fun with Large Models
Sep 1, 2025 · Artificial Intelligence

Build a LangGraph AI Agent in Two Lines Using the Prebuilt Graph API

This tutorial shows how to set up a Python environment, install LangGraph, and use its high‑level prebuilt graph API—specifically create_react_agent—to quickly create a weather‑assistant AI agent with just two lines of code, illustrating the full tool‑calling workflow and ReACT loop.

AI agentsLangGraphPython
0 likes · 11 min read
Build a LangGraph AI Agent in Two Lines Using the Prebuilt Graph API
Model Perspective
Model Perspective
Aug 31, 2025 · Fundamentals

Advanced Python Tricks: List Comprehensions, Async IO, Decorators & More

This article presents a comprehensive guide to advanced Python techniques, covering sophisticated syntax, powerful data structures, functional programming, concurrency with threading and asyncio, performance optimization using NumPy, Cython, Numba, and practical debugging and visualization tools, illustrated with clear code examples.

Advanced TechniquesData StructuresPython
0 likes · 11 min read
Advanced Python Tricks: List Comprehensions, Async IO, Decorators & More
Code Mala Tang
Code Mala Tang
Aug 31, 2025 · Fundamentals

Unlock Python’s Special Classes: Iterators, Context Managers, Descriptors & Metaclasses

This guide explores five special Python class types—iterators, context managers, descriptors, abstract base classes, and metaclasses—explaining their protocols, essential magic methods, practical use cases, and providing clear code examples to help you build custom implementations and write more expressive, maintainable code.

Abstract Base ClassesIteratorsPython
0 likes · 14 min read
Unlock Python’s Special Classes: Iterators, Context Managers, Descriptors & Metaclasses
Python Programming Learning Circle
Python Programming Learning Circle
Aug 30, 2025 · Fundamentals

Unlock Python’s First-Class Functions: From Basics to Advanced Functional Tricks

This article explains how Python treats functions as first‑class objects, showing how to assign them to variables, pass them as arguments, return them from other functions, store them in data structures, and use functional tools like lambda, map, filter, and reduce to write more reusable and expressive code.

First-Class FunctionsHigher-Order FunctionsPython
0 likes · 10 min read
Unlock Python’s First-Class Functions: From Basics to Advanced Functional Tricks
Code Mala Tang
Code Mala Tang
Aug 30, 2025 · Fundamentals

Why Python Never Overflows: The Secret of Arbitrary‑Precision Integers

Unlike fixed‑size integers in languages like C or Java, Python uses arbitrary‑precision integers that automatically expand, preventing overflow; this article explains the underlying CPython implementation, demonstrates the behavior with examples, and discusses the memory and performance trade‑offs of such limitless integers.

Arbitrary PrecisionCPythonPython
0 likes · 5 min read
Why Python Never Overflows: The Secret of Arbitrary‑Precision Integers
Code Mala Tang
Code Mala Tang
Aug 30, 2025 · Backend Development

Boost FastAPI Response Speed 5× with a One‑Line ORJSON Switch

Discover how replacing FastAPI’s default json module with the high‑performance ORJSON serializer can slash response latency, reduce CPU usage, and boost throughput up to five times—all with a single line of code and without altering existing endpoints.

FastAPIPythonjson serialization
0 likes · 4 min read
Boost FastAPI Response Speed 5× with a One‑Line ORJSON Switch
Swan Home Tech Team
Swan Home Tech Team
Aug 27, 2025 · Artificial Intelligence

Why AutoGluon’s Smart Model Team Beats Traditional Tuning in Real-World AI

This guide explains how AutoGluon leverages bagging, cross‑validation, and stacked ensembling to automatically train and combine dozens of models, provides step‑by‑step installation and usage instructions for tabular, time‑series, and multimodal tasks, and shows practical deployment examples for industry scenarios.

AutoGluonAutoMLModelEnsembling
0 likes · 21 min read
Why AutoGluon’s Smart Model Team Beats Traditional Tuning in Real-World AI
Data STUDIO
Data STUDIO
Aug 27, 2025 · Fundamentals

Building a Lightweight State Machine with Python Enum

This article demonstrates how to implement a clear, maintainable state machine for a publishing workflow using Python's Enum type, covering state definitions, forward and backward transitions, validation, entry actions, and visualisation without external dependencies.

Pythondesign patternenum
0 likes · 7 min read
Building a Lightweight State Machine with Python Enum
Alibaba Cloud Big Data AI Platform
Alibaba Cloud Big Data AI Platform
Aug 26, 2025 · Big Data

How MaxCompute Evolves for Python & AI: From SDK to Native Distributed Engine

This article outlines MaxCompute's decade‑long evolution—from the early PyODPS SDK to the native Distributed Python Engine—highlights the challenges big‑data platforms face in the AI era, and showcases Data+AI solutions and real‑world case studies across multimodal processing, massive text deduplication, and autonomous‑driving data pipelines.

AI FunctionsBig DataData+AI
0 likes · 15 min read
How MaxCompute Evolves for Python & AI: From SDK to Native Distributed Engine
Python Programming Learning Circle
Python Programming Learning Circle
Aug 26, 2025 · Fundamentals

22 Handy Python Code Snippets Every Developer Should Know

This article presents 22 practical Python code snippets—from extracting vowels and capitalizing words to merging dictionaries, measuring execution time, shuffling lists, and chunking data—offering concise solutions for everyday programming tasks and helping readers write cleaner, more efficient code.

PythonTipsbasics
0 likes · 11 min read
22 Handy Python Code Snippets Every Developer Should Know
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 26, 2025 · Fundamentals

Mastering Python Web Scraping: Clean Price Extraction with XPath Tricks

This article walks through a Python web‑scraping problem, demonstrates why the original XPath extraction returns noisy or missing price data, and provides multiple refined code solutions—including filtering empty entries, correcting XPath selectors, and using map‑filter techniques—to produce clean, formatted price lists.

Pythondata cleaninglxml
0 likes · 6 min read
Mastering Python Web Scraping: Clean Price Extraction with XPath Tricks