Posts tagged with “python”

Use docker secrets in Django application

Use docker secrets in Django application

Deploying Django on Docker Swarm? I needed a way to securely handle secrets, so I used Docker’s built-in secret management and added a simple helper in settings.py. Works great for both dev and production—no more hardcoding secret keys!

Read more...
Simple image dithering algorithm

Simple image dithering algorithm

Got into a Reddit convo about showing JPEGs on e-ink displays with ESP8266—and turns out, you don’t need an external service to dither images. Just a bit of code magic in C++ or Python can convert JPEGs to black and white right on the device. Simple and fun!

Read more...