Skip to content
Phuc's Blog

Archives

All the articles I've archived.

202626
November4
  • CUDA Parallel Execution and Optimization

    A systematic optimization guide in CUDA: applying the APOD cycle to turn a naive reduction tree into a high-performance warp-shuffle kernel.

  • Classification and Softmax Regression

    A simple, visual guide to Classification, One-Hot Encoding, the Softmax Function, Cross-Entropy Loss, and its clean gradient derivation.

  • Generalization and Model Selection

    A simple guide to generalization, model complexity, the 3-way data split, and K-Fold cross-validation in Machine Learning.

  • Linear Regression from Scratch with PyTorch

    A comprehensive guide to Linear Regression from scratch with PyTorch — data handling (Z-score normalization, One-Hot Encoding, Log Transformation), Forward Pass, MSE Loss, Mini-batch SGD, and Modular OOP Design.

October4
  • GPU Compute Architecture

    A simplified view of computing architecture in GPU, explore many interesting concepts about this

  • Self-Attention Mechanism

    A simple explanation of Self-Attention Mechanism in Transformer architecture.

  • Backpropagation Calculus

    A comprehensive mathematical guide to Backpropagation Calculus — understanding chain rule, partial derivatives, and gradient flow in Neural Networks.

  • What is a Neural Network?

    A friendly guide to understanding the concepts of Neural Networks, part of the AI series for learning from scratch.

September7
August2
July9
  • Introduction of a baisc CUDA Program

    A comprehensive guide to CUDA programming: setting up Neovim IDE, understanding thread hierarchies, error handling, GPU timing, and analyzing vector addition kernels.

  • Domain-Driven Design (DDD)

    A comprehensive, developer-friendly guide to Domain-Driven Design (DDD) principles, architecture, and best practices for building complex software systems.

  • Firebase Cloud Messaging (FCM)

    A comprehensive, developer-friendly guide to Firebase Cloud Messaging (FCM) architecture, server setup, and code implementations.

  • Introduction to Internet of Things (IoT)

    A comprehensive, developer-friendly guide to understanding the Internet of Things (IoT), its applications, and how to get started with IoT development.

  • Hangfire Background Job

    A background job processing framework for .NET applications that allows you to run tasks asynchronously, schedule recurring jobs, and manage job execution with a user-friendly dashboard. Includes a complete PostgreSQL integration guide.

  • Understanding Message Brokers

    A simple, developer-friendly guide to message brokers, how they act as buffers to prevent server crashes, and how to choose the right one.

  • Optimistic vs Pessimistic Concurrency Control

    A comprehensive, developer-friendly guide to understanding the differences between optimistic and pessimistic concurrency control in database systems, including their use cases, advantages, and disadvantages.

  • Understanding RabbitMQ from scratch

    A simple, developer-friendly guide to RabbitMQ, how it acts as a message broker to prevent server crashes, and how to choose the right one.

  • Web Push Notification

    A comprehensive, developer-friendly guide to web push notifications, how they work, and how to implement them using Firebase Cloud Messaging (FCM).

20231
June1