Categories
Linux

Convert FLAC to MP3

These days I needed to convert some FLAC (Free Lossless Audio Codec) audio files to mp3. As usual when dealing with audio/video formats, there are lots of (useless) tools available on the internet, most of them being shareware or even voruses (windows). Fortunately, this is a strength of Linux … at least if you are […]

Categories
Programming

Print QStrings in GDB

If you will ever have to go through the hell of debugging Qt-applications, you might face the problem of printing the contents of QString objects. If you call print on a QString object in gdb, the output will most probably look like the following: {static null = {<No data fields>}, static shared_null = {ref = […]

Categories
Emacs

dot.emacs

This is my .emacs file Download it .emacs or preview: ;; ############################################################################## ;; Frank Meffert’s .emacs file ;; 2010-10-02: Beautifying a bit ;; ##############################################################################   ;; —————————————————————— (load path) (add-to-list ‘load-path "~/.emacs.d/")   ;; ——————————————————————- (ido mode) (require ‘ido) (ido-mode 1)   ;; ————————————————————— (line numbers) (require ‘linum) (global-linum-mode 1) (setq linum-ncols 4) (setq linum-format […]

Categories
Emacs

Emacs + Doxygen = Doxymacs

In fact, most developers around the world probably dislike writing comments within their programs, no matter which language is considered. However, exhaustive code documentation improves the overall code quality, and thus also the software quality. Moreover, code documentation is essential in projects where teams with several people work on the same code base. Thus, the […]

Categories
Linux

Window Buttons in Ubuntu 10.04

With Ubuntu 10.04 alias “Lucid Lynx” the new “Ambiance”-theme was introduced. Furthermore, the designers of Ubuntu decided to change the location of the window buttons from the right to the left, which in my opinion is really unusual. Fortunately, Linux is very customizable and this behavior can be changed in order to move the buttons […]

Categories
Linux

SMBackup

This Script was designed to backup a database onto a backup-server that (only) provides SMB-Shares. If there are already more than $CYCLE files present within the destination directory, the oldest file will be overwritten. You might get the impression that I am abusing my blog to host scripts. Well, you’re right 😉 There you go: […]

Categories
Linux

Mount/Unmount ISO images in nautilus

Hey, I figured out that nautilus, the file browser of GNOME, has a nice feature of adding scripts to the context menu (right click). For instance, you can place the following two scripts in ~/.gnome2/nautilus-scripts/ and make them executable (chmod +x). Then you will be able to do a right-click on iso-images for (un)mounting them. […]

Categories
LaTeX

LaTeX PDFmerge

Hey there, since merging several pdf files is a task that needs to be done pretty often, I decided to write a little TeX file for that. The initial version assumes that all pdf files have the same name pattern and end with a number: \documentclass[a4paper,landscape]{article} \usepackage{pdfpages} \usepackage{forloop}   \begin{document}   \newcounter{ct} \forloop{ct}{1}{\value{ct} < 8}% […]

Categories
LaTeX

Captions in Algorithm2e

Hey guys, these days I came across the algorithm2e package of LaTeX, which I prefer to the classic packages algorithm and algorithmic. Unfortunately, it has a weird behaviour concerning captions. One can set the caption font with \SetAlCapFnt, but then the complete caption (including caption label and caption text) will be changed. I can provide […]