How to get local files working with Ubuntu 11.10 and Spotify

Running in to the pesky “no codec found” when trying to play your local mp3 files in Spotify when you’re on a freshly installed Ubuntu 11.10? The problem is that Ubuntu recently changed the Qt media backend from libavcodec to gstreamer. While gstreamer plays (decodes) mp3-files just fine, Spotify wont have any of it. 

The solution is to manually add/install libavformat, libavutil and libavcodec52 from the previous Ubuntu version. Please notice that you need different set of files for the 32-bit and 64 bit version.

32-bit Ubuntu:
wget https://launchpad.net/~ubuntu-security/+archive/ppa/+build/2789249/+files/libavutil50_0.6.2-1ubuntu1.1_i386.deb

wget https://launchpad.net/~ubuntu-security/+archive/ppa/+build/2789249/+files/libavcodec52_0.6.2-1ubuntu1.1_i386.deb

wget https://launchpad.net/~ubuntu-security/+archive/ppa/+build/2789249/+files/libavformat52_0.6.2-1ubuntu1.1_i386.deb

sudo dpkg -i libavutil50_0.6.2-1ubuntu1.1_i386.deb && sudo dpkg -i libavcodec52_0.6.2-1ubuntu1.1_i386.deb && sudo dpkg -i libavformat52_0.6.2-1ubuntu1.1_i386.deb

64-bit Ubuntu:
wget https://launchpad.net/~ubuntu-security/+archive/ppa/+build/2789247/+files/libavutil50_0.6.2-1ubuntu1.1_amd64.deb

wget https://launchpad.net/~ubuntu-security/+archive/ppa/+build/2789247/+files/libavcodec52_0.6.2-1ubuntu1.1_amd64.deb

wget https://launchpad.net/~ubuntu-security/+archive/ppa/+build/2789247/+files/libavformat52_0.6.2-1ubuntu1.1_amd64.deb

sudo dpkg -i libavutil50_0.6.2-1ubuntu1.1_amd64.deb && sudo dpkg -i libavcodec52_0.6.2-1ubuntu1.1_amd64.deb && sudo dpkg -i libavformat52_0.6.2-1ubuntu1.1_amd64.deb

No Spotify-restart required, it just works ™.

Java 7 prevents FTP transfers on Windows when firewall is on

Experiencing problems with Java 7 and FTP transfers? You’re not alone since a nasty bug has slipped in to the seventh installment of Java and it’s causing major problems for its users.

The problem consists of the FTP command PORT in conjunction with Windows Firewall on Windows Vista and Windows 7. The firewall simply closed this connection which close the socket and the ftp-transfer fails.

This problem is especially troublesome for web developers that are using the java powered IDEs Eclipse and Netbeans. Since a simple upgrade to Java 7 will immediately cause the ftp transfers to stop working and the only remedy is to either close down (turn off) your firewall or downgrade to Java 6. Explicitly allowing the Javaw.exe process through the firewall did not solve the issue for me.

Oracle has been alerted of the issue on the 11th of August 2011, but unfortunately gave the bug a 4-Low in priority, which probably means that they don’t see the magnitude of the problem and we won’t see a fix for this issue anytime soon.