Guruza search results for python http://guruza.com/searches/show/248 Questions recently submitted to Guruza that match the query: python Thu, 20 Nov 2008 16:06:14 -0800 $5.00 - Python problem. Sorting files in subdirectories.? How do I get a list with... http://guruza.com/question/555/reward-5.00 Python problem. Sorting files in subdirectories.? How do I get a list with complete paths of all files including in subdirectories. This list needs to be alphabetically ordered according to directories and then file names. Current code is here the problem is that it does not sort according to the names of the subdirectories: for root, dirs, files in os.walk('C:\Program Files\MySQL\MySQL Server 5.1\csvdata'): for name in files: if re.compile("""(csv$)""", re.IGNORECASE).search(name): Tue, 11 Sep 2007 10:15:28 -0700 $20.00 - I have a hash in ruby that looks like this: [ {"video_id": 3,"tag_id": 2}... http://guruza.com/question/449/reward-20.00 I have a hash in ruby that looks like this: [ {"video_id": 3,"tag_id": 2}, {"video_id": 3, "tag_id": 4}, {"video_id": 3, "tag_id": 8}, {"video_id": 5, "tag_id": 2}, {"video_id": 5, "tag_id": 9} ] And I want it broken up into an array the tag_id's that are common to all the video_id's present. In above case, the array would be: common_tags[0] = 2 because tag_id number 2 is the only tag that is common to both video_id's 3 and 5. Fri, 01 Dec 2006 09:02:24 -0800 $65.00 - I'm having a weird problem with IE (6 or 7), but it works fine with every oth... http://guruza.com/question/431/reward-65.00 I'm having a weird problem with IE (6 or 7), but it works fine with every other browser I tried. My pages take -forever- to load in IE. For example, a 1kb gif will take like 6-7 seconds to load. I can't figure this one out, anyone has an idea? The site is at http://ajaxwhois.com and Apache/Django is under the hood. I tried disabling Javascript, but no luck. Thu, 19 Oct 2006 21:01:22 -0700 $5.00 - I'm trying to deploy a Django app to a Ubuntu server. When I try to run the ... http://guruza.com/question/395/reward-5.00 I'm trying to deploy a Django app to a Ubuntu server. When I try to run the dev server, here's what I get: python manage.py runserver Validating models... Unhandled exception in thread started by Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py", line 1039, in inner_run validate() File "/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py", line 1003, in validate num_errors = get_validation_errors(outfile) File "/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py", line 815, in get_validation_errors from django.db import models File "/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/__init__.py", line 11, in ? backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, '', '', ['']) File "/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/backends/mysql/base.py", line 13, in ? from MySQLdb.converters import conversions File "/usr/local/lib/python2.4/site-packages/MySQLdb/converters.py", line 40, in ? import array ImportError: /usr/local/lib/python2.4/lib-dynload/array.so: undefined symbol: PyUnicodeUCS2_FromUnicode I compiled everything from source (ie: no apt-get). Wed, 13 Sep 2006 01:08:11 -0700