any good midi tutorials?

2005-10-22 Thread malik
anybody know any good midi tutorials for python? i am trying to make a realtime midi manipulation application. -- http://mail.python.org/mailman/listinfo/python-list

PyEval_SetProfile usage ?

2012-07-06 Thread Salman Malik
Hi All, I have used the Python's C-API to call some Python code in my c code and now I want to know how much time does my Python part of the program takes. I came across the PyEval_SetProfile API and am not sure how to use it. Do I need to write my own profiling function? Any pointer to exam

RE: PyEval_SetProfile usage ?

2012-07-07 Thread Salman Malik
file usage ? > > On 07/06/2012 11:40 PM, Salman Malik wrote: > > Hi All, > > > > I have used the Python's C-API to call some Python code in my c code and > > now I want to know how much time does my Python part of the program > > takes. I came across the

Using pdb with greenlet?

2012-06-12 Thread Salman Malik
Hi, I am sort of a newbie to Python ( have just started to use pdb). My problem is that I am debugging an application that uses greenlets and when I encounter something in code that spawns the coroutines or wait for an event, I lose control over the application (I mean that after that point I

Pyvenv puts both Python 2 and Python 3 in the same environment. Shocked!

2016-12-20 Thread Malik Rumi
I just created a new venv using pyvenv from a 2.7 install. Now I am shocked to see that I can get both 2.7 and 3.4 in this same venv: (memory) malikarumi@Tetuoan2:~/Projects/cannon/New2.7Projects/memory$ python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "h

Re: the best online course

2016-07-09 Thread Malik Rumi
I want one of those "knuckle down and learn" classes. But even more than that, I want a class with a real teacher who is available to answer questions and explain things. I've done a lot of books and online video, but there's usually no help. If I search around long enough, I can often find an a

[no subject]

2015-12-15 Thread Malik Brahimi
Basically, I'm trying to make an event based system with pywin32 that handles spooled files that are to be printed. Users often print under the impression that their document has yet to emerge from the printer when it is in fact in queue. I'm creating a script that polls print jobs, saves them in

Message Box

2015-12-28 Thread Malik Brahimi
Hey Guys, I have an event driven script that prompts users as the events are triggered with a message box. Is there anyway with any GUI toolkit to create these dialogs simultaneously in the event that they coincide? I have been trying everything, but I can't seem to get it right. Malik --

Handling Print Events

2016-02-07 Thread Malik Brahimi
event is caught. http://stackoverflow.com/questions/35228080/print-servers-and-triggering-callbacks http://stackoverflow.com/questions/34519642/received-print-job-python Thanks, Malik -- https://mail.python.org/mailman/listinfo/python-list

Re: Is anyone else unable to log into the bug tracker?

2015-02-26 Thread Malik Rumi
On Friday, January 9, 2015 at 7:49:09 PM UTC-6, Steven D'Aprano wrote: > I'm having trouble logging into the bug tracker. Is anyone else having the > same problem, that is, your user name and password worked earlier but > doesn't work now? > > http://bugs.python.org/ > > (Yes, I've checked the ca

Windows permission error, 64 bit, psycopg2, python 3.4.2

2015-02-26 Thread Malik Rumi
I am one of those struggling with compile issues with python on 64 bit windows. I have not been able to get the solutions mentioned on Stack Overflow to work because installing Windows SDK 7.1 fails for me. So I stumbled across a precompiled psycopg2, and that reported that it worked, but then

Re: Windows permission error, 64 bit, psycopg2, python 3.4.2

2015-02-26 Thread Malik Rumi
On Thursday, February 26, 2015 at 2:55:07 PM UTC-6, Mark Lawrence wrote: > On 26/02/2015 15:10, Malik Rumi wrote: > > I am one of those struggling with compile issues with python on 64 bit > > windows. I have not been able to get the solutions mentioned on Stack > > Ove

Re: Is anyone else unable to log into the bug tracker?

2015-02-26 Thread Malik Rumi
On Thursday, February 26, 2015 at 10:49:19 AM UTC-6, Skip Montanaro wrote: > I have not had problems, but I use the Google login (Open ID, I presume) > option. > > > Skip Ok, I got it. In short, capitalization (or not) matters. Thanks to all. -- https://mail.python.org/mailman/listinfo/python

Path, strings, and lines

2015-06-12 Thread Malik Rumi
I am trying to find a list of strings in a directory of files. Here is my code: # -*- coding: utf-8 -*- import os import fileinput s2 = os.listdir('/home/malikarumi/Projects/P5/shortstories') with open('/home/malikarumi/Projects/P5/list_stories') as f: lines = f.readlines() for line in lin

Re: Path, strings, and lines

2015-06-12 Thread Malik Rumi
On Friday, June 12, 2015 at 3:31:36 PM UTC-5, Ian wrote: > On Fri, Jun 12, 2015 at 1:39 PM, Malik Rumi wrote: > > I am trying to find a list of strings in a directory of files. Here is my > > code: > > > > # -*- coding: utf-8 -*- > > import os > > import f

Re: Path, strings, and lines

2015-06-12 Thread Malik Rumi
On Friday, June 12, 2015 at 6:48:18 PM UTC-5, Chris Angelico wrote: > On Sat, Jun 13, 2015 at 5:39 AM, Malik Rumi wrote: > > for line in lines: > > for item in fileinput.input(s2): > > if line in item: > > with open(line + '_list', &#x

Struggling with os.path.join and fileinput (was 'Path, strings, and lines'

2015-06-15 Thread Malik Rumi
On Saturday, June 13, 2015 at 1:25:52 PM UTC-5, MRAB wrote: > On 2015-06-13 05:48, Malik Rumi wrote: > > On Friday, June 12, 2015 at 3:31:36 PM UTC-5, Ian wrote: > >> On Fri, Jun 12, 2015 at 1:39 PM, Malik Rumi wrote: > >> > I am trying to find a list of strings in

Indian photographer denies affair with Lindsay Lohan!

2010-07-10 Thread asim malik
Speaking on the issue for the first time, Chaudhuri, over the phone from New York, says, "They were completely distorted reports. We are really good friends for more details www.bollywood789.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Regular Expressions, Speed, Python, and NFA

2017-04-14 Thread Malik Rumi
I am running some tests using the site regex101 to figure out the correct regexs to use for a project. I was surprised at how slow it was, constantly needing to increase the timeouts. I went Googling for a reason, and solution, and found Russ Cox’s article from 2007: https://swtch.com/~rsc/rege