Breve script para eliminar paquetes

Hoy he tratado de instalar un programa en mi ubuntu del portátil, para poder instalarlo me requería una serie de dependencias, concretamente con librerías de KDE (bastantes librerías); el problema ha venido cuando después de instalar dichas dependencias, la instalación del programa (que por cierto era el KTechLab y [2]) seguía sin poder realizarse. No me supone mayor problema, porque mi interés era solo por probarlo (aún está en beta), pero ahora el sistema se ha quedado un un montón de paquetes instalados que no quiero para nada, y que me consumen recursos. Podría entretenerme en desinstalar uno a uno los que yo he instalado, pero posiblemente quedarían dependencias sueltas en el sistema; por no hablar de que quizás no me acuerde de todo lo que he instalado.

Para solventar este problemilla, si hemos utilizado el Synaptic para realizar la instalación de los paquetes, podemos acudir a su historial, donde cómodamente podemos ver todos los paquetes instalados y/o actualizados ordenados cronológicamente (los que han sido instalados/actualizados desde el Synaptic).

El único inconveniente es que este histórico de paquetes está en un formato poco (o nada) útil (ni práctico). Para ello me he creado un (mini)script en bash que me permite rápidamente ejecutar la desinstalación de los paquetes que no me interesan y dejar mi sistema limpio tal y como estaba antes de intentar probar el programilla de pruebas.

El uso del script es muy sencillo y simple, he grabado un pequeño vídeo donde se ve como lo utilizo yo.

Create PDF from an image on PHP

Recently a friend asked me to create a script to make a PDF document from a set of images. The initial idea was get a table of 3x3 images randomly from a bunch. He need to run it into his web server, for this reason I think PHP (language supported) is the best option. He has a lot of cards, for example (the full set is about 25-30 cards):

Image of exampleExample cardExample card

And he want to allow people to download random cards from Internet. This random characteristic is the key he wants to reach. The solution is very simple as you can see below.

Example of final image of random cards

Example of final image of random cards

First, as always, I look for information on the net and I get a couple pages of interest.

Here we can get basics functions to create simple images as rectangles or lines:
http://bulma.net/body.phtml?nIdNoticia=671
As you can see the simplest way is use "gd" library. This library is commonly installed on PHP web servers. I make a couple of test and everything works, so I'll develop the script with it. Another solution will be "ImageMagick" library, in my case I can use both, but if you are interested you must test wich one you can use.

On this other page I find some function to get my image on a PDF file.
http://blog.unijimpe.net/crear-pdf-con-imagenes-en-php
With R&OS library you get "ezImage" function that is your solution. I must dig in by source code to understand all parameters because I can't find good documentation, but after couple tests I get my script work!

This script can be configured with the number of images on columns and rows. You can select the distance between images in pixels too. It's easy, I left some comments along the code.

I hope it will be usefull, here you can get my final script.

The script must be located on a folder next to all cards and the PDF library. I put here a compressed file with all together.

I hope it will be usefull, here you can get my final script.

Cards maker in PHP
Cards maker in PHP
creadorCartas.tar.bz2
525.2 KiB
197 Downloads
Details...