Guruza search results for threading http://guruza.com/searches/show/1846 Questions recently submitted to Guruza that match the query: threading Wed, 20 Aug 2008 08:24:15 -0700 $0.00 - delete http://guruza.com/question/567/reward-0.00 delete Tue, 11 Mar 2008 15:27:01 -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 $5.00 - My site spans ajax requests that take a while to execute on the server. Howe... http://guruza.com/question/360/reward-5.00 My site spans ajax requests that take a while to execute on the server. However, this request becomes invalid if the user makes another request before the first one is completed. In order to save server resources, I'd like to be able to kill the 1st server request when the second one is sent. I was thinking about polling the session to see if a certain criteria is met. If it is, I'd just abort the current call. How would I do that? I guess I'd have to launch a second thread when the ajax request starts (on the server side) and that thread would poll the session every 100ms or so. If the criteria is met, it would kill the request. I'd like to see a code example of this. Wed, 30 Aug 2006 00:25:10 -0700 $10.00 - I have a rails app that runs an nmap scan on a host and reports the response ... http://guruza.com/question/279/reward-10.00 I have a rails app that runs an nmap scan on a host and reports the response via ajax. I use backtick to run nmap via my controller. What I've noticed is that if the nmap scan takes a while (say about 2 minutes), rails will block all request until the shell command finishes executing. My question is if there is a more effecient way to run shell commands via rails? Will I have to thread the nmap scan so the rails controller doesn't block until it receives a response? Thu, 27 Jul 2006 12:04:06 -0700 $25.00 - What is the most important thing that we can do to improve Guruza? I will ... http://guruza.com/question/233/reward-25.00 What is the most important thing that we can do to improve Guruza? I will select the 5 "best" answers and then pick one at random for the reward! rich-collins-computer:~ rcollins$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'facet/array/at_rand' => true irb(main):003:0> "Dave | nerkles | AgeKay | Jake McArthur | funnyguilly | larry | jer | bryce".split(' | ').at_rand => "Dave" irb(main):004:0> Congrats Dave and thanks for all of the suggestions from everyone! Tue, 11 Jul 2006 16:32:22 -0700 $0.00 - webapp dev with rails http://guruza.com/question/117/reward-0.00 webapp dev with rails Mon, 26 Jun 2006 09:10:12 -0700 $10.00 - Can I use Ajax to request a controller/script multiple times and simulate mul... http://guruza.com/question/93/reward-10.00 Can I use Ajax to request a controller/script multiple times and simulate multiple threads? Fri, 09 Jun 2006 13:42:18 -0700