Re: how to send a json of yield list

2016-10-14 Thread meInvent bbird
when not to use queue, it is faster now while True: for ii in getcombinations(): item = ii print(item) sock.send(json.dumps(ii)) On Friday, October 14, 2016 at 5:11:35 PM UTC+8, meInvent bbird wrote: > succeed to run, > > is it the yield return the whole list

Re: how to send a json of yield list

2016-10-14 Thread meInvent bbird
succeed to run, is it the yield return the whole list 2000 * 2000 * 2000 items? as i know that yield is return [1,1,1] etc one by one once it get if it return 2000*2000*2000 items, why? i have to add a queue get this yield in order to succeed but i do not understand the situation when using qu

Re: how to send a json of yield list

2016-10-13 Thread dieter
meInvent bbird writes: > after google a several solutions, > First method i searched has memory error > sock.send(json.dumps(StreamArray())) > Traceback (most recent call last): > File "pusher.py", line 43, in > sock.send(json.dumps(StreamArray())) > ... > MemoryError "MemoryError" means

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Alister
On Tue, 24 Sep 2013 12:29:14 +, Steven D'Aprano wrote: > On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: > >> To put it even more simply If you have a legitimate reason to send me >> emails then you have no legitimate reason to withhold your true >> Identity. > > "Dear Alister, > > Whi

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Chris Angelico
On Tue, Sep 24, 2013 at 10:29 PM, Steven D'Aprano wrote: > On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: > >> To put it even more simply >> If you have a legitimate reason to send me emails then you have no >> legitimate reason to withhold your true Identity. > > "Dear Alister, > > Forgive th

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Steven D'Aprano
On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: > To put it even more simply > If you have a legitimate reason to send me emails then you have no > legitimate reason to withhold your true Identity. "Dear Alister, Forgive this anonymous email, but I don't wish to get fired from my job and sue

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Alister
On Sat, 21 Sep 2013 20:41:25 +1000, Chris Angelico wrote: > On Sat, Sep 21, 2013 at 8:15 PM, Νίκος wrote: >> On 21/9/2013 1:04 μμ, Chris Angelico wrote: >>> >>> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: Can you please tell me what alternation must be made in order to send this

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Joel Goldstick
On Sat, Sep 21, 2013 at 6:41 AM, Chris Angelico wrote: > On Sat, Sep 21, 2013 at 8:15 PM, Νίκος wrote: > > On 21/9/2013 1:04 μμ, Chris Angelico wrote: > >> > >> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: > >>> > >>> Can you please tell me what alternation must be made in order to send > >>>

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Chris Angelico
On Sat, Sep 21, 2013 at 8:15 PM, Νίκος wrote: > On 21/9/2013 1:04 μμ, Chris Angelico wrote: >> >> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: >>> >>> Can you please tell me what alternation must be made in order to send >>> this >>> anonymously? >>> >>> that is my question. There must be a way.

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Νίκος
On 21/9/2013 1:04 μμ, Chris Angelico wrote: On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: Can you please tell me what alternation must be made in order to send this anonymously? that is my question. There must be a way. No, there isn't. The nearest you could come to anonymous mail would be s

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Chris Angelico
On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: > Can you please tell me what alternation must be made in order to send this > anonymously? > > that is my question. There must be a way. No, there isn't. The nearest you could come to anonymous mail would be sending via a botnet (to hide your IP addr

Re: How to send broadcast IP address to network?

2013-08-24 Thread Irmen de Jong
On 23-8-2013 14:32, lightai...@gmail.com wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > The following 2 lines of code do not work; > host="192.168.0.102" > s.connect((host, port)) > > Can someone advise? > > Thank you. > Use UDP (datagram)

Re: How to send broadcast IP address to network?

2013-08-23 Thread Chris Angelico
On Fri, Aug 23, 2013 at 10:32 PM, wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > The following 2 lines of code do not work; > host="192.168.0.102" > s.connect((host, port)) > > Can someone advise? You can't establish a TCP socket with a broadc

Re: How to send broadcast IP address to network?

2013-08-23 Thread Neil Cerutti
On 2013-08-23, lightai...@gmail.com wrote: >> The following 2 lines of code do not work; >> >> host="192.168.0.255" >> host="192.168.0.102" >> s.connect((host, port)) Traceback (most recent call last): File "", line 1, in NameError: name 's' is not defined I bet that's not the same traceback

Re: How to send broadcast IP address to network?

2013-08-23 Thread lightaiyee
Some typo mistake. Should be host="192.168.0.255", not "192.168.0.102" On Friday, August 23, 2013 8:32:10 PM UTC+8, light...@gmail.com wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > > > The following 2 lines of code do not work; > > host="

Re: How to send data from excel to website using python please help?

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 10:22 AM, Neil Cerutti wrote: > On 2013-03-19, s.arun...@gmail.com wrote: > > Hi, im new to python. Wanted to know how to extract data from > > excel sheet and send it to webpage form. Thanks in advance. > > Can you be more clear about what you want to do with this data?

Re: How to send data from excel to website using python please help?

2013-03-19 Thread Neil Cerutti
On 2013-03-19, s.arun...@gmail.com wrote: > Hi, im new to python. Wanted to know how to extract data from > excel sheet and send it to webpage form. Thanks in advance. I like to export Excel documents as csv files and read them using the csv module's DictReader class. You can read from them dire

Re: How to Send a Tweet from Python? I can read, but not post.

2013-02-11 Thread Steven D'Aprano
saqib.ali...@gmail.com wrote: > I posted this on StackOverflow.com but haven't got a good response yet: > http://stackoverflow.com/questions/14808245/python-why-cant-i-send-a-tweet > > > > I have tried two different packages python-twitter and tweepy but have not > been successful using either

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-20 Thread Mark Lawrence
On 19/09/2012 20:12, ashish wrote: Folks, I asked the same query on the python tutor mailing list. The responses i received are here : http://thread.gmane.org/gmane.comp.python.tutor/77601 Mark, There is nothing wrong in asking a query on multiple forums. Poeple on the tutor list, may not be

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-19 Thread ashish
Folks, I asked the same query on the python tutor mailing list. The responses i received are here : http://thread.gmane.org/gmane.comp.python.tutor/77601 Mark, There is nothing wrong in asking a query on multiple forums. Poeple on the tutor list, may not be part of comp.lang.python & subscribe

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-11 Thread Mark Lawrence
On 11/09/2012 22:51, ashish makani wrote: Hi c.l.p peeps I am stuck with an issue, so am coming to the Pythonista deltaforce who rescue me everytime :) [big snip] I say old chap, it's simply not cricket to ask a question like this some 32 minutes after asking the same question on the tutor

Re: How to send an IP packet in Python?

2010-12-02 Thread Nobody
On Thu, 02 Dec 2010 03:12:42 -0800, yegorov-p wrote: > I have sniffed some packet and now I would like to send it with the > help of python. > But for some reason python send that: > As you can see, python ignores my headers and creates its own. It isn't Python doing that, but the OS. At least

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
On Jun 24, 2:25 pm, Tim Chase wrote: > On 06/24/2010 04:47 AM, Xianwen Chen wrote: > > > > > Thanks a lot for your reply! I thought it would be simpler if the > > problem was presented in a brief way. Unfortunately, not for this > > case. > > > Here is the detail. Free Yahoo! mail accounts can be

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
On Jun 24, 2:23 pm, Michael Torrie wrote: > On 06/24/2010 03:47 AM, Xianwen Chen wrote: > > > , but I got error messages. Any hint please? > > Why not just use a proxy server: > > http://sourceforge.net/projects/imapidproxy/ Hi Michael Thanks a lot! Yes, it would be much more convenient. Actual

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On Thu, Jun 24, 2010 at 2:25 PM, Tim Chase wrote: > On 06/24/2010 04:47 AM, Xianwen Chen wrote: > >> Thanks a lot for your reply! I thought it would be simpler if the >> problem was presented in a brief way. Unfortunately, not for this >> case. >> >> Here is the detail. Free Yahoo! mail accounts c

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Tim Chase
On 06/24/2010 04:47 AM, Xianwen Chen wrote: Thanks a lot for your reply! I thought it would be simpler if the problem was presented in a brief way. Unfortunately, not for this case. Here is the detail. Free Yahoo! mail accounts can be accsessed via IMAP protocal, however, a non-standard shake ha

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Michael Torrie
On 06/24/2010 03:47 AM, Xianwen Chen wrote: > , but I got error messages. Any hint please? Why not just use a proxy server: http://sourceforge.net/projects/imapidproxy/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Michael Torrie
On 06/24/2010 03:47 AM, Xianwen Chen wrote: > . This is what I'm now working for. I tried: > > IMAP4.xatom('','ID ("GUID" "1")','',) > > and > > dest_srv.xatom('ID ("GUID" "1")') > > , but I got error messages. Any hint please? What error messages? -- http://mail.python.org/mailman/listinfo/p

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On 6/24/10, Tim Chase wrote: > On 06/23/2010 05:22 PM, Xianwen Chen wrote: >> I need to send one line of commands to an IMAP server. The commands >> are not standard IMAP protocols, hence it's not specified in >> http://docs.python.org/library/imaplib.html. > > Sounds like you want to use the imap

Re: How to send a non-standard IMAP command?

2010-06-23 Thread Tim Chase
On 06/23/2010 05:22 PM, Xianwen Chen wrote: I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Sounds like you want to use the imaplib's IMAP4.xatom() to send a custom com

Re: How to send a compsite key to window

2009-05-25 Thread Gabriel Genellina
En Thu, 21 May 2009 09:38:26 -0300, zhouhaifeng escribió: just like "ctrl + A", I want to select all the text in a window, now , I operate right menu to get it, but it can not work all the time. so I want to send "ctrl + a" to the window I'd do it in a different way: asuming it is an edit co

Re: How to send an email with GMail in Python from Windows

2009-03-12 Thread gordyt
Howdy Avinash, Here is a simple example for you. from smtplib import SMTP HOST = "smtp.gmail.com" PORT = 587 ACCOUNT = ""# put your gmail email account here PASSWORD = "" # put your gmail email password here def send_email(to_addrs, subject, msg): server = SMTP(HOST,PORT) s

Re: How to send an email with GMail in Python from Windows

2009-03-12 Thread dorzey
You might want to try - http://libgmail.sourceforge.net/. This is a Python binding for GMail; I've used it a little and it did the job for me. Dorzey -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send body and attachements in an email message?

2008-12-03 Thread Aspersieman
On Wed, 03 Dec 2008 12:40:30 +0200, srinivasan srinivas <[EMAIL PROTECTED]> wrote: HI, I would like to send an email message with body-content 'test' and an attachment. The snippet i used is: outer = email.mime.multipart.MIMEMultipart() msg1 = email.mime.text.MIMEText(, _subtype = 'text')

Re: How to send Data Transfer Objects across the network?

2008-10-02 Thread Larry Bates
Daniel wrote: Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle them and send them over a socket connection. As I get deeper t

Re: How to send Data Transfer Objects across the network?

2008-10-02 Thread Jean-Paul Calderone
On Thu, 2 Oct 2008 14:45:12 -0700 (PDT), Daniel <[EMAIL PROTECTED]> wrote: Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle th

Re: How to send Data Transfer Objects across the network?

2008-10-02 Thread Bruno Desthuilliers
Daniel a écrit : Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle them and send them over a socket connection. As I get deepe

Re: how to send a "Multiline" mail with smtplib?

2008-06-23 Thread Evan
On Jun 19, 6:12 pm, Lie <[EMAIL PROTECTED]> wrote: > On Jun 19, 4:02 pm, Justin Ezequiel <[EMAIL PROTECTED]> > wrote: > > > perhaps change html > > > body=MIMEText('hello,\r\n > > ok',_subtype='html',_charset='windows-1255') > > > to plain > > > body=MIMEText('hello,\r\n > > ok',_subtype='plain',_c

Re: how to send a "Multiline" mail with smtplib?

2008-06-19 Thread Lie
On Jun 19, 4:02 pm, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > perhaps change html > > body=MIMEText('hello,\r\n > ok',_subtype='html',_charset='windows-1255') > > to plain > > body=MIMEText('hello,\r\n > ok',_subtype='plain',_charset='windows-1255') If that was the case, and you needed a line b

Re: how to send a "Multiline" mail with smtplib?

2008-06-19 Thread Justin Ezequiel
perhaps change html body=MIMEText('hello,\r\n ok',_subtype='html',_charset='windows-1255') to plain body=MIMEText('hello,\r\n ok',_subtype='plain',_charset='windows-1255') -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a POST request?

2008-06-07 Thread kj
Thanks to Jeff and subeen for the helpful comments and suggestions. Kynn -- NOTE: In my address everything before the first period is backwards; and the last period, and everything after it, should be discarded. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a POST request?

2008-06-06 Thread subeen
On Jun 7, 6:17 am, "Jeff McNeil" <[EMAIL PROTECTED]> wrote: > The original urllib module will do it too, if you pass a data keyword > argument to urllib.urlopen: > > u = urllib.urlopen('http://www.domain.com/cgi-bin/cgi.py', > data=urllib.urlencode({'name': 'pythonguy'})) > > On Fri, Jun 6, 2008 at

Re: How to send a POST request?

2008-06-06 Thread Jeff McNeil
The original urllib module will do it too, if you pass a data keyword argument to urllib.urlopen: u = urllib.urlopen('http://www.domain.com/cgi-bin/cgi.py', data=urllib.urlencode({'name': 'pythonguy'})) On Fri, Jun 6, 2008 at 6:04 PM, kj <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]> kj <[E

Re: How to send a POST request?

2008-06-06 Thread kj
In <[EMAIL PROTECTED]> kj <[EMAIL PROTECTED]> writes: >Hi. Sorry for this very clueless question, but how does one write >in Python an HTTP client that can send a POST request? The modules >I've found (e.g. urllib, urllib2), as far as I can tell, seem to >be limited to GET requests. (I could be

Re: How to send a var to stdin of an external software

2008-03-25 Thread Bryan Olson
Benjamin Watine wrote: > OK, so if I understand well what you said, using queue allow to be sure > that the data is passed in totality before coninuing with next > instruction. That make sense. Right. > Using thread and queue seems to be very more slow than using files > redirection with bash.

Re: How to send a var to stdin of an external software

2008-03-25 Thread Benjamin Watine
Bryan Olson a écrit : > Benjamin Watine wrote: >> [EMAIL PROTECTED] a écrit : >>> I wrote: And here's a thread example, based on Benjamin's code: >>> [...] >>> >>> Doh! Race condition. Make that: >>> >>> import subprocess >>> import thread >>> import Queue >>> >>> def readtoq(p

Re: How to send a var to stdin of an external software

2008-03-21 Thread Bryan Olson
Benjamin Watine wrote: > [EMAIL PROTECTED] a écrit : >> I wrote: >>> And here's a thread example, based on Benjamin's code: >> [...] >> >> Doh! Race condition. Make that: >> >> import subprocess >> import thread >> import Queue >> >> def readtoq(pipe, q): >> q.put(pipe.read(

Re: How to send a var to stdin of an external software

2008-03-17 Thread Benjamin Watine
[EMAIL PROTECTED] a écrit : > I wrote: >> And here's a thread example, based on Benjamin's code: > [...] > > Doh! Race condition. Make that: > > import subprocess > import thread > import Queue > > def readtoq(pipe, q): > q.put(pipe.read()) > > cat = subprocess.Popen

Re: How to send a var to stdin of an external software

2008-03-14 Thread bryanjugglercryptographer
I wrote: > And here's a thread example, based on Benjamin's code: [...] Doh! Race condition. Make that: import subprocess import thread import Queue def readtoq(pipe, q): q.put(pipe.read()) cat = subprocess.Popen('cat', shell=True, stdin=subprocess.PIPE, stdout=subpr

Re: How to send a var to stdin of an external software

2008-03-14 Thread bryanjugglercryptographer
Floris Bruynooghe wrote: > Benjamin Watine wrote: > > Could you give me more information / examples about the two solutions > > you've proposed (thread or asynchronous I/O) ? > > The source code of the subprocess module shows how to do it with > select IIRC. Look at the implementation of the commu

Re: How to send a var to stdin of an external software

2008-03-14 Thread Floris Bruynooghe
On Mar 14, 11:37 am, Benjamin Watine <[EMAIL PROTECTED]> wrote: > Bryan Olson a écrit : > > > I wrote: > >> [...] Pipe loops are tricky business. > > >> Popular solutions are to make either the input or output stream > >> a disk file, or to create another thread (or process) to be an > >> active re

Re: How to send a var to stdin of an external software

2008-03-14 Thread Benjamin Watine
Bryan Olson a écrit : > I wrote: >> [...] Pipe loops are tricky business. >> >> Popular solutions are to make either the input or output stream >> a disk file, or to create another thread (or process) to be an >> active reader or writer. > > Or asynchronous I/O. On Unix-like systems, you can selec

Re: How to send a var to stdin of an external software

2008-03-13 Thread Bryan Olson
I wrote: > [...] Pipe loops are tricky business. > > Popular solutions are to make either the input or output stream > a disk file, or to create another thread (or process) to be an > active reader or writer. Or asynchronous I/O. On Unix-like systems, you can select() on the underlying file descr

Re: How to send a var to stdin of an external software

2008-03-13 Thread Bryan Olson
Benjamin Watine wrote: > And if somebody need it : to get the stdout in a var (myNewVar), not in > the shell : > > cat = subprocess.Popen('cat', shell = True, stdin = subprocess.PIPE, > stdout=subprocess.PIPE) > cat.stdin.write(myVar) > cat.stdin.close() > cat.wait() > myNewVar = cat.stdout.read

Re: How to send a var to stdin of an external software

2008-03-13 Thread Benjamin Watine
Marko Rauhamaa a écrit : > Benjamin Watine <[EMAIL PROTECTED]>: > >> How can I do this ? I would like a function like that : >> >> theFunction ('cat -', stdin=myVar) >> >> Another related question : Is there's a limitation of var size ? I >> would have var up to 10 MB. > > import subprocess

Re: How to send a var to stdin of an external software

2008-03-13 Thread Sion Arrowsmith
Benjamin Watine <[EMAIL PROTECTED]> wrote: >How can I do this ? I would like a function like that : > > theFunction ('cat -', stdin=myVar) > >I don't need to get any return value. http://docs.python.org/lib/node534.html says this is spelt myVar = subprocess.Popen(["cat", "-"], stdout=subpr

Re: How to send a var to stdin of an external software

2008-03-13 Thread Marko Rauhamaa
Benjamin Watine <[EMAIL PROTECTED]>: > How can I do this ? I would like a function like that : > > theFunction ('cat -', stdin=myVar) > > Another related question : Is there's a limitation of var size ? I > would have var up to 10 MB. import subprocess myVar = '*' * 1000 cat = subproce

Re: how to send files via bluetooth with python to a mobile

2007-07-03 Thread Drex
Hi, I tried the example from the site http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython but I am getting the following error: /home/daniel/projekty/_moje/python/send_txt_to_mobile.py Traceback (most recent call last): File "/home/daniel/projekty/_moje/python/send_txt_to_mobil

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hello, > > seams thatpythonbindings are already there? > >http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython > > Cool, didn't find that. thanks, this looks to be what I was looking for! regards dz -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Diez B. Roggisch
morphine schrieb: > Diez B. Roggisch wrote: > >> Wrap this >> >> http://www.zuckschwerdt.org/apidocs/ > > seams that python bindings are already there? > http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython Cool, didn't find that. diez -- http://mail.python.org/mailman/listinfo

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread morphine
Diez B. Roggisch wrote: > Wrap this > > http://www.zuckschwerdt.org/apidocs/ seams that python bindings are already there? http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython -- morphine -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hello, > > Wrap this > > http://www.zuckschwerdt.org/apidocs/ > > using ctypes. thanks, no idea on how to do it (yet hopefully), but I will try ;) regards dz -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Diez B. Roggisch
Drex schrieb: > Hey, > >>> I'm not sure but try this: ( py_s60 ) >>> http://sourceforge.net/projects/pyed/ > >> and also try this: >> >> http://sourceforge.net/projects/pys60 > > thanks, but I am affraid this is not what I was looking for. I need to > have some library on my pc (linux) that w

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hey, > > I'm not sure but try this: ( py_s60 ) > > >http://sourceforge.net/projects/pyed/ > and also try this: > > http://sourceforge.net/projects/pys60 thanks, but I am affraid this is not what I was looking for. I need to have some library on my pc (linux) that would allow me to transfer a

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread vedrandekovic
[EMAIL PROTECTED] je napisao/la: > Drex je napisao/la: > > Hi, > > > > I have been looking on the internet for some info about sending files > > from PC to a mobile phone (I have a nokia 6288) but I was not able to > > find anything. > > > > there is a lot of info how to transfer files from a symb

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread vedrandekovic
Drex je napisao/la: > Hi, > > I have been looking on the internet for some info about sending files > from PC to a mobile phone (I have a nokia 6288) but I was not able to > find anything. > > there is a lot of info how to transfer files from a symbian phone to a > pc, but nothing about sending th

Re: How to send

2007-03-20 Thread kyosohma
On Mar 20, 7:21 am, "Admir Saric" <[EMAIL PROTECTED]> wrote: > Hi, > > i have created an application in pygtk. The application creates files with > its own file type and extensions and saves them. I would like to extend the > application to be able to send these files over WLAN. I would use the > a

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Grant Edwards
On 2006-10-16, Sybren Stuvel <[EMAIL PROTECTED]> wrote: >> Yes, I want to find a way to send email without an external >> smtp server. > > You can't. Use a DNS server to find the MX record of the > destination domain, connect to that SMTP server, then deliver > the mail. Or, just send it to a rel

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Grant Edwards
On 2006-10-16, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 16 Oct 2006 17:04:19 +0800, "[EMAIL PROTECTED]" ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> >> Yes, I want to find a way to send email without an external smtp server. >> > You're going to have t

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Yes, I want to find a way to send email without an external smtp server. You can't. Use a DNS server to find the MX record of the destination domain, connect to that SMTP server, then deliver the mail. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuv

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Grant Edwards
On 2006-10-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Yes, I want to find a way to send email without an external smtp server. If you're not going to use an SMTP server, what sort of server do you want to use? -- Grant Edwards grante Yow! Let me do my TRIB

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Leo Kislov
On Oct 16, 2:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > It's not safe if I have to use login method explicitly by which I have > to put my username and password in the script. I have also tried the > Unix command 'mail', but without success, either. I could use 'mail' to > send an E-

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread [EMAIL PROTECTED]
Leo Kislov wrote: >> >> Do I have to setup a smtp server on my localhost ? >> > > You need to use login method > . And by the way, the > subject of your message is very confusing, you are posting log where > you're sending email using external serv

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Leo Kislov
On Oct 16, 12:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Rob Wolfe wrote: > > [EMAIL PROTECTED] wrote: > > >> Hi, > > >> I just want to send a very simple email from within python. > > >> I think the standard module of smtpd in python can do this, but I > >> haven't found documents a

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Rob Wolfe
[EMAIL PROTECTED] wrote: > Do I have to setup a smtp server on my localhost ? If I see correctly your smtp server is gmail.com. HTH, Rob -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread [EMAIL PROTECTED]
Rob Wolfe wrote: > [EMAIL PROTECTED] wrote: > >> Hi, >> >> I just want to send a very simple email from within python. >> >> I think the standard module of smtpd in python can do this, but I >> haven't found documents about how to use it after googleing. Are there >> any examples of using smtpd

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Leo Kislov
On Oct 15, 10:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I just want to send a very simple email from within python. > > I think the standard module of smtpd in python can do this, but I > haven't found documents about how to use it after googleing. Are there > any examples o

Re: How to send E-mail without an external SMTP server ?

2006-10-15 Thread Rob Wolfe
[EMAIL PROTECTED] wrote: > Hi, > > I just want to send a very simple email from within python. > > I think the standard module of smtpd in python can do this, but I > haven't found documents about how to use it after googleing. Are there > any examples of using smtpd ? I'm not an expert,so I need

Re: How to Send the Message using win32gui?

2006-09-18 Thread Gabriel Genellina
At Monday 18/9/2006 02:07, =?GB2312?B?0vzP6cH6?= wrote: I want to send LVM_SETITEMSTATE message using win32gui. But I don't know how to do in Python. The obvious way is win32api.PostMessage - but I feel you have another, higher-level, problem... Gabriel Genellina Softlab SRL

Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Kent Johnson
Gabriel B. wrote: > what does a string became when it's decoded? > > I mean, it must be encoded in something, right? Unicode, for encodings like latin-1 or utf-8. A few special cases like str.decode('string_escape') yield byte strings again. Kent -- http://mail.python.org/mailman/listinfo/pyth

Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Gabriel B.
2006/2/25, Sybren Stuvel <[EMAIL PROTECTED]>: > Lad enlightened us with: > > Body='Rídících Márinka a Školák Kája > > Marík'.decode('utf8').encode('windows-1250')# I use the text written > > in my editor with utf-8 coding, so first I decode and then encode to > > windows-1250 what does a string be

Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Sybren Stuvel
Lad enlightened us with: > Body='Rídících Márinka a Školák Kája > Marík'.decode('utf8').encode('windows-1250')# I use the text written > in my editor with utf-8 coding, so first I decode and then encode to > windows-1250 Why would you do that? What's the advantage of windows-1250? Sybren -- The

Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Lad
Finally I have the working version,It looks like this # from email.Message import Message from email.MIMEText import MIMEText from email.Header import Header import smtplib msg = Message() Body='Rídících Márinka a Školák Kája Marík'.decode('utf8').encode('windows-1250')# I use the text

Re: How to send an email with non-ascii characters in Python

2006-02-24 Thread Sybren Stuvel
Lad enlightened us with: > and can give me an example of Python code that can send such > email?? Not really, but I'm sure this will help you. In fact, my last name has an umlaut on the 'u'. This is the From header in my emails, encoded in Latin-1: From: Sybren =?iso-8859-1?Q?St=FCvel?= <[EMAIL

Re: How to send an email with non-ascii characters in Python

2006-02-24 Thread Lad
Sybren, and can give me an example of Python code that can send such email?? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send an email with non-ascii characters in Python

2006-02-24 Thread Sybren Stuvel
Lad enlightened us with: > Can anyone give an example how to send email with non-ascii > characters( both in subject and body). I would like to use > windows-1250 code page I'd use Latin-1 or UTF-8, since they are both cross-platform instead of windows-specific... Sybren -- The problem with the

Re: how to send a SIGINT to a Python process?

2005-10-03 Thread Sion Arrowsmith
Michele Simionato <[EMAIL PROTECTED]> wrote: >Is there a way to send a SIGINT/KeyboardInterrupt to a >Python process (knowing the pid) that works both on Unix and Windows? No. Windows doesn't support the sending of signals between processes (with the exception of an equivalent of SIGKILL). I guess

Re: how to send a SIGINT to a Python process?

2005-10-02 Thread [EMAIL PROTECTED]
AFAIK there isn't. You could browse through this http://starship.python.net/crew/tmick/ to get an idea on how to kill on both platforms. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a query to the browser from time to time?

2005-07-20 Thread Admin
On Tue, 19 Jul 2005 19:43:25 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > otherwise, my only suggestion is to use another protocol instead of > http. What do you suggest? -- Thanks, Admin. Want to buy me a book? http://tinyurl.com/78xzb :) -- http://mail.python.org/mailman/listinf

Re: How to send a query to the browser from time to time?

2005-07-20 Thread Admin
On Wed, 20 Jul 2005 00:26:13 -0300, Mike Meyer <[EMAIL PROTECTED]> wrote: > AJAX is overkill for this. If you just want to automatically refresh > the page automatically, you can use a meta refresh tag. Reloading the page automatically would be even worse because it would spend a lot of bandwid

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Mike Meyer
"Simon Dahlbacka" <[EMAIL PROTECTED]> writes: > Short answer: Not using HTTP. > > However, you can use something like AJAX to just load new data from > time to time and not the entire page. AJAX is overkill for this. If you just want to automatically refresh the page automatically, you can use a

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Leif K-Brooks
Admin wrote: > I am creating a chat application like Messenger for the web (using the > browser) and I'm wondering if there is a way to receive new messages > from time to time from the server other than refreshing the page each 5 > sec. Here's a pretty basic example I wrote a while ago using Tw

Re: How to send a query to the browser from time to time?

2005-07-19 Thread [EMAIL PROTECTED]
rewrite the server to bake a /lastmsg/ folder with the last message in it. otherwise, my only suggestion is to use another protocol instead of http. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Admin
On Tue, 19 Jul 2005 10:03:48 -0300, Simon Dahlbacka <[EMAIL PROTECTED]> wrote: > I'd go for the ajax route if you don't need to support old browsers. I already use AJAX on several applications, but I don't want to use it in this one because it would poll the server a lot and it may bring the

Re: How to send a query to the browser from time to time?

2005-07-19 Thread phr
Admin <[EMAIL PROTECTED]> writes: > If there were a way to have the server-side application send new > messages to the browser this would be awesome because it would save > dramatically on bandwidth. The application would consume bandwidth > only when there are new messages. There would be no co

Re: How to send a query to the browser from time to time?

2005-07-19 Thread gene tani
not clear if you're asking about XMLHttpRequest http://www.modernmethod.com/sajax/ http://nevow.com/Nevow2004Tutorial.html#livepage or custom browser object: http://wwwsearch.sourceforge.net/mechanize/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Simon Dahlbacka
Short answer: Not using HTTP. However, you can use something like AJAX to just load new data from time to time and not the entire page. Or you might be able to keep the connection alive and occationally send stuff to the client using chunked transfer. I'd go for the ajax route if you don't need

Re: How to send broadcast message over network and collect all the IP address?

2005-07-18 Thread Sandeep Arya
function recvfrom(). Does this will help?? Can any body give me an idea how to use this?? Thanking You Sandeep >From: Francesco Ciocchetti <[EMAIL PROTECTED]> >To: Sandeep Arya <[EMAIL PROTECTED]> >CC: python-list@python.org >Subject: Re: How to send broadcast message over net

Re: How to send broadcast message over network and collect all the IP address?

2005-07-15 Thread Francesco Ciocchetti
Sandeep Arya wrote: >Hello to all > >Well this is my first mail on this list. I am facing a problem associated >with collecting IP address on my network. > >What i thought is to send broadcast packet over the network and then >recieving back the reply from the computers and bridges connected to

Re: How to send browser to open a different URL

2005-03-12 Thread Mike Wimpe
although a bit more than I bargained for, this does has some good info, in case you are way in the future of this post... love, mike -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >