Create your own textformat and parse it
27.12.2010 by azarai in python | snipplet
For my cv i maintain a list of all projects i worked on to give a bit more information than a typical german cv does. Each project entry contains a name and description, what my job and role was and which technology was mainly used and when it was. I used
Export a diigo list to markdown
08.08.2010 by azarai in python | snipplet
I use diigo as my bookmarking service and specially their list feature for collecting links of a research topic. Occasionally i need to export a list as markdown syntax. Luckily they got an api and theres also a python modul for it. So some minutes later
Using kwargs to initialize an object
20.07.2010 by kerim in python | snipplet
Way to many (possible and/or optional) parameters for a class? Here is a 5 second tip for all those old style Java-type-programmers...
Use kwargs, simple setter methods and run through the keys.
#!/usr/bin/env python # -*- coding: utf-8 -*- class myClass(
Playing a mp3 stream with python
07.06.2010 by azarai in python | snipplet
I listen to web radios aka music streams alot and usually do not really care how the players work. But recently i got somehow curious about how to play a mp3 stream with python. And it should run on my windows box. That made my search a bit difficult. But
Finding empty directories
17.01.2010 by kerim in python | snipplet
I know it sounds trivial but as usual the trivial things are those that are most annoying. Running through the harddrive of my notebook i came accross way to much garbage manifesting itself through empty directories.
After some 30 minutes of "search and
Rabid Ratings for Django
22.06.2008 by azarai in ajax | django | python | snipplet | tools
For my new pet project i'd like to have some nice fancy starlike rating stuff, but without stars :-) Luckily i found one over at ajaxrain called Rabid Ratings. It uses nice looking hearts and is a out of the box combo with ajax and a php backend. Yep ther
Generating Names automatically
15.05.2007 by kerim in game-development | python | snipplet
Ever tried to create names for Roleplaying Games (and other things) ?
In the process of implementing an MMORPG i asked myself how that could be done. Might be usefull for NPCs for example.
I found a nice article here about the topic but sadly the code did
Feeds and python II
28.11.2006 by azarai in python | snipplet
i've got some time to continue my python and feed example
MyFeedsConfig.feeds contains a list of feed urls and we just try to receive, aggreate and sort them. pretty self explaining. The article class is also one of ours and does only contain some attri
