How to sort Python dict (dictionary)
Sample script (copypasted from Well House Consultants training course): click the PLAIN TEXT header for copy-pasteable version#!/usr/local/bin/python author = {"php":"Rasmus Lerdorf",\ "perl":"Larry...
View ArticleUseful Python looping techniques
These are all excerpts from the Python documentation.To synchronously and simultaneously loop over two sequences:questions = ['name', 'quest', 'favourite colour']answers = ['Lancelot', 'the holy...
View ArticleMySQL: INSERT IF NOT EXISTS syntax
To start: as of the latest MySQL, syntax presented in the title is not possible. But there are several very easy ways to accomplish what is expected using existing functionality.There are 3 possible...
View ArticleHow to use ffmpeg if libmp3lame support is not present
I’m providing regularly updated compiled linux and freebsd ffmpeg binaries, and also described how to use ffmpeg on shared hostings if not all the required libraries (like libmp3lame) are present....
View ArticleC: how to specify comparison operators floating precision
There is no way I’m aware of to do what the title says. However…I’m sure that you are aware of the fact that floats representation in any programming language is limited by the precision of the...
View Article