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
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
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
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
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:
#
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)
>
"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
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
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
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
, 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
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
> 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
> 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
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
.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
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
Does this describe the problem you are having?
http://bugs.python.org/issue5294
--
http://mail.python.org/mailman/listinfo/python-list
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'
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:
> >
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
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
@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
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
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
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
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
;'
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)
Thanks All!
you've solved my problem.
D
--
http://mail.python.org/mailman/listinfo/python-list
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
method?
thanks,
Danny
--
http://mail.python.org/mailman/listinfo/python-list
ey in primaryKeys]
self.cursor.execute(query, paramList)
Any ideas?
TIA,
Danny
--
http://mail.python.org/mailman/listinfo/python-list
.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
.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
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
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
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
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?
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
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
Hello,
How do we hide and
show windows in Macs ?
Regards,
Danny
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
55 matches
Mail list logo