All posts
Every tutorial and teardown, newest first. Type to filter, or jump to a topic.
2026 12 posts
- 9 min read
What Is Salting? Password Salting Explained With Python Code
What is salting? A salt is a unique random value added to each password before hashing. See why plain SHA-256 leaks, then salt by hand and with Argon2id.
- 9 min read
MCP vs API: What Actually Differs, With a Side-by-Side Demo
MCP vs API: an API is a contract for programmers, MCP is a protocol that lets AI apps discover and call tools. Same notes search built both ways, compared.
- 7 min read
kubectl Set Context: Switch Clusters and Namespaces Safely
kubectl set context explained: create or edit a context with kubectl config set-context, switch with use-context, change the namespace, and avoid the wrong cluster.
- 8 min read
Claude Fable 5.2 Effort Levels, Tested: 26 Runs vs Opus 5.5 and Fable 5.1
Anthropic says Fable 5.2 at High matches Opus 5.5 for half the cost; an independent test found it 4.5x pricier. I ran 26 runs on three models at medium, high and xhigh, with costs from transcripts.
- 9 min read
ID Token vs Access Token: What Each One Is For (with a Demo)
ID token vs access token: the ID token tells your app who signed in, the access token tells your API what the caller may do. Real decode and validation runs.
- 9 min read
MCP Authorization: Protect an MCP Server with OAuth 2.1
How MCP authorization works: the 401, protected resource metadata and OAuth 2.1 flow, plus a runnable Python SDK server that rejects requests without a valid token.
- 11 min read
Claude --dangerously-skip-permissions: What It Does and When to Use It
What claude --dangerously-skip-permissions really does, why it refuses to run as root, the six Claude Code permission modes, and safer ways to stop the prompts: allow rules, sandbox, auto mode.
- 27 min read
I Ran DeepSeek's dsh-superagent End to End: A Hands-On Deep Dive
A hands-on test of DeepSeek's dsh-superagent: I installed it on a Mac, had it fix a real GitHub issue end to end, and explain its two-layer authorization gate, Mandates and risks.
- 19 min read
Ghidra MCP: Install and Use GhidraMCP for AI Reverse Engineering
Ghidra MCP setup, tested: install Ghidra 12.1.4 and GhidraMCP 2.0 (GUI or headless), connect Claude Code, then find zlib's Adler-32 in a stripped binary.
- 9 min read
What Is an AI Agent? How to Build One from Scratch in Python
What makes an AI agent different from a chatbot, the agent loop explained, and a working Python agent with tools built step by step on the Claude API.
- 8 min read
What Is an MCP Server? How to Build One in Python
What the Model Context Protocol is, how MCP servers expose tools, resources and prompts, and how to build, test and connect one with the Python SDK 2.x.
- 6 min read
Understanding OpenDAL Storage in Dify: A New Year's Journey
How self-hosted Dify stores files with OpenDAL: OPENDAL_FS_ROOT, .env settings and Docker volume mounts explained, plus fixes for permission errors.
2025 13 posts
- 16 min read
Agentic Frameworks Compared: LangGraph, CrewAI & More
What an agentic framework is, how LangGraph, LlamaIndex, OpenAI Agents SDK, Google ADK and CrewAI compare, plus agentic AI coding frameworks like Claude Code.
- 10 min read
STRIDE Threat Modeling Explained with an Example
STRIDE threat modeling walked through on a chat app: spoofing, tampering, repudiation, information disclosure, DoS and elevation of privilege.
- 7 min read
Kubernetes Control Plane Components Explained
What each Kubernetes control plane component does: etcd, kube-apiserver, kube-scheduler, controller managers, plus kubelet, kube-proxy and CoreDNS.
- 5 min read
A 12 Factor Crash Course in Python: Build Clean, Scalable FastAPI Apps the Right Way
Let’s be honest—plenty of apps “work on my machine” but self-destruct the moment they meet the real world. Configs hardcoded, logs missing, environments confused, and deployments that feel like an…
- 4 min read
Golang Range Loop Reference - Why Your Loop Keeps Giving You the Same Pointer (and How to Fix It)
When I first started learning Go, I thought I was doing everything right—until I ran into a weird bug about golang range loop reference. I was iterating over a list of Book structs (of course, I…
- 8 min read
Terraform Associate 003 Exam: How to Prepare
Today, I officially passed the HashiCorp Certified: Terraform Associate (003) exam! 🚀
- 7 min read
Terraform Meta Arguments Unlocked: Practical Patterns for Clean Infrastructure Code
I’ve always found Terraform meta arguments a bit confusing at first glance—not count, for_each, but things like connection, provisioner, depends_on, source and lifecycle often seem straightforward…
- 19 min read
Mastering Terraform with AWS Guide Part 1: Launch Real AWS Infrastructure with VPC, IAM and EC2
So… you’ve heard about Terraform. Maybe your team is using it, maybe your cloud dreams demand it — or maybe, like me, you’ve been deep in the Kubernetes jungle (My blog posts about K8S) and now want…
- 17 min read
ExternalName and LoadBalancer - Ultimate Kubernetes Tutorial Part 5
Hey, welcome back to my ultimate Kubernetes tutorials! So far, we’ve explored ClusterIP and NodePort, but what if you need to route traffic outside your cluster or expose your app with a real…
- 15 min read
NodePort vs ClusterIP - Ultimate Kubernetes Tutorial Part 4
Hey, welcome back to my ultimate Kubernetes tutorials! Now that our 1 master + 4 worker node cluster is up and running, it’s time to dive into NodePort vs. ClusterIP—two key service types in…
- 18 min read
Ultimate Kubernetes Tutorial Part 3: A Streamlined Kubernetes cluster setup
Welcome back to the Kubernetes tutorial series! Now that our base image and local server are ready, it’s time for the real action—Kubernetes cluster setup with Flannel. I’ll spin up one Kubernetes…
- 7 min read
Ultimate Kubernetes Tutorial Part 2: DNS server and NTP server Configuration
Hey there! Ready to take this Kubernetes setup to the next level? 🚀 In Part 1, we got our base VM image up and running—nice work! Now, in Part 2, I am going to clone that image to set up a local…
- 22 min read
Kubernetes Tutorial Part 1: Multi-Node Cluster on a Mac
Build a multi-node Kubernetes lab on a Mac: plan the cluster and networking, create a Rocky Linux 9 base VM in VMware Fusion and prepare the nodes.
2024 40 posts
- 12 min read
Transformers Demystified - Day 2 - Unlocking the Genius of Self-Attention and AI's Greatest Breakthrough
Transformers are changing the AI landscape, and it all began with the groundbreaking paper “Attention is All You Need.” Today, I explore the Introduction and Background sections of the paper,…
- 2 min read
Terms Used in "Attention is All You Need"
Below is a comprehensive table of key terms used in the paper “Attention is All You Need,” along with their English and Chinese translations. Where applicable, links to external resources are…
- 3 min read
Diving into "Attention is All You Need": My Transformer Journey Begins!
Today marks the beginning of my adventure into one of the most groundbreaking papers in AI for transformer: “Attention is All You Need” by Vaswani et al. If you’ve ever been curious about how modern…
- 4 min read
Groundbreaking News: OpenAI Unveils o3 and o3 Mini with Stunning ARC-AGI Performance
On December 20, 2024, OpenAI concluded its 12-day “OpenAI Christmas Gifts” campaign by revealing two groundbreaking models: o3 and o3 mini. At the same time, the ARC Prize organization announced…
- 9 min read
Ray Serve Guide: Autoscaling, FastAPI & Ollama
How Ray Serve works: deployments, autoscaling, batching and multi-model pipelines, and when to choose Ray Serve over FastAPI or Ollama.
- 4 min read
Quantization: How to Unlock Incredible Efficiency on AI Models
Quantization is a transformative AI optimization technique that compresses models by reducing precision from high-bit floating-point numbers (e.g., FP32) to low-bit integers (e.g., INT8). This…
- 5 min read
Weight Initialization: Unleashing AI Performance Excellence
Weight Initialization in AI plays a crucial role in ensuring effective neural network training. It determines the starting values for connections (weights) in a model, significantly influencing…
- 14 min read
Knowledge Distillation: How Big Models Train Smaller Ones
What knowledge distillation is, how soft targets, temperature and the distillation loss work, the main types, LLM examples like DistilBERT and DeepSeek-R1 distills, and how it compares with quantization and pruning.
- 5 min read
The Hallucination Problem in Generative AI: Why Do Models “Make Things Up”?
Why generative AI models hallucinate: noisy training data, architecture limits and prompts, how it misleads users, and ways to reduce made-up answers.
- 5 min read
Discover the Power of Zero-Shot and Few-Shot Learning
Transfer learning has revolutionized the way AI models adapt to new tasks, enabling them to generalize knowledge across domains. At its core, transfer learning allows models trained on vast datasets…
- 5 min read
Empower Your AI Journey: Foundation Models Explained
In the rapidly evolving field of AI, the distinction between foundation models and task models is critical for understanding how modern AI systems work. Foundation models, like GPT-4 or BERT, provide…
- 4 min read
Pretraining vs. Fine-Tuning: What's the Difference?
Pretraining vs fine-tuning in AI: what each stage does, masked and causal language modeling, key differences, why they are separate, and real uses.
- 5 min read
What Is an Embedding? The Bridge From Text to the World of Numbers
An embedding is the “translator” that converts language into numbers, enabling AI models to understand and process human language. AI doesn’t comprehend words, sentences, or syntax—it only works with…
- 3 min read
Fine-Tuning Models: Unlocking the Extraordinary Potential of AI
Fine-tuning is a key process in AI training, where a pre-trained model is further trained on specific data to specialize in a particular task or domain.
- 5 min read
Discovering the Joy of Tokens: AI’s Language Magic Unveiled
Today’s topic might seem a bit technical, but don’t worry—we’re keeping it down-to-earth.
- 3 min read
Parameters vs. Inference Speed: Why Is Your Phone’s AI Model ‘Slimmer’ Than GPT-4?
This was covered in a previous issue: What Are Parameters? Why Are “Bigger” Models Often “Smarter”?
- 6 min read
What Is Prompt Engineering and How to "Train" AI with a Single Sentence?
Prompt Engineering is a core technique in the field of generative AI. Simply put, it involves crafting effective input prompts to guide AI in producing the desired results.
- 4 min read
What Are Parameters? Why Are “Bigger” Models Often “Smarter”?
In deep learning, parameters are the trainable components of a model, such as weights and biases, which determine how the model responds to input data. These parameters adjust during training to…
- 5 min read
7 Key Insights on the Self-Attention Mechanism in AI Magic
How self-attention works in Transformers: the origin of the attention mechanism, how relevance scores link words, real-world uses and its limitations.
- 5 min read
Why is the Transformer Model Called an "AI Revolution"?
Hello, and welcome to the first edition of Daily AI Insight, a series dedicated to unraveling the fascinating world of artificial intelligence, one bite-sized topic at a time.
- 5 min read
Remove Duplicate Photos with a Python Script
A Python script, written with ChatGPT, that finds duplicate photos by xxhash checksum and cleans them up, with cached checksums for fast reruns.
- 5 min read
Honored to Pass AI-102!
So, I did a thing. I earned my first Microsoft certificate: Azure AI Engineer Associate! 🎉
- 2 min read
Install Azure-Cli on Mac
Fixing azure-cli install failures on macOS: the Homebrew OpenSSL and Python permission errors I hit, and the chown and brew unlink commands that worked.
- 2 min read
Overfitting! Unlocking the Last Key Concept in Supervised Machine Learning – Day 11, 12
Days 11-12 of Andrew Ng's Supervised Machine Learning course: overfitting vs underfitting, and fixing them with more data, simpler models or regularization.
- 2 min read
Grinding Through Logistic regression: Exploring Supervised Machine Learning – Day 10
Today is mainly learning about “Decision boundary”, “Cost function of logistic regresion”, “Logistic loss” and “Gradient Descent Implementation for logistic regression”.
- 2 min read
Master Gradient Descent and Binary Classification: Supervised Machine Learning – Day 9
Oh boy… I was sick for almost two weeks 🤒 After a brief break, I’m back to dive deep into machine learning, and today, we’ll revisit one of the core concepts in training models—gradient descent.…
- 4 min read
Master Learning Rate and Feature Engineering: Supervised Machine Learning – Day 8
Today I started with Choosing the learning rate, reviewed the Jupyter lab and learnt what is feature engineering.
- 4 min read
Master Feature Scaling & Gradient Descent: Supervised Machine Learning – Day 7
Day 7 of Andrew Ng's Supervised Machine Learning course: why feature scaling matters and how to check that gradient descent is converging.
- 4 min read
Finished Machine Learning for Absolute Beginners - Level 1
As you know I was in progress learning Andrew Ng’s Supervised Machine Learning: Regression and Classification, it’s so dry!
- 2 min read
Supervised Machine Learning – Day 6
Today I spent 10 30 60 mins reviewing previous notes, just realized that’s a lot.
- 2 min read
Mastering Multiple Features & Vectorization: Supervised Machine Learning – Day 4 and 5
Day 4 was a long day for me, just got 15mins before bed to quickly skim through the video “multiple features” and “vectorization part 1”.
- 3 min read
Supervised Machine Learning – Day 2 & 3 - On My Way To Becoming A Machine Learning Person
Day 2 I was busy and managed only 15 mins for “Supervised Machine Learning” video + 15 mins watched But what is a neural network? | Chapter 1, Deep learning from 3blue1brown.
- 8 min read
Supervised Machine Learning - Day 1
As I’ve been advancing technologies of my AI-powered product knowlege base chatbot which based on Django/LangChain/OpenAI/Chroma/Gradio which is sitting on AI application/framework layer, I also have…
- 1 min read
Fix Font in VSCode Terminal
After done the configuration in Terminal Mastery: Crafting A Productivity Environment With ITerm, Tmux, And Beyond, we got a nice terminal:
- 6 min read
Terminal Mastery: Crafting a Productivity Environment with iTerm, tmux, and Beyond
Rewind a decade or so, and you’d find me ensconced within the embrace of a Linux terminal for the duration of my day. Here, amidst the digital ebb and flow, I thrived—maneuvering files and folders…
- 5 min read
An Adventurer's Guide to Base64, Base64URL, and Base32 Encoding
A plain-English guide to Base64, Base64URL and Base32 encoding: how each one works, data URIs, URL-safe variants, and when to choose which scheme.
- 3 min read
Vue: Fix the Blank index.html in WebHistory
Why a built Vue app shows a blank index.html when opened from disk: createWebHistory vs createWebHashHistory, absolute asset paths, and the fix.
- 4 min read
Crafting A Bash Script with Tmux
How I wrote a Bash script that rebuilds my six-window tmux dev environment (Django, Celery, Flower, Vue, Heroku) after a reboot, services included.
- 6 min read
Mastering Openssl Command and NSS Database Management
Practical OpenSSL and certutil guide: inspecting certificates, managing PKCS#12 (PFX) files, and working with the NSS certificate database.
- 12 min read
Unlocking Web Security: Master JWT Authentication
Understand JWT claims, token structure and signing algorithms, then build JWT authentication from scratch in Node.js with complete, runnable example code.
2023 4 posts
- 6 min read
OAuth 2.0 Authorization Code Flow, Step by Step
The OAuth 2.0 authorization code flow step by step: each redirect and request, why the server returns a code instead of an access token, and its benefits.
- 6 min read
OAuth 2.0 Grant Types Explained (Is PKCE One?)
The OAuth 2.0 grant types compared: authorization code, implicit, password, client credentials and refresh tokens, plus where PKCE fits.
- 7 min read
HTTP Basic Authentication Explained (RFC 7617)
How HTTP Basic Auth works: the Authorization header, Base64 username:password, why it needs HTTPS, plus a Node.js and TypeScript middleware example.
- 7 min read
Password Authentication in Node.js: A Step-by-Step Guide
Password-based authentication remains one of the most common and widely used methods to verify user identity in various online systems. It involves users providing a unique combination of a username…
2022 1 post
2021 1 post
2020 1 post
2018 2 posts
- 5 min read
Docker Notes
My Docker notes: building images with a multi-stage Dockerfile or docker commit, export and import, and running a private Docker registry.
- 8 min read
Git Notes
My Git cheat sheet: config, branches, fast-forward merge, clone, checkout, remotes, log, diff, stash, squash, and how to revert or reset commits.
No posts match that. Browse all topics