Wenn Pulseaudio mal rauscht

kann es daran liegen, dass die Treiber nicht so optimal sin.

tsched=0 disables PulseAudio’s timer-based scheduling and uses the classic interrupt-driven approach. Timer-based scheduling allows for better latency management and reduced CPU usage. It puts very strict requirements on the ALSA drivers. Unfortunately, some drivers do not handle it well.
More information:
http://0pointer.de/blog/projects/pulse-glitch-free.html

Quelle: https://bbs.archlinux.org/viewtopic.php?pid=921029#p921029

Fix läuft wie folgt:

  • sudo vim /etc/pulse/default.pa
  • Zeile mit “load-module module-udev-detect” finden
  • Mit “load-module module-udev-detect tsched=0” ersetzen.
  • pulseaudio -k
  • Warten bis Pulseaudio neu gestartet hat (funktioniert automagisch).

:-)

Herkulaneum

Herkulaneum

In spätem Mittagslicht liegt die kleine Stadt ganz
eng, in sich geschlossen da –
auf hohen Pfaden erreicht man sie dort unten –
zauberhaft entbietet sie dir ihren Gruß –

Palmen in Höfen, in Gärten –
die Villen ausgestorben, doch aussehend fast wie gestern noch
bewohnt –
Fresken, Bilder von ihrem Wesen, ihrem Leben erschließen
dir ihre Welt –
wie heiter muß ihr Leben gewesen sein?

dicke Krüge, einstmals gefüllt mit rotem Wein,
an fast allen Ecken ihrer Straßen –
noch sieht manverkohlte Waren, Korn, die Reste
ihres Holzes, verbrannt vom heißen Lavastrom –
über allem liegt der Schleier warmer Luft –

du atmest ruhig – ein und aus – ein und aus –
du bist ganz ruhig, gelöst, entspannt –

nichts ist da was dich bedrückt –
dir ist so wohl – du fühlst dich wohl –

–Quelle: Else Müller, Du spürst unter deinen Füßen das Graß, Verlag: Ratgeber Fischer Juli 1983, Seite 97

php5-fpm

Irgendwie mag ich das absolut nicht …

1: service apache2 start
2: Starting web server: apache2[Tue Jan 29 20:14:48 2013] [warn] FastCGI: there is no fastcgi wrapper set, user/group options are ignored
3: Syntax error on line 10 of /etc/apache2/sites-enabled/10_froxlor_ipandport_2001.foo.80.conf:
4: FastCgiExternalServer: redefinition of previously defined class "/var/www/foo"
5: Action 'start' failed.
6: The Apache error log may have more information.
7: failed!

Wer hätte gedacht, dass ich mich wenn ich mich zwischen IPv6 und “Sicherheit” dann doch für IPv6 entscheiden würde. :-/

http://redmine.froxlor.org/projects/froxlor/wiki/FPM_-_handbook

Wuhu! Mein erstes Python Skript.

Python ist einfach toll. :-)

 1 #------------------------------------------------------------------------------
 2 # @FILENAME:      ./imdbCovers.py
 3 # @AUTHOR:        Happy
 4 # @DESCRIPTION:   Using imdbapi.com to get the URI of a movie poster 
 5 #                 by providing the title and and year.
 6 #                 Example: http://www.imdbapi.com/?t=True%20Grit&y=1969
 7 # @LICENSE:       WTFPL - http://sam.zoy.org/wtfpl/
 8 #------------------------------------------------------------------------------
 9 #            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
10 #                    Version 2, December 2004
11 #
12 # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
13 #
14 # Everyone is permitted to copy and distribute verbatim or modified
15 # copies of this license document, and changing it is allowed as long
16 # as the name is changed.
17 #
18 #            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
19 #   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
20 #
21 #  0. You just DO WHAT THE FUCK YOU WANT TO. 
22 #------------------------------------------------------------------------------
23 #/* This program is free software. It comes without any warranty, to
24 # * the extent permitted by applicable law. You can redistribute it
25 # * and/or modify it under the terms of the Do What The Fuck You Want
26 # * To Public License, Version 2, as published by Sam Hocevar. See
27 # * http://sam.zoy.org/wtfpl/COPYING for more details. */ 
28 #------------------------------------------------------------------------------
29 
30 import urllib, urllib2
31 import json
32 
33 
34 # Function to purge the unclean! Or the JSON stuff. We just want the 'Poster'.
35 def purgeJsonCrap(jsonCrap):
36    lol = json.load(jsonCrap)
37    return lol['Poster']
38 
39 # Get the Cover URI
40 def gimmeCover(jahr, titel):
41    # URI to the API Server.
42    baseurl = "http://www.imdbapi.com/"
43    # Creating the dictionary for 'urlencode()'.
44    titeldic = dict()
45    titeldic = {'t' : titel}
46    titel = urllib.urlencode(titeldic)
47    # Concatenating the parts.
48    imguri = "?" + titel
49    imguri += "&amp;" + "?y=" + str(jahr)
50    uri = baseurl
51    uri += imguri
52    # Getting the JSON data.
53    opener = urllib2.urlopen(uri)
54    # Cleaning and returning.
55    return purgeJsonCrap(opener)
56 
57 
58 # Examples :-)
59 # print "\n" + gimmeCover(1995, 'Hackers')
60 # print gimmeCover(1995, 'True Grit')
61