Introducing Django AI Validator: When Regex Isn't Enough

Regex is perfect for emails, postal codes, and other tidy little strings. It completely falls apart when the requirement sounds like, “make sure this bio feels professional” or “double-check that the listing actually describes a car.” You can throw more patterns at it, but you’re still judging syntax, not meaning. Django AI Validator is my answer for the semantic gap. It’s a fresh PyPI package that lets your Django fields tap into modern LLMs (OpenAI, Anthropic, Gemini, or even local Ollama) for on-the-fly validation and cleaning....

December 1, 2025 · 3 min · Maza Fard

TermForge: Modernizing My Terminal Workflow

I’ve always liked the original jazik/termenv project—it’s a clean Ansible playbook that bootstraps a great terminal environment. But after living in it for a while, I found myself wanting tighter macOS support, automatic iTerm2 provisioning, and some Kubernetes-focused tooling. I decided to fork the project and build out those extra pieces. The result is TermForge, my refreshed take on the “terminal in a box” idea. Why Fork Instead of PR? Initially, I explored incremental improvements to the upstream repo....

November 27, 2025 · 4 min · Maza Fard

C++ Resource Management: The Complete Picture

Let’s talk about keeping our C++ code clean and safe, specifically focusing on preventing those nasty memory leaks using Smart Pointers. 1. The Headache: Raw Pointers and Leaks The biggest headache with raw pointers (like int* data = new int(10);) is that you have to clean them up yourself (delete data;). If your function bails out early because of an error, a return statement, or an exception, that delete statement gets skipped....

November 26, 2025 · 5 min · Maza Fard

Linear Algebra: Beyond Numbers, A Language for Change

Linear Algebra: More Than Just Numbers Linear Algebra isn’t just another math subject you have to get through; it’s actually a powerful language for describing how things change, relate, and move in multi-dimensional space. It might look like a bunch of scary matrices and vectors at first, but trust me, it’s the secret sauce behind a lot of the tech we use every single day. The Cool Concepts At its core, linear algebra is about two main things:...

November 24, 2025 · 2 min · Maza Fard

Why Zero and Even Numbers Aren't Prime?

The Deal with Prime Numbers As you probably know, prime numbers are those special numbers that are only divisible by themselves and 1. This definition is basically the foundation of a lot of math concepts. But have you ever wondered why zero or those big even numbers aren’t invited to the club? Why Zero is Out The Definition Problem: By definition, a prime number needs to have exactly two distinct divisors....

November 24, 2025 · 2 min · Maza Fard