Friday, February 14, 2014

How to install xdebug in xubuntu

sudo apt-get install php5-dev php-pear
sudo pecl install xdebug


find / -name 'xdebug.so' 2> /dev/null

sudo gedit /etc/php5/apache2/php.ini
 

zend_extension="/usr/lib/php5/20121212/xdebug.so"
sudo /etc/init.d/apache2 restart

Wednesday, February 12, 2014

Friday, September 27, 2013

How to add and modify applications in the slingshot launcher of elementaryOS

Open up a terminal and type:


sudo apt-get install --no-install-recommends alacarte

Now, we're going to make alacarte work with slingshot. Type this in a terminal:


sudo scratch-text-editor /usr/share/alacarte/Alacarte/MenuEditor.py

This will open up a text file. Hit ctrl+F to search for 'applications.menu' and replace all with 'pantheon-applications.menu' (you have to replace applications.menu twice in the file). When done, close the file.

Now start the menu editor by typing 'alacarte' in slingshot or in a terminal

Gdk Gtk warnings and errors from the command line

The Unable to locate theme engine in module_path: "pixmap" messages are a known bug.
To fix it, install the gtk2-engines-pixbuf Install gtk2-engines-pixbuf package

Monday, July 22, 2013

Save jQuery active tab

$("#tabs").tabs({
activate: function (e, ui) {
 $.cookie('selected-tab', ui.newTab.index(), { path: '/' });
},
active: $.cookie('selected-tab')
});

systemd-timesyncd

sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd