This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Das versehentlich geschlossene Explorer-Fenster der Mausschubser ist für uns Shell-Liebhaber ein unabsichtlich hingetipptes "cd", welches uns aus unserem Arbeitsverzeichnis herauswirft und ins Home-Verzeichnis zurückbringt.
Aber, Unix-Hacker sind faul und selbstverständlich gibt es eine Art "Undo" für den Chdir-Befehl. Dieser lautet: "cd -". Warum hab ich das nicht früher entdeckt?
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Gerade ein wirklich nettes Feature von KMail entdeckt: Enthält die eingestellte Signatur keinen Signaturtrenner ('-- ', also Strich-Strich-Space in einer eigenen Zeile), dann fügt KMail automatisch einen vor der Signatur an. Gefällt mir, da der Anwender so gezwungen wird, seine Signatur ordentlich als solche zu markieren. In anderen Mailern muss man sich explizit entscheiden, ob ein Trenner eingefügt werden soll oder nicht.
Wer's nicht kennt: Der Signaturtrenner markiert in E-Mails das Ende der Nachricht und den Anfang der Signatur. Auf diese Weise können zum Beispiel Mailinglisten-Archive diese automatisch abschneiden. Hier mal ein Beispiel, der Trenner ist rot markiert (mit einer verdammt alten Signatur von mir):
cu, Cybso
/¯¯* mailto:cybso@gmx.net
(ybso ICQ: 18715473 PGP ID:0x3E2D5C95
\__* I am a signature-virus. Why don't copy me into your sig?
[~~~http://members.xoom.com/mp3ml/ =Deutsche MP3 Mailingliste~~~]
[~http://members.xoom.com/stde/ =Deutsche Star Trek Mailingliste~]
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Cpu Frequency Daemon is a very configurable program for throttling the cpu's frequency depending on "rules". A rule tests for battery state, cpu temperatur, active processes and so on.
For example, a rule which throttles your cpu when it's to hot might look like this:
[Rule]name=CPU Too Hotacpi_temperature=65-100cpu_interval=50-100profile=Performance Low[/Rule]
And if you want full performance when watching movies you might have a rule like this:
As a Gentoo user I want full cpu power when emerge is running. But sadly, "programs=emerge" won't work because emerge' process actually is the python interpreter (and surely you don't want to define "programs=python" as it would fire on your processor for all python scripts):
So what we need is a cpufreqd.conf-statement which executes a shell command and scores the rule depending on the process' exit code (0 is good and anything else is bad). There is already a plugin, "exec", which executes a command before and after testing a rule or switching the profile, although this is not exactly what we want. Nevertheless the code of this plugin (cpufreqd_exec.c) only needs a few changes to get a new options called "exec" which does exactly what we need (I've attached patches for cpufreqd-2.2.1 and cpufreqd-2.3.3).
The rule for switching to "Performance High" when emerge is running now looks like this:
[Rule]name=emerge is runningexec=ps -u root | grep emergebattery_interval=0-100acpi_temperature=0-65cpu_interval=0-100profile=Performance High[/Rule]
(If somebody knows an more efficient method to check wether emerge is running or not, please post it into the comments).
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Unter Ubuntu fragt Eclipse beim Starten nicht, welcher Workspace verwendet werden soll, sondern wählt immer $HOME/workspace - selbst wenn in den Einstellungen explizit festgelegt wurde, dass er fragen soll.
Woran das genau liegt, kann ich nicht sagen, aber es hat wohl was mit der verwendeten Java-VM zu tun, der Standard ist java-gcj. Umgehen lässt sich dieses Problem, indem die Pakete sun-java6-jdk bzw. sun-java6-jre installiert werden und die Verwendung dieser mithilfe der Umgebungsvariablen JAVA_HOME erzwungen wird:
JAVA_HOME=/usr/lib/jvm/java-6-sun eclipse
Oder dauerhaft, indem man diese in die Datei $HOME/.profile einträgt:
exportJAVA_HOME=/usr/lib/jvm/java-6-sun
Nun erscheint bei jedem Start von Eclipse wie gewohnt der "Workspace auswählen"-Dialog.
Nachtrag 10.12.2008:
Der richtige Ort, um diese Änderung global festzulegen, ist /etc/environment:
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
If you need flash support, you should have a look at the current github version of this script at http://github.com/AdamN/python-webkit2png/ mentioned above. We've extend the script a few month ago.
From time to time you may want to create a screenshot of a web page from command line, for example if you wish to create thumbnails for your web-application. So you might search for such a program and find tools like webkit2png, which is for Mac OS X only, or khtml2png, which requires a lot of KDE stuff to be installed on your server.
But since Qt Software, formerly known als Trolltech, integrated Safari's famous rendering engine WebKit (which is based on Konqueror's khtml engine) into its framework, we are now able to make use of it with the help of some Python and PyQt4.
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Eine Liste von nützlichen Modulen für Drupal 6 - in erster Linie als Reminder für mich selbst:
Administration MenuLagert das komplette Navigations-Menü in eine JavaScript-basierte Leiste am oberen Rand aus. Extrem nützlich, wenn das eigene Theme eigentlich keinen Platz für eine weitere Navigation vorsieht.Content Construction Kit (CCK)Zusammen mit den vielen Ergänzungen (CCK hat auf drupal.orgeine eigene Kategorie) eines der mächtigsten Plugins für Drupal.ViewsEbenfalls ein sehr wichtiges Modul, welches wohl hauptverantwortlich für die Flexibilität von Drupal ist. Besitzt ebenfalls eine eigene Kategorie für die auf Views aufbauenden Erweiterungen.DHTML MenuErsetzt die Navigation durch eine JavaScript-Basierte Variante. Sehr nützlich auf Seiten mit vielen Unterkategorien, oder wenn eine Oberkategorie eigentlich garkein Link sein sollte.TinyTinyMCEErsetzt das Textfeld von Drupal durch den WYSIWYG-Editor TinyMCE.FCKeditorIch kann mich einfach nicht entscheiden, ob ich Tiny oder FCK besser finde...IMCEUpload, Auswahl und Verwaltung (nicht nur) von Bildern auf dem Server. Überzeugt durch seine Schlichtheit. Eine Alternative ist eigentlich nur das kommerzielle Modul MCImageManager vom gleichen Hersteller wie TinyMCE.IMCE MkDirWas IMCE fehlt ist die Möglichkeit, neue Verzeichnisse auf dem Server anzulegen. Dieses Modul liefert das Feature nach.Node BlocksNode Blocks stellt die bequemste Möglichkeit dar, mal eben einen statischen Inhalt in die Sidebars, den Header oder den Footer einzubinden.PathautoAutomatische Generierung sprechender Pfadnamen für die Inhalte.to be continied...
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Dunkel (hier: schwarz) gewordene Warmhaltekannen für Kaffee kriegt man kinderleicht wieder sauber, wenn man sie mit heißem Wasser und Spülmaschinenreiniger gefüllt über nacht stehen lässt. Sie glänzt wieder wie neu!
Nur wie ich nun den Geschmack des Spülmaschinenreinigers wieder herausbekomme, das konnte sie mir leider auch nicht sagen :-(