[Tutor] Trying to parse a HUGE(1gb) xml file in python

2010-12-20 Thread ashish makani
Hi Python Tutor folks This is a rather long post, but i wanted to include all the details & everything i have tried so far myself, so please bear with me & read the entire boringly long post. Goal : I am trying to parse a ginormous ( ~ 1gb) xml file. I am looking for a specific element..there ar

Re: [Tutor] Trying to parse a HUGE(1gb) xml file in python

2010-12-20 Thread ashish makani
c.l.p https://groups.google.com/d/topic/comp.lang.python/i816mDMSoXM/discussion Thanks again for the amazing help & advice cheers ashish On Mon, Dec 20, 2010 at 5:13 PM, Alan Gauld wrote: > "ashish makani" wrote > > I am looking for a specific element..there are several

Re: [Tutor] Trying to parse a HUGE(1gb) xml file in python

2010-12-20 Thread ashish makani
Chris This block of code made my day - especially yummydataaddrs & "here's your stupid data" > for start,end in yummydataaddrs: >fd.seek(start) >print "here's your stupid data:", fd.read(end-start+1) Nothing is more impressive than solid code, with a good sense of humor. Thanks for the

[Tutor] [OT] Bay area meetups for python &/ {linux, embedded, mobile, wireless ?}

2010-12-21 Thread ashish makani
> > OT(off_topic): I moved to the bay area recently & am passionate about > technology in general & linux, python, c, embedded, mobile, wireless > stuff,. > I was wondering if any of you guys, are part of some bay area python( or > other tech) meetup ( as in do you guys meetup, in person) for l

Re: [Tutor] vim as a python editor

2011-01-07 Thread ashish makani
@Alan, maybe hitting the actual "Esc" key requires too much "reach" Mapping CapsLock to escape maybe lets u type faster, perhaps I am just guessing though..maybe Paul can explain On vim, just saw this on hnews today morning...might be of interest http://news.ycombinator.com/item?id=2080342

Re: [Tutor] What made Python differ from other Languages?

2012-02-27 Thread ashish makani
An excellent recent article on hn(hacker news) on why python is important http://blaag.haard.se/Why-Python-is-important-for-you/ (via http://news.ycombinator.com/item?id=3579847 ) cheers ashish On Tue, Feb 21, 2012 at 1:13 AM, Mark Lawrence wrote: > On 20/02/2012 16:43, Sunil Tech wrote: > >

[Tutor] How to send email from a gmail a/c using smtp when port 587(smtp) is blocked

2012-09-11 Thread ashish makani
Hi Python Tutor folks I am stuck with an issue, so am coming to the Pythonistas who rescue me everytime :) I am trying to send out email programmatically, from a gmail a/c, using smtplib, using the following chunk of code (b/w [ & ] below) [ import smtplib from email.mime.text import MIMEText

Re: [Tutor] How to send email from a gmail a/c using smtp when port 587(smtp) is blocked

2012-09-11 Thread ashish makani
at 2:56 AM, Emile van Sebille wrote: > On 9/11/2012 2:19 PM ashish makani said... > >> Hi Python Tutor folks >> >> I am stuck with an issue, so am coming to the Pythonistas who rescue me >> everytime :) >> >> I am trying to send out email programmatica

Re: [Tutor] How to send email from a gmail a/c using smtp when port 587(smtp) is blocked

2012-09-11 Thread ashish makani
t could this web service essentially be the python email code, i mentioned in my original post, if i run it on Google App Engine ? Thanks a ton, Best, ashish On Wed, Sep 12, 2012 at 3:29 AM, Walter Prins wrote: > Hi Ashish, > > On 11 September 2012 22:44, ashish makani wrote: > >

[Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread ashish makani
Hi PyTutor Folks Here is my situation 1. I have two machines. Lets call them *local & remote.* Both run ubuntu & both have python installed 2. I have a python script, *local.py*, running on *local *which needs to pass arguments ( 3/4 string arguments, containing whitespaces like spaces, etc ) to

Re: [Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread ashish makani
.system or os.exec ? Thanks a lot, cheers ashish On Thu, Sep 20, 2012 at 12:54 AM, Dave Angel wrote: > On 09/19/2012 02:47 PM, ashish makani wrote: > > Hi PyTutor Folks > > > > Here is my situation > > > > 1. I have two machines. Lets call them *local & remote.

Re: [Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-20 Thread ashish makani
On Thu, Sep 20, 2012 at 3:43 AM, eryksun wrote: > On Wed, Sep 19, 2012 at 2:47 PM, ashish makani > wrote: > > > > I tried this > >>>> import os > >>>> os.system ("ssh remoteuser@remote python remote.py arg1 arg2 arg3") > > > >

Re: [Tutor] get aws path from argParser

2016-01-09 Thread ashish makani
+1 to what Alan said. Its not clear what you are asking & if you are asking something at all. ( to me, it seems like you are answering someone's query & accidentally posted here on the python tutor mailing list) sent from mobile device ; excuse typos & auto-correct errors On Jan 9, 2016 00:17, "

[Tutor] Creating a torrent file & associated tracker through a django web app

2012-11-20 Thread ashish makani
Hi Tutor folks I am trying to achieve the following : The user should log into a web app, select a file & the web app should generate a .torrent file & a private tracker(http://IP_ADDRESS:PORT_NUMBER/announce) for that .torrent file. Basically, i want to programmatically create a .torrent file,

Re: [Tutor] Creating a torrent file & associated tracker through a django web app

2012-11-21 Thread ashish makani
Clarifying query inline . On Wed, Nov 21, 2012 at 3:53 PM, Timo wrote: > Op 21-11-12 08:54, ashish makani schreef: > > >> Hi Tutor folks >> >> I am trying to achieve the following : >> >> The user should log into a web app, select a file & the web