[Tutor] Lock down windows with python+usb

2004-12-09 Thread Asif Iqbal
Hi All Has anyone done any script like this? Use a python script for Windows XP that will continuosly check if my USB is plugged in. So if I unplug my USB flashdrive it will fork a screensaver with password lock. Thanks for any idea/suggestion -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer

[Tutor] test

2005-06-17 Thread Asif Iqbal
.. string2 ... string1 .. string3 ... ... I have a list of 3 lines and I think I have only 615 unique elements. So I like the script not to take too much memory of the system. I will be running it on Solaris 8 Thanks a lot -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "..

Re: [Tutor] test

2005-06-17 Thread Asif Iqbal
On Fri, Jun 17, 2005 at 07:41:17AM, Chad Crabtree wrote: > How about this. > >>> from random import choice > >>> alist=[choice(range(100)) for x in range(1000)] #just making a How do I do this in python? alist < /tmp/logfile The logfile has the list of en

[Tutor] Authen::ACE

2006-03-24 Thread Asif Iqbal
Hi All Does anyone know if there is any python module similar to Authen::ACE available that I can use to authenticate against a RSA SecurID server? Also, what would be a good irc chnl where python folks hang around? Thanks -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "..ther

[Tutor] MIME parser

2008-12-11 Thread Asif Iqbal
the body by inserting an URL in the footer. Has anyone done anything like this? -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] MIME parser

2008-12-11 Thread Asif Iqbal
On Thu, Dec 11, 2008 at 11:49:16AM, Asif Iqbal wrote: > I am looking for a way to feed a message from stdin to a python based > mime parser, detach all attachments and drop them to a dir, and then > send the email to the recipient. The attachment(s) will be replaced > by an URL to a l

[Tutor] XML parsing

2018-03-29 Thread Asif Iqbal
N It prints the length of the tree and the first element of the first child, but when I try to loop through to find all the 'template-name's it does not print anything. What am I doing wrong? -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in

Re: [Tutor] XML parsing

2018-03-29 Thread Asif Iqbal
On Thu, Mar 29, 2018 at 3:56 AM, Peter Otten <__pete...@web.de> wrote: > Asif Iqbal wrote: > > > I am trying to extract all the *template-name*s, but no success yet > > > > Here is a sample xml file > > > > http://tail-f.com/ns/rest";> > >

Re: [Tutor] XML parsing

2018-03-30 Thread Asif Iqbal
On Thu, Mar 29, 2018 at 3:41 PM, Peter Otten <__pete...@web.de> wrote: > Asif Iqbal wrote: > > > On Thu, Mar 29, 2018 at 3:56 AM, Peter Otten <__pete...@web.de> wrote: > > > >> Asif Iqbal wrote: > >> > >> > I am trying to extract all th

Re: [Tutor] XML parsing

2018-03-30 Thread Asif Iqbal
On Thu, Mar 29, 2018 at 9:40 PM, Asif Iqbal wrote: > > > On Thu, Mar 29, 2018 at 3:41 PM, Peter Otten <__pete...@web.de> wrote: > >> Asif Iqbal wrote: >> >> > On Thu, Mar 29, 2018 at 3:56 AM, Peter Otten <__pete...@web.de> wrote: >> > >&g

[Tutor] Adding a new row to the dataframe with datetime as index

2018-05-21 Thread Asif Iqbal
03-17', '1986-03-14', '1986-03-13', '2018-01-24'], dtype='datetime64[ns]', name='date', length=8034, freq=None) Any idea how to add a new row to a new date? -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Bec

Re: [Tutor] Adding a new row to the dataframe with datetime as index

2018-05-21 Thread Asif Iqbal
On Mon, May 21, 2018 at 9:28 AM, Peter Otten <__pete...@web.de> wrote: > Asif Iqbal wrote: > > > Hi, > > > > I am trying to add a new row to a new date in the dataframe like below > > > >df.loc['2018-01-24'] = [0,1,2,3,4,5] > > >

Re: [Tutor] Adding a new row to the dataframe with datetime as index

2018-05-21 Thread Asif Iqbal
On Mon, May 21, 2018 at 4:59 PM, Peter Otten <__pete...@web.de> wrote: > Asif Iqbal wrote: > > > On Mon, May 21, 2018 at 9:28 AM, Peter Otten <__pete...@web.de> wrote: > > > >> Asif Iqbal wrote: > >> > >> > Hi, > >> > >