Posts by kadu • 191 points
7 posts
-
0
votes2
answers240
viewsA: How to isolate gravity in the accelerometer
I’m not sure I understand the question. The accelerometer does not measure gravity, it measures accelerations, including gravity. When you move the cell, gravity does not "change", the resulting…
-
1
votes1
answer892
viewsA: Image Manipulation - Shape Condition " image[ CONDITION ] "
It is a little difficult to answer your question without context. However, I suppose these images are stored as numerical arrays and arrays. If my assumption is correct, this is called "logical…
-
1
votes1
answer255
viewsA: Vector mean of prime number indices
This excerpt from your code has some problems: k=0; prim=1; // o valor armazenado nunca é comparado com nada nem impresso. // Em um ponto mais pra baixo, você altera esse valor, mas continua não…
-
0
votes1
answer2056
viewsA: Anaconda/osx - change the standard python version
Okay, I found a similar problem on the Continuum mailing list. I solved the problem by reinstalling python using the Conda: $ conda install python=2.7 Fetching package metadata: .. Solving package…
-
1
votes1
answer2056
viewsQ: Anaconda/osx - change the standard python version
I was using python with anaconda in osx 10.8 and Spyder crashed. When I tried to reboot, the launcher showed Spyder as not installed. I imagined that the anaconda might have had some problem and…
-
0
votes3
answers324
viewsA: Python - NZEC problem in SPOJ (br.spoj.com)
That’s probably the mistake import psyco. SPOJ generally doesn’t let you import libraries, with a few exceptions (sys for example). As a rule, if you had to download the library separately, do not…
-
3
votes1
answer240
viewsA: Problem logging in using Cakephp on session_regenerate_id()
Your code is doing some data output before sending or modifying the headers. If you take a look in this article of stackoverflow they explain very well. Next time you need help, put the code snippet…