Tagpython
-
5-Min Tutorial: Building PyPI Packages
Turning a throwaway image-generation script (Imagenation, built on Google's Imagen API) into a real pip-installable PyPI package — restructuring into a module, wiring up pyproject.toml, and the build/twine upload dance.
Read the post -
5-Min Tutorial: Prototyping Web-Apps with Flask
Building a small leaderboard web-app with a Flask back-end and a jQuery/AJAX front-end — a brutally simple micro-framework server exposing GET/POST/DELETE API routes, plus the JavaScript that fetches and live-updates the page.
Read the post -
5-Min Tutorial: K-Means Clustering In Python
A five-minute tutorial on K-Means clustering in Python — with a live, animated visualizer that shows exactly how the clusters get selected: random centers, assign-to-nearest, recenter, repeat to convergence.
Read the post -
Twitter Sentiment Analysis with Neural Networks
Hand-coding a Feed-Forward Neural Network from scratch to classify tweets as positive or negative, comparing Bayesian probabilities, Keras word embeddings, and a hand-built feature vector (~70% accuracy) against a Keras NN.
Read the post -
Duckhunting - Stopping Automated Keystroke Injection Attacks
How RubberDucky / BadUSB automated keystroke-injection attacks work, and DuckHunt — a small defense that distinguishes a real user from an injected burst by typing speed, with four protection policies (Normal, Paranoid, Sneaky, Logging Only). Includes a playable NES-style Duck Hunt mini-game of the detection problem.
Read the post -
Capture The Keys - Chapter 2: Pylogger
My Python reimplementation of the earlier C++ keylogger, walking through building an efficient Windows keylogger with PyHook — keystroke capture, window-aware logging, log rotation, and typed-keyword triggers (status, dump, pause, kill) — as an educational security exercise.
Read the post





