Re: [PSF-Community] Python Events in 2017, Need your help.

2017-01-09 Thread Danny Adair
Thanks Stephane, Kiwi PyCon 2017 will be in Auckland, New Zealand in September - exact dates and location not yet determined. I'll submit it when they are. Cheers, Danny On Mon, Jan 9, 2017 at 10:54 PM, Stephane Wirtel via PSF-Community wrote: > Dear Community, > > For the Pytho

Re: [Tutor] Convert Qstring to string in windows

2014-10-16 Thread Danny Yoo
On Thu, Oct 16, 2014 at 8:21 AM, C@rlos wrote: > > I have been tryed to convert a Qstring text to string on python, in linux > that work fine but in windows when qstring contine á,é,í,ó,ú the converted > text is not correct, contine extranger characters, > this qstring text is an url from qdialogt

RE: regular expression

2011-08-16 Thread Danny Wong (dannwong)
nd it worked. How dumb of me. Thanks again. -Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Tuesday, August 16, 2011 12:26 AM To: Danny Wong (dannwong) Cc: python-list@python.org Subject: Re: regular expression On Tue, Aug 16, 201

subprocess.Popen question

2011-08-16 Thread Danny Wong (dannwong)
Hi All, I'm executing a command which I want to capture the standard/stderr output into a file (which I have with the code below), but I also want the standard output to go into a variable so I can process the information for the next command. Any ideas? Thanks. CMD_OUTPUT = subprocess.Pop

regular expression

2011-08-16 Thread Danny Wong (dannwong)
Hi All, If I get multiline standard output from a command. How can I retrieve this part of the string "(1006)" Example: #Committing... #Workspace: (1003) "My OS_8.12.0 Work" <-> (1004) "OS_8.12.0" # Component: (1005) "he-Group" <-> (1004) "OS_8.12.0" #Outgoing: # Change sets: #

RE: subprocess.Popen and thread module

2011-08-10 Thread Danny Wong (dannwong)
Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Tuesday, August 09, 2011 11:53 PM To: Danny Wong (dannwong) Cc: python-list@python.org Subject: Re: subprocess.Popen and thread module > On Tue, Aug 9, 2011 at 11:38 PM, Danny Wong (dannwong) >

RE: subprocess.Popen and thread module

2011-08-09 Thread Danny Wong (dannwong)
"In load status is: %s" % status + "\n" except: print "Error Executing %s" % command + "\n" -Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Tuesday, August 09, 2011 11:47 PM To: Danny

subprocess.Popen and thread module

2011-08-09 Thread Danny Wong (dannwong)
Hi All, I'm trying to execute some external commands from multiple database. I'm using threads and subprocess.Popen ( from docs, all the popen* functions are deprecated and I was told to use subprocess.Popen) to execute the external commands in parallel, but the commands seems to hang. My quest

python module to determine if a machine is idle/free

2011-08-03 Thread Danny Wong (dannwong)
Hi all, I have 5 server machines that are using to process information. I would like to write a quick server python script that determines which of the machines are not in use. Any recommendations on which python module I should use to detect if a machine is not performing idle (ex

Seeking an example on using Queue to update variable while threading

2011-07-27 Thread Danny Wong (dannwong)
Hi Python experts, I'm trying to use a dict structure to store and update information from X number of threads. How do I share this dict structure between threads? I heard of using a queue, but I'm not familiar with how it works. Does anyone have an example of using a queue to store vari

virtualenv problem on win32

2011-04-13 Thread Danny Shevitz
, in install_setuptools _install_req(py_executable, unzip) File "c:\python27\lib\site-packages\virtualenv-1.6-py2.7.egg\virtualenv.py", l ine 547, in _install_req cwd=cwd) File "c:\python27\lib\site-packages\virtualenv-1.6-py2.7.egg\virtualenv.py", l ine 813, in call_subproce

calling 64 bit routines from 32 bit matlab on Mac OS X

2011-03-15 Thread Danny Shevitz
86". I need to call some commercial 3rd party C extension code that is 64 bit. Am I just out of luck or is there something that I can do? thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: attach to process by pid?

2011-03-09 Thread Danny Shevitz
> Have a look at the SIMPL toolkit. http://www.icanprogram.com/06py/lesson1/lesson1.html > > This should be able to do exactly what you want. > > bob Does this work on Mac OS X? thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: attach to process by pid?

2011-03-09 Thread Danny Shevitz
> process has some kind of communication(s) interface; eg: > * some kind of listening socket > * some kind of I/O (pipe, stdin/stdout) It does have a stdin/stdout. How do I access it? thanks, D -- http://mail.python.org/mailman/listinfo/python-list

attach to process by pid?

2011-03-08 Thread Danny Shevitz
Howdy, Is there any way to attach to an already running process by pid? I want to send commands from python to an application that is already running. I don't want to give the command name to subprocess.Popen. thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: how to communicate in python with an external process

2011-03-07 Thread Danny Shevitz
.3-py2.6-linux-x86-64.egg') I am in the same directory as the egg when I do this. I am certainly doing something stupid, but don't know what it is. thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

how to communicate in python with an external process

2011-03-07 Thread Danny Shevitz
ut, then go on in my python code and at some point later, repeat the process of attaching to the persistent matlab pid... I am familiar with subprocess.Popen, but I don't understand how to attach to a pid, as opposed to creating a new matlab instance every time. Any enlightenment would be ap

Re: Debugger - fails to "continue" with breakpoint set

2010-09-27 Thread Danny Levinson
Does this describe the problem you are having? http://bugs.python.org/issue5294 -- http://mail.python.org/mailman/listinfo/python-list

Re: IOError and Try Again to loop the loop.

2010-07-11 Thread The Danny Bos
t;IOError; Retrying..." pass print "Done" On Jul 12, 2:14 pm, Chris Rebert wrote: > On Sun, Jul 11, 2010 at 8:13 PM, The Danny Bos wrote: > > > > > > > Thanks gang, > > I'm gonna paste what I've put together, doesn'

Re: IOError and Try Again to loop the loop.

2010-07-11 Thread The Danny Bos
print "Error Processing record: %s: %s" % (item.reference_id, url) pass except IOError: print "IOError; Retrying..." pass print "Done" On Jul 12, 12:33 pm, MRAB wrote: > The Danny Bos wrote: > >

IOError and Try Again to loop the loop.

2010-07-11 Thread The Danny Bos
script to start again? I mean, in Terminal it dies anyway, so I have to start it again by hand, which is a pain as it dies so sporadically. Can I automate this error, catch it and just get it to restart the loop? Thanks for your time and energy, Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: MODULE FOR I, P FRAME

2010-02-24 Thread DANNY
On Feb 24, 3:11 am, "Rhodri James" wrote: > On Tue, 23 Feb 2010 10:39:21 -, DANNY wrote: > > @James I am thinkinhg about effect of errors that are within the > > sequence of P frames. Where the P frames have only the information > > about the changes in prev

Re: MODULE FOR I, P FRAME

2010-02-23 Thread DANNY
@James I am thinkinhg about effect of errors that are within the sequence of P frames. Where the P frames have only the information about the changes in previous frames, so that errors are present until the next I frame. So I would like to see how is this seen in different GoP sized clips. @Tim Th

Re: MODULE FOR I, P FRAME

2010-02-22 Thread DANNY
On Feb 21, 1:54 am, Tim Roberts wrote: > DANNY wrote: > > >If I want to have a MPEG-4/10 coded video and stream it through the > >network and than have the same video on the client side, what should I > >use and of course I don't want to have raw MPEG data, because t

Re: MODULE FOR I, P FRAME

2010-02-15 Thread DANNY
On Feb 16, 12:53 am, "Rhodri James" wrote: > On Sun, 14 Feb 2010 10:07:35 -, DANNY wrote: > > Hy, first thanks for your response! > > Well I am thinkin on coding in MPEG4/10, but I would just encode the > > video in that encoding, > > then stream it w

MODULE FOR I, P FRAME

2010-02-11 Thread DANNY
Hello! I am currently developing a simple video player in python, and my problem is that i can't find a module which has a function that can determine if frame(image) is I or P coded (MPEG coding). I have been using PIL but I couldnt find anything that could help me with that problem. Thanks for

geospatial python and how to convert multilinestrings to kml

2009-03-03 Thread Danny Shevitz
there a pythonic way (some existing module) to convert PostGIS MultiLineStrings to a KML file format? thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

problem doing unpickle in an exec statement

2008-07-23 Thread Danny Shevitz
;' def include(file_name): print "processing file_name: ", file_name import cPickle fp = open(file_name, "rb") result = cPickle.load(fp) fp.close() print "result = ", result ''' # create the new include_fun include_fun = create_fun(code_text)

Re: how to convert a multiline string to an anonymous function?

2008-04-30 Thread Danny Shevitz
Thanks All! you've solved my problem. D -- http://mail.python.org/mailman/listinfo/python-list

how to convert a multiline string to an anonymous function?

2008-04-29 Thread Danny Shevitz
into collisions if I use the function more than once. I know I'm missing something stupid here, but I'm stuck just the same... thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

instance method questions

2007-08-22 Thread Danny
method? thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

problem with psqlite2 return types

2007-07-18 Thread Danny
ey in primaryKeys] self.cursor.execute(query, paramList) Any ideas? TIA, Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: Common Python Idioms

2006-12-07 Thread Danny Colligan
.ferg.org/projects/python_gotchas.html http://www.onlamp.com/pub/a/python/2004/02/05/learn_python.html Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: IEC Controller and element

2006-11-30 Thread Danny Scaleno
.com/python/IEC/index.php Great library ! Danny > using IEC Controller, > anybody knows how to capture the head part of an html page like this one? > > > > > Object=window.open('test.html','test1','name="test1"'); > Object.f

IEC Controller and element

2006-11-28 Thread Danny Scaleno
Hello, using IEC Controller, anybody knows how to capture the head part of an html page like this one? Object=window.open('test.html','test1','name="test1"'); Object.focus() it seems IEC is able to capture only the part. I need to parse the string inside the tag

Re: Yield

2006-11-16 Thread Danny Colligan
j>> x = primes(11) >>> x.next() 2 >>> x.next() 3 >>> x.next() 5 >>> x.next() 7 >>> x.next() 11 >>> x.next() Traceback (most recent call last): File "", line 1, in ? StopIteration >>> Danny Colligan On Nov 16, 10:4

Re: Yield

2006-11-16 Thread Danny Colligan
large numbers of objects. Is this the main advantage of using generators? Also, in what other novel ways are generators used that are clearly superior to alternatives? Thanks in advance, Danny On Nov 16, 3:14 am, John Machin <[EMAIL PROTECTED]> wrote: > On 16/11/2006 7:00 PM, Fred

newbie: minidom

2006-11-10 Thread Danny Scalenotti
I'm not able to get out of this ... from xml.dom.minidom import getDOMImplementation impl = getDOMImplementation() // default UTF-8 doc = impl.createDocument(None, "test",None) root = doc.documentElement root.setAttribute('myattrib', '5') print root.toxml() I obtain why not this?

Re: Why can't you assign to a list in a loop without enumerate?

2006-10-31 Thread Danny Colligan
I see. Thanks for the helpful response. Danny Duncan Booth wrote: > "Danny Colligan" <[EMAIL PROTECTED]> wrote: > > > In the following code snippet, I attempt to assign 10 to every index in > > the list a and fail because when I try to assign number to 10, nu

Why can't you assign to a list in a loop without enumerate?

2006-10-31 Thread Danny Colligan
r loop instead of the value itself? Also, is there any way to assign to a list in a for loop (with as little code as used above) without using enumerate? Thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

Hiding / showing windows in Macs

2006-09-19 Thread Sinang, Danny
Hello,   How do we hide and show windows in Macs ?   Regards, Danny     -- http://mail.python.org/mailman/listinfo/python-list

Re: Zipping Files to user defined Directory

2006-09-02 Thread Danny Milosavljevic
er the archive to them?... Like you deliver any other content in a cgi (assuming you are using a cgi): By printing in on standard output. I don't know "TurboGears" though. cheers, Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] os listdir access denied when run as a service

2006-05-25 Thread Danny Yoo
On Thu, 25 May 2006, Thomas Thomas wrote: > I am trying to access a mapped network drive folder. everything works > fine normally. But when i run the application as service I am getting > the error The error is on the line: for filename in os.listdir(folder):#line 25 and I have to ass

Changing numbers into characters using dictionaries

2006-01-26 Thread Danny
nge "@[EMAIL PROTECTED]@[EMAIL PROTECTED]" into "lawl" I get the error: Traceback (most recent call last): File "C:/Documents and Settings/Danny/My Documents/python/changetext.py", line 9, in ? var = str(a[t[something]]) KeyError: '7704' I've exp

Re: While loop - print several times but on 1 line.

2006-01-26 Thread Danny
Great! It's been solved. The line, as Glaudio said has a "," at the end and that makes it go onto one line, thanks so much man! var = 0 while <= 5: print a[t[var]], var = var +1 prints perfectly, thanks so much guys. -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop - print several times but on 1 line.

2006-01-26 Thread Danny
I think I should paste some of the programs code a little more of what I want... var = 0 while var <= 5: print a[t[var]] var = var +1 a is a dectionary (very big) and t is a string of text. (if that's important right now). I'm just trying to make the value of a[t[var]] print on one l

While loop - print several times but on 1 line.

2006-01-26 Thread Danny
Hello there. I'm creating a little text changer in Python. In the program there is a while loop. The problem is that a while loop will have 1 print statement and it will loop until it gets to the end of the text. Example: num = 5 // Set num to 5 while num >= 1: // loop 5 times. print

Re: [Baypiggies] BayPIGgies: December 8, 7:30pm (IronPort)

2005-12-05 Thread Danny Yoo
> Advance notice: We need speakers for January and later. Please send > e-mail to [EMAIL PROTECTED] if you want to suggest an agenda (or > volunteer to give a presentation). Correction: that email address should be '[EMAIL PROTECTED]'. -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] how to convert between type string and token

2005-11-14 Thread Danny Yoo
On Mon, 14 Nov 2005, enas khalil wrote: > hello all [program cut] Hi Enas, You may want to try talking with NTLK folks about this, as what you're dealing with is a specialized subject. Also, have you gone through the tokenization tutorial in: http://nltk.sourceforge.net/tutorial/tok

Re: append one file to another

2005-07-12 Thread Danny Nodal
Its been a while since I last coded in Python, so please make sure you test it before trying it so you don't clobber your existing file. Although it may not be more effecient than what you are doing now or has been suggested already, it sure cuts down on the typing. open(outfilename,'a').write(ope

Re: cursor positioning

2005-07-11 Thread Danny Milosavljevic
is smaller than what is needed to print that horizontally, so technically its not totally clean code. Hope that helps cheers, Danny -- http://mail.python.org/mailman/listinfo/python-list

socket.listen() backlog value

2005-03-11 Thread Sinang, Danny
blems are reported.   My question is, is our socket.listen(10) enough ? Should I increase it ? What is the maximum value for our particular server operating system ?   Regards,Danny SinangBusiness Process Reengineering Tel: +632-855-8686  Fax: +632-855-8630www.spipublisherservices.com CONFI

python tutorial/projects

2005-02-22 Thread Danny
Does anyone know of a good python tutorial? I was also looking for some non-trivial projects to do in python. Basically I would like to claim on my resume, that I know python, with out bad karma. Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: [Mingw-users] Problem with msvcrt60 vs. msvcr71 vs. strdup/free

2004-12-21 Thread Danny Smith
svcrt with -lwhatever.. Patches to facilitate switching to an alternative msvcr*.dll could be submitted to gcc. Danny -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] Programming help

2004-12-06 Thread Danny Yoo
On Mon, 6 Dec 2004, Alfred Canoy wrote: > Please help me out:(.. I've been trying to figure this out for 2 days > now.. I don't know what to use to print all the list of numbers. I hve > know idea how should I do this. I tried a lot of trial & error for the > the def, dict, .list( ). have no luc