Start Emacs with GDB directly

Hey folks out there, as we all know, Emacs has a very powerful (graphical) interface to our beloved debugger GDB. Until five minutes ago, I used to start a program in debug mode by first starting emacs and then invoking M-x gdb, which can take a long time to navigate to the desired binary. Furthermore,… Continue reading Start Emacs with GDB directly

Published
Categorized as Emacs

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… Continue reading Convert FLAC to MP3

Published
Categorized as Linux

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 =… Continue reading Print QStrings in GDB

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… Continue reading dot.emacs

Published
Categorized as 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… Continue reading Emacs + Doxygen = Doxymacs

Published
Categorized as Emacs

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… Continue reading Window Buttons in Ubuntu 10.04

Published
Categorized as 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:… Continue reading SMBackup

Published
Categorized as 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.… Continue reading Mount/Unmount ISO images in nautilus

Published
Categorized as Linux

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}%… Continue reading LaTeX PDFmerge

Published
Categorized as 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… Continue reading Captions in Algorithm2e

Published
Categorized as LaTeX