IE Toolbar (OT)

2007-01-23 Thread Shitiz Bansal
Hi, I need to build a toolbar for internet explorer which will have an embedded paintbrush like application. The user should be able to draw on the drawing canvas of that application and submit to post his drawings on my server. I have built up a toolbar and a standalone paintbrush app in VC++. H

Beautiful Soup : Problem extracting links

2006-12-06 Thread Shitiz Bansal
Hi, I am using beautiful soup to get links from an html document. I found that beautiful Soup changes the & in the links to & due to which some of the links become unusable. Is there any way I could stop this behaviour? Regards, Shitiz __ Do You

Re: Threads vs Processes

2006-07-27 Thread Shitiz Bansal
How do i share memory between processes?"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: John Henry wrote:> If you're sharing things, I would thread. I would not want to pay the> expense of a process.This is generally a false cost. There are very few applications wherethread/process startup time is

Re: wierd threading behavior

2005-10-14 Thread Shitiz Bansal
seems that in the thread module, the stdout stream is captured by a single thread. Qun Cao <[EMAIL PROTECTED]> wrote: Thanks Sam,That was a stupid typo ( yeah, I actually typed it in :), it should be(test,()).I am using python 2.4.1 in ubuntu. I do aware that threading.Thread isprefered,but I did n

Re: How to get a raised exception from other thread

2005-10-14 Thread Shitiz Bansal
Threads can share the same memory space. Hence a very neat way to achieve the objective.   > For example:> > ---> programA.py> ---> > import programB Exception=0; > thread = programB.MakeThread()> thread.start() if (Exception):   raise SomeException() > ---

Re: How do I set up a timer as a subprocess?

2005-03-10 Thread Shitiz Bansal
import threading def hello(): print "hello, world" t = threading.Timer(30.0, hello) t.start() # after 30 seconds, "hello, world" will be printed --- Dfenestr8 <[EMAIL PROTECTED]> wrote: > Hi. > > Trying to set up a timer function for my irc bot, > which uses the python > irclib.py. > > If

Re: What's the cost of using hundreds of threads?

2005-03-01 Thread Shitiz Bansal
It depends on the OS. I recently ran some 8000 threads in my program. On Windows XP, the limit is around 2000 threads and i dont quite know how to increase that. On, Linux: 'ulimit -aH' yields this output on my fedora core2. It cud be different for different flavors. [01:55:18 wallace new]$ ulim

Re: [Tutor] threads

2005-02-25 Thread Shitiz Bansal
> >Can anyone guide me on how to spawn > >simultaneously( or > > pseudo simultaneously) running microthreads using > > stackless. > > > > Here is what i tried.. > > > > def gencars(num,origin,dest,speed): > > global adjls > > global cars > > global juncls > > for i in range(num):