LOADING 0%
// nav_menu.exe
Home Resume Blog Contact Order
English فارسی

BLOG

// ls -la ~/posts --sort=date

The Secret of Files We Delete but Never Truly Erase
Technology 2026-09-13

The Secret of Files We Delete but Never Truly Erase

Delete doesn't always mean data destruction. The operating system may just drop the file's address while its bits remain on the media. A deep dive into data recovery, HDD vs SSD, TRIM, and File Carving.

cat how-deleted-files-are-recovered.md
Year 2038: When the Unix Timestamp Breaks in PHP
Programming 2026-09-04

Year 2038: When the Unix Timestamp Breaks in PHP

A precise look at the Year 2038 problem: why Unix Timestamps overflow, PHP versions and 32/64-bit builds, and safe date storage patterns in MySQL.

cat year-2038-problem-php-unix-timestamp.md
How Did Al-Khwarizmi Turn Equations Into Algorithms? Implementing His Method in Python
Programming 2026-09-04

How Did Al-Khwarizmi Turn Equations Into Algorithms? Implementing His Method in Python

A historical and practical narrative of al-Khwarizmi's method for solving equations; from al-jabr and al-muqabala to completing the square, turned into a runnable Python algorithm.

cat al-khwarizmi-equations-algorithm-python.md
What Are Hash, Salt and Pepper? Why Passwords Should Not Be Simply Encrypted
Security 2026-09-03

What Are Hash, Salt and Pepper? Why Passwords Should Not Be Simply Encrypted

A deep, practical dive into secure password storage; the difference between encryption, hashing, and password hashing; the role of salt and pepper; offline attacks; and building a real system with Argon2id and Python.

cat password-hashing-salt-pepper.md
How Did Al-Biruni Measure Earth's Radius with a Mountain?
Science 2026-08-31

How Did Al-Biruni Measure Earth's Radius with a Mountain?

Reconstructing Al-Biruni's method for computing Earth's radius from a mountain's height and the dip of the horizon: triangulation, the horizon right triangle, and the full calculation in Python.

cat al-biruni-earth-radius.md
How to Build a Small Programming Language: From a Few Characters to Code That Actually Runs
Programming 2026-08-30

How to Build a Small Programming Language: From a Few Characters to Code That Actually Runs

Building a small but real programming language from scratch: variables, arithmetic, conditionals, loops, and error handling. Implementing the Lexer, Parser, AST, and Interpreter in Python and actually running a factorial program.

cat build-a-small-programming-language.md
How Do Touchscreens Detect Your Finger?
Technology 2026-08-30

How Do Touchscreens Detect Your Finger?

A deep dive into capacitive touchscreens: capacitors, the electrode grid, computing X/Y coordinates, detecting Tap, Swipe and Pinch Zoom, the touch controller, resistive vs capacitive, and the geometry code behind a button click.

cat how-touchscreens-work.md
How Does Morse Code Work? When Two Symbols Were Enough to Communicate
Technology 2026-08-29

How Does Morse Code Work? When Two Symbols Were Enough to Communicate

A deep dive into Morse code: why two symbols are enough to build a complete communication system, why E is just a single dot, the role of timing and silence, the history of the telegraph, building an Encoder/Decoder in Python, and an interactive text-to-Morse converter.

cat morse-code.md
How Does Bitcoin Work? Let's Build One Ourselves
Cryptocurrency 2026-08-28

How Does Bitcoin Work? Let's Build One Ourselves

A deep dive into how Bitcoin works by building a miniature version in Python from scratch: transactions, UTXO, Merkle roots, blocks, Proof of Work, mining, and tamper detection — with no bank in the middle.

cat how-bitcoin-works.md