Skip to content

Tag: python

Ubuntu Natty: Fixing ‘unknown locale’ in Python

The fix itself is the same as for Python 2.5 – only the line numbers have changed. Open the file /usr/lib/python2.7/ and find the line containing en_gb (line 921) and add these lines (this works for Danish locales):     ‘en_dk’:                                ‘en_DK.ISO8859-1’,     ‘en_dk.iso88591’:                       ‘en_DK.ISO8859-1’,     ‘[email protected]’:…

Ubuntu: Installing and running a Lodge-it pastebin

When I switched from Apache2 to nginx, the software used to run my pastebin needed to be changed (I used Perl NoPaste, which is CGI based and I didn’t feel like messing with FastCGI wrappers). Instead I chose LodgeIt. LodgeIt is not just another pastebin, it features a clean user interface, different color schemes for sourcecode, reply to pastes, support for all languages Pygments supports, and XMLRPC support LodgeIt spawns it’s own webserver, which I…

Page optimized by WP Minify WordPress Plugin