Re: Fast capture and 2D image stacking as 3D numpy array with Python and Raspberry Pi

2015-07-06 Thread Mark Lawrence
On 07/07/2015 00:16, Agustin Cruz wrote: On Monday, July 6, 2015 at 6:00:42 PM UTC-4, Mark Lawrence wrote: On 06/07/2015 22:31, Agustin Cruz wrote: I'm working on a Python - Raspberry Pi project in which I need to take about 30 images per second (no movie) and stack each 2D image to a 3D array

Why pay DICE When TheGongzuo.com is !! FREE !!

2015-07-06 Thread trentonwesley10
Greetings! You been Invited as a Beta User for TheGongzuo.com ( Absolutely Extended Trial). We bring to you TheGongzuo.com, Top notch highly talented IT (Information Technology / Software Industry) skilled Professional Candidates, where you can find more than a resume. ___

Re: requests.Session() how do you set 'replace' on the encoding?

2015-07-06 Thread dieter
Veek M writes: > dieter wrote: > >> Veek M writes: >>> UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in >>> position 8: illegal multibyte sequence >> >> You give us very little context. > > It's a longish chunk of code: basically, i'm trying to download using the > 'requests.S

Re: Trying to import numpy

2015-07-06 Thread Chris Angelico
On Tue, Jul 7, 2015 at 1:17 PM, ryguy7272 wrote: > I would say 100% of my errors come from importing python modules. If this > every worked, I could do some real work. Instead, I spend 100% of my time > trying to make thing that don't work, work. > I could equally say that 100% of your errors

Re: Trying to import numpy

2015-07-06 Thread Michael Torrie
On 07/06/2015 09:17 PM, ryguy7272 wrote: > I followed the instructions here. > https://pip.pypa.io/en/latest/installing.html > > > In the c-prompt, I get this error. > C:\>python get-pip.py > python: can't open file 'get-pip.py': [Errno 2] No such file or directory Is get-pip.py located in c:\?

Re: bottle app "crashes"

2015-07-06 Thread Jason Friedman
> Last summer I fumbled together a small appplication that calculates both LASK > and Elo ratings for chess. I managed to "webify" it using Bottle. This works > nicely on my laptop for testing. > > Once I log off (or my user session times out) my server where I've started the > application with pyt

Trying to import numpy

2015-07-06 Thread ryguy7272
I'm trying to use numpy. I get this error: >>> import numpy as np Traceback (most recent call last): File "", line 1, in import numpy as np ImportError: No module named numpy I followed the instructions here. https://pip.pypa.io/en/latest/installing.html In the c-prompt, I get this er

Re: Writing a python editor for blind developers

2015-07-06 Thread Terry Reedy
On 7/6/2015 4:42 AM, Joseph Lee wrote: Some people were looking at making IDLE itself accessible to no avail (the way IDLE displays its output is such that it makes it hard for screen readers to use their display parsing techniques to tell a programmer what's on screen). Idle itself is not the

Re: Fast capture and 2D image stacking as 3D numpy array with Python and Raspberry Pi

2015-07-06 Thread Agustin Cruz
On Monday, July 6, 2015 at 6:00:42 PM UTC-4, Mark Lawrence wrote: > On 06/07/2015 22:31, Agustin Cruz wrote: > > I'm working on a Python - Raspberry Pi project in which I need to take > > about 30 images per second (no movie) and stack each 2D image to a 3D array > > using numpy array, without sa

Re: Fast capture and 2D image stacking as 3D numpy array with Python and Raspberry Pi

2015-07-06 Thread Mark Lawrence
On 06/07/2015 22:31, Agustin Cruz wrote: I'm working on a Python - Raspberry Pi project in which I need to take about 30 images per second (no movie) and stack each 2D image to a 3D array using numpy array, without saving each 2D capture as a file (because is slow). I found this Python code to

Fast capture and 2D image stacking as 3D numpy array with Python and Raspberry Pi

2015-07-06 Thread Agustin Cruz
I'm working on a Python - Raspberry Pi project in which I need to take about 30 images per second (no movie) and stack each 2D image to a 3D array using numpy array, without saving each 2D capture as a file (because is slow). I found this Python code to take images as fast as possible, but i don

Re: bottle app "crashes"

2015-07-06 Thread m
W dniu 06.07.2015 o 21:28, mm0fmf pisze: > On 05/07/2015 17:45, Martin S wrote: >> > Hi all, >> > >> > Last summer I fumbled together a small appplication that calculates both >> > LASK >> > and Elo ratings for chess. I managed to "webify" it using Bottle. This >> > works >> > nicely on my laptop

Re: bottle app "crashes"

2015-07-06 Thread mm0fmf via Python-list
On 05/07/2015 17:45, Martin S wrote: Hi all, Last summer I fumbled together a small appplication that calculates both LASK and Elo ratings for chess. I managed to "webify" it using Bottle. This works nicely on my laptop for testing. [snip] Do anyone have a pointer to an idiot proof instruc

Re: Searching for a usable X509 implementation

2015-07-06 Thread Johannes Bauer
On 05.07.2015 07:33, Laura Creighton wrote: > For an RSA key in PEM format you can do: > from OpenSSL.crypto import _new_mem_buf, _lib, _bio_to_string > > def dump_rsa_public_key(pkey): > bio = _new_mem_buf() > result = _lib.PEM_write_bio_RSAPublicKey(bio, > _lib.EVP_PKEY_get1_RSA(pkey._

Re: Best practices for writing jobs run through cron

2015-07-06 Thread Juan Gutierrez
Hi WU, It sounds like you want to add a lot of helpful transparency into your task runner which is awesome, however, have you taken a look at Celery? http://celery.readthedocs.org/en/latest/userguide/periodic-tasks.html Celery also comes with a monitoring tool (Flower - http://celery.readthedo

Re: (side-)effects and ...

2015-07-06 Thread Ethan Furman
On 07/05/2015 01:29 PM, Stefan Ram wrote: The function »datetime.datetime.now().time()« does not yield a value that is determined by the expression »time()«; instead its value can /differ/ between two calls even when the call »time()« does not differ. In mathematics, however, a ca

Re: Bug in floating point multiplication

2015-07-06 Thread Jason Swails
On Mon, Jul 6, 2015 at 11:44 AM, Oscar Benjamin wrote: > On Sat, 4 Jul 2015 at 02:12 Jason Swails wrote: > >> On Fri, Jul 3, 2015 at 11:13 AM, Oscar Benjamin < >> oscar.j.benja...@gmail.com> wrote: >> >>> On 2 July 2015 at 18:29, Jason Swails wrote: >>> >>> Where is the 32 bit one looks like: >

Best practices for writing jobs run through cron

2015-07-06 Thread webuser1200
I needed help/advice with a few things: 1. Is there a good example of a well written command line task that gets run routinely from the shell. Job would handle logging and be able to redirect stdout to a stdout file and stderr to a stderr file. 2. I was going to setup a dict with all jobs and

Re: (side-)effects and ...

2015-07-06 Thread Tim Chase
On 2015-07-06 00:44, Robert Kern wrote: >> I believe the term is "idempotent" > > No, "idempotent" means that if it changes the state, then applying > it twice or more has the same effect as applying it once. Ah, thanks for the clarification. -tkc -- https://mail.python.org/mailman/listinfo/

Re: Bug in floating point multiplication

2015-07-06 Thread Oscar Benjamin
On Sat, 4 Jul 2015 at 02:12 Jason Swails wrote: > On Fri, Jul 3, 2015 at 11:13 AM, Oscar Benjamin < > oscar.j.benja...@gmail.com> wrote: > >> On 2 July 2015 at 18:29, Jason Swails wrote: >> >> Where is the 32 bit one looks like: >> >> $ objdump -d a.out.32 | less >> ... > > 804843e: fildl -0x

Re: Writing a python editor for blind developers

2015-07-06 Thread Oscar Benjamin
Hi Germano, You may want to use the jedi package which you can find at this link: https://pypi.python.org/pypi/jedi/ I'm not personally involved with the jedi package but I use it within my own editor Vim and my understanding is that it should be useful for Python autocompletion support in any ID

Re: (side-)effects and ...

2015-07-06 Thread Laura Creighton
In a message of 05 Jul 2015 20:29:11 +, Stefan Ram writes: > But why do we not have a common and well-known term for > the counterpart, that something does not modify the state > of the world, but that the state of the world does > influence the value (behaviour) of a call such as > »date

Re: (side-)effects and ...

2015-07-06 Thread Laura Creighton
> And this is the intention of my post: Maybe there is such > a term, and I just missed to learn it so far? So, > do you know a term for the phenomenon that can be found > in Python but not in mathematics and consists in the state > of the world influencing the value of an expressions? In the

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-06 Thread Mark Lawrence
On 06/07/2015 10:40, Veek M wrote: Saran Ahluwalia wrote: So what did you do to resolve this? Please provide your fix. This is an excellent case study for others. it's provided, what part didn't you understand? Try googling relative-path, wth? If it's provided why have you snipped it this t

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-06 Thread Veek M
Saran Ahluwalia wrote: > So what did you do to resolve this? Please provide your fix. This is an > excellent case study for others. it's provided, what part didn't you understand? Try googling relative-path, wth? -- https://mail.python.org/mailman/listinfo/python-list

Re: requests.Session() how do you set 'replace' on the encoding?

2015-07-06 Thread Veek M
dieter wrote: > Veek M writes: >> UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in >> position 8: illegal multibyte sequence > > You give us very little context. It's a longish chunk of code: basically, i'm trying to download using the 'requests.Session' module and that should

Re: Writing a python editor for blind developers

2015-07-06 Thread Jacob Kruger
Germano, answering email at top of mail, since think that's the preferred method for some of us. I am also a 100% blind developer, and python is also one of my focus areas. While don't think can really help with this part of development as of yet, I would be more than willing to help with feedba

RE: Writing a python editor for blind developers

2015-07-06 Thread Joseph Lee
Hi Germano and others, First, sorry for this abrupt post without an intro (I'll write a more proper intro next time) and a possible repeat message. Second, as a blind developer and a regular contributor to a Python-based screen reader, I can say that many of us (blind devs) use IDE's nor Python-spe

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Ben Finney
writes: > I want to understand the design concept behind it. > Why isn't there no uninstall routine implemented? What form of answer are you looking for? Will you be disappointed if the answer entails (as I fear it must) “because no-one put in the sustained effort to make it work”? If you mere

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Mark Lawrence
On 05/07/2015 10:04, c.bu...@posteo.jp wrote: This question is not technical. I know that there is no 'uninstall' Option in a setup.py. I know this discussions and workarounds for that problem, too. I want to understand the d

Re: Bug in floating point multiplication

2015-07-06 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 02.07.2015 19:29, Jason Swails wrote: > // maths.h #include #include > > int main() { double x; int i; x = 1-pow(0.5, 53); > > for (i = 1; i < 100; i++) { if ((int)(i*x) == i) { > printf("%d\n", i); break; } } > > return 0; } Does not

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Chris Warrick
On 5 July 2015 at 11:04, wrote: > This question is not technical. > I know that there is no 'uninstall' Option in a setup.py. > I know this discussions and workarounds for that problem, too. > > > I want to understand the desi

Re: understanding why there is no setup.py uninstall

2015-07-06 Thread Chris Angelico
On Sun, Jul 5, 2015 at 7:04 PM, wrote: > This question is not technical. > I know that there is no 'uninstall' Option in a setup.py. > I know this discussions and workarounds for that problem, too. > > > I want to understand t

bottle app "crashes"

2015-07-06 Thread Martin S
Hi all, Last summer I fumbled together a small appplication that calculates both LASK and Elo ratings for chess. I managed to "webify" it using Bottle. This works nicely on my laptop for testing. However ... (you knew there would be a however right) Once I log off (or my user session times out

Writing a python editor for blind developers

2015-07-06 Thread germano carella
Hi to all, I'm new of this list. I'm Germano from Italy. I'm 39 and I'm a blind developer. I'm writing a python editor accessible to screen readers, with autocompletion support. So, when I write something, a context menu displays all option I can use. To do this, I'm using inspect module and pkg

understanding why there is no setup.py uninstall

2015-07-06 Thread c.buhtz
This question is not technical. I know that there is no 'uninstall' Option in a setup.py. I know this discussions and workarounds for that problem, too. I want to understand the design concept behind it. Why isn't there no uni