Dairon Medina Caro

Dairon Medina Caro

Random ramblings from yet another programmer.

On IPython and other utilities I use to profile Python code.

Jul 21, 2018

While developing with Python, often we have the need for testing different algorithm implementations to ensure they are efficient in both time and space to meet your business requirements.

Read More

Hey command, ping me when you are done

Jun 10, 2018

Certain commands take a lifetime. When I’m running tests, installing dependencies, deploying to a server or creating infrastructure using AWS CloudFormation, I usually switch to another window to not waste that time looking at the screen while the operations happen. But also I like to know when the task is...

Read More

Released a VerneMQ plugin to monitor the cluster using AWS CloudWatch.

Jun 9, 2018

Monitoring your systems is very important for production environments. When deploying a MQTT broker or a cluster of MQTT brokers, the DevOps team needs to know the health of the MQTT servers and uses monitoring data to prevent future problems or plan scaling. I ocassionally contribute to the VerneMQ project...

Read More

Using Faker to make your Python tests awesome

Feb 25, 2018

When you are testing your Python apps, you will find in the need for generating some dummy data that is as close as possible to real user input and also not have to worry about it containing personally identifying information (PII) for security reasons (This may seem trivial but us...

Read More

Pipenv - Managing your Python projects like a boss

Jan 7, 2018

I’m a Pythonista by nature, I always have been. I play with other languages and enjoy them, but Python is my favorite language that I still get back to.

Read More

My goals for 2018

Jan 1, 2018

2017 came to an end yesterday and I was thinking about how many good things happened this year: I read three Erlang books and became more proficient in that language that I really love more and more every day, I stayed another year at Gooee and still happy and loving...

Read More

Setting up a Golang development environment on Ubuntu Linux

Feb 21, 2016

Read More

Make Short URLs with Python and goo.gl

Oct 22, 2012

Hi, on an application im working on that generates very long urls and need to show it easy for users i thinked on some online services that generates short URLs like bit.li or goo.gl and come with that script to make the urls shorten from Python programing language, i decided...

Read More

Send e-mails with attachment in Python

Feb 11, 2010

Now im working on a little application that have to send emails with attachments using Python. I came up with this code that I’m sharing here and hope can be helpful/reusable to somebody:

Read More

Disable USB storage devices in Linux

Dec 21, 2009

For security reasons, mainly in schools where kids mess around with flash drives containing unappropriated information, we are completely disabling USB storage devices on the computers at lab.  It is important because students can bring a virus or also can take out any private information. There is an easy way to...

Read More

Show flags in gnome keyboard indicator

Dec 17, 2009

One of the things that i dont like of Gnome Desktop is the keyboard indicator applet  that not show country flags like KDE desktop. Searching in San Google i found a solution to fix it, by default gnome support flags but most distributions dont have this feature enabled, to enable...

Read More

Recursive file search using Python

Nov 12, 2009

I wrote this script this script to make recursive searches in a specified folder in Linux, including all its subdirectories, just like the find command does. Here is it and hope it can be useful to someone or at least have fun with it :):

Read More

PHP "short tags": a bad practice

Nov 11, 2009

The use of php “short tags”, for example:<? echo "Hola Mundo!"; ?> is a bad and common practice that many PHP developers still use. The short tags format is only available using the function short_tags() in PHP3 or activating the short_open_tag in the php.ini configuration file(it comes activated by default)....

Read More

Join PDF files in linux

Oct 20, 2009

Hello linux users: in this post i will show how to join two or more PDF files into one. You have to install the Ghostscript driver to do that, typing in a terminal(is for Debian and Ubuntu):

Read More

Linux:how to mount partitions at startup

Oct 16, 2009

If you want to add a extra drive/partition and want it to automatically mount on Linux system startup, then here is what i did: Firstly you need to gather the information of the drive/partition you want to mount. To do it open a Terminal and type the following command: $ blkid

Read More

Jquery Ctrl + Key function

Oct 9, 2009

Hello friends, in a recent PHP app im working i needed to make a Control+G key combination in a form to submit the data to a database. I create a Jquery function to make it easy and use with all Control + combinations, now i share it with the comunity,...

Read More

Crear pergamino en GIMP

Sep 30, 2009

Crea una imagen de 500x300 Ve a la pestaña de capas e inserta 4 capas transparentes como se muestra a continuación: Sobre la capa "papel", seleccionar la herramienta "Seleccióon Rectangular" R Hacer una selección como se muestra: Ahora vas al menú Seleccionar->Distorción y aparecerá una ventana, puedes modificar los parámetros...

Read More

Python:Notificaciones con DBus

Jul 28, 2009

Hola es este post voy a mostrar como enviar notificaciones al escritorio Gnome mediante Python y DBus como se muestra en la imagen siguiente:

Read More

Rotar videos con memcoder y mplayer en linux

May 7, 2009

A veces nos encontramos con vídeos que se encuentran rotados, como los copiados de una Ipod o reproductor MP4. En Linux existen soluciones para rotarlos. Si desea rotar su vídeo y guardarlo ya en la posición que desea puede hacerlo con MENCODER de la siguiente forma: Abra una terminal y...

Read More

Calcular el trimestre actual en PHP

May 7, 2009

Hola amigos, ayer mientras trabajaba me vi en la necesidad de calcular el trimestre del año dado el número del mes y cree esta pequeña función en PHP que permite realizar este cálculo, si no se le pasa ningún mes ella tomará el mes actual por defecto. Aquí les dejo...

Read More