Experimenting with MCP - Building an Evergreen Knowledge Server for WoW Specs
June 6, 2025
Learn how to build a Model Context Protocol (MCP) server that provides real-time knowledge about various World of Warcraft specializations, connecting LLMs like Claude to current game information.
Read More
Revisiting Modern Android: Notes on Compose, Firebase, and ViewModel for a Planner App
May 17, 2025
My notes and practical code examples from a personal daily planner project, covering Jetpack Compose for UI, Firebase for auth/data, ViewModel with StateFlow, and callbackFlow for modern Android development.
Read More
Downcasting Traits in Rust
January 11, 2025
Why and how to downcast a trait object to a concrete type in Rust.
Read More
JWT Validation in OpenResty
December 14, 2024
Learn how to validate JSON Web Tokens (JWT) in OpenResty using the lua-resty-jwt library. This post covers the basics of JWT, token validation, and how to integrate JWT validation into your OpenResty application.
Read More
Understanding Borrowing in Closures and Variable Capturing in Rust
December 11, 2024
Closures in Rust capture variables from their surrounding environment using one of three methods: by reference (&T), by mutable reference (&mut T), or by value (T). The capture method is inferred by the compiler based on how the closure uses the variable. Closures can implement one of three traits (Fn, FnMut, or FnOnce), depending on whether they read, modify, or consume the captured variable. The move keyword forces ownership of variables into the closure, which is essential for async tasks and multi-threaded contexts. This article provides detailed examples of these concepts, highlighting key distinctions between borrowing, mutability, and capture mechanics.
Read More
Understanding Borrowing and Lifetimes in Rust
December 9, 2024
Rust's borrowing and lifetime rules ensure memory safety without garbage collection. This post explores shared and exclusive borrows, lifetime management, and the role of the borrow checker in preventing data races and dangling references using some basic examples.
Read More