Blog: Einträge 12.03–05.09.2014
I just uploaded the new release 0.1.3 of
gpx2svg. It's only a bugfix release. Here are the changes:
Changed the shebang line so that gpx2svg now also runs on Mac.
Changed the use of the literal
/dev/stdin and /dev/stdout to sys.stdin and sys.stdout. Hopefully, gpx2svg will now also work on Windows (not tested). Overall code cleanup
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 ;-):
Added the possibility to define custom output file names via the newly introduced "--outpattern" option.
Skip empty lines in the database file.
Fixed problems with Windows style line ends in database files on Windows.
Overall code cleanup/sanitization.
Thanks to Thorsten Grothe for bug reporting and beta testing!
Have a lot of fun with it!
Just in case anybody searches for a Python pendant of QString::simplified(): This is surprisingly easy to do:
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):
def __new__(self, value):
return str.__new__(self, value)
return ' '.join(self.strip().split())
This can then be used like so:
>>> someString = NewString(' a lot of tabs and spaces ')
'\ta lot of tabs\tand spaces '
'a lot of tabs and spaces'
I just uploaded the new release 0.6.1 of the PHP spam filter
From the ChangeLog:
Fixed the theoretical possibility for an SQL injection. Thanks to Dirk Stolle for the bug report!
Added a backend for PostgreSQL, written by Tom Regner
Added a MySQL backend using the new mysqli_* functions instead of the legacy mysql_* ones. Thanks to Lorenzo Masetti for the initial port!
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.