Sebastian’s blog

Sebastian’s blog

Sebastian’s blog RSS Feed
 
 
 
 

Archive for Python

party_playlist

And another one of my small apps is finished.
When you have a party at your house, it’s sometimes difficult to find out what music people would like to listen to. But we got this great last.fm network, right? Why not use this information to create a special party playlist? And that’s what my code does.
Find [...]

movie_collage

Maybe (or maybe not) you know that situation: You’re with friends, have a laptop full of movies (all legally purchased of course), but you can’t decide what to watch. Of course you have an ugly file list, and maybe a file manager preview but it’s just all now very usable, because it’s not intuitive.
Wouldn’t it [...]

Randomness

The following is now available on CodingClues.eu.
I know I should be hard at work, but… it took only 10 minutes! And sometimes I should really scratch that programming itch when it comes along…
Yesterday I did some reading and talking on the Debian OpenSSL desaster. guruz brought in an interesting website on random number visualization.
I [...]

Technobabble

To use namespace’d XMLs in Python-XML’s XPath implementation, you need to give XPath a dictionary of namespace mappings, like {”bpws”:”http://docs.oasis-open.org/wsbpel/2.0/process/executable”}. See here:
context = Context(parser.doc, processorNss={”bpws”:”http://docs.oasis-open.org/wsbpel/2.0/process/executable”})
nodes = xpath.Evaluate(”bpws:process/bpws:variables/*”, parser.doc, context=context)
print nodes
My question is: Why do I have to do this? My XML contains a [...]

Recent Posts

Categories

Archives

Popular in Python

Recent Posts

Twitter

Blogs

Friends

FeedCount

Last.fm weekly artists

Meta

License

Creative Commons License
This work (text, author's own images) is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.