A stateless application, i.e. a docker container, is one that neither reads nor stores information about its state from one time that it is run to the next. But for development mode is useful to keep the history of the commands that we write. In this post I will give you a hint for keeping those.


Tags: python

Published: 06/17/2020

The PYTHONBREAKPOINT environment variable can be set to the name of a callable. This can be the callable that starts a debugging session in another 3rd party debugger library.


uWsgi is designed to operate on WSGI callables found in python modules. It's super nice, but most of the defaults values are wrong.


If we create a PostgreSQL dump by default it does with owner and privileges. And this is usually fine, except if we want it for feeding our local environments. In this case (I hope), we use different users and passwords. So it would be nice if we can do the dump without that kind of permissions (without ownership and privileges).


Les comparto un docker-compose para aprender dynamodb con python. La compose tiene dynamodb, dynamodb-admin y un python3.8 alpine.


Celery: cómo asegurarse de ejecutar de a una tarea a la vez. Ensuring a task is only executed one at a time


El objetivo es agregar el nombre del branch en los commits. Muchas veces el nombre del branch tiene el número de ticket de jira. El objetivo es saber porqué se hizo un cambio x y nada mejor que tener la referencia al ticket.


Published: 05/19/2019

Si buscas configurar una vpn rápidamente este es el lugar. Con docker, docker-compose en un par de pasos tenes un red virtual privada..


La mayoria de los dockerfiles que usan python usan la imagen que está basada en debian y tiene la desventaja de ocupar bastante espacio y traer un montón de herramientas que son útiles durante el desarrollo (como por ejemplo bash) y no tan útiles para el ambiente productivo. Por esto últimamente se usa más y más imágenes basadas en Alpine. Una distribucion de linux (basada en busybox) que ocupa solo 5mb.


Conseguí un trabajo en el que me tramitaron la visa y se hicieron cargo de la relocalización. Si te dedicas a la programación es el momento para aprovecharlo, hay muchas ofertas para viajar por el mundo.


Estaba muy acostumbrado a debugear con mis queridos pdb.set_trace y de repente se apareció Docker en mi camino y perdi la posibilidad de attachearme al debugger. Por eso ahora descubr WDB y funciona de maravilla.


Acostumbrado a usar .format() y a su sintaxis, esta vez quise ver cómo hacerlo con f-strings. Tenia que formatear un ancho fijo, llenar con espacios y lo hice con f-strings