How to compare timestamps in python

2018-10-23 Thread Asad
and then file 2 ? 2) How to I acheive so in this case file1 Start: Fri Feb 23 01:10:28 2018 End time : Fri Feb 23 01:10:58 2018 check in file 2 nearest to file1 end time : 02/23/18 01:10:33 Thanks in advance, -- Asad Hasan +91 9582111698 -- Asad Hasan +91 9582111698

How to split value where is comma ?

2016-09-07 Thread Asad ur Rehman
Here is my view.py import os.path import commands def call_report(request): a = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show calls"') return HttpResponse(a) When i run this command it gives output which you can see... 0uuid,direction,created,created_epoch,nam

How to add data in xlm file ?

2016-08-13 Thread Asad ur Rehman
def Test(request): save_path = '/usr/share/newfies/' name_of_file = ("Avatar") completeName = os.path.join(save_path, name_of_file+".xlm") file1 = open(completeName, "w") toFile = raw_input("Write what you want into the field") file1.write(toFile) file1.c

Re: Profiler for long-running application

2015-02-09 Thread Asad Dhamani
On Monday, February 9, 2015 at 1:50:58 PM UTC+5:30, Ryan Stuart wrote: > Hi Asad, > > Is there any reason why you can't just use profile/cProfile? In particular, > you could use the api of that module to save out the profile stats to an > external file with a unique name a

Profiler for long-running application

2015-02-08 Thread Asad Dhamani
I have a Flask application where I run a specific task asynchronously using Celery. Its basically parsing some HTML and inserting data into a Postgres database(using SQLAlchemy). However, the task seems to be running very slowly, at 1 insert per second. I'd like to find out where the bottleneck

Learning Python

2013-05-25 Thread Asad Hasan
Hi All , I have started leaning Python through web . Would like to know if I should follow any book so that basics become clear with examples also want to know like in perl i use to invoke perl -d to get a debugged output is there any option in python. THanks, -- http://mail.python.org/

Re: On fighting fire with fire...

2005-07-28 Thread Asad Habib
Well, even if you are a hobbyist, that does not excuse you from being civil. After all, we are all humans beings that deserve to be treated with respect. Professional, hobbyist, vagabond, ogre, instigator, troll ... THERE IS NO EXCUSE ... please treat others with respect. - Asad On Thu, 28 Jul

Re: On fighting fire with fire...

2005-07-28 Thread Asad Habib
What, do you not consider yourself a professional? Just because you are in academia does not justify attacking people on a mailing list and then justifying your attack with Harter's quote! Life is more than a quote - look outside your academic cocoon and you will realize what I mean. - Asad

Re: On fighting fire with fire...

2005-07-28 Thread Asad Habib
I agree with Mustafa. After all, we are a bunch of professionals and not vagabonds hired to take pot shots at one another. - Asad On Thu, 28 Jul 2005, mustafa wrote: > Rocco Moretti wrote: > > projecktzero wrote: > > > >>but..but...It's so much more fun to unl

Compiling a Python File on Mac OS X Tiger

2005-07-26 Thread Asad Habib
similar to C? Any help would be appreciated. Thanks. - Asad -- http://mail.python.org/mailman/listinfo/python-list