Hodžův blog

Archive for Červenec, 2011

30 Čvc

HowTo fix a problem „DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha“ in Pyzor

After a fresh Pyzor install I’m getting this error message: # aptitude install pyzor # pyzor discover /usr/lib/pymodules/python2.6/pyzor/__init__.py:11: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5 import multifile downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x

30 Čvc

HowTo fix a problem „loading from master file managed-keys.bind failed: file not found“ under Debain Squeeze

# touch /var/cache/bind/managed-keys.bind # chown root:bind /var/cache/bind/managed-keys.bind # /etc/init.d/bind9 restart # tail -n 50 /var/log/daemon.log

24 Čvc

HowTo remove unwanted whitespace with vim

Delete all trailing whitespace (a space or a tab) at the end of each line with: :%s/\s\+$//

21 Čvc

HowTo restore the ‚Show Desktop‘ shortcut in Windows XP or Windows 2003

1) Open notepad. 2) Copy the below code. [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop 3) Save the file with the name ShowDesktop.scf some where on your system or on your desktop. 4) Drag and drop the file to the Quick launch area. That’s it…

14 Čvc

HowTo install Mozilla Thunderbird 5 Final from PPA (Ubuntu 10.04/10.10/11.04)

# sudo apt-add-repository ppa:mozillateam/thunderbird-stable # sudo apt-get update # sudo apt-get install thunderbird Release Notes: http://www.mozilla.org/en-US/thunderbird/5.0/releasenotes/

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme