Dairon Medina Caro

Dairon Medina Caro

Random ramblings about Software Engineering, Linux and other daemons


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