This is actually not a piece of code, but as I frequently forget yet sometimes
need the not-so-standard commands of gdb I wrote a little GDB cheatsheet.
SpringerLink makes it very hard to download conference proceedings (which cost
money, by the way). One is expected to click on every single PDF and give it a
meaningful name (other than fulltext.pdf) manually.
The python script eFindStaleFiles.py
recursively traverses all directories given to the script for files or
directories that are not tracked by portage. The blue output is debug output on
stderr.
The script fetchOebbPlaene.sh fetches
the timetables of the Austrian federal railway company. Further it tries to
find human readable filenames and creates according soft links. Finally a
little index.txt is generated.
This is a Blender plugin which imports DEC Object File Format (.off) files.
This feature was built-in for blender 2.49 but apparently has been removed for
version 2.54 beta. I have implement the input parsing according to this
format specification.
A little shell script that automates the conversion of general pdf, eps or svg
files to Ipe xml files using the tools pdftoipe and inkscape. Download it here.
This little shell script fetches a website periodically. If a given interface
shuts down then the script exits automatically (at least after a whole period).
I frequently execute a decrypt-edit-encrypt cycle with gpg and OpenOffice.org.
This can be pretty annoying and therefore I wrote a little shell script that
does that for you. Just call ‘ooffice-gpg
<file>’ to edit the file with ooffice and transparently decrypt and
re-encrypt the file with gpg. But please note that ooffice-gpg has to be
executed from a shell to answer to questions from gpg and the script.
When writing larger emails I love to use the External Editor
Plugin for Thunderbird so that I can use gvim. One good practice is to set
mail composing to plain text format. This avoids the problem of reconverting to
a non-monospace font after closing the editor.
Consider the following problem: You want to run automatic software tests and
you want to guarantee that a test is finished in a finite amount of time. In
other words, you may want to limit the execution time of a process to a
specific timespan.
The python package randcirc computes a given number of random circles in the
unit square and is able to extract intersection-free arcs covering the
circle-set. To do this in reasonable time geometric hashing has been
implemented. The code can be easily extended to other objects than circles and
arcs. Only a few primtiva have to be implemented for the geometric object
wanted.
A little training in Bash scripts: The script can recursively scan directories
for mp3s or play them in random order or just repatedly. You can get the script
here. The script can be easily modified to show
pictures, etc.
To freshen up my memory I coded a little program in C#: A SMTP server. By
the way: I implemented Semaphores and a Consumer-Producer-Queue for this
purpose.
Motivated by slides made by Stefan Schirra I programmed a few lines in C: A
sideness test of a point and a line based on determinants is performed in a
numerically interesting square of the plane. You may want to download the code here.
To broaden my programming skills I learned assembler programming under
GNU/Linux by reading the book Programming from the Ground
Up. This led to a small code snippet which implements a little Unix-like cat tool.
I wrote a simple Sudoko solver in python. This
is my first little tool I wrote when I teached me Python. It uses a few logical
rules to reduce the number of possibilities and if no further simplification is
found Backtracking emerges.