AI 摘要The author describes replacing a project's heading font with a new variable font by registering it via a CSS @font-face rule, specifying the WOFF2 file, a font-weight range of 200 to 700, and font-display: swap. The piece, published on CSS-Tricks, focuses on handling expanded font fallbacks during this font swap.
AI 摘要Real Python ran GLM 5.4 through an informal five-task benchmark of everyday Python skills, including using the turtle module to draw a python reading a book, which the model completed successfully with 172 lines of code. Across the tasks, the model wrote Python at a 3.10 level with some 3.11 features, avoided all ten unrelated edits in a cleanup test, correctly identified that itertools.flatten() doesn't exist, and cost $0.16 total. The full results are available on Real Python's website as part of their ongoing AI benchmark series.
AI 摘要This article presents Real Python's informal AI benchmark of Amazon Ergo, which was tasked with drawing a python reading a book using Python's turtle module. Across five tasks, the model drew the snake with 3,205 drawing commands, used modern Python 3.11 features, correctly flagged that itertools.flatten() doesn't exist, and made zero unnecessary edits to a script. The full run took about 2.5 minutes and cost $0.18, with the model reporting Python 3.15.1 as the newest release.
AI 摘要JetBrains has released bug-fix updates for all supported MPS versions (2026.2.1, 2026.1.3, 2025.3.4, 2025.2.6, and 2025.1.6) that mitigate a critical security vulnerability, CVE-2026-114938 (Java4Shell), which affects the bundled JetBrains Runtime and also impacts standalone MPS-based RCP applications that must be rebuilt with the updated startup scripts. In addition to the security fixes and a Marketplace Zip Signer library issue, MPS 2026.2.1 and 2026.1.3 bring improvements such as Projectional Agent Toolkit enhancements, a warning for isExactly with interface concepts, a fixed single-pass UpdateConceptMethodCall migration, a restored Navigation Bar, restored Go to Root Node shortcut, editor/diff performance improvements, and GitHub Copilot compatibility. The 2025 versions include only the security fix.
AI 摘要Kotlin 2.5.0 has been released, marking Kotlin/Wasm as stable and introducing highlights such as stable name-based destructuring, an unused return value checker, Java 28 support for Kotlin/JVM, Swift export in Beta for Kotlin/Native, and a new publication format for Kotlin Multiplatform libraries. The release is available through the latest versions of IntelliJ IDEA and Android Studio, via build script updates, or as a command-line compiler from GitHub. Additionally, the team launched a monthly Kotlin Security Newsletter covering security fixes across Kotlin and its ecosystem.
AI 摘要Kotlin 2.5.0 has been released, marking Kotlin/Wasm as Stable, along with language improvements such as stable name-based destructuring, an unused return value checker, and improved compile-time constants. The release also brings experimental standard library functions, Java 28 support for Kotlin/JVM, Swift export in Beta for Kotlin/Native, a new publication format for Kotlin Multiplatform libraries, and es2020 target support for Kotlin/JS. Users can update through the latest versions of IntelliJ IDEA and Android Studio or download the command-line compiler from GitHub.
AI 摘要This article introduces a quiz that tests comprehension of a tutorial on building an AI agent from scratch in Python. The quiz revisits core concepts that turn a language model into an agent, including the harness, the conversation context, the tools the model can request, and the agentic loop that chains tool calls until an answer is reached.
AI 摘要Kotlin 2.5.0 introduces full value classes in Alpha, immutable classes with an unrestricted number of primary properties that are available on all platforms and JVM versions. Starting with JDK 28, these value classes can compile to JVM value classes to benefit from Project Valhalla's performance optimizations, while upcoming releases will bring name-based destructuring, 'copy properties' for ergonomic updates (expected in Kotlin 2.6.0), multiplatform inline value classes, and improved diagnostics around identity, equality, and lambda captures. Since the feature is still in Alpha and subject to breaking changes, JetBrains invites the community to experiment with value classes in toy projects and share feedback before the final design is committed.
AI 摘要Kotlin 2.5.0 introduces full value classes in Alpha stage—immutable classes with an unrestricted number of primary properties that work on all platforms and JVM versions, with the option to compile to JVM value classes starting with JDK 28 to leverage Project Valhalla performance benefits. Unlike data classes, they generate only equals(), hashCode(), and toString(), use name-based destructuring instead of position-based, and will get ergonomic update syntax ('a better copy') expected in Kotlin 2.6.0, while existing inline value classes remain supported and become multiplatform with the inline modifier in Kotlin 2.5.20. Since these features are still Alpha and not production-ready, JetBrains encourages community experimentation and feedback before the final design is committed.
AI 摘要On December 23, 2025, Masahiko Sawada committed a patch to PostgreSQL that allows logical decoding to be toggled dynamically based on the presence of logical replication slots. Previously, logical decoding required wal_level to be set to 'logical' at server start, meaning users had to bear the overhead of logical-level WAL logging even when no logical replication slots were in use. Despite this improvement, the feature was missed in PostgreSQL 19.
AI 摘要This article is Part 2 of a series on PostgreSQL 19's WAIT FOR LSN feature, offering DBAs a hands-on walkthrough using just two psql sessions to demonstrate read-your-writes consistency on replicas, timeout handling with NO_THROW, monitoring waiting sessions, and how WAIT FOR behaves when a standby is stuck compared to synchronous replication. It also explains the feature's errors and restrictions—such as being unusable while holding snapshots or locks and only allowed as a top-level statement—showing why each exists to prevent deadlock cycles with recovery. Finally, it recounts the feature's long development history, including multiple commits and rejections over more than six years.