bash: empty file

29. Mai 2010

The quickest way to get rid of the contents of a file:

>file

Use at your own responsibility.

Credit goes to: commandlinefu

Zeitraffervideo: Space Shuttle

25. Mai 2010

Meines Erachtens echt sehenswert:

thinkfinger with lucid on an XPS M1530

18. Mai 2010

After the distro upgrade from Ubuntu Karmic to Lucid my fingerprint scanner apparently stopped working. As it turned out, this problem is not that uncommon (cf. https://bugs.launchpad.net/ubuntu/+source/thinkfinger). In fact, the scanner was working but required pressing the Enter key after each scan for the authentication to work. Unfortunately, this is not the way it’s supposed to work and not very comfortable either, as the scanner solely serves the purpose of comfort.

The best solution for the time being is to install the thinkfinger package from Martin Schwenke’s PPA. (see https://launchpad.net/~martin-meltin/+archive/ppa)

In order to do so I executed the following in my bash:

1
2
3
sudo add-apt-repository ppa:martin-meltin/ppa
sudo apt-get update
sudo apt-get upgrade

After that the scanner worked as expected. Big thanks to Martin!

Error communicating with gnome-keyring-daemon

15. Mai 2010

I had the same problem and found following solution:

1. Go to System -> Preferences -> Startup Applicataions

2. Find Item: “Certificate and Key Storage” and edit it

3. Change command to: “gnome-keyring-daemon” and save it.

4. Reboot

NOTE: After upgrade from 9.10, there was following command: “gnome-keyring-daemon –start –components=pkcs11″ which caused some error message. After the change mentioned above, it started working properly.

Found under https://bugs.launchpad.net/ubuntu/+source/seahorse/+bug/553032/comments/8

Quellenangaben in Bildunterschriften

10. Mai 2010

Das \cite-Kommando von LaTeX steht nicht umsonst in dem Ruf, sehr fragil zu sein. Besonders in Bild- oder Tabellenunterschriften (\caption) empfiehlt es sich daher, es durch Einklammerung mit \protect zu schützen.

Ein Beispiel hierzu:

\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.8\textwidth]{pic/BildTitel.png}
\caption[BildTitel \protect{\cite[S. 42]{bibtexkey}}]{BildTitel}
\label{pic:BildTitel}
\end{center}
\end{figure}

LaTeX und die Silbentrennung im Deutschen

29. April 2010

Wenn es mit der Silbentrennung hakt und die TeX-Fehlermeldung

no hyphenation patterns were loaded for 'ngerman'

erscheint, ist sehr wahrscheinlich das Paket

texlive-lang-german

nicht installiert.

Abhilfe (für Linux) schaffen folgende Befehle:

1
2
3
4
sudo apt-get update
sudo apt-get install texlive-lang-german
sudo texhash
sudo fmtutil --all

Lösung gefunden auf http://forum.ubuntuusers.de/topic/texmaker-no-hyphenation-patterns-were-loaded-/#post-2089615

Seitenzahlen erst nach dem Inhaltsverzeichnis

29. April 2010

Mit LaTeX ist es kein großes Problem, Seitenzahlen in einem Text erst nach dem Inhaltsverzeichnis anzeigen zu lassen. Um LaTeX allerdings dazu zu überreden, die Zählung bei der ersten Textseite beginnen zu lassen, sind dann doch ein paar kleine Verrenkungen nötig.

\begin{document}
\maketitle

\begingroup
\renewcommand*{\chapterpagestyle}{empty}
\pagestyle{empty}
\tableofcontents
\clearpage
\endgroup

\pagestyle{plain}
\setcounter{page}{1}

\chapter{...}
...

Die Lösung des Problems stammt von http://www.matheboard.de/archive/52187/thread.html.