learning python

2005-09-04 Thread placid
Hi all, I was just wondering about good books that teach python (either with programming or no programming experience at all) ? Or some online tutorial? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: learning python

2005-09-04 Thread placid
Christopher Culver wrote: > "placid" <[EMAIL PROTECTED]> writes: > > I was just wondering about good books that teach python (either with > > programming or no programming experience at all) ? Or some online > > tutorial? > > Did you even bother do

Re: learning python

2005-09-04 Thread placid
Benji York wrote: > placid wrote: > > Christopher Culver wrote: > >>"placid" <[EMAIL PROTECTED]> writes: > >>>I was just wondering about good books that teach python (either with > >>>programming or no programming experience at all) ?

Re: Determining if an object is a class?

2006-07-12 Thread placid
[EMAIL PROTECTED] wrote: > I need to find out if an object is a class. Using new style classes > this is very easy: > > class Test(object): pass > > obj = Test >or > obj = Test() > > if type(obj) == type: > # this is a class object.. > else: > # this not a class object > > But this fa

Re: 3d simulation

2006-07-13 Thread placid
Edmond Dantes wrote: > placid wrote: > > > > > alimoe wrote: > >> > Genetic Programming or Genetic Algorithms? > >> > >> whats the difference? > > > > > > Genetic Programming: > > is an automated methodology inspired by bio

Re: wanting

2006-07-18 Thread placid
Steve Holden wrote: > Bruno Desthuilliers wrote: > > arsl89 wrote: > > > >>hy gys i m wanting python programming language. > >>plz snd me the backup of python this is one of my aims in life, to bloody understand this 1337 speak! --Cheers -- http://mail.python.org/mailman/listinfo/python-list

Number combinations

2006-07-19 Thread placid
Hi all, Just wondering if there is a better way of generating a 4 digit number (that gets converted to a string), ive got the following code which generates strings between -. for a in range(0,10): for b in range(0,10): for c in range(0,10): for d in range(0,10):

subprocess module

2006-07-20 Thread placid
Hi all, If someone could give me an example of creating a subprocess (on Windows) using the subprocess module and Popen class and connecting to its stdout/stdin file handles. I googled for a bit but the only example i found was here ; http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438119

Re: upload a file

2006-07-25 Thread placid
[EMAIL PROTECTED] wrote: > Dear all, > > could you give me an help ? > > I would to upload a file from web using Python. Is there a simple way to do > this? I'm using the cgi module and python 2.3. The file to be uploaded is a > text > file. > is this what your after? http://aspn.activestate.co

list problem

2006-07-25 Thread placid
Hi all, I have two lists that contain strings in the form string + number for example >>> list1 = [ ' XXX1', 'XXX2', 'XXX3', 'XXX5'] the second list contains strings that are identical to the first list, so lets say the second list contains the following >>> list1 = [ ' XXX1', 'XXX2', 'XXX3', '

Re: list problem

2006-07-25 Thread placid
Simon Forman wrote: > placid wrote: > > Hi all, > > > > I have two lists that contain strings in the form string + number for > > example > > > > >>> list1 = [ ' XXX1', 'XXX2', 'XXX3', 'XXX5'] > >

Re: list problem

2006-07-26 Thread placid
Thank you all for the replies, i now have a better solution. Cheers -- http://mail.python.org/mailman/listinfo/python-list

subprocess module

2006-07-26 Thread placid
Hi all, ive been trying to create a thumbnail using the ffmpeg converter running the ffmpeg.exe using the subprocess module with the following code >>> import subprocess >>> p = subprocess.Popen(["ffmpeg.exe -i video.mpg", "-f mjpeg -ss 5 -vframes >>> 1 -s 160x120 -an video.gif"], shell=True, s

non-blocking PIPE read on Windows

2006-07-27 Thread placid
Hi all, I have been looking into non-blocking read (readline) operations on PIPES on windows XP and there seems to be no way of doing this. Ive read that you could use a Thread to read from the pipe, but if you still use readline() wouldnt the Thread block too? What i need to do is, create a proc

Re: non-blocking PIPE read on Windows

2006-07-30 Thread placid
Dennis Lee Bieber wrote: > On 27 Jul 2006 22:26:25 -0700, "placid" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > > > readline() blocks until the newline character is read, but when i use > > read(X) where X is a nu

Re: non-blocking PIPE read on Windows

2006-07-30 Thread placid
Dennis Lee Bieber wrote: > On 30 Jul 2006 16:22:34 -0700, "placid" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > > > ;) Tsk Tsk > > Have you ever seen a Tempest VT-100? Lead shielding on the monitor > FACE... T

Re: suppressing the console in a GUI program

2006-08-01 Thread placid
John Salerno wrote: > John Salerno wrote: > > Hi guys. I tried naming my file with a .pyw extension, but the console > > still shows up. Why doesn't this work? And is there another, more > > programmatic way to suppress it? > > > > Thanks. > > I just noticed that the console that opens isn't the n

Re: serial ports, threads and windows

2006-08-02 Thread placid
Tom Brown wrote: > When it runs on Windows, could it be: > > 1) Just struggling to run inside of VMware? i have gut feeling that it could be that this is the problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding Console Output

2006-08-02 Thread placid
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Re: newbie...No module named win32com.client

2006-08-02 Thread placid
[EMAIL PROTECTED] wrote: > This is my very first time to use Phyton! > > I am getting a problem with win32com.client missing from some existinf > scripts. > > >python > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "licens

programming is hard

2006-08-03 Thread placid
Hi all, this site is contains code snippets for various languages and python does not have many code snippet posters. Just lettting you know http://programmingishard.com Cheers P.S: I have no connection with this site! -- http://mail.python.org/mailman/listinfo/python-list

Re: programming is hard

2006-08-03 Thread placid
Alas, all good arguments. I rest my case. :( Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: programming is hard

2006-08-03 Thread placid
[EMAIL PROTECTED] wrote: > placid wrote: > > Alas, all good arguments. > > > > I rest my case. > > After you've just been proven wrong? > > I wouldn't want you for my lawyer. Aha, lucky i wont be a lawyer. -- http://mail.python.org/mailman/listinfo/python-list

Re: embedding console in wxpython app

2006-08-07 Thread placid
Philippe Martin wrote: > Janto Dreijer wrote: > > > I'm writing a Linux filemanager using wxPython. I'd like to embed a > > bash console inside it. I have found the Logilab pyqonsole > > (http://www.logilab.org/projects/pyqonsole), but it uses PyQT. > > > > Does anyone know how to do this from wx?

import help

2006-08-07 Thread placid
Hi all, How do i import a module that has an hypen/dash (-) in its name ? I get a SytaxError exception Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Regd:Video Converter Programming

2006-08-08 Thread placid
Ch3ru5 wrote: > Hi, > I want to write an avi to flv converter in php but i am a complete > newbie to it. > > I would like to know the basic flow of entire process of how a > converter code is written > (ie. the basic algorithm ) . > > Example: "You first create an flv stream , then compress the av

Re: Regd:Video Converter Programming

2006-08-09 Thread placid
Grant Edwards wrote: > On 2006-08-09, placid <[EMAIL PROTECTED]> wrote: > > >> I want to write an avi to flv converter in php but i am a complete > >> newbie to it. > > > via a Google search for "python video convert" i found the following > &g

loop until keypress (Windows XP)

2006-08-09 Thread placid
Hi all, Im using the cmd module and i have command that loops and keeps on printing text, what i want to be able to do is loop until the user presses a particular key, say Q/q ? I tried the following code; line = raw_input ("press q to abort") while line[0] != "q": """ keep printing text ""

Re: loop until keypress (Windows XP)

2006-08-09 Thread placid
Gabriel Genellina wrote: > At Thursday 10/8/2006 02:19, placid wrote: > > >chr = sys.stdin.read(1) > >while chr != "q": > > """ keep printing text """ > > chr = sys.stdin.read(1) > > > >but again this b

Re: loop until keypress (Windows XP)

2006-08-10 Thread placid
Thomas Guettler wrote: > Am Wed, 09 Aug 2006 22:19:24 -0700 schrieb placid: > > > Hi all, > > > > > > Im using the cmd module and i have command that loops and keeps on > > printing text, what i want to be able to do is loop until the user > > press

Re: ALLAH

2006-08-10 Thread placid
[EMAIL PROTECTED] wrote: > > Ey insanlar ve cinler ezeli ve ebedi cennete girmek,ebedi yaşamak,her > istediğini yapmak ve Allah'ı görmek istemezmisiniz. > Ey sevgili ruh,bunun için Allah'a şükretmeli ve iman etmeli > değilmisin. > > HULASA : > Allah,birdir, hiçbirşeye ihtiyacı yoktur,ne birbaşka

ANN: PyPsp 0.1

2006-08-12 Thread placid
First version of PyPsp is released. I have done limited testing as i have limited free time to devote to this project, but im doing my best. There are a three external modules that you need to download see the README file for additional information. Summary Playstation Portable(PSP) V

pickling or xml or other?

2006-08-15 Thread placid
Hi all, I have an application were i want the user to "configure" some settings which are variables within different classes. My question is should i just pickle out these variables to a file in some particular order then read it back. Or use xml to save the config values ? Which one scales bette

os.path.normpath

2006-08-17 Thread placid
Hi all, I was just wondering if there is a anti-os.path.normpath function? For example if i have the path "C:\Program Files\Games" i want to anti-os.path.normpath is so that it becomes "C:\\Program Files\\Games" ? Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: os.path.normpath

2006-08-17 Thread placid
placid wrote: > Hi all, > > I was just wondering if there is a anti-os.path.normpath function? For > example if i have the path "C:\Program Files\Games" i want to > anti-os.path.normpath is so that it becomes "C:\\Program Files\\Games" > ? > > Cheers

BeautifulSoup problem

2006-10-20 Thread placid
Hi all, Just wondering if anyone knows how to get the text between the tags of the following Tag object? Hello Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: BeautifulSoup problem

2006-10-20 Thread placid
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, placid wrote: > > > Hi all, > > > > Just wondering if anyone knows how to get the text between the tags of > > the following Tag object? > > > > Hello > > Are you looking

Python memory usage

2006-11-07 Thread placid
Hi All, Just wondering when i run the following code; for i in range(100): print i the memory usage of Python spikes and when the range(..) block finishes execution the memory usage does not drop down. Is there a way of freeing this memory that range(..) allocated? I found this documen

Re: Python memory usage

2006-11-07 Thread placid
William Heymann wrote: > On Tuesday 07 November 2006 22:42, placid wrote: > > Hi All, > > > > Just wondering when i run the following code; > > > > for i in range(100): > > print i > > > > the memory usage of Python spikes and when th

Re: Python memory usage

2006-11-07 Thread placid
Klaas wrote: > placid wrote: > > Hi All, > > > > Just wondering when i run the following code; > > > > for i in range(100): > > print i > > > > the memory usage of Python spikes and when the range(..) block finishes > > executi

Re: How to access the content of notepad with Python?

2006-05-31 Thread placid
kepioo wrote: > Hi, > > I have a software running on my computer that really looks like notepad > ( same interface, different name). I need to write a script that will > capture the content of this software --> the text written inside. > Dont know about win32, but if you want an easy solution the

Is device Connected Windows?

2006-05-31 Thread placid
Hi all, Just wondering is there a way (not brute force) to check if a usb storage device is connected? The brute force method im talking about is doing a os.path.isdir() or os.path.isdir() on all the drive letters from A-Z, because you know that this usb device contains a folder called A or file

Re: Is device Connected Windows?

2006-06-04 Thread placid
Tim Golden wrote: > [placid] > > | Just wondering is there a way (not brute force) to check if a usb > | storage device is connected? > > Hmmm. How do you identify "a usb storage device" to know that > it is or isn't connected? > > You can certainly do so

Re: Newbie Question

2006-06-19 Thread placid
Saint Malo wrote: > Thanks! That helped a lot! Now, lets say that I just want to display > one or just a few of the items and not the whole line. For example, > the text file contains the following: > > red blue yello > green purple brown > > > If the program searches for blue, i just want it t

Re: Newbie Question

2006-06-19 Thread placid
BartlebyScrivener wrote: > Saint Malo wrote: > > If the program searches for blue, i just want it to print blue > > Huh? Tell it to print whatever you want. > > for line in file: > if 'blue' in line: > print 'blue' > > for line in file: > if 'brown' in line: > print 'brown'

* in Python

2006-06-23 Thread placid
Hi all, Can someone tell me what * in the following code means/does a Google search didnt turn up anything as i dont know what the * is called (related to Python and i dont think Python has pointers) def test(*args): pass and sometimes its; def test(**args): pass Cheers -- http://

Re: * in Python

2006-06-23 Thread placid
Duncan Booth wrote: > placid wrote: > > > Hi all, > > > > Can someone tell me what * in the following code means/does a Google > > search didnt turn up anything as i dont know what the * is called > > (related to Python and i dont think Python has pointer

Re: * in Python

2006-06-23 Thread placid
Bruno Desthuilliers wrote: > placid wrote: > > Duncan Booth wrote: > > > >>placid wrote: > >> > >> > >>>Hi all, > >>> > >>>Can someone tell me what * in the following code means/does a Google > >>>search did

Re: * in Python

2006-06-24 Thread placid
Bruno Desthuilliers wrote: > placid wrote: > > Bruno Desthuilliers wrote: > > > (snip) > >>Why don't you try by yourself in the Python shell ? One of the nice > >>things with Python is that it's quite easy to explore and experiment. > > > &g

HTTP server

2006-06-24 Thread placid
Hi all, Ive been reading about creating a HTTP server like the one pydoc creates (and studying pydoc source code). What i want to know, is it possible to create server that creates a webpage with hyperlinks that communicate back to the HTTP server, where each link accessed tells the server to exec

Re: search engine

2006-06-24 Thread placid
George Sakkis wrote: > vinodh kumar wrote: > > hai all, > > i am student of computer science dept. i have planned to > > design a search engine in python. i am seeking info about how to > > proceed further. > > i need to know what r the modules that can be used. > > There is not

Re: search engine

2006-06-24 Thread placid
Daniel Nogradi wrote: > > hai all, > > i am student of computer science dept. i have planned to > > design a search engine in python. i am seeking info about how to > > proceed further. > > i need to know what r the modules that can be used. > > There are these two guys Sacha or

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread placid
defcon8 wrote: > I thought people would be interested in this little script I wrote to > reproduce the 256 simple automata that is shown in the first chapters > of "A New Kind of Science". You can see a few results without running > the script, at http://cooper-j.blogspot.com . And here is the cod

Re: HTTP server

2006-06-25 Thread placid
Simon Forman wrote: > > > Ok, seriously, I don't know how pydoc does it, but when I need a > quick-and-dirty http server [written in python] I use something like > this: > > from BaseHTTPServer import HTTPServer > from SimpleHTTPServer import SimpleHTTPRequestHandler > > HTTPServer(('', 8000), Si

Re: HTTP server

2006-06-25 Thread placid
Simon Forman wrote: > placid wrote: > > Simon Forman wrote: > > > > ... > > > For what you're asking about you'd probably want to use the > > > CGIHTTPRequestHandler from the CGIHTTPServer module instead. Check out > > > http://docs.pytho

Re: HTTP server

2006-06-26 Thread placid
Simon Forman wrote: > ... > > > > Awesome! Glad to hear it. > > ... > > > > Thanks for the help. I got it to work now. > > > > You're welcome. I'm glad I could help you. :-D > Im having trouble with the following code for handling GET requests from a client to my HTTP server. What i want to do

Re: How do you use this list ?

2006-06-27 Thread placid
Bo Yang wrote: > Hi everyone , > I have join this list for about 4 months , and everyday I receive > hundreds of > mails . There is no means to read all of them , so I just read something > interesting > for me . But if so , there are too much mails pile up in my inbox , I > want to ask > how do y

HTTP server

2006-06-27 Thread placid
Hi all, Im having trouble with the following code for handling GET requests from a client to my HTTP server. What i want to do is restrict access only to a folder and contents(files) within this folder. But when trying to open files (eg text files) i get file not found error from send_head() metho

problem with http server

2006-06-27 Thread placid
Hi all, Im having trouble with the following code for handling GET requests from a client to my HTTP server. What i want to do is restrict access only to a folder and contents(files) within this folder. But when trying to open files (eg text files) i get file not found error from send_head() metho

Re: Python CGI Scripting Documentation

2006-07-02 Thread placid
Vlad Dogaru wrote: > Hello, > > I would like to learn web scripting with Python (sure, everyone uses > PHP, but I don't like the syntax and Python is more general-purpose > and... well, I guess you people know the advantages better than me). > Where can I get a thorough introduction to both CGI an

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread placid
Jim Segrave wrote: > In article <[EMAIL PROTECTED]>, > valpa <[EMAIL PROTECTED]> wrote: > >I'm a net admin for about 20 unix servers, and I need to frequently > >telnet on to them and configure them. > >It is a tiring job to open a xterm and telnet, username, password to > >each server. > > Don't

Re: Threads and time.strptime()

2006-07-03 Thread placid
Maximilian Michel wrote: > Hi all, > > I have an interesting problem: > I have written code, that reads a logfile and parses it for date string > (Thu Jun 29 14:01:23 2006). > Standalone everthing works fine, all is recognized. > > But if I let the same code run in a thread, with the same file as

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > gel wrote: > > > Below is how it is down with vbscript. What is the best way to convert > > this to python? > > > > strComputer = "." > > Set objWMIService = GetObject("winmgmts:" _ > > & "{impersonationLevel=impersonate}!\\" & strComputer & > > "\root\cimv2") > > Set colMonitore

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > placid wrote: > > > gel wrote: > > > gel wrote: > > > > > > > Below is how it is down with vbscript. What is the best way to convert > > > > this to python? > > > > > > > > strComputer = "."

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > > > > Do you have any docs that might help me? the only information i have is from using help(wmi.WMI) and from the examples on Tim Golden's website > > > What would be the best way to watch for multiple pieces of software at > the same time, eg. watching for the start up of calc.ex

Re: multithreading and shared dictionary

2006-07-07 Thread placid
Stéphane Ninin wrote: > Hello, > > Probably a stupid question, but I am not a multithreading expert... > > I want to share a dictionary between several threads. > Actually, I will wrap the dictionary in a class > and want to protect the "sensitive accesses" with locks. > > The problem is I am not

Re: multithreading and shared dictionary

2006-07-08 Thread placid
Alex Martelli wrote: > Istvan Albert <[EMAIL PROTECTED]> wrote: > > > Stéphane Ninin wrote: > > > > > Is a lock required in such a case ? > > > > I believe that assignment is atomic and would not need a lock. > > Wrong, alas: each assignment *could* cause the dictionary's internal > structures to

Re: function that modifies a string

2006-07-09 Thread placid
greenflame wrote: > I want to make a function that does the following. I will call it > thefunc for short. > > >>> s = "Char" > >>> thefunc(s) > >>> s > '||Char>>' > > I tried the following > > def thefunc(s): > s = "||" + s + ">>" > > The problem is that if I look at the string after I apply

Re: Add a method to the int class

2006-07-09 Thread placid
[EMAIL PROTECTED] wrote: > How can I add a method to the int class? sub class it >>> class MyInt(int): >>>def times(self,multiple): >>> return self * multiple >>> >>> a = 2 >>> print a 2 >>> a = MyInt(2) >>> print a >>> 2 >>> print a.times(2) 4 --Cheers -- h

Re: 3d simulation

2006-07-10 Thread placid
alimoe wrote: > I am interested in coding an app which uses physics and 3d and neural > nets and genetics. Any pointers? Open GL Python programming http://www.google.com/search?hl=en&rls=GGGL,GGGL:2006-22,GGGL:en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=opengl+python&spell=1 http://pyopengl.sour

Re: 3d simulation

2006-07-10 Thread placid
alimoe wrote: > > Genetic Programming or Genetic Algorithms? > > whats the difference? Genetic Programming: is an automated methodology inspired by biological evolution to find computer programs that best perform a user-defined task. http://en.wikipedia.org/wiki/Genetic_Programming Genetic Alg

Re: 3d simulation

2006-07-10 Thread placid
alimoe wrote: > I will create a "robot" that crawls over terrain that looks like the > picture here: > > http://pygp.sourceforge.net/index.php3?name=runs is this a real robot or a computer simulation? -- http://mail.python.org/mailman/listinfo/python-list

Re: 3d simulation

2006-07-10 Thread placid
Erik Max Francis wrote: > alimoe wrote: > > >> Genetic Programming or Genetic Algorithms? > > > > whats the difference? > > Genetic algorithms usually involve the manipulation of bit strings. Where bit strings is the the "dna" and each bit in the string represents some value -- http://mail.pyth

Re: error occurs when using wmi module in child thread

2006-07-11 Thread placid
Chen Houwu wrote: > --sample code begin- > > import threading > > import wmi > > def run(*args): > c = wmi.WMI () > memory=c.Win32_LogicalMemoryConfiguration()[0] > info='Total Virtual Memory: '\ > +str(int(memory.TotalVirtual

Re: genetic algorithms package for python ?

2006-09-01 Thread placid
Thomas Samson wrote: > Xiao Jianfeng <[EMAIL PROTECTED]> writes: > > > Hi all, > > > > I am looking for a genetic algorithms package for Python. > > > > I have googled the web before posting and found some links. The link > > of pygene(http://www.freenet.org.nz/python/pygene) cannot be opened. >

HTTP Server Root Folder

2006-09-05 Thread placid
Hi All, I have this BaseHTTPServer.HTTPServer that is located at C:\ (im on Windows XP), when i run the program (httpserver.pyw) from the Run Dialog as "C:\httpserver.pyw" the root folder ("\") for http server is C:\, but when i add an entry to Registry Run so that it runs at boot time, the root f

Re: newbe who is also senior having a senior moment

2006-09-06 Thread placid
stan wrote: > I am a complete newbe to python and only got here because I am trying to set > up iTunes in game Second Life. Have followed all instructions but keep > getting an error reading from my XP Pro OS as follows > > File "C:\Python24\2L file for iTunes", line 4, in -toplevel- > import

Starting Win32 Service

2006-09-26 Thread placid
Hi all, Using Tim Golden's wmi module you can get the service names import wmi c = wmi.WMI () stopped_services = c.Win32_Service (StartMode="Auto", State="Stopped") if stopped_services: for s in stopped_services: print s.Caption, "service is not running" else: print "No auto services stop

Re: Starting Win32 Service

2006-09-27 Thread placid
Tim Golden wrote: > [placid] > | Using Tim Golden's wmi module you can get the service names > | > | import wmi > | c = wmi.WMI () > | stopped_services = c.Win32_Service (StartMode="Auto", State="Stopped") > | if stopped_services: > | for s in st

Re: Starting Win32 Service

2006-09-27 Thread placid
placid wrote: > Tim Golden wrote: > > [placid] > > | Using Tim Golden's wmi module you can get the service names > > | > > | import wmi > > | c = wmi.WMI () > > | stopped_services = c.Win32_Service (StartMode="Auto", State="Stopped&quo

Password, trust and user notification

2006-12-11 Thread placid
Hi all, I was going to write this script for a friend that notifies him via logging onto his Gmail account and sending him an email to his work email about some events occurring in the execution of the script. If you enter your password into a script as input how can someone trust the programmer t

Re: Password, trust and user notification

2006-12-13 Thread placid
Gabriel Genellina wrote: > You DON'T need the password for the receiving account just to send him > an email! > And you don't even need that special Gmail library, smtplib should be > fine. Yes you dont need a password to receive email, but to access Gmail and send an email you do. Yes you do n

Re: Password, trust and user notification

2006-12-13 Thread placid
Gabriel Genellina wrote: > At Wednesday 13/12/2006 21:44, Aidan Steele wrote: > > >While what you said is technically correct, I think you misread > >their original question. They want to send email *from* the Gmail > >account *to* the work account. I suggested that he use Gmail's SMTP > >server t

Re: Password, trust and user notification

2006-12-14 Thread placid
Dennis Lee Bieber wrote: > On Thu, 14 Dec 2006 11:44:14 +1100, "Aidan Steele" <[EMAIL PROTECTED]> > declaimed the following in gmane.comp.python.general: > > > While what you said is technically correct, I think you misread their > > original question. They want to send email *from* the Gmail acco

Re: I'm looking for a pythonic red-black tree...

2006-12-14 Thread placid
Just Another Victim of the Ambient Morality wrote: > I need a red-black tree in Python and I was wondering if there was one > built in or if there's a good implementation out there. Something that, > lets face it, does whatever the C++ std::map<> allows you to do... > Thank you... try, htt

Re: How to stop program when threads is sleeping

2006-12-26 Thread placid
many_years_after wrote: > Carsten Haese wrote: > > On Sun, 2006-12-24 at 22:55 -0800, many_years_after wrote: > > > Hi, pythoners: > > > > > > There is a problem I couldn't dispose. I start a thread in the my > > > program. The thread will do something before executing time.sleep(). > > > Wh

Re: BeautifulSoup vs. loose & chars

2006-12-26 Thread placid
John Nagle wrote: > I've been parsing existing HTML with BeautifulSoup, and occasionally > hit content which has something like "Design & Advertising", that is, > an "&" instead of an "&". Is there some way I can get BeautifulSoup > to clean those up? There are various parsing options related to

Re: Formatting a string to be a columned block of text

2006-12-26 Thread placid
Leon wrote: > Hi, > > I'm creating a python script that can take a string and print it to the > screen as a simple multi-columned block of mono-spaced, unhyphenated > text based on a specified character width and line hight for a column. > For example, if i fed the script an an essay, it would for

Calculating Download Rate

2007-01-05 Thread placid
Hi all, I want be able to work the download rate for downloading HTML pages using the urllib.urlopen(url). The way i thought i would do this is start a timer (or log the current time) just before calling this function and the stopping the timer (logging the current time again and the working out t

path backslash escaping trouble

2007-07-09 Thread placid
Hi All, I have these files; which are Merge Request (ClearCase) files that are created by a Perl CGI script (being re-written in Python, as the HTML/ JavaScript have been mixed with Perl, maintainability is zero) MergeTypecodefromlabel BLnameBUILDMODS OldLname BaseVersion:

Re: path backslash escaping trouble

2007-07-11 Thread placid
On Jul 11, 10:37 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 09 Jul 2007 22:40:04 -0300, placid <[EMAIL PROTECTED]> escribió: > > > > > I have these files; which are Merge Request (ClearCase) files that are > > created by a Perl CGI s

Re: python cgi problem with textarea

2007-04-22 Thread placid
On Apr 22, 4:08 pm, Adrian Smith <[EMAIL PROTECTED]> wrote: > This may be more a cgi thing than a Python one, but I'm trying to get > this page: > > http://adrian10.phpwebhosting.com/trial.html > > consisting basically of this: > > > > > > > ...to print out the contents of the textarea with thi

Re: python cgi problem with textarea

2007-04-23 Thread placid
On Apr 23, 1:01 am, Adrian Smith <[EMAIL PROTECTED]> wrote: > On Apr 22, 10:09 pm, placid <[EMAIL PROTECTED]> wrote: > > > i just tried it and its working. here it is > > >http://yallara.cs.rmit.edu.au/~bevcimen/form.html > > > maybe the internal server e

Re: python cgi problem with textarea

2007-04-24 Thread placid
On Apr 24, 4:52 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > placid <[EMAIL PROTECTED]> wrote: > >On Apr 23, 1:01 am, Adrian Smith <[EMAIL PROTECTED]> wrote: > >> On Apr 22, 10:09 pm, placid <[EMAIL PROTECTED]> wrote: > > >> >

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-25 Thread placid
On Apr 25, 4:40 pm, "Tennessee Leeuwenburg" <[EMAIL PROTECTED]> wrote: > Firstly, let me put up my hand and say that I would be happy to write > Python articles for cash. > I would be happy to write Python articles for a T-shirt with the Python logo printed on it. Maybe each article entrant can re

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-26 Thread placid
On Apr 25, 12:00 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Jeff Rush wrote: > > There is discussion by the Python Software Foundation of offering cash > > bounties or perhaps periodic awards to the "best of" for magazine articles, > > video/screencast clips and such. I would like to see more s

Sending a JavaScript array to Python script?

2007-05-17 Thread placid
Hi All, Just wondering if there is any way of sending a JavaScript array to a Python cgi script? A quick Google search didn't turn up anything useful. Any help appreciated. Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Extract information from HTML table

2007-04-01 Thread placid
On Apr 1, 10:13 pm, "Ulysse" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to extract the data from HTML table. Here is the part of > the HTML source : > """ > > > type="checkbox"> > > Sat, 31.03.20

Projects anyone?

2007-01-16 Thread placid
Hi all, I'm looking for anyone who is working on a project at the moment that needs help (volunteer). The last project i worked on personally was screen-scraping MySpace profiles (read more at the following link) http://placid.programming.projects.googlepages.com/screen-scrapingmyspaceprofiles

Re: Projects anyone?

2007-01-17 Thread placid
Thanks for all the help. I have some projects that i will look into and see if i can contribute anything Cheers Ben Finney wrote: > "placid" <[EMAIL PROTECTED]> writes: > > > I'm looking for anyone who is working on a project at the moment that > > ne

  1   2   >