RSSAmplifier

Blog

CODE FARM

All animals are equal but some animals are more equal than others.

blog.codefarm.meRSS feed ↗10 posts

Latest posts

Learn to Drive Smart

origin: https://icbc.com/driver-licensing/driving-guides/Learn-to-Drive-Smart Be at least 25 cm (10 in) away from the driver’s airbag. Position head restraint as close to the back of head as possible. Buckle up seatbelts even on short trips, since most injuries and deaths occur close to home. If there is any doubt about who has the right-of-way, or if there is any chance of a crash, it’s always…

Language Models and Agents

An overview of how Large Language Models (LLMs) are evolving into intelligent agents. The article details fundamental concepts such as prompts, RAG, and tool calling, explains the ReAct reasoning loop, and provides an introduction to building and connecting agents using frameworks like LangChain and standards like the Model Context Protocol (MCP).

Raw HTTP Message Logging for .NET HttpClient

1. Introduction Modern .NET applications frequently communicate with external services over HTTP, making observability of these interactions critical for development and debugging. This article explores a lightweight approach to capturing raw HTTP messages in protocol format, providing developers with immediate visibility into their HTTP traffic without external tooling. 1.1. The HTTP Visibility…

Universal Clock and Local Clock

We live by time. From the moment we wake to the rhythm of our daily schedules, to the precise coordination of global networks, time is the invisible backbone of our existence. It s so fundamental, in fact, that philosophers like Kant considered it a basic intuition, a lens through which we perceive reality itself. (Turns out, it s a bit more complicated than that.) For anyone who s ever tried to…

Learning Dapper: A Lightweight ORM for .NET

Dapper offers a powerful yet lightweight solution for interacting with databases in .NET applications. Its high performance and minimal overhead make it an excellent choice for scenarios where fine-grained control over SQL and efficient data access are critical. This document has demonstrated Dapper's versatility in handling various querying methods, from scalar values to multiple result sets, and…

Model validation in ASP.NET Core

Model validation is a crucial aspect of building robust ASP.NET Core applications, ensuring data integrity and providing a smooth user experience. This post explores the various mechanisms for validating data, from built-in attributes and custom validation logic to handling non-nullable reference types and top-level node validation. 1. Model state 2. Validation 3. Validation attributes 4. Error…

Learning Notes: Fundamentals of Data Engineering

1. What is Data Engineering? 1.1. DataOps 1.2. ETL and ELT 2. Data Warehouses, Lakes, and Lakehouses 2.1. Data Warehouses 2.2. Data Lakes 2.3. Data Lakehouses 3. Data Architecture 3.1. Lambda Architecture 3.2. Kappa Architecture 3.3. Dataflow Model 3.4. IoT 4. Data Sources 4.1. OLTP and OLAP 4.2. Message Queues and Event-Streaming 4.3. Relational Databases and Nonrelational Databases 4.4. APIs 5.…

Hands-On Large Language Models

1. Language AI 2. Tokens and Embeddings 2.1. LLM Tokenization 2.2. Token Embeddings 2.3. Text Embeddings 3. Large Language Models 3.1. Inputs and Outputs 3.2. Components 3.3. Probability Distribution (Sampling/Decoding) 3.4. Parallel Token Processing and Context Size 3.5. Keys and Values Caching 3.6. Transformer Block 4. Text Classification 4.1. Representation Models 4.1.1. Task-Specific Model…

T-SQL Learning Notes

SQL (pronounced /ˌɛsˌkjuˈɛl/ S-Q-L; or alternatively as /ˈsiːkwəl/ "sequel") stands for Structured Query Language, which is both an ANSI and ISO standard language that was designed to query and manage data in relational database management systems (RDBMSs). An RDBMS is a database management system based on the relational model (a semantic model for representing data), which in turn is based on two…

WPF (.NET) Learning Notes

1. MVVM pattern and toolkit 1.1. MVVM pattern 1.1.1. View 1.1.2. ViewModel 1.1.3. Model 1.1.4. Connecting view models to views 1.1.4.1. Creating a view model declaratively 1.1.4.2. Creating a view model programmatically 1.1.5. Updating views in response to changes in the underlying view model or model 1.2. MVVM Toolkit 2. Data binding 2.1. Data context 2.2. Data flow 2.3. Data conversion 2.4. Data…