Converting PDF to multiple PNG-files

So, to convert a png to multiple PNG-file you can use imagemagick like this :


$ imagemagick <file.pdf> <output.png>

It will however do the numbering without prefixing the correct number of zeros (0,1,2,3,4,5,6,99,100 etc-). If what you want is to have a sequence like this – 000,001,002…..010,011,012….0100 etc then you can do like this instead to always have at least 3 digitst on the numbers :


$ imagemagick <file.pdf> <output%03d.png>

WINS name resolution on Ubuntu 14.04

To get windows name resolution on Ubuntu 14.04 remember to install libnss-winbind package. It will work out of the box after that.

 sudo apt-get install libnss-winbind 

Additionally add “wins” to the end of the hosts:-line in /etc/nsswitch.conf. My file looks like this.

hosts:        files mdns4_minimal [NOTFOUND=return] dns wins

when that is said there is a bugreporte on launchpad

Running Netflix on Ubuntu

For some time it has been possible to run Netflix on linux using a Windows version of Firefox. This is not necessary anymore.
This link contains the instruction on how to install Silverlight on your Ubuntu.

There is not much to say other than – it just works.

Qt MySQL on Windows

I’ve recently used a MySQL database using Qt. this works great on Linux, and not a good on Windows. The MySQL client library is not bundled with the Qt SDK, but I found a nice site that goes trough the process of installing the library.