How to install more screensavers on mate desktop

This should work for all Ubuntu linux versions. It’s testet with Linux Mint Mate 17.1 Rebecca.

Install srceensaver packages:

sudo apt-get install xscreensaver-data-extra xscreensaver-gl-extra

Make them usable with Mate:

cd /usr/share/applications/screensavers
sudo perl -p -i -e 's/OnlyShowIn=GNOME;/OnlyShowIn=GNOME;MATE;/g' *.desktop

Now you have a big selection of screensavers in your preferences.

Credits to Sergey Potapov and bladerunner6978.
http://greyblake.com/blog/2013/02/02/install-more-screensavers-on-mate-desktop/

CrunchbangPlusPlus Add launcher to tint2 panel

After installation of #!++ are some launcher defined in the tint2 configuration, but not shown.
Open the file tint2rc from the menu by selecting

Settings -> tint2 -> Edit config file

menu

Add a L to the panel_items entry in front of TSC. L is for launchers.

panel

Go to the Launcher section.
There are four launcher_icon_app entries. The both in the middle do not work.
Change them to Thunar.desktop and geany.desktop. Gedit is not installed by default in #!++.
Creating launchers is very easy.

launcher

Restart tint2.

menu1

The result should be like the picture below.

tint2

How to define the viewport for different devices in WordPress

First download Mobile_Detect from here:

http://mobiledetect.net/

Extract the zip-file and upload only the file Mobile_Detect.php to
your theme folder where the function.php is located.

The following code detects if the site is viewed by a desktop, a mobile or a tablet.
Add this code to the end of your functions.php

function detect_mobile()
{
    if(  !class_exists(„Mobile_Detect“) ) {
        require_once „Mobile_Detect.php“;
    }
    $detect = new Mobile_Detect;

    $dev = „desktop“;
    if( $detect->isMobile() ){
        $dev = „phone“;
    }
    if( $detect->isTablet() ){
        $dev = „tablet“;
    }
    return $dev;
}

Add the following code to your header.php and change the viewport parameters for your needs.

<?php if (detect_mobile() == „phone“):?>
    <meta name=“viewport“ content=“width=1200, initial-scale=0.25″ />
<?php endif ?>
<?php if (detect_mobile() == „tablet“):?>
    <meta name=“viewport“ content=“width=1200, initial-scale=0.5″ />
<?php endif ?>

This is a save way to find out if you are on a tablet or a mobile, because the @viewport  css paragraph does not work everywhere.