Tag: Python

teaser

Checking passwords for breach with a local script

This post presents a simple Python script for checking passwords against the have i been pwned? breach database. It's intended for people who don't trust typing in passwords in an online form to check them. The full version of the script also evaluates the password strength by bits of entropy.

... read more ...

teaser

Introducing Filmgrainer

Filmgrainer is an image processing algorithm that adds noise to an image resembling photographic film grain. It's implemented in Python and runs as a command line utility on Linux platforms, installable with pip.

... read more ...

teaser

Running Gunicorn webserver from Python with state preserving object

This article demonstrates how to configure and run Gunicorn directly from Python 3 code without using configuration files or invoking gunicorn from the command line.

It also demonstrates how to setup a stateful backend with Gunicorn where a single Python object is kept alive between requests such that it can …

... read more ...

teaser

Setting individual mouse pointer speeds in Linux with micetune

This post is about micetune, a Python script I wrote for setting individual pointer speeds for different mouse devices in Linux, with the ability to reduce the speed beyond what the control center setting allows. The script changes the real pointer speed without involving acceleration.

... read more ...

teaser

Making parallel text PDFs for e-readers

This post explains the scripts: dualtext2pdf and dualtext2html that convert two Markdown formatted texts with alignment cues into a dual text or parallel text PDF. The scripts are intended for generating bilingual e-reader friendly PDFs to practice a foreign language.

... read more ...

teaser

Converting fonts to C source using bmfont2c.py script

I’d like to share a Python script I wrote for converting bitmap fonts generated by BMFont to C source code byte arrays and definitions suitable for rendering on a monochrome matrix LCD. The script outputs a C header and C source file ready to plug into some source code tree.

... read more ...