Zniknelo menu w KDE po upgradzie systemu?

Jako user uruchomic:

kbuildsycoca4 --noincremental

Jeśli nie pomaga:

cd /etc/xdg/menus/
ln -s kde-4-applications.menu applications.menu

Problem z aktualizacja systemu przez blokowanie sysvinit i util-linux

Rozwiazanie:

Zaktualizowac je naraz

# emerge --update sys-apps/sysvinit sys-apps/util-linux -av

Python update

Musisz mieć :

emerge eix

Procedura:

 emerge -1 =dev-lang/python-2.7*
 eselect python set python2.7
 emerge -C "<=dev-util/boost-build-1.44.0" "<=dev-libs/boost-1.44.0"
 emerge -1 --nodeps dev-python/setuptools portage
 emerge -1 --keep-going $(eix -cI | grep -F 'dev-python' | cut -f 2 -d " ") --jobs=2
 python-updater -dmanual
 emerge -C "<dev-lang/python-2.7"

Wyszukiwanie nested lists w pythonie

przykład:

l = [['en', 60, 'command'],['sq', 34, 'komand']]

Wyszukanie podlisty zawierającej ‘sq’

next(subl for subl in l if 'sq' in subl)

Wyszukanie podlisty zawierającej ‘sq’ w [0]:

next(subl for subl in l if subl[0] == 'sq')

Resetowanie hasła Magentoo

Domyślnie:

login : admin 
password : 123123

Resetowanie w bazie:

SELECT * FROM admin_user;
UPDATE admin_user SET password=CONCAT(MD5('qXhaslo'), ':qX') WHERE username='admin';

‘qX’ oraz ‘haslo’ zmien na cokolwiek chcesz

W phpMyAdminie znajdz tabele admin_user i wybierz typ pola jako MD5

Linux ERD ?

Oracle SQL Developer Data Modeler

http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/i...

Narazie jedyny ktory mi sie mie wykrzacza.

BUGFIX: fullscreen Youtube i Openoffice w Compiz

To get both OpenOffice AND You Tube full screen working at the same time I had to disable “Legacy Full Screen Support” in the Workarounds Plug-in and also disable the “Unredirected Full Screen Windows” option in the General section.

Dodanie do akceptowanych certyfikatow certyfikatu z https

Pobranie certyfikatu do pliku

 openssl s_client -connect <your tracker.com>:443 </dev/null 2>/dev/null | sed -n \
 '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' >> /etc/ssl/certs/ca-certificates.crt

Rehash certyfikatow :

 # /etc/ssl/certs/
 # c_rehash

Jesli rtorrent odmowi uzycia certyfikatu, nalezy

 $ rtorrent  -o http_capath=/etc/ssl/certs

Skrypcik wszyskorobiacy:

 #!/bin/sh
 TRACKER=my-secure-tracker.tld

 openssl s_client -connect $TRACKER:443 </dev/null 2>/dev/null | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' >> /etc/

Usuniecie aplikacji z autostart w kde 4

Jest kilka miejsc w ktore trzeba zajrzec :

 ~/.kde4/Autostart  
 ~/.config/autostart/  
 /etc/xdg/autostart/  
 echo $(kde4-config --prefix)/share/autostart/  

Półprzezroczyste tła png

Semi-transparent backgrounds are nice. They would be more popular, but Internet Explorer doesn't support .png transparency. There are a few clunky workarounds. Here's another that's a little less clunky.

Update: Here is probably the easiest way. You can stop reading this page now.