Re: https://www.python.org/ seems to be down

2014-09-25 Thread Chris Angelico
On Fri, Sep 26, 2014 at 4:46 PM, Gmane wrote: > https://www.python.org/ seems to be down when I last checked on 06:45 UTC on > 26th Sep 2014. > Anybody else experiencing this problem? Working for me. Are you getting DNS failure, HTTP failure, SSL certificate issues, or what? ChrisA -- https://m

Re: https://www.python.org/ seems to be down

2014-09-25 Thread Rock Neurotiko
2014-09-26 8:46 GMT+02:00 Gmane : > https://www.python.org/ http://www.downforeveryoneorjustme.com/python.org -- Miguel García Lafuente - Rock Neurotiko Do it, the devil is in the details. The quieter you are, the more you are able to hear. Happy Coding. Code with Passion, Decode with Patien

Re: "Fuzzy" Counter?

2014-09-25 Thread Steven D'Aprano
Ian Kelly wrote: > On Tue, Sep 23, 2014 at 11:01 PM, Miki Tebeka > wrote: >> On Tuesday, September 23, 2014 7:33:06 PM UTC+3, Rob Gaddi wrote: >> >>> While you're at it, think >>> long and hard about that definition of fuzziness. If you can make it >>> closer to the concept of histogram "bins" y

https://www.python.org/ seems to be down

2014-09-25 Thread Gmane
https://www.python.org/ seems to be down when I last checked on 06:45 UTC on 26th Sep 2014. Anybody else experiencing this problem? -- https://mail.python.org/mailman/listinfo/python-list

Re: Dynamically swapping between two algorithms

2014-09-25 Thread Ethan Furman
On 09/23/2014 07:48 AM, Steven D'Aprano wrote: alas, the CUTOVER point is likely to be machine-dependent. Take it as a given that inserting a fixed CUTOVER point into the source code (say, ``CUTOVER = 123456``) is not likely to be very effective, and dynamically calculating it at import time is

PyDev 3.8.0 Released

2014-09-25 Thread Fabio Zadrozny
What is PyDev? --- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on

Re: Dynamically swapping between two algorithms

2014-09-25 Thread Cameron Simpson
On 24Sep2014 00:48, Steven D'Aprano wrote: I have a certain calculation which can be performed two radically different ways. With the first algorithm, let's call it SHORT, performance is very fast for small values of the argument, but terrible for large values. For the second algorithm, LARGE,

Re: Flask and Python 3

2014-09-25 Thread Chris Angelico
On Fri, Sep 26, 2014 at 4:35 AM, Juan Christian wrote: > when I say video tutorial, it's implied that every video that I talked about > have 1. The source-code (if programming/code related), 2. The transcripts > and in some cases even 3. PDF version of the video. I've almost never seen videos tha

Re: Flask and Python 3

2014-09-25 Thread Chris Angelico
On Fri, Sep 26, 2014 at 3:28 AM, Chris “Kwpolska” Warrick wrote: > It doesn’t matter. Here, have some wisdom, as provided by the top > Google hit for “video tutorials suck”: > https://news.ycombinator.com/item?id=4565615 """The online video medium may be great for bloggers, but when I'm seeking

Re: Flask and Python 3

2014-09-25 Thread Juan Christian
On Thu, Sep 25, 2014 at 3:23 PM, Chris Angelico wrote: > Actually, what most of the comments are agreeing on is that videos > need their transcripts. Without them, they suck. Most videos don't > have any sort of transcript. Ergo, most videos suck. I'm not talking about "360p 3min kid's tutorial

Re: Flask and Python 3

2014-09-25 Thread Chris “Kwpolska” Warrick
On Thu, Sep 25, 2014 at 8:18 PM, Juan Christian wrote: >> The thing is, it’s text. I suppose I could use some text-to-speech >> software to provide you with a video tutorial version of that. > > > No, you can't, if you think a video tutorial is only that, I'm afraid to > tell that you only saw te

Re: Flask and Python 3

2014-09-25 Thread Chris Angelico
On Fri, Sep 26, 2014 at 4:18 AM, Juan Christian wrote: > On Thu, Sep 25, 2014 at 2:28 PM, Chris “Kwpolska” Warrick > wrote: >> >> It doesn’t matter. Here, have some wisdom, as provided by the top >> Google hit for “video tutorials suck”: >> https://news.ycombinator.com/item?id=4565615 > > > Usin

Re: Flask and Python 3

2014-09-25 Thread Juan Christian
On Thu, Sep 25, 2014 at 2:28 PM, Chris “Kwpolska” Warrick < kwpol...@gmail.com> wrote: > > It doesn’t matter. Here, have some wisdom, as provided by the top > Google hit for “video tutorials suck”: > https://news.ycombinator.com/item?id=4565615 > Using your link, the first comment from user 'aroc

Re: Python Imaging Library 1.x - 64bit setup file for Python 2.7.2.

2014-09-25 Thread Mark Lawrence
On 25/09/2014 09:07, Pinter, Karina /C wrote: Dear Team, I am working as a software analyst at ExxonMobil. I received a software request for Python Imaging Library 1.x and the user needs a 64bit setup file for Python 2.7.2. Can I download it somewhere? Thanks in advance. */Best Regards,/* */

Re: Flask and Python 3

2014-09-25 Thread Chris “Kwpolska” Warrick
On Wed, Sep 24, 2014 at 9:39 PM, Juan Christian wrote: > On Wednesday, September 24, 2014, Chris “Kwpolska” Warrick > wrote: >> >> Learning from videos is the worst thing you can do. Use the official >> flask documentation at http://flask.pocoo.org/docs/0.10/quickstart/ — >> it’s much friendlier

Re: ThreadPoolExecutor - callback guaranteed to run in same thread as the submitted function?

2014-09-25 Thread Chris Angelico
On Fri, Sep 26, 2014 at 1:40 AM, Ian Kelly wrote: > Fair enough. In the simple example above, I see no harm in simply > moving the add_done_callback call outside (after) the "with self.lock" > block altogether. I can imagine more complex examples where the call > is further down the stack and hard

Re: ThreadPoolExecutor - callback guaranteed to run in same thread as the submitted function?

2014-09-25 Thread Ian Kelly
On Thu, Sep 25, 2014 at 8:47 AM, Marko Rauhamaa wrote: > Ian Kelly : > >> On Thu, Sep 25, 2014 at 3:46 AM, Marko Rauhamaa wrote: >>> Example (pseudocode): >>> >>>def callback(self): >>> with self.lock: >>> ... >>> >>>def xyz(self, f): >>> with self.lock: >>>

Re: Python as Windows Service

2014-09-25 Thread Zachary Ware
On Thu, Sep 25, 2014 at 9:33 AM, Nagy László Zsolt wrote: > By the way, do we have support for creating a Windows Service for Python 3 > already? I know it was not working about 6 months ago. Does pywin32 > (PythonService.exe ?) still lack this feautue? I can confirm that a Windows service can be

Re: ThreadPoolExecutor - callback guaranteed to run in same thread as the submitted function?

2014-09-25 Thread Marko Rauhamaa
Ian Kelly : > On Thu, Sep 25, 2014 at 3:46 AM, Marko Rauhamaa wrote: >> Example (pseudocode): >> >>def callback(self): >> with self.lock: >> ... >> >>def xyz(self, f): >> with self.lock: >> ... >> f.add_done_callback(self.callback) >> >> The code

Re: Python as Windows Service

2014-09-25 Thread Nagy László Zsolt
*De :*Gmail [mailto:mrje...@gmail.com] *Envoyé :* Wednesday, September 24, 2014 2:41 PM *À :* Arulnambi Nandagoban *Objet :* Re: Python as Windows Service Also, this may work for you NSSM installs an existing app as a service. //Jean/

Re: ThreadPoolExecutor - callback guaranteed to run in same thread as the submitted function?

2014-09-25 Thread Ian Kelly
On Thu, Sep 25, 2014 at 3:46 AM, Marko Rauhamaa wrote: > Ian Kelly : > >> The documentation for Future.add_done_callback says: "If the future >> has already completed or been cancelled, fn will be called >> immediately." > > That sounds really bad. > > There should be a guarantee that the callback

Re: cannot run a ruby script from a python script.

2014-09-25 Thread Shawn Bright
On Wednesday, September 24, 2014 6:57:34 PM UTC-5, Shawn Bright wrote: > hello all. > > > > i have a linux computer that i use to run a GUI (wxGTK) program. In this > program, there is a call to run an external ruby script. > > > > command = "ruby run_my_command.rb &" > > os.system(comman

Re: String representations of numbers and approximate equality

2014-09-25 Thread Chris Angelico
On Thu, Sep 25, 2014 at 10:40 PM, Dave Angel wrote: > Another approach is to see if twiddling the last digit gets you > from too high to too low. I used this approach to check a trig > package I wrote in '75. An answer was close enough if twiddling > the last digit changed the result value from

Re: how to execute the following command using python

2014-09-25 Thread Chris Angelico
On Thu, Sep 25, 2014 at 10:28 PM, wrote: > echo -e 'ubuntumachinepassword/\nremotemachinepasword' | sudo --stdin sshfs > root@remoteip:/remotesystem/folder/ /localmountpoint / -o workaround=rename > -o password_stdin -o allow_other > This implies that you're embedding two passwords in the scr

Re: String representations of numbers and approximate equality

2014-09-25 Thread Dave Angel
Chris Angelico Wrote in message: > On Thu, Sep 25, 2014 at 5:56 AM, Dave Angel wrote: >> Your definition is not nearly as concrete as you think. Is the >> first number considered to be exact, and we'll only check the >> second? Will the factor always be an int, and thus >> exact? > > Apologie

how to execute the following command using python

2014-09-25 Thread pradeepatjob
Hi group, I am trying to mount a remote network to my Ubuntu system. The remote machine keeps on changes or it is given by the user whoever wants to use my script. so , user enters what to mount. I found following command and it is running successfully when I execute using shell. th

Re: GCD in Fractions

2014-09-25 Thread Chris Angelico
On Thu, Sep 25, 2014 at 8:56 PM, Akira Li <4kir4...@gmail.com> wrote: > It might mean that you are *too observant* because I've noticed that > the order of the letters is different just now. > > http://english.stackexchange.com/questions/8628/is-it-true-that-only-the-positions-of-the-first-and-last

Re: GCD in Fractions

2014-09-25 Thread Akira Li
Mark Lawrence writes: > On 24/09/2014 12:14, Mark Dickinson wrote: >> Mark Lawrence yahoo.co.uk> writes: >>> Somebody got there first http://bugs.python.org/issue22477 >> >> I think there's good reason to suspect that Brian Gladman and >> blindanagram are one and the same. :-) >> > sorted("B

Re: Python Imaging Library 1.x - 64bit setup file for Python 2.7.2.

2014-09-25 Thread Vincent Vande Vyvre
Le 25/09/2014 10:07, Pinter, Karina /C a écrit : Dear Team, I am working as a software analyst at ExxonMobil. I received a software request for Python Imaging Library 1.x and the user needs a 64bit setup file for Python 2.7.2. Can I download it somewhere? Thanks in advance. */Best Regards,

Re: ThreadPoolExecutor - callback guaranteed to run in same thread as the submitted function?

2014-09-25 Thread Marko Rauhamaa
Ian Kelly : > The documentation for Future.add_done_callback says: "If the future > has already completed or been cancelled, fn will be called > immediately." That sounds really bad. There should be a guarantee that the callback is not called from the same thread before returning from Future.add

Python Imaging Library 1.x - 64bit setup file for Python 2.7.2.

2014-09-25 Thread Pinter, Karina /C
Dear Team, I am working as a software analyst at ExxonMobil. I received a software request for Python Imaging Library 1.x and the user needs a 64bit setup file for Python 2.7.2. Can I download it somewhere? Thanks in advance. Best Regards, Karina Pinter ExxonMobil BSC Hungary Kft. Software A

Re: Which module I'm missing?

2014-09-25 Thread Igor Korot
Thanx Dieter. On 9/24/14, dieter wrote: > Igor Korot writes: >> I got a suggestion to install eric for my developmental needs. >> Unfortunately, it looks like my Linux distribution have a bug as >> running eric throws an exception. >> >> [code] >> igor@IgorDellGentoo ~/plaso-build/liblnk-201409