pdf2epub: Building a Self-Hosted PDF→Kindle Pipeline

pdf2epub: Building a Self-Hosted PDF→Kindle Pipeline

A Go CLI that turns scanned, image-only PDFs into Kindle-ready reflowable EPUBs — and everything that went sideways along the way. I had a real problem to solve: a scanned copy of an old Arabic memoir — 420 pages, image-only PDF, no text layer at all. I wanted to read it on a Kindle, reflowable, in Arabic, with proper chapters. Nothing off-the-shelf did that well without uploading a personal scan to some cloud OCR service, which didn’t sit right with me. ...

August 13, 2026 · 24 min · Ahmed Magdy
LLM Inference Architecture

Building a Local LLM Inference API for Semantic Similarity

At whatisgoing.com, we needed a reliable way to extract named entities from multilingual news articles — especially Arabic news — where the same entity can appear in different linguistic forms. For example: “The Ukraine War” and “The Russian Invasion” both refer to the same geopolitical event — the ongoing conflict in Eastern Europe — yet share no overlapping words. Traditional keyword or similarity-based methods fail to capture such semantic equivalence. ...

October 5, 2025 · 6 min · Ahmed Magdy