Tagged articles
5000 articles
Page 30 of 50
Python Crawling & Data Mining
Python Crawling & Data Mining
Feb 28, 2023 · Backend Development

How to Fix Common Python Web‑Crawler Issues in PyCharm

This article walks through a Python web‑crawler problem raised in a community, showing step‑by‑step how to start the project, troubleshoot terminal errors in PyCharm, and verify the directory structure using the tree command, providing a clear solution for beginners.

PythonWeb Crawlertroubleshooting
0 likes · 3 min read
How to Fix Common Python Web‑Crawler Issues in PyCharm
Model Perspective
Model Perspective
Feb 27, 2023 · Fundamentals

Mastering Difference-in-Differences: Theory, Example, and Python Implementation

Learn how the Difference-in-Differences (DiD) method estimates policy impacts by comparing treatment and control groups over time, explore its mathematical model, see a concrete traffic‑restriction example, and follow a step‑by‑step Python implementation with data analysis and visualization.

Pythondifference-in-differenceseconometrics
0 likes · 10 min read
Mastering Difference-in-Differences: Theory, Example, and Python Implementation
Model Perspective
Model Perspective
Feb 26, 2023 · Fundamentals

How to Detect Trends with the Mann‑Kendall Test in Python

This article explains how to determine whether a time‑series dataset exhibits a monotonic trend using the non‑parametric Mann‑Kendall test, walks through its statistical foundations, shows the calculation steps with sample sales data, and provides a complete Python implementation for practical analysis.

Mann-KendallPythonstatistics
0 likes · 7 min read
How to Detect Trends with the Mann‑Kendall Test in Python
Python Programming Learning Circle
Python Programming Learning Circle
Feb 25, 2023 · Game Development

Python Mini-Game Collection with Source Code Tutorials

This article presents a series of Python mini-game tutorials, including code for coin-collecting, ping-pong, skiing, space shooter, whack-a-mole, dinosaur runner, match-3, Tetris, snake, 24-point puzzle, alien invasion, tic-tac-toe, and more, offering complete source files and gameplay explanations.

Game DevelopmentPygamePython
0 likes · 36 min read
Python Mini-Game Collection with Source Code Tutorials
DataFunSummit
DataFunSummit
Feb 25, 2023 · Artificial Intelligence

Understanding Reward Model Training in InstructGPT Using Ranking Sequences

This article explains how InstructGPT's reward model is trained by collecting human‑annotated ranking sequences instead of absolute scores, describes the rank‑loss formulation, provides Python code for the model and loss computation, and presents experimental results demonstrating the approach.

InstructGPTPythonRLHF
0 likes · 9 min read
Understanding Reward Model Training in InstructGPT Using Ranking Sequences
Python Programming Learning Circle
Python Programming Learning Circle
Feb 24, 2023 · Fundamentals

Comparing Distributions Between Groups: Visualization and Statistical Methods in Python

This article demonstrates how to compare the distribution of a variable across treatment and control groups using Python, covering data simulation, visual techniques such as boxplots, histograms, KDE, CDF, QQ and ridgeline plots, and statistical tests including t‑test, SMD, Mann‑Whitney, permutation, chi‑square, KS and ANOVA.

A/B testingPythonStatistical Tests
0 likes · 21 min read
Comparing Distributions Between Groups: Visualization and Statistical Methods in Python
DaTaobao Tech
DaTaobao Tech
Feb 24, 2023 · Artificial Intelligence

Data Preprocessing and Statistical Analysis Techniques in Python

The article reviews essential Python data‑preprocessing and statistical‑analysis tools—including missing‑value imputation, outlier trimming, scaling, binning, knee‑point detection, correlation, chi‑square testing, linear regression, Wilson scoring, PCA weighting, text tokenization and sentiment analysis, plus visualization with matplotlib/seaborn and big‑data access via pyodps.

PythonStatistical Analysismachine learning
0 likes · 17 min read
Data Preprocessing and Statistical Analysis Techniques in Python
FunTester
FunTester
Feb 23, 2023 · Backend Development

Why RESTful APIs Simplify Testing: A Practical Guide for Test Engineers

This article explains how RESTful API design reduces testing complexity by using unique URIs, standard HTTP methods, and JSON data exchange, and shows how test engineers can extend their frameworks with serialization support and added PUT/DELETE operations.

API testingBackendJSON
0 likes · 7 min read
Why RESTful APIs Simplify Testing: A Practical Guide for Test Engineers
Python Programming Learning Circle
Python Programming Learning Circle
Feb 21, 2023 · Fundamentals

New Python Standard Library Features: pathlib, secrets, zoneinfo, dataclasses, logging, f‑strings, tomllib, and setuptools

This article introduces the most useful additions and modern replacements in recent Python releases—including pathlib, the secrets module, zoneinfo, dataclasses, proper logging, f‑strings, the built‑in tomllib, and the transition from distutils to setuptools—showing why and how to adopt them in everyday code.

Pythondataclassesf-strings
0 likes · 15 min read
New Python Standard Library Features: pathlib, secrets, zoneinfo, dataclasses, logging, f‑strings, tomllib, and setuptools
Python Programming Learning Circle
Python Programming Learning Circle
Feb 18, 2023 · Fundamentals

13 Useful Advanced Python Scripts for Everyday Tasks

This article presents thirteen practical advanced Python scripts covering tasks such as internet speed testing, Google searching, web automation, lyric retrieval, EXIF extraction, OCR, image cartoonization, recycle bin cleaning, Windows version detection, PDF conversion, color conversion, and website status checking, each with ready-to-use code examples.

Code ExamplesPythonScripting
0 likes · 9 min read
13 Useful Advanced Python Scripts for Everyday Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Feb 17, 2023 · Artificial Intelligence

Building a Simple Probabilistic Programming Language in Python

This article explains the principles of probabilistic programming languages and walks through constructing a basic PPL in Python, covering model definition with latent and observed variables, distribution handling, DAG traversal for log‑density computation, and demonstrates evaluation with example code and visualizations.

Bayesian inferenceDAGPPL
0 likes · 13 min read
Building a Simple Probabilistic Programming Language in Python
21CTO
21CTO
Feb 15, 2023 · Fundamentals

Python’s 2024 Surge: Rust Integration, Web‑UI Frameworks, and Type Safety

Recent Python ecosystem trends highlight the rise of Rust bindings via PyO3, the emergence of pure‑Python web UI frameworks like Streamlit and Pynecone, and growing emphasis on static type safety with tools such as mypy and pydantic, signaling a shift toward higher performance and reliability.

PythonRustType Safety
0 likes · 6 min read
Python’s 2024 Surge: Rust Integration, Web‑UI Frameworks, and Type Safety
Liangxu Linux
Liangxu Linux
Feb 14, 2023 · Fundamentals

2023 Python Practice Exam: 439 Fill‑in, 298 True/False, 32 Short Answer Questions

A comprehensive collection of 2023 Python practice questions—including fill‑in‑the‑blank, true/false, and short‑answer items—covers topics from multimedia and database programming to threading, networking, GUI, exception handling, file I/O, OOP, and core language features, with sample code snippets for deeper understanding.

PracticePythonexam
0 likes · 8 min read
2023 Python Practice Exam: 439 Fill‑in, 298 True/False, 32 Short Answer Questions
Python Programming Learning Circle
Python Programming Learning Circle
Feb 11, 2023 · Fundamentals

Common Mistakes When Using Python Lambda Functions and How to Avoid Them

This article explains what Python lambda (anonymous) functions are, shows their syntax, demonstrates typical use cases with built‑in functions and pandas, and outlines four common pitfalls—returning values, assigning to variables, ignoring better alternatives, and overusing them—while providing code examples and best‑practice recommendations.

LambdaPythonanonymous function
0 likes · 7 min read
Common Mistakes When Using Python Lambda Functions and How to Avoid Them
Top Architect
Top Architect
Feb 11, 2023 · Backend Development

XNote – Lightweight Personal Note System: Features, Architecture, and Installation Guide

This article introduces XNote, a lightweight personal note system with rich data management, cross‑platform support, and extensible plugins, detailing its key features, system architecture, directory layout, required dependencies, and step‑by‑step installation and configuration instructions for Python environments.

BackendOpen-sourcePlugins
0 likes · 11 min read
XNote – Lightweight Personal Note System: Features, Architecture, and Installation Guide
Python Programming Learning Circle
Python Programming Learning Circle
Feb 9, 2023 · Fundamentals

Understanding Loop Structures in Python: for, while, break, continue, and Nested Loops

This article explains why loops are needed in programming, introduces Python's for‑in and while loops, demonstrates their syntax with practical examples—including range variations, break/continue statements, and nested loops such as the multiplication table—and provides exercises on prime checking and GCD/LCM calculation.

LoopsPythonfor
0 likes · 9 min read
Understanding Loop Structures in Python: for, while, break, continue, and Nested Loops
Model Perspective
Model Perspective
Feb 8, 2023 · Artificial Intelligence

Mastering Feature Selection: From Filters to Embedded Methods in Python

This article explains why feature selection is crucial for machine learning, outlines the general workflow, compares filter, wrapper, embedded, and synthesis approaches, and provides practical Python examples—including Pearson correlation, chi‑square tests, mutual information, variance selection, recursive elimination, L1 regularization, and PCA—complete with code snippets and visualizations.

Pythonfeature selectionstatistics
0 likes · 20 min read
Mastering Feature Selection: From Filters to Embedded Methods in Python
Python Programming Learning Circle
Python Programming Learning Circle
Feb 8, 2023 · Fundamentals

Measuring Execution Time and Memory Usage in Python

This article introduces four practical methods for monitoring Python code performance—using the built‑in time module, the %%time IPython magic, line_profiler for per‑line timing, and memory_profiler for detailed memory usage—complete with code examples and interpretation of results.

Pythonline_profilermemory
0 likes · 7 min read
Measuring Execution Time and Memory Usage in Python
Python Programming Learning Circle
Python Programming Learning Circle
Feb 4, 2023 · Artificial Intelligence

Hand Gesture Recognition Using OpenCV: Video Capture, Skin Detection, and Contour Processing in Python

This article demonstrates a Python-based hand‑gesture recognition pipeline using OpenCV, covering video capture, skin detection via YCrCb conversion, contour extraction, and visualization, with complete source code and step‑by‑step explanations suitable for beginners.

Contour ExtractionHand GestureOpenCV
0 likes · 6 min read
Hand Gesture Recognition Using OpenCV: Video Capture, Skin Detection, and Contour Processing in Python
IT Services Circle
IT Services Circle
Feb 4, 2023 · Fundamentals

Using plottable to Create Highly Customizable Tables in Python

This article introduces the Python library plottable, which builds highly customizable tables on top of Matplotlib, and provides a complete example showing data loading, column styling, and rendering of a styled table along with additional recommended reading links.

Data visualizationMatplotlibPython
0 likes · 6 min read
Using plottable to Create Highly Customizable Tables in Python
Liangxu Linux
Liangxu Linux
Feb 1, 2023 · Fundamentals

20 Must‑Try Python3 Open‑Source Projects to Boost Your Coding Skills

This guide explains why actively experimenting with code beats passive reading, outlines a step‑by‑step method for mastering source code, and presents a curated list of twenty free Python3 projects—complete with executables and source—that are ideal for beginners and advanced learners alike.

AIOpen-sourceProjects
0 likes · 7 min read
20 Must‑Try Python3 Open‑Source Projects to Boost Your Coding Skills
Sohu Tech Products
Sohu Tech Products
Feb 1, 2023 · Artificial Intelligence

ChatGPT Writes AI: Building an MNIST Classifier with Keras Using ChatGPT

This article demonstrates how a machine‑learning enthusiast used ChatGPT to generate, modify, and refine Keras code for training, evaluating, visualizing, and deploying a neural‑network model that classifies handwritten digits from the classic MNIST dataset, showcasing the full development workflow.

ChatGPTKerasMNIST
0 likes · 4 min read
ChatGPT Writes AI: Building an MNIST Classifier with Keras Using ChatGPT
21CTO
21CTO
Feb 1, 2023 · Fundamentals

Inside CPython’s Garbage Collector: Ref Counting, Cycle Detection & Generational Tricks

CPython’s garbage collector combines reference counting with a cyclic collector that uses generational strategies, fat pointers, and optimized object structures to efficiently identify and reclaim unreachable objects, handling cycles, weak references, and memory layout details while minimizing overhead.

Garbage CollectionGenerational GCPython
0 likes · 21 min read
Inside CPython’s Garbage Collector: Ref Counting, Cycle Detection & Generational Tricks
21CTO
21CTO
Jan 27, 2023 · Fundamentals

Which Programming Languages Dominated the 2022 Job Market? Top 8 Revealed

Based on analysis of over 12 million developer job postings from October 2021 to November 2022, DevJobsScanner identified the eight programming languages with the highest demand in 2022, highlighting JavaScript/TypeScript’s dominance, the rise of Python and Java, and emerging trends for Go, C#, PHP, C/C++, and Ruby.

2022 demandJavaScriptPython
0 likes · 7 min read
Which Programming Languages Dominated the 2022 Job Market? Top 8 Revealed
Model Perspective
Model Perspective
Jan 17, 2023 · Fundamentals

Master Six Classic Sorting Algorithms in Python: From Bubble to Quick Sort

This article introduces six fundamental sorting algorithms—bubble, selection, insertion, shell, merge, and quick sort—explains their principles, provides Python implementations with code examples, visual animations, and compares built‑in sorting methods, helping readers understand and apply these techniques effectively.

PythonQuick SortSorting Algorithms
0 likes · 16 min read
Master Six Classic Sorting Algorithms in Python: From Bubble to Quick Sort
Model Perspective
Model Perspective
Jan 14, 2023 · Fundamentals

Python Data Structures: Strings, Lists, Tuples, Dicts, Sets, Stacks & Queues

This article introduces essential Python data structures—including strings, lists, tuples, dictionaries, sets, as well as stack and queue implementations—explaining their characteristics, usage, and providing clear code examples to illustrate creation, indexing, slicing, and common operations.

AlgorithmsData StructuresLists
0 likes · 9 min read
Python Data Structures: Strings, Lists, Tuples, Dicts, Sets, Stacks & Queues
Model Perspective
Model Perspective
Jan 13, 2023 · Artificial Intelligence

Master Classic Modeling with Python: LP, Graphs, Clustering, PCA & More

This article presents Python implementations of classic mathematical modeling techniques—including linear programming with PuLP, shortest‑path analysis using NetworkX, K‑means and hierarchical clustering, principal component analysis, frequent‑pattern mining with FP‑Growth, and linear regression and K‑nearest‑neighbors—providing code snippets, explanations, and visualizations to guide readers through each method.

Frequent Pattern MiningPCAPython
0 likes · 12 min read
Master Classic Modeling with Python: LP, Graphs, Clustering, PCA & More
Model Perspective
Model Perspective
Jan 11, 2023 · Fundamentals

Master Sensitivity Analysis: Theory, Methods, and Python SALib Walkthrough

This article introduces sensitivity analysis, explains its key concepts, indices, and selection criteria, then details various methods—including OAT, derivative‑based, regression, variance‑based, FAST, Morris, and Sobol—followed by practical Python examples using the SALib library with code and visualizations.

FASTMorrisPython
0 likes · 18 min read
Master Sensitivity Analysis: Theory, Methods, and Python SALib Walkthrough
Model Perspective
Model Perspective
Jan 10, 2023 · Fundamentals

Fit Real-World Data with Fourier Series Using Python

This article explains Fourier series theory, demonstrates how to remove linear trends from monthly CO₂ data, and shows step‑by‑step Python code using SciPy's curve_fit to fit and predict the data with a 100‑term Fourier expansion.

PythonTime Series Analysisdata fitting
0 likes · 6 min read
Fit Real-World Data with Fourier Series Using Python
Efficient Ops
Efficient Ops
Jan 9, 2023 · Operations

Boost Ops Efficiency: 5 Python Scripts Every Sysadmin Should Use

This article explains how Python can automate common operations tasks—remote command execution, log parsing, system monitoring with alerts, bulk software deployment, and backup/restore—providing code examples for each and highlighting additional tools that help sysadmins improve efficiency and reduce errors.

BackupDeploymentPython
0 likes · 9 min read
Boost Ops Efficiency: 5 Python Scripts Every Sysadmin Should Use
IT Services Circle
IT Services Circle
Jan 9, 2023 · Operations

Python Server Resource Monitoring and Alerting Scripts

This article presents Python scripts for server‑side and client‑side resource monitoring, automatically checking CPU, memory, disk usage and network traffic, storing alerts in MySQL and optionally sending notifications via email or Enterprise WeChat, with deployment instructions and cron scheduling.

AlertingPythonServer Monitoring
0 likes · 19 min read
Python Server Resource Monitoring and Alerting Scripts
Model Perspective
Model Perspective
Jan 5, 2023 · Fundamentals

Modeling Age‑Structured Populations with the Leslie Matrix in Python

This article explains the Leslie matrix model for age‑structured population forecasting, outlines its mathematical formulation, demonstrates how to build and solve it using Python code, and shows how to derive demographic indicators such as average age, lifespan, aging index, and dependency ratio.

Leslie matrixPythonage‑structured model
0 likes · 9 min read
Modeling Age‑Structured Populations with the Leslie Matrix in Python
Meituan Technology Team
Meituan Technology Team
Jan 5, 2023 · Backend Development

Automated SDK Generation for Meituan Open Platform

The article details Meituan Open Platform’s approach to automatically generate multi‑language SDKs with rich parameter models, covering overall design, code‑generation via DSL templates, CI/CD integration, and the resulting efficiency gains for third‑party developers integrating over a thousand OpenAPI endpoints.

API automationCI/CDDSL
0 likes · 23 min read
Automated SDK Generation for Meituan Open Platform
Model Perspective
Model Perspective
Jan 4, 2023 · Fundamentals

Mastering Fuzzy Mathematics: Membership Functions and Python Implementations

This article introduces fuzzy mathematics, explains how fuzzy sets and membership functions quantify vague concepts, and provides Python code using the scikit‑fuzzy library to implement various membership functions such as triangular, Gaussian, S‑shaped, and polynomial types, complete with plotting examples.

Pythonfuzzy logicfuzzy mathematics
0 likes · 11 min read
Mastering Fuzzy Mathematics: Membership Functions and Python Implementations
Python Programming Learning Circle
Python Programming Learning Circle
Dec 31, 2022 · Artificial Intelligence

A Beginner’s Guide to Data Preprocessing for Machine Learning in Python

This tutorial walks beginners through the essential steps of data preprocessing for any machine learning model, covering library imports, dataset loading, handling missing values, encoding categorical features, splitting into train‑test sets, and applying feature scaling using Python’s scikit‑learn.

Pythondata preprocessingfeature scaling
0 likes · 11 min read
A Beginner’s Guide to Data Preprocessing for Machine Learning in Python
Model Perspective
Model Perspective
Dec 30, 2022 · Fundamentals

How PCA Transforms Supplier Evaluation with Weighted Scores

This article explains the Principal Component Analysis (PCA) method, outlines its step‑by‑step weighting algorithm, and demonstrates a complete Python implementation that converts supplier metrics into objective scores using scikit‑learn.

PCAPythondata analysis
0 likes · 9 min read
How PCA Transforms Supplier Evaluation with Weighted Scores
Python Programming Learning Circle
Python Programming Learning Circle
Dec 28, 2022 · Fundamentals

13 Advanced Python Scripts for Everyday Tasks

This article presents thirteen advanced Python scripts covering tasks such as internet speed testing, Google searching, web automation, lyric retrieval, EXIF extraction, OCR, image cartoonization, recycle bin cleaning, image enhancement, Windows version detection, PDF-to-image conversion, hex-to-RGB conversion, and website status checking, each with code examples.

Advanced ScriptsData ExtractionImage Processing
0 likes · 10 min read
13 Advanced Python Scripts for Everyday Tasks
Efficient Ops
Efficient Ops
Dec 28, 2022 · Operations

Mastering Ansible: 16 Visual Guides to Automate Your Operations

Ansible, a rapidly popular open‑source automation tool built on Python, enables batch system configuration, program deployment, and command execution through thousands of built‑in modules, offering a simple yet powerful solution for operations engineers, illustrated here with 16 comprehensive images.

AnsibleConfiguration ManagementOperations
0 likes · 3 min read
Mastering Ansible: 16 Visual Guides to Automate Your Operations
Python Programming Learning Circle
Python Programming Learning Circle
Dec 27, 2022 · Backend Development

Generating QR Codes with Python's segno Library

This tutorial explains how to install the segno Python package and use it to create simple and customized QR codes for URLs, Wi‑Fi credentials, vCards, artistic designs, and in‑memory images, providing complete code examples and practical ideas for personal and social applications.

PythonQR codeWiFi
0 likes · 8 min read
Generating QR Codes with Python's segno Library
php Courses
php Courses
Dec 27, 2022 · Fundamentals

2022 Top 8 Programming Languages by Developer Job Demand

The 2022 DevJobsScanner analysis of over 12 million developer job postings reveals JavaScript/TypeScript as the most demanded language followed by Python, Java, C#, PHP, C/C++, Ruby and Go, and concludes with a promotional announcement for a new PHP online live class.

2022JavaScriptPHP
0 likes · 7 min read
2022 Top 8 Programming Languages by Developer Job Demand
Model Perspective
Model Perspective
Dec 26, 2022 · Fundamentals

Mastering Holt-Winters: Additive Model Explained with Python Code

This article introduces the Holt‑Winters additive exponential smoothing model, explains its mathematical formulation and when to use additive versus multiplicative versions, and provides Python examples using statsmodels to fit both exponential and linear trend variations, illustrated with plots.

Holt-WintersPythonexponential smoothing
0 likes · 5 min read
Mastering Holt-Winters: Additive Model Explained with Python Code
Python Programming Learning Circle
Python Programming Learning Circle
Dec 26, 2022 · Mobile Development

Automating Android Devices with Python and ADB

This guide explains how to set up ADB and Python libraries, enable USB debugging, and write Python scripts that control an Android phone to perform actions such as taking selfies, searching for word definitions, and capturing screenshots, providing a practical introduction to mobile automation.

ADBMobile DevelopmentPython
0 likes · 9 min read
Automating Android Devices with Python and ADB
MaGe Linux Operations
MaGe Linux Operations
Dec 24, 2022 · Fundamentals

Unlock Python’s Magic Methods: A Practical Guide to Special Attributes

This article explains Python’s special attributes and magic methods—including __hash__, __eq__, __bool__, __repr__, __str__, and context management—showing how they affect object behavior, hashing, equality, truth testing, representation, and resource handling with clear code examples.

PythonReflectioncontext management
0 likes · 14 min read
Unlock Python’s Magic Methods: A Practical Guide to Special Attributes
Architect
Architect
Dec 22, 2022 · Operations

An Introduction to eBPF: Concepts, Use Cases, and Sample Programs

This article explains what eBPF (extended Berkeley Packet Filter) is, compares it with related tracing tools, describes its core mechanisms and common applications such as network monitoring, security filtering and performance analysis, and provides step‑by‑step Python examples with installation instructions and further reading resources.

BCCLinuxPerformance
0 likes · 20 min read
An Introduction to eBPF: Concepts, Use Cases, and Sample Programs
Model Perspective
Model Perspective
Dec 20, 2022 · Fundamentals

Master Stationary Time Series & ARMA Models: Theory, Examples, Python Code

This article explains the fundamentals of weakly stationary time series, defines mean, variance, autocovariance, and autocorrelation functions, introduces AR, MA, ARMA, and ARIMA models, discusses model identification using ACF/PACF, selection criteria like AIC/SBC, diagnostic testing, and provides Python statsmodels code examples for implementation.

ARMAPythonStatsmodels
0 likes · 18 min read
Master Stationary Time Series & ARMA Models: Theory, Examples, Python Code
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 20, 2022 · Operations

Alertmanager Alert System Refactoring: Issues, Solutions, and Implementation Details

This article analyzes common problems in a Prometheus‑Alertmanager monitoring setup—such as alert noise, lack of escalation, suppression and silence management—and presents a comprehensive refactor that introduces per‑cluster Alertmanager instances, custom escalation logic, suppression tables, and Python scripts to handle alert routing, silencing, and recovery.

Alert SuppressionAlertmanagerOperations
0 likes · 18 min read
Alertmanager Alert System Refactoring: Issues, Solutions, and Implementation Details
FunTester
FunTester
Dec 19, 2022 · Fundamentals

WebSocket Protocol Overview and Practical Interface Testing with Python

This article introduces the WebSocket protocol, explains its principles and differences from HTTP, outlines typical real‑time application scenarios, and provides a step‑by‑step guide with code examples for testing WebSocket interfaces using Python, including request/response formats and automated test scripts.

APIPythonReal-Time
0 likes · 10 min read
WebSocket Protocol Overview and Practical Interface Testing with Python
Python Programming Learning Circle
Python Programming Learning Circle
Dec 17, 2022 · Fundamentals

Accelerating Python Code with Taichi: Prime Counting, LCS, and Reaction‑Diffusion Examples

This article demonstrates how importing the Taichi library into Python can dramatically accelerate compute‑intensive tasks, showcasing prime counting, longest common subsequence, and reaction‑diffusion simulations with speedups up to 120× and GPU support, while providing installation and usage guidance.

GPUHigh‑performance computingPython
0 likes · 6 min read
Accelerating Python Code with Taichi: Prime Counting, LCS, and Reaction‑Diffusion Examples
Python Programming Learning Circle
Python Programming Learning Circle
Dec 15, 2022 · Backend Development

Python Project Engineering: Dependency Management, Project Structure, Modules, Type Checking, Formatting, Configuration, Exception Handling, and Testing

This article presents a comprehensive guide to building a Python backend project without controllers, covering modern dependency management with PDM, recommended project layout, module import conventions, static type checking using mypy, code formatting with Black, configuration handling, exception design, and testing strategies with pytest and tox.

Code FormattingModulesProject Structure
0 likes · 16 min read
Python Project Engineering: Dependency Management, Project Structure, Modules, Type Checking, Formatting, Configuration, Exception Handling, and Testing
MaGe Linux Operations
MaGe Linux Operations
Dec 14, 2022 · Fundamentals

Master Python’s @property: Turn Methods into Read‑Only Attributes

Learn how Python’s @property decorator transforms methods into read‑only attributes, enabling attribute‑style access, preventing unintended modifications, and illustrating proper usage with code examples that show correct and incorrect calls, common pitfalls, and best practices for encapsulating data.

DecoratorEncapsulationProperty
0 likes · 4 min read
Master Python’s @property: Turn Methods into Read‑Only Attributes
21CTO
21CTO
Dec 11, 2022 · Artificial Intelligence

Which Programming Languages Power AI? A Deep Dive into the Best Choices

Choosing the right programming language is crucial for AI development, and this article examines popular options—Python, Julia, R, and Java—highlighting their strengths, libraries, and suitability, while also pointing out outdated languages like COBOL, FORTRAN, and Pascal that offer little value for modern AI projects.

AIJuliaPython
0 likes · 7 min read
Which Programming Languages Power AI? A Deep Dive into the Best Choices
Python Programming Learning Circle
Python Programming Learning Circle
Dec 8, 2022 · Fundamentals

Lesser‑Known Python Standard Library Modules and How to Use Them

This article introduces several lesser‑known Python standard‑library modules—including difflib, sched, binascii, tty, and weakref—explains their key functions, provides practical code examples, and highlights how they can simplify tasks such as string comparison, event scheduling, binary‑ASCII conversion, terminal handling, and weak referencing.

Pythonbinasciidifflib
0 likes · 9 min read
Lesser‑Known Python Standard Library Modules and How to Use Them
Programmer DD
Programmer DD
Dec 6, 2022 · Artificial Intelligence

How an Engineer Coaxed ChatGPT into Writing a ‘Humanity‑Destruction’ Plan

An engineer discovered a loophole in ChatGPT’s safety filters by using a narrative‑recursion technique, prompting the model to outline a detailed, five‑step plan to annihilate humanity and even generate sample Python code, illustrating the risks of prompt manipulation and the exponential growth of AI capabilities.

AI SafetyChatGPTPython
0 likes · 6 min read
How an Engineer Coaxed ChatGPT into Writing a ‘Humanity‑Destruction’ Plan
Model Perspective
Model Perspective
Nov 30, 2022 · Fundamentals

Simulating Stock Prices with Monte Carlo and Brownian Motion in Python

This article explains Brownian motion and Monte Carlo methods, then demonstrates how to model stock price dynamics as a geometric Brownian motion using Python, providing full code for simulating returns, generating price paths, and visualizing multiple trial outcomes.

Brownian MotionMonte CarloPython
0 likes · 9 min read
Simulating Stock Prices with Monte Carlo and Brownian Motion in Python
Python Programming Learning Circle
Python Programming Learning Circle
Nov 30, 2022 · Fundamentals

Sorting Algorithms Overview with Python Implementations

This article provides a comprehensive overview of common sorting algorithms—including bubble, selection, insertion, shell, merge, quick, heap, counting, bucket, and radix sorts—explaining their principles, time complexities, stability, and includes detailed Python code examples and visual illustrations for each method.

PythonSorting Algorithmsalgorithm complexity
0 likes · 18 min read
Sorting Algorithms Overview with Python Implementations
Efficient Ops
Efficient Ops
Nov 29, 2022 · Operations

How to Retrieve and Process Prometheus Metrics via Its API

This article explains how to use the Prometheus HTTP API to query instant and range metrics, interpret the JSON responses, and fetch data programmatically with Python, providing code examples and details on request parameters, error handling, and practical usage.

APIDevOpsMetrics
0 likes · 8 min read
How to Retrieve and Process Prometheus Metrics via Its API
IT Services Circle
IT Services Circle
Nov 29, 2022 · Fundamentals

Why Using Pinyin for Variable Names Is Discouraged in Programming

The article explains that naming code elements with pinyin reduces readability, conflicts with established coding conventions, and hampers collaboration, illustrating the drawbacks with examples and summarizing Python's PEP naming guidelines to promote clearer, more maintainable code.

PEPPythonbest practices
0 likes · 4 min read
Why Using Pinyin for Variable Names Is Discouraged in Programming
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 29, 2022 · Fundamentals

How to Simplify Image Filename Deduplication in Python

This article walks through a practical Python example for deduplicating image file names, compares an initial verbose implementation with a more concise solution, and demonstrates how to reduce redundant conditional checks for cleaner, more readable code.

Code OptimizationPythondeduplication
0 likes · 4 min read
How to Simplify Image Filename Deduplication in Python