Slovenian Gentoo community mirror introduction

under Server, Mirror, Community, Gentoo, English

I'm very happy first stage of my Gentoo mirror project is done. More information about server, how to use it with Gentoo and statitics can be read here Server is an old box of my girlfriend (thanks!). The box used to have issues with rebooting during ubuntu gnome session, I hope it was graphic's card fault (no graphic desktop is running now). Consider this beta testing period, spread the world of Slovenian Gentoo mirror! ...

pickle and cStringIO

under Python, Oss, English

More of a note to myself: You just cannot (I guess because of lacking proper pickling C API support) pickle cStringIO.StringIO instances. Use StringIO.StringIO instead. ...

Small update to wbus.fubar.si

under Python, Wbus, Lpp, Pylons, English

As most of you already know, I have small wap site running to check when LPP bus is coming to a bus station in Ljubljana. Today I added name of direction for each bus. Happy puncual days! link ...

upcoming project: spaces

under , English

I have been thinking about my development issue for a while. Working on many projects and quick switching is a pain. I could not find a solution that even thouches this subject, so I started my own development project management called spaces. Here is the basic configuration file (in YAML) that already works: --- !project name: gspaces --- !chromium-browser urls: - http://docs.python.org/dev/library/logging.html - http://docs.python.org/dev/library/subprocess.html ...

Fragmenting one big nginx config

under Python, Nginx, English

Getting lost in all glory of big nginx.conf is not that uncommon. I could not stand it anymore, so I wrote this little clever script with support of pyparsing module for Python: from pyparsing import * nginx_conf_expr = OneOrMore(Suppress(SkipTo('server' + White())) + originalTextFor(Word('server ') + nestedExpr('{', '}'))).parseWithTabs() server_name_expr = (Suppress(SkipTo('server_name' + White()) + Word('server_name') + White()) + CharsNotIn(' ;')).parseWithTabs() nginx_conf = open('nginx.conf').read() new_nginx_conf = str(nginx_conf) for server in nginx_conf_expr.parseString(nginx_conf): ...