James Bennet just launched a community driven website to collect useful snippets of Django code all in one place. Very nice!
Thanks James!
djangosnippets.org
James Bennet just launched a community driven website to collect useful snippets of Django code all in one place. Very nice!
Thanks James!
djangosnippets.org
I was wondering what was going on in the Python trunk so I made myself skim through the NEWS to see what’s new. Let’s see:
Float arguments to seek() are now deprecated:
[code lang="python"]
open('t.txt', 'w') [...]
I was building a list of media resources (eg. photos, videos) when I found myself writing the following code to sort that very list:
[code lang="python"] getdatetime = itemgetter('datetime') media.sort(key=getdatetime, reverse=True) [/code]
It’s not rocket science or anything new but this time I thought the above code lying beneath the expression “code beautiness” (for the record: itemgetter sits in the [...]
Chad Fowler is one of the driving forces in the Rails (and the renewed Ruby’s) community. If you need him to train your team, to consult or speak at your conference he is the man. He’s passionate and smart and that seems a really good combination to me.
His writing abilities gave birth to one of [...]
I was reading through the Artima forums while I found myself on David Heinemeier Hansson’s blog and I noticed I couldn’t figure out the exact date of his posts.
He uses a partial date without the year and a 12-hour format for the time without the period.
So David, please, be kind, use whatever format you want [...]