I try gdb the executable file in another machine
and get this:
Error -3 from inflate: incorrect header check
Error decompresing struct
if I do gdb in my machine (where I generate the executable file)
I get nothing, and the app work correctly.
I try to search about that, but i don't get it.
Coul
On Tuesday, April 29, 2014 11:29:23 PM UTC+5:30, Tim Chase wrote:
> While I dislike feeding the troll, what I see here is:
Since its Unicode-troll time, here's my contribution
http://blog.languager.org/2014/04/unicode-and-unix-assumption.html
:-)
More seriously, since Ive quoted some esteemed
On Wed, Apr 30, 2014 at 1:30 PM, Roy Smith wrote:
> In article <5360672e$0$29965$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> On Tue, 29 Apr 2014 19:31:31 -0700, Ethan Furman wrote:
>>
>> > Perhaps my geography is rusty, but I was under the impression that one
>> > cannot t
On Wed, Apr 30, 2014 at 12:31 PM, Ethan Furman wrote:
> On 04/29/2014 03:51 PM, Chris Angelico wrote:
>> Any point where the mile east takes you an exact number of times
>> around the globe. So, anywhere exactly one mile north of that, which
>> is a number of circles not far from the south pole.
>
On Tue, 29 Apr 2014 19:37:17 -0700, pleasedontspam wrote:
> from decimal import *
> getcontext().prec=2016
> one=Decimal(1)
> number=Decimal('1e-1007')
> partial=(one+number)/(one-number)
> final.ln()
What's final? Did you mean partial?
When I try it in Python 3.3, I get:
py> from decimal impor
In article <5360672e$0$29965$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Tue, 29 Apr 2014 19:31:31 -0700, Ethan Furman wrote:
>
> > Perhaps my geography is rusty, but I was under the impression that one
> > cannot travel south if one is at the South Pole (axial, not magneti
On Tue, 29 Apr 2014 19:31:31 -0700, Ethan Furman wrote:
> Perhaps my geography is rusty, but I was under the impression that one
> cannot travel south if one is at the South Pole (axial, not magnetic).
Possibly with a rocket aimed straight up.
--
Steven D'Aprano
http://import-that.dreamwidth.
On 04/29/2014 03:51 PM, Chris Angelico wrote:
On Wed, Apr 30, 2014 at 8:42 AM, emile wrote:
On 04/29/2014 01:16 PM, Adam Funk wrote:
"A man pitches his tent, walks 1 km south, walks 1 km east, kills a
bear, & walks 1 km north, where he's back at his tent. What color is
the bear?" ;-)
Fr
On Tue, 29 Apr 2014 09:38:33 -0400, Roy Smith wrote:
> > What reason do you have to think that something recorded to 14 decimal
> > places was only intended to have been recorded to 4?
>
> Because I understand the physical measurement these numbers represent.
> Sometimes, Steve, you have to assum
Hello,
I believe I found a bug in the Decimal library. The natural logarithm results
seem to be off in a certain range, as compared with Wolfram Alpha.
Here's an example:
from decimal import *
getcontext().prec=2016
one=Decimal(1)
number=Decimal('1e-1007')
partial=(one+number)/(one-number)
fin
On Tue, Apr 29, 2014 at 7:14 PM, Ben Finney wrote:
> Larry Martell writes:
>
>> I am having a problem building a connect string for pyodbc. It works
>> when everything is hard coded, but if I build the connect string it
>> fails.
>>
>> This works:
>>
>> pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx
On Tue, Apr 29, 2014 at 7:09 PM, Chris Angelico wrote:
> On Wed, Apr 30, 2014 at 10:57 AM, Larry Martell
> wrote:
>> This works:
>>
>> pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx.xx.xx.xx;' 'PORT=1433;'
>> 'DATABASE=blah;' 'UID=foo;' 'PWD=bar;')
>>
>> But this does not:
>>
>> pyodbc.connect(conn
Larry Martell writes:
> I am having a problem building a connect string for pyodbc. It works
> when everything is hard coded, but if I build the connect string it
> fails.
>
> This works:
>
> pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx.xx.xx.xx;' 'PORT=1433;'
> 'DATABASE=blah;' 'UID=foo;' 'PWD=ba
On Wed, Apr 30, 2014 at 10:57 AM, Larry Martell wrote:
> This works:
>
> pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx.xx.xx.xx;' 'PORT=1433;'
> 'DATABASE=blah;' 'UID=foo;' 'PWD=bar;')
>
> But this does not:
>
> pyodbc.connect(conn_str)
>
> conn_str is constructed with:
>
> conn_str = "'DRIVER=%s;'
I am having a problem building a connect string for pyodbc. It works
when everything is hard coded, but if I build the connect string it
fails.
This works:
pyodbc.connect('DRIVER=FreeTDS;' 'SERVER=xx.xx.xx.xx;' 'PORT=1433;'
'DATABASE=blah;' 'UID=foo;' 'PWD=bar;')
But this does not:
pyodbc.conne
In article ,
Chris Angelico wrote:
> On Wed, Apr 30, 2014 at 10:37 AM, Dennis Lee Bieber
> wrote:
> > On Wed, 30 Apr 2014 08:51:32 +1000, Chris Angelico
> > declaimed the following:
> >
> >>
> >>Any point where the mile east takes you an exact number of times
> >>around the globe. So, anywhere
In article <8td53bxud5@news.ducksburg.com>,
Adam Funk wrote:
> On 2014-04-29, Roy Smith wrote:
>
> > Another possibility is that they're latitude/longitude coordinates, some
> > of which are given to the whole degree, some of which are given to
> > greater precision, all the way down to t
On Wed, Apr 30, 2014 at 10:37 AM, Dennis Lee Bieber
wrote:
> On Wed, 30 Apr 2014 08:51:32 +1000, Chris Angelico
> declaimed the following:
>
>>
>>Any point where the mile east takes you an exact number of times
>>around the globe. So, anywhere exactly one mile north of that, which
>>is a number o
In article ,
Dennis Lee Bieber wrote:
> in a physics or chemistry class the recommended result is
>
>1.1 * 2.2 => 2.4
More than recommended. In my physics class, if you put down more
significant digits than the input data justified, you got the problem
marked wrong.
> (one reason slide
Ben Finney writes:
> The problem is you won't know *which* 90% is accurate, and which 10% is
> inaccurate. This is very different from the glass, where it's evident
> which part is good.
Hmm. Re-reading the suggestion, I see that it is fairly predictable
which estimates of precision will be inac
On Wed, Apr 30, 2014 at 10:13 AM, Ben Finney wrote:
> The problem is you won't know *which* 90% is accurate, and which 10% is
> inaccurate. This is very different from the glass, where it's evident
> which part is good.
>
> So, I can't see that you have any choice but to say that *any* of the
> pr
Roy Smith writes:
> In article ,
> Chris Angelico wrote:
>
> > You have one chance in ten, repeatably, of losing a digit. That is,
> > roughly 10% of your four-decimal figures will appear to be
> > three-decimal, and 1% of them will appear to be two-decimal, and so
> > on. Is that "a few" false
On Wed, Apr 30, 2014 at 9:53 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> On Tue, Apr 29, 2014 at 11:38 PM, Roy Smith wrote:
>> > I'm trying to intuit, from the values I've been given, which coordinates
>> > are likely to be accurate to within a few miles. I'm willing to ac
In article ,
Chris Angelico wrote:
> On Tue, Apr 29, 2014 at 11:38 PM, Roy Smith wrote:
> > I'm trying to intuit, from the values I've been given, which coordinates
> > are likely to be accurate to within a few miles. I'm willing to accept
> > a few false negatives. If the number is float("38
On 29/04/2014 23:42, emile wrote:
On 04/29/2014 01:16 PM, Adam Funk wrote:
"A man pitches his tent, walks 1 km south, walks 1 km east, kills a
bear, & walks 1 km north, where he's back at his tent. What color is
the bear?" ;-)
From how many locations on Earth can someone walk one mile sout
Hello, I am sorry I am stuck in this. And I need some help
I want to persist an Object with ZODB, the object can be accessed from 2
different threads. The ZODB manual says:
A multi-threaded program should open a separate Connection instance for
each thread. Different threads can then modify objec
On Wed, Apr 30, 2014 at 8:42 AM, emile wrote:
> On 04/29/2014 01:16 PM, Adam Funk wrote:
>
>> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a
>> bear, & walks 1 km north, where he's back at his tent. What color is
>> the bear?" ;-)
>
>
> From how many locations on Earth can s
On 04/29/2014 01:16 PM, Adam Funk wrote:
"A man pitches his tent, walks 1 km south, walks 1 km east, kills a
bear, & walks 1 km north, where he's back at his tent. What color is
the bear?" ;-)
From how many locations on Earth can someone walk one mile south, one
mile east, and one mile nort
Ned Batchelder wrote:
Reminds me of the story that the first survey of Mt. Everest resulted in
a height of exactly 29,000 feet, but to avoid the appearance of an
estimate, they reported it as 29,002: http://www.jstor.org/stable/2684102
They could have said it was 29.000 kilofeet.
--
Greg
--
h
On Wed, Apr 30, 2014 at 6:39 AM, Mark H Harris wrote:
> On 4/29/14 3:16 PM, Adam Funk wrote:
>>
>> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a
>> bear, & walks 1 km north, where he's back at his tent. What color is
>> the bear?" ;-)
>>
>
> Who manufactured the tent?
A ma
On Tue, Apr 29, 2014 at 3:16 PM, Adam Funk wrote:
>
> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a
> bear, & walks 1 km north, where he's back at his tent. What color is
> the bear?" ;-)
Skin or Fur?
--
https://mail.python.org/mailman/listinfo/python-list
On Apr 29, 2014, at 11:53 , Brent S. Elmer Ph.D. wrote:
> Yes, I already use --prefix to build to a different path. I guess that
> is what I need to do but I would rather have a way to have the build and
> install process install to the micro level.
Python deliberately does not provide a way to
On 4/29/14 3:16 PM, Adam Funk wrote:
"A man pitches his tent, walks 1 km south, walks 1 km east, kills a
bear, & walks 1 km north, where he's back at his tent. What color is
the bear?" ;-)
Who manufactured the tent?
marcus
--
https://mail.python.org/mailman/listinfo/python-list
On 2014-04-29, Roy Smith wrote:
> Another possibility is that they're latitude/longitude coordinates, some
> of which are given to the whole degree, some of which are given to
> greater precision, all the way down to the ten-thousandth of a degree.
That makes sense. 1° of longitude is about 11
On 4/29/14 1:53 PM, Brent S. Elmer Ph.D. wrote:
I would rather have a way to have the build and
install process install to the micro level.
I agree.
On the other hand, is there really a special need to thoroughly test
against a micro level.
I have the latest 2.6, 2.7, 3.2, 3.3, 3.4 ... the
On 4/29/14 1:53 PM, Brent S. Elmer Ph.D. wrote:
Yes, I already use --prefix to build to a different path. I guess that
is what I need to do but I would rather have a way to have the build and
install process install to the micro level.
example only,
Use --prefix /usr/local/2.7.6/
Use --prefi
On Tue, 2014-04-29 at 11:35 -0700, Ned Deily wrote:
> In article <1398785310.2673.16.camel@belmer>,
> "Brent S. Elmer Ph.D." wrote:
> > Is there a way to do what I want to do (i.e. install 2.7.6 beside 2.7)?
>
> The usual way to support multiple micro versions is to build and install
> to a dif
In article <1398785310.2673.16.camel@belmer>,
"Brent S. Elmer Ph.D." wrote:
> Is there a way to do what I want to do (i.e. install 2.7.6 beside 2.7)?
The usual way to support multiple micro versions is to build and install
to a different location on your system by using:
./configure --prefix=/
On 2014-04-29 18:37, wxjmfa...@gmail.com wrote:
Let see how Python is ready for the next Unicode version
(Unicode 7.0.0.Beta).
timeit.repeat("(x*1000 + y)[:-1]", setup="x = 'abc'; y = 'z'")
[1.4027834829454946, 1.38714224331963, 1.3822586635296261]
timeit.repeat("(x*1000 + y)[:-1]", setup="x
On 2014-04-29 10:37, wxjmfa...@gmail.com wrote:
> >>> timeit.repeat("(x*1000 + y)[:-1]", setup="x = 'abc'; y = 'z'")
> [1.4027834829454946, 1.38714224331963, 1.3822586635296261]
> >>> timeit.repeat("(x*1000 + y)[:-1]", setup="x = 'abc'; y =
> >>> '\u0fce'")
> [5.462776291480395, 5.4479432055423
Let see how Python is ready for the next Unicode version
(Unicode 7.0.0.Beta).
>>> timeit.repeat("(x*1000 + y)[:-1]", setup="x = 'abc'; y = 'z'")
[1.4027834829454946, 1.38714224331963, 1.3822586635296261]
>>> timeit.repeat("(x*1000 + y)[:-1]", setup="x = 'abc'; y = '\u0fce'")
[5.462776291480395,
On Wed, Apr 30, 2014 at 2:47 AM, Ned Batchelder wrote:
> Reminds me of the story that the first survey of Mt. Everest resulted in a
> height of exactly 29,000 feet, but to avoid the appearance of an estimate,
> they reported it as 29,002: http://www.jstor.org/stable/2684102
Yeah. Exactly the same
On 4/29/14 12:30 PM, Chris Angelico wrote:
On Tue, Apr 29, 2014 at 11:38 PM, Roy Smith wrote:
I'm trying to intuit, from the values I've been given, which coordinates
are likely to be accurate to within a few miles. I'm willing to accept
a few false negatives. If the number is float("38"), I'
On 4/29/14 12:17 PM, Robin Becker wrote:
A user complains that under AppEngine I'm not allowed to import __main__.
I can fix this issue merely by putting a try block around the offending
import which is only used like this
import __main__
testing = getattr(__main__,'_rl_testing',False)
del __m
On Tue, Apr 29, 2014 at 11:38 PM, Roy Smith wrote:
> I'm trying to intuit, from the values I've been given, which coordinates
> are likely to be accurate to within a few miles. I'm willing to accept
> a few false negatives. If the number is float("38"), I'm willing to
> accept that it might actu
2014-04-28 18:00 GMT+02:00 Roy Smith :
> I'm using Python 2.7
>
> I have a bunch of floating point values. For example, here's a few (printed
> as reprs):
>
> 38.0
> 41.2586
> 40.752801
> 49.25
> 33.7951994
> 36.8371996
> 34.1489
> 45.5
>
> Fundamentally, these numbers hav
A user complains that under AppEngine I'm not allowed to import __main__.
I can fix this issue merely by putting a try block around the offending import
which is only used like this
import __main__
testing = getattr(__main__,'_rl_testing',False)
del __main__
this is only used as a hack way,
I have built and installed Python on AIX as well as installed a stack of
Python tools. The version I installed is 2.7.2. Everything is working
fine but I want to install Python 2.7.6 and the tool stack. Before I
installed 2.7.2, I installed 2.6.x. I was able to install the 2.7.2 and
2.6.x side
On 28.04.2014 15:04, mboyd02...@gmail.com wrote:
I have a numpy array consisting of 1s and zeros for representing binary numbers:
e.g.
>>> binary
array([ 1., 0., 1., 0.])
I wish the array to be in the form 1010, so it can be manipulated.
I do not want to use built in binary con
In article <535f0f9f$0$29965$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Mon, 28 Apr 2014 12:00:23 -0400, Roy Smith wrote:
>
> [...]
> > Fundamentally, these numbers have between 0 and 4 decimal digits of
> > precision,
>
> I'm surprised that you have a source of data wit
On Tuesday, April 29, 2014 4:48:51 PM UTC+5:30, Rustom Mody wrote:
Ive done it a second time !?!
Probably related to the temp being a cool > 40 °C
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, April 29, 2014 4:44:48 PM UTC+5:30, Rustom Mody wrote:
>
> Any clues?
>
>
> Its the same for emacs 23 and 24
Whoops!
Wrong list :-)
--
https://mail.python.org/mailman/listinfo/python-list
For some time now I have this in my X startup programs:
$ setxkbmap -option compose:menu
After this I can type (in mostly any window) for example:
(with MN being the windows-menu key)
MN.. gives ... ie an ellipses
MN--. gives - ie an en dash
MN--- gives -- ie an em dash
Not to mention all the e"
For some time now I have this in my X startup programs:
$ setxkbmap -option compose:menu
After this I can type (in mostly any window) for example:
(with MN being the windows-menu key)
MN.. gives ... ie an ellipses
MN--. gives - ie an en dash
MN--- gives -- ie an em dash
Not to mention all the e"
On 4/29/14 4:57 AM, Ned Deily wrote:
In article <477157e9-2c36-477b-90b7-a2bd26596...@googlegroups.com>,
wxjmfa...@gmail.com wrote:
Last week I found three "bugs" related to the coding of
characters / unicode (Py 3).
Bugs, that are making impossible to write safe code
when manipulating text/s
In article <477157e9-2c36-477b-90b7-a2bd26596...@googlegroups.com>,
wxjmfa...@gmail.com wrote:
> Last week I found three "bugs" related to the coding of
> characters / unicode (Py 3).
>
> Bugs, that are making impossible to write safe code
> when manipulating text/strings as Python is supposed
>
Last week I found three "bugs" related to the coding of
characters / unicode (Py 3).
Bugs, that are making impossible to write safe code
when manipulating text/strings as Python is supposed
to do.
Safe code == not broken, nothing to do with a "regression".
jmf
--
https://mail.python.org/mailman
57 matches
Mail list logo