Forum: Python Aug 22nd, 2005 |
| Replies: 2 Views: 2,114 threading, yep. going to take some time to learn this. but appears to be what i need.
thanks |
Forum: Python Aug 21st, 2005 |
| Replies: 2 Views: 2,114 Hey there,
i have a simple question about getting a script to do
two things at once.
like this.
for i in range(100):
print i
time.sleep(.2)
if i == 15: |
Forum: Python Aug 21st, 2005 |
| Replies: 4 Views: 2,579 cool thanks, very helpful, i have been re-arranging stuff now.
all is starting to look better.
regards
sk |
Forum: Python Aug 18th, 2005 |
| Replies: 4 Views: 2,579 i found it.
the & operator.
thanks |
Forum: Python Aug 18th, 2005 |
| Replies: 4 Views: 2,579 i have an interesting project at work going on. here is the challenge.
i am using the serial module to read data from a serial input.
it comes in as a hex. i need to make it a binary and compare it... |
Forum: Python Aug 6th, 2005 |
| Replies: 4 Views: 2,605 i have boa installed, but never use it much. i use eric sometimes when scripting because it shows a little bug when i have a syntax error. i like it, but i think wxglade is going to help me learn wx... |
Forum: Python Aug 6th, 2005 |
| Replies: 2 Views: 1,905 yeah, i forgot to close a tag.
:rolleyes: |
Forum: Python Aug 6th, 2005 |
| Replies: 4 Views: 2,605 cool thanks, i saw an app wxglade that looked pretty cool. even if not, i think i am leaning more that way because of desiring a more native look.
thanks |
Forum: Python Aug 5th, 2005 |
| Replies: 4 Views: 2,605 Hey there, i have been writing python scripts for about 4 months now so i am still very new at programming. that said, i need to build a gui app to handle some data manipulation from a database, set... |
Forum: Python Jul 29th, 2005 |
| Replies: 2 Views: 1,905 Hey there,
i have some python scripts that run with the cgi-module. all named whatever.py
the thing is, firefox will open one that has a form on it, but not load the next one in line.
it pops up a... |
Forum: MySQL Jul 28th, 2005 |
| Replies: 2 Views: 4,484 i am using sql 4.024 (debian-stable) so i gues the subqueries are out. i like the idea of writing two queries, that would work i think. i am coding in python and have one table with current info,... |
Forum: MySQL Jul 28th, 2005 |
| Replies: 2 Views: 4,484 Hey there,
i have a table in MySQL that is updated about every 5 minutes with about a hundred new records. For an application i am building, i only need the info from the most recent entry for each... |
Forum: Community Introductions Jul 13th, 2005 |
| Replies: 5 Views: 1,630 Dalhart, little town outside of Amarillo. Welcome to DaniWeb, lots of help i have gotten here.
cheers,
nephish <>< |
Forum: Community Introductions Jul 10th, 2005 |
| Replies: 5 Views: 1,630 Where in Texas ?
welcome, lots o' scripting help i get here....
cheers |
Forum: Python Jul 1st, 2005 |
| Replies: 3 Views: 3,049 |
Forum: Python Jun 30th, 2005 |
| Replies: 3 Views: 3,049 oh, nevermind. got it fixed now.
had my SQL environment messed up. |
Forum: Python Jun 30th, 2005 |
| Replies: 3 Views: 3,049 Hey there all,
i have a question about how to point my python install to my sql database.
when i enter this: db = MySQLdb.connect(user="user", passwd="pass", db="myDB")
i get this:
Traceback... |
Forum: Python Jun 29th, 2005 |
| Replies: 9 Views: 6,107 Hey there, how is your project comming along ? |
Forum: Python Jun 25th, 2005 |
| Replies: 9 Views: 6,107 ok
first off, many web hosts support scripting languages, but as they include php, perl, etc.. many do not support python.
the good news is...
you can host the site yourself.
apache is... |
Forum: Python Jun 25th, 2005 |
| Replies: 7 Views: 2,920 oh, i am using a gif.
and it works now, but here is what i had to do.
i have the script that writes the line to the text file write
print... |
Forum: Python Jun 25th, 2005 |
| Replies: 9 Views: 6,107 try this....
here is a simple form.....
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
... |
Forum: Python Jun 25th, 2005 |
| Replies: 9 Views: 6,107 use a wysiwyg editor like mozilla-composer or nvu. (free downloads too!)
they have little buttons, forms, text imput, drop down lists, etc... stuff that you can choose from to create the form. it... |
Forum: Python Jun 25th, 2005 |
| Replies: 8 Views: 4,345 oh, yeah,
items does return the number of total messages and size.
cheers ! |
Forum: Python Jun 25th, 2005 |
| Replies: 8 Views: 4,345 finally came up with this, bits and pieces from tutorials,
#!/usr/bin/python
import poplib
import string
import StringIO, rfc822
# set up server info
SERVER = "mail.xxx.net"
USER = "me"... |
Forum: Python Jun 24th, 2005 |
| Replies: 9 Views: 6,107 what you want to look at is the cgi module.
go here
http://gnosis.cx/publish/programming/feature_5min_python.html
or here
http://wiki.python.org/moin/CgiScripts
i use only python in my cgi ,... |
Forum: Python Jun 24th, 2005 |
| Replies: 8 Views: 4,345 Yeah, that is what i wound up doing.
thanks much. |
Forum: Python Jun 22nd, 2005 |
| Replies: 8 Views: 4,345 OK i found this in a tutorial, tested it and it works.
just prints the message body.
import poplib
import string, random
import StringIO, rfc822
SERVER = "pop.spam.egg" |
Forum: Python Jun 22nd, 2005 |
| Replies: 8 Views: 4,345 yeah, the messeges come in with all kinds of tracer stuff on them, spam stuff, this and that server......
gee whiz |
Forum: Python Jun 21st, 2005 |
| Replies: 8 Views: 4,345 hey there,
i have written a script that gets my email messages, but i need to
be able to strip off all of the stuff except the body of the message so i can write that to a text file.
is there an... |
Forum: Python Jun 15th, 2005 |
| Replies: 7 Views: 2,920 um.. sure.
instead of having the script write just the name of the image file to load , i had it write the whole html line when the image is selected like this
image = form['image'].value
then... |
Forum: Python Jun 14th, 2005 |
| Replies: 7 Views: 2,920 nevermind, i found a work-around |
Forum: Python Jun 14th, 2005 |
| Replies: 7 Views: 2,920 ok, here ya go
#!/usr/bin/python
import os
import cgi
import cgitb; cgitb.enable()
from time import gmtime, strftime
the_time = strftime("%A, %B %d, %Y") #Get a TimeStamp |
Forum: Python Jun 14th, 2005 |
| Replies: 7 Views: 2,920 i have an html form with a drop-down list that lists a bunch of images.
how can i get my cgi script to load the image ?
i have imported cgi and os
text entered from a form and read from a file... |
Forum: Python Jun 11th, 2005 |
| Replies: 1 Views: 3,095 nevermind, got it working now.
stupid submit button
arrgh |
Forum: Python Jun 11th, 2005 |
| Replies: 1 Views: 3,095 Hey there,
i have a python cgi script that prints out html just fine in the Opera browser
but doesnt print at all under FireFox.
weird, eh?
i am getting nothing in the apache logs about any... |
Forum: Python Jun 9th, 2005 |
| Replies: 5 Views: 2,375 strftime was the key.
all working now.
thanks a million.
your'e awesome. |
Forum: Python Jun 8th, 2005 |
| Replies: 5 Views: 2,375 ok will do when i get back to the house.
thanks,
i'll let you know how it turns out. |
Forum: Python Jun 8th, 2005 |
| Replies: 5 Views: 2,375 Well, it printed exactly that....
printed it out like a string
/var/www/stretch/web_root/SidCrops/gritty/Sun Jun 5 18:52:55 2005.txt
it did get the two variables right.
i guess we are... |
Forum: Python Jun 7th, 2005 |
| Replies: 5 Views: 2,375 Hey there. Here is the deal.... i have a script that is supposed to
open a file based on criteria from a web form.
i cant seem to get it to work though.
here is the code:
form =... |