Tagged Questions
0
votes
1answer
127 views
Resettable timer in python repeats until cancelled
I have copied the code from this webaddress http://code.activestate.com/recipes/577407-resettable-timer-class-a-little-enhancement-from-p/
To create a resettable timer, and it works nicely but once ...
1
vote
1answer
301 views
How to reset db in Django? I get a command 'reset' not found error
Following this Django by Example tutotrial here: http://lightbird.net/dbe/todo_list.html
The tutorial says:
"This changes our table layout and we’ll have to ask Django to reset
and recreate ...
2
votes
2answers
50 views
Keep a value the same in a dictionary in Python
Bit of a Python newbie but is it possible to do the following?
>>>random_dict=dict(a=2)
>>>addOnlyOneValue(random_dict)
{'a': 3}
>>>addOnlyOneValue(random_dict)
{'a': 3}
...
0
votes
2answers
1k views
Django password reset form
I'd like users to be be able to reset their passwords via a link on my site. I'm trying to use the built in django password reset form, but having a little difficulty. I have the following included in ...
1
vote
1answer
171 views
Pygame Ground Collision Detection and Position Reset
Assuming that my character is falling, and headed toward some sprite platform, and I flag that my character has landed once a collision is detected, what is the best way to reset my character's ...
0
votes
2answers
211 views
Resetting Values in Global array within a Function python
I am coding in python and ....
I have a quick question. I am trying to reset the values of a global array by calling a certain function but am having difficulty. Here is my code at the moment:
...
0
votes
1answer
500 views
Python thread restart
I have a thread when it is run it has an infinite loop.
When another thread is stopped, I wish to reset all the threads again,
There threads have sockets that transfer data between each other.
I am ...
3
votes
1answer
719 views
Python urllib2.open Connection reset by peer error
I'm trying to scrape a page using python
The problem is, I keep getting Errno54 Connection reset by peer.
The error comes when I run this code -
...
0
votes
2answers
657 views
Django Forgot Password function changing default email
I created a Forgot Password functionality for my website using the password_reset function that is built in Django
it sends an email like so:
You're receiving this e-mail because you requested a ...
2
votes
3answers
3k views
Sending a reset in TCP/IP Socket connection
I am using python's socket.py to create a connection to a ftpserver. Now i want to reset the connection ( Send a R Flag) and listen to the response of ftpserver. (FYI using socket.send('','R') does ...
0
votes
1answer
534 views
Reset easy_install after uninstalling Python on OS X
I had 64-bit Python at first, then I installed BeautifulSoup using easy_install.
For some reason, I uninstalled 64-bit Python using this method. Then I reinstalled the 32-bit version from Python.org. ...
2
votes
2answers
2k views
Python time.clock() - reset clock value with threads
I see time.clock() on Windows 'starts' a timer when called for the first time, and returns elasped time since the first call for calls after that. I read that the only way to restart the clock is to ...
5
votes
5answers
2k views
Python equivalent of IDL's stop and .reset
I'm relatively new to python but have a bit of experience using IDL. I was wondering if anyone knows if there are equivalent commands in python for IDL's stop and .reset commands.
If I'm running some ...
1
vote
3answers
256 views
connection reset for concurrent usage by two users GAE
I am trying to access same python web app in GAE from firefox and IE with different user login and when I start the IE session I get the following error with IE going standstill.
why?
error: (10054, ...