Dugan Chen's Homepage

Various Things

Using Django with Selenium

Much has been written about the ways to integrate Django with Selenium. Here’s my attempt. First, I was inspired by harry’s fantastic Test-Driven-Django Tutorial and GitHub page. I am also aware of django-selenium and django-nose-selenium, but have not used them. Now, for functional testing, you want Selenium. Most guides to testing with Selenium recommend integrating […]

Using PyQt4 to download images from Last.fm

The following is code that I’m planning to roll almost directly into Quetzalcoatl. It asynchronously downloads an image from Last.fm and loads it into a widget. The image then scales with its containing widget, using maximum amount of space while keeping its aspect ratio. Keep in mind that it’s example code, not production code, and […]