Blog: Einträge 12.03–05.09.2014

gpx2svg 0.1.3

I just uploaded the new release 0.1.3 of gpx2svg. It's only a bugfix release. Here are the changes:

serienbrief 0.2.5

Been a long time since the last release (back in 2012!). So it was about time: I just uploaded the new version of serienbrief, the LaTeX form letter creator. From the ChangeLog:

New feature (it's only one ;-):


Thanks to Thorsten Grothe for bug reporting and beta testing!

Have a lot of fun with it!

QString::simplified() in Python

Just in case anybody searches for a Python pendant of QString::simplified(): This is surprisingly easy to do:

def simplify(string):
    return ' '.join(string.strip().split())

If one wants to subclass a Python string and add the above function, this can be done e. g. like so (subclassing a string is a bit tricky, as one needs to mess with the __new__ function instead of the "normal" __init__ one):

class NewString(str):
    def __new__(self, value):
        return str.__new__(self, value)
    def simplified(self):
        return ' '.join(self.strip().split())

This can then be used like so:

>>> someString = NewString('    a   lot of    tabs      and  spaces   ')
>>> someString
'\ta   lot of    tabs\tand  spaces   '
>>> someString.simplified()
'a lot of tabs and spaces'

b8 0.6.1

I just uploaded the new release 0.6.1 of the PHP spam filter b8.

From the ChangeLog:

Everybody is encouraged to use the new version. Nothing in the configuration or database has been changed, so the new version can be used as a drop-in replacement.