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 OpenOffice several years for this task, but was never quite lucky with it as i always had to fix the layout after i added a new entry... But this time it bothered me once too often, so i had to code something :-)


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 this snippet was born:


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...


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 i found a solution, the GStreamer lib. It has python bindings and windows builds, hurray. But actually it didn't look like it would be a simple 1 minute installation and it wasn't. To save you the time, i wrote this summary of my installation.


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.


Rabid Ratings for Django

22.06.2008 by azarai in Javascript | 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 there was my prob again, php. So i took a look at the php backend and decided to quickly port the main logic to my django app and make it available to the public.


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 didn't work anymore.


Feeds and python II

28.11.2006 by azarai in python | snipplet

i've got some time to continue my python and feed example