Update PHP to 5.6 @ debian wheezy

I’ve just updated PHP version to 5.6. Check the migration guide for incompatibilities (no big thing there). You will get slightly better performance and some new features.

# sudo nano /etc/apt/sources.list.d/dotdeb.list

And insert these two lines:

deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all

And add the key:

# wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add -

You are ready to go, just update & upgrade your system.

# apt-get update && apt-get upgrade

If you get The following packages have been kept back: you have to run:

# apt-get dist-upgrade

 

Android Studio – connection error

If you are experiencing a connection error trying to update Android Studio ( – Connection error. Please check your network connection and try again), you probably googled that’s an error in Android Studio.

connection-error.fw

Quick fix

Just add the following line to .vmoption file. It is located in your installation path (aka C:\Program Files (x86)\Android\android-studio\bin). There are two files you should check: studio.exe.vmoptions and studio64.exe.vmoptions.  Change the one you are using or both just to be sure.

-Djava.net.preferIPv4Stack=true

or you prefer IPv6 (if you don’t know what IPv6 is, just use the first line)

-Djava.net.preferIPv6Addresses=true

 Still not working?

Try to run your Android Studio directly from installation path (C:\Program Files (x86)\Android\android-studio\bin) by clicking studio.exe or studio64.exe and update the Android Studio then. After update you are able to run Android Studio the usual way.