Re: [Tutor] Desktop Notifications on Linux

2014-04-10 Thread Dharmit Shah
Hi Peter, On Thu, Apr 10, 2014 at 2:30 PM, Peter Otten <__pete...@web.de> wrote: > Dharmit Shah wrote: > >> I am trying to create a script that will go through the >> /var/log/secure file on a Linux system and provide desktop >> notifications for failed login at

[Tutor] Desktop Notifications on Linux

2014-04-10 Thread Dharmit Shah
Hi all, I am trying to create a script that will go through the /var/log/secure file on a Linux system and provide desktop notifications for failed login attempts. Here is the code - http://pastebin.com/MXP8Yd91 And here's notification.py - http://pastebin.com/BhsSTP6H I am facing issue in the f

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Dharmit Shah
t: > >>>> s='abba' > > The first letter: > >>>> s[0] > 'a' > > The last letter: > >>>> s[-1] > 'a' > > > If you now compare these, you will know if they are the same and hence > you print him/her

Re: [Tutor] Recursion always returns None

2012-08-28 Thread Dharmit Shah
r the loop idea. It didn't strike me at all. @All : Thanks a bunch for helping me out. :) Cheers, Dharmit On Tue, Aug 28, 2012 at 7:18 PM, Dave Angel wrote: > On 08/28/2012 07:23 AM, Dharmit Shah wrote: >> Hello, >> >> I am trying to do the following : >> >

[Tutor] Recursion always returns None

2012-08-28 Thread Dharmit Shah
random". Can someone please point what I am missing. Thank you! Cheers, Dharmit -- Dharmit Shah www.about.me/dharmit ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-30 Thread Dharmit Shah
.replace('\', '/') >^ > SyntaxError: EOL while scanning string literal > Process terminated with an exit code of 1 > > Thanks, > > Dick > > > _______

[Tutor] Web Programming

2011-07-20 Thread Dharmit Shah
now if it's okay to skip that chapter and read further? -- Regards Dharmit Shah <http://about.me/dharmit> ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Recursively flatten the list

2011-03-23 Thread Dharmit Shah
__name__=="__main__": import doctest doctest.testmod() PS - My knowledge of Python is still very basic and I am trying to dive into it as deeper as I can. Solutions on Stackoverflow.com were beyond my understandability. -- Regards Dharmit Shah

Re: [Tutor] print "Hello, World!"

2011-02-03 Thread Dharmit Shah
somewhat comprehensive online resource >> that explains from the beginning in English, plain English, as this is >> the only language I speak. Something to get my foot in the door would >> be awesome. >> >> >> Cheers, >> Doug Marvel >> ___