Download mp3 files containing the english pronunciation of a word

One place where you can find those files is dict.leo.org. You can easily play and download the pronunciation of a english word with the following bash script (just copy and save it to filename.sh): #!/bin/bash if [ $# -le 0 ] then echo "usage:<script> <word> <word2> <word3> …" exit 1 fi for i in $* […]

Fix Anki should be run with python2.x.

When you start anki you might encounter something like: [patrick@localhost anki-1.2.6]$ ./anki Traceback (most recent call last): File “./anki”, line 7, in raise Exception(“Anki should be run with python2.x.”) Exception: Anki should be run with python2.x. If you are running a up-to-date linux distribution python2 should be installed but it is possible that the default […]

Fix Guestbook in cmsmadesimple

The guestbook module of cmsmadesimple has the bad habit of showing the following error message after updates: Call to undefined function nl2pnbr(). The fix is quite easy. Just open the filemodules/Guestbook/action.get-entrylist.php in a texteditor and replace the line $entry['message'] = nl2pnbr($entry['message']); with the line $entry['message'] = nl2br($entry['message']); After that it works just fine.

Enhanced XSPF Player breaks when upgrading cmsmadesimple to 1.9.0

The player fails because of the update of the Uploads module and some missing includes. A fix is quite easy: Open modules/EnhancedXSPF/action.admin_edit_playlist.php in a texteditor. You need to change the line 101 from $filelist = array_merge($filelist, $uploads->getFileList($category)); to $filelist = array_merge($filelist, $uploads->get_category_file_list($category)); Now you should be able to edit the playlists again. There is still […]