Re: Algorithms in Python

2012-01-25 Thread Nizamov Shawkat
2012/1/25 Chetan Harjani : > Is there any book or site on python algorithms which asks more and > teaches less, I don't want to get bored, and at the same time I want > to learn and act more. I use ubuntu. (just in case if its needed). > #ALGORITHMS There is a Stanford online class on Algorithms,

Re: Screen Control Fullscreen ON/OFF

2011-12-15 Thread Nizamov Shawkat
> It depends on whether you want sync to vblank or not. If not, that is > pretty easy - use sleep() or something similar. If you have to use > sync (screen is always either black or white, never partly black and > white) then it is much much more difficult. Actually I do not know of > any way to sy

Re: Screen Control Fullscreen ON/OFF

2011-12-15 Thread Nizamov Shawkat
>> >> I would like to make fullscreen white and fullscreen black using >> Python on Linux. With in the specs of the LCD, I want to be able to >> display fullscreen white and black approximately at 30Hz. Frequency >> (on/off per second) will be input manually which is between 1-40Hz. >> Any idea whe

Re: Non-POSIX parity (mark/space) with Python-Serial on Linux.

2011-11-21 Thread Nizamov Shawkat
2011/11/21 : > I'm working on a project where I need to communicate with some devices via > modem which have the possibility of using MARK and SPACE parity.  These are > not defined by POSIX and therefore are not directly supported under Linux. > > I've found the following discussion on the topi

Re: Server Questions (2 of them)

2011-11-20 Thread Nizamov Shawkat
2011/11/20 Andrew : > Hello List, > > How to do you create a server that accepts a set of user code? > > For example, > > I would like to send this function: > def addition(x,y): >   return x+y > and have the socket server perform the operation and send is back to > the end user. > > Question 2: >

Re: error when use portable python 2.7.2

2011-09-27 Thread Nizamov Shawkat
I bet that the difference is in the environment settings (PYTHONPATH). Look here for details how to set it manually: http://docs.python.org/using/windows.html Hope it helps, S.Nizamov -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting bits in large string / bit vector

2011-09-26 Thread Nizamov Shawkat
> Is there an equivalent command in python that would immediately provide the > number of set bits in a large bit vector/string > You might be able to achieve this using numpy boolean array and, e.g, the arithmetic sum function or something similar. There is also another library http://pypi.pytho

Re: Comparisons of computation timing

2011-09-16 Thread Nizamov Shawkat
> About the codes: Basically it simply solves some non-linear equations > using "fsolve" along with some other calculations. > Looks like you are using some third party libraries like numpy/scipy. Do these libraries have the same version on both platforms? What about python interpreter versions -

Re: method:wrong structure

2011-09-15 Thread Nizamov Shawkat
> >     loadstatus={'equity':self.loadequity(),'option':self,loadoption()} > comma instead of dot after self. -- http://mail.python.org/mailman/listinfo/python-list