Author Archives: pof

Edit image resources inside an android APK file

Today I had to change some image resources in a APK file, the process is easy once you know it, so I just post it here for future reference: First use the tool “aapt” from the android SDK to list … Continue reading

Posted in android, linux | Tagged , , , | 4 Comments

[tip] generate transparent text images using imagemagick

To generate 100 images, containing numbers 0 to 100: for f in `seq 0 100` ; do convert -size 25×25 xc:transparent -font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf \ -fill $COLOR -pointsize 19 -draw “text 1,20 ‘$f'” res/drawable/notify_$f.png done

Posted in linux, minipost | Tagged , , , | Leave a comment

[tip] Change colors using imagemagick

This will replace all black color for white color: convert input.png -fill white -opaque black output.png

Posted in linux, minipost | Tagged , , , | Leave a comment

Algoritmo para generar claves WPA de las redes WLAN_XXXX y JAZZTEL_XXXX

El 15 de Diciembre de 2010 la página de SeguridadWireless publico un servicio que calculaba las claves WPA de los SSID WLAN_XXXX y JAZZTEL_XXX screenshot aqui. No publicaron el código, y al cabo de pocas horas la página dejó de … Continue reading

Posted in linux, wireless | Tagged , , , , , , , | 21 Comments

Generic load balancer for multiple WAN links

So you have two or more ADSL lines and want to use them all? … or maybe you’re stealing your neighbor’s wifi and you have more than one network available? … or you have cloned your SIM card and want … Continue reading

Posted in linux | Tagged , , , , , , , , | 13 Comments

pof headquarters reloaded

This is just a quick post to inform of the recent changes I’ve done with the server during the Christmas holidays: Switched from OVH RPS to Linode VPS. Moved the physical location of the server from France, to United Kingdom … Continue reading

Posted in linux, personal, pofHQ | Tagged , , , , , , , , , , , , | 6 Comments

Best solution to fully backup KVM virtual machines

Today I found the “” script from Daniel Berteaud which is IMHO the best solution to fully backup a libvirt managed virtual machine. The perl script is very flexible and allows for various configurations depending on your VM setup and … Continue reading

Posted in linux | Tagged , , , , | 30 Comments

Installing IETF MIB files in ubuntu 10.10

Ubuntu 10.10 (and I assume other Debian based distributions too) come without the IETF MIB files installed with the default Net-SNMP package. This means you can’t query OIDs directly by name anymore, such as “system.sysUpTime.0″. The easiest way to install … Continue reading

Posted in linux, minipost | Tagged , , | 4 Comments

php gettext problems on ubuntu server

I have gone crazy until I found this… to have gettext functions working in ubuntu server you need to add the proper locales to the system first, for example, to translate text in spanish: # cat /usr/share/i18n/SUPPORTED |grep -i “es_ES” … Continue reading

Posted in linux, minipost | Tagged | Leave a comment

Hint: take screenshot on Google Nexus One

As simple as this (needs a rooted phone): $ adb pull /dev/graphics/fb0 screenshot.raw $ dd bs=1920 count=800 if=screenshot.raw of=image.rgb32 $ ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 480×800 -i image.rgb32 -f image2 -vcodec png screenshot.png

Posted in HTC, linux | Tagged , , | Leave a comment