Re: Ghost vulnerability

2015-02-02 Thread Chris Angelico
On Tue, Feb 3, 2015 at 2:53 PM, Rustom Mody wrote: > How many people (actually machines) out here are vulnerable? > > http://security.stackexchange.com/questions/80210/ghost-bug-is-there-a-simple-way-to-test-if-my-system-is-secure > > shows a python 1-liner to check Well, I have one internal disk

Ghost vulnerability

2015-02-02 Thread Rustom Mody
How many people (actually machines) out here are vulnerable? http://security.stackexchange.com/questions/80210/ghost-bug-is-there-a-simple-way-to-test-if-my-system-is-secure shows a python 1-liner to check -- https://mail.python.org/mailman/listinfo/python-list

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Michael Torrie
On 02/02/2015 04:21 PM, Gabriel Ferreira wrote: > The problem is that this particular website uses a flash player > application do broadcast the live images of the urban areas. I'm not > too familiar with Flash Applications. I don't know how to deal with > them using Python. I was wondering if some

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Rustom Mody
On Tuesday, February 3, 2015 at 4:51:18 AM UTC+5:30, Gabriel Ferreira wrote: > Mark Lawrence wrote: > > > I don't actually know, but could you please provide some context and > > write in plain English, those damn ... things are extremely annoying. > > > > Hi, Mark. > > I am developing a res

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Steven D'Aprano
Paul Rubin wrote: > It's hard to tell why anyone uses Flash anymore Masochism and/or sadism, depending on whether they get more pain from writing the Flash code in the first place or pleasure from forcing Flash on the viewer. -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Mark Lawrence wrote: > I don't actually know, but could you please provide some context and > write in plain English, those damn ... things are extremely annoying. > Hi, Mark. I am developing a research project, which includes video analysis (computer vision, big data, data mining, etc). Th

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Chris Angelico
On Tue, Feb 3, 2015 at 5:34 AM, Mark Lawrence wrote: > On 02/02/2015 17:25, Chris Angelico wrote: >> >> On Tue, Feb 3, 2015 at 3:52 AM, Mark Lawrence >> wrote: >>> >>> I'd like to see anybody define 'a' and 'the' without using 'a' and 'the'. >>> Would that be formally rigorous or rigorously forma

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Mark Lawrence
On 02/02/2015 22:09, Gabriel Ferreira wrote: The original plan was doing it using python. But, anyway, I should build a robot program to do that task for me... Because I need to capture hundreds of hours of different videos... You mean that is difficult because it's Python... or it's difficult

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
The original plan was doing it using python. But, anyway, I should build a robot program to do that task for me... Because I need to capture hundreds of hours of different videos... You mean that is difficult because it's Python... or it's difficult because it's a Flash Application? Thx -- htt

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Michael Torrie
On 02/02/2015 12:30 PM, Gabriel Ferreira wrote: > Hi Paul, I presume the stream operator doesn't want to prevent me > from downloading or recording the videos. I just wanna know more > about some lib that could be used to deal with Flash Player > Applications... Or possibly, anything that could lea

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Paul Rubin
Gabriel Ferreira writes: > Hi Paul, I presume the stream operator doesn't want to prevent me from > downloading or recording the videos. It's hard to tell why anyone uses Flash anymore, but impeding (if not preventing) downloads is probably a common reason. > I just wanna know more about some

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Irmen de Jong
On 2-2-2015 20:30, Gabriel Ferreira wrote: > Hi Paul, I presume the stream operator doesn't want to prevent me from > downloading or recording the videos. I just wanna know more about some lib > that could be used to deal with Flash Player Applications... Or possibly, > anything that could lead

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Hi Paul, I presume the stream operator doesn't want to prevent me from downloading or recording the videos. I just wanna know more about some lib that could be used to deal with Flash Player Applications... Or possibly, anything that could lead me to be able to get those streaming videos. Thx -

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Paul Rubin
Gabriel Ferreira writes: > I appreciate your help. I'm just afraid that Youtube-DL doesn't allow > me to record or download a LIVE STREAMING VIDEO. Do you guys think it > is possible, since I make some adjustments into the code of the > library? If the stream operator really wants stop you from d

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
I appreciate your help. I'm just afraid that Youtube-DL doesn't allow me to record or download a LIVE STREAMING VIDEO. Do you guys think it is possible, since I make some adjustments into the code of the library? -- https://mail.python.org/mailman/listinfo/python-list

Re: Create dictionary based of x items per key from two lists

2015-02-02 Thread rajanbond
On Saturday, 31 January 2015 18:39:01 UTC-8, Jason Friedman wrote: > > I have two lists > > > > l1 = ["a","b","c","d","e","f","g","h","i","j"] > > l2 = ["aR","bR","cR"] > > > > l2 will always be smaller or equal to l1 > > > > numL1PerL2 = len(l1)/len(l2) > > > > I want to create a dictionary that

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Ben Finney
Gabriel Ferreira writes: > I need some help in downloading videos from flash applications in web > using python. Is there any lib to deal with flash player using python? Yes, the ‘youtube-dl’ application is the most likely to have the library code you need. > The videos I need to download are,

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Marko Rauhamaa
Michael Torrie : > Fair enough. You raise good points. I am not taking it personally; your > emails, lacking emotional context, just seemed a bit unnecessarily > argumentative. For example, "The cherry on top: "_1"! The C++ compiler > figures out template types heroically but can't wrap its head

Re: Create dictionary based of x items per key from two lists

2015-02-02 Thread rajanbond
On Saturday, 31 January 2015 18:39:01 UTC-8, Jason Friedman wrote: > > I have two lists > > > > l1 = ["a","b","c","d","e","f","g","h","i","j"] > > l2 = ["aR","bR","cR"] > > > > l2 will always be smaller or equal to l1 > > > > numL1PerL2 = len(l1)/len(l2) > > > > I want to create a dictionary that

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-02-02 Thread Irmen de Jong
On 2-2-2015 10:54, yacinechaou...@yahoo.com wrote: > I wrote a little script that acts like a proxy, you just give it a URL and it > will > fetch the content and display it back to you. > > For some reason, this proxy blocks sometimes and refuses to serve any new > queries. > The script still ru

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Irmen de Jong
On 2-2-2015 17:22, Gabriel Ferreira wrote: > Thanks for the Hint... But it seems not to support the website i mentioned... > Is > there a way to make it possible for any kind of video player in the net? Flash > player... Since it's not a ordinary video... I'm trying to record & download > a live

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Mark Lawrence
On 02/02/2015 17:25, Chris Angelico wrote: On Tue, Feb 3, 2015 at 3:52 AM, Mark Lawrence wrote: I'd like to see anybody define 'a' and 'the' without using 'a' and 'the'. Would that be formally rigorous or rigorously formal? a: Indefinite article, used to represent individual objects not other

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Michael Torrie
On 02/02/2015 10:57 AM, Marko Rauhamaa wrote: > I really don't understand why you are taking all of this so personally. > We are just discussing different aspects of different programming > languages. Fair enough. You raise good points. I am not taking it personally; your emails, lacking emotiona

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Marko Rauhamaa
Michael Torrie : > You have no intention of being impressed with C++, let alone simply > learn about it. I am fully open to being impressed. I have more than a decade of C++ programming under my belt, although not much for the past few years. > There's no possible way for the compiler to know th

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Chris Angelico
On Tue, Feb 3, 2015 at 3:52 AM, Mark Lawrence wrote: > I'd like to see anybody define 'a' and 'the' without using 'a' and 'the'. > Would that be formally rigorous or rigorously formal? a: Indefinite article, used to represent individual objects not otherwise identifiable. the: Definite article,

Re: Is there a cairo like surface for the screen without the window hassle

2015-02-02 Thread Paul Rubin
Antoon Pardon writes: > So does someone know of a package that provides a cairo like surface Not sure what a cairo like surface is, but maybe you want HTML5 Canvas that's built into recent browsers. So you'd just embed a web server in your application and interact with it through a browser. --

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Mark Lawrence
On 02/02/2015 16:21, Rustom Mody wrote: On Monday, February 2, 2015 at 9:40:35 PM UTC+5:30, Mark Lawrence wrote: On 02/02/2015 08:52, Marko Rauhamaa wrote: Chris Angelico : On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano wrote: And there are underspecified rules too. What is the plural of o

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Thanks for the Hint... But it seems not to support the website i mentioned... Is there a way to make it possible for any kind of video player in the net? Flash player... Since it's not a ordinary video... I'm trying to record & download a live streaming video!! Thx -- https://mail.python.org/

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Michael Torrie
On 02/02/2015 12:39 AM, Marko Rauhamaa wrote: > Michael Torrie : > >> http://en.cppreference.com/w/cpp/utility/functional/function >> >> Thus if we were to shoehorn your example into C++, the result would be >> idiomatically very similar to what you have in your Python code. > > I can understand

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Rustom Mody
On Monday, February 2, 2015 at 9:40:35 PM UTC+5:30, Mark Lawrence wrote: > On 02/02/2015 08:52, Marko Rauhamaa wrote: > > Chris Angelico : > > > >> On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano wrote: > >>> And there are underspecified rules too. What is the plural of octopus? No > >>> fair look

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Steven D'Aprano
Gabriel Ferreira wrote: > Hello, > > I need some help in downloading videos from flash applications in web > using python. Is there any lib to deal with flash player using python? Try Youtube-DL http://rg3.github.io/youtube-dl -- Steven -- https://mail.python.org/mailman/listinfo/python-li

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Mark Lawrence
On 02/02/2015 08:52, Marko Rauhamaa wrote: Chris Angelico : On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano wrote: And there are underspecified rules too. What is the plural of octopus? No fair looking it up in the dictionary. Standard and well-known piece of trivia, and there are several

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Mark Lawrence
On 02/02/2015 04:47, Chris Angelico wrote: On Mon, Feb 2, 2015 at 3:14 PM, Roy Smith wrote: In article <54ceda0b$0$12977$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: What is the plural of octopus? It's a trick question. Octopus is already plural. Monopus is singular. P

Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Hello, I need some help in downloading videos from flash applications in web using python. Is there any lib to deal with flash player using python? The videos I need to download are, in fact, live streaming content. You can see an example here: http://vejoaovivo.com.br/sc/itapema/avenida-nereu

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Steven D'Aprano
Devin Jeanpierre wrote: > Oops, I just realized why such a claim might be made: the > documentation probably wants to be able to say that any method can use > super(). So that's why it claims that it isn't a method unless it's > defined inside a class body. You can use super anywhere, including

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Steven D'Aprano
Devin Jeanpierre wrote: > On Mon, Feb 2, 2015 at 4:06 AM, Steven D'Aprano > wrote: >> instance.f is a method by the glossary definition. Its type is identical >> to types.MethodType, which is what I used to create a method by hand. > > You are assuming that they are both methods, just because t

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread beliavsky
On Friday, January 30, 2015 at 5:51:38 PM UTC-5, Gregory Ewing wrote: > Michael Torrie wrote: > > On 01/30/2015 10:31 AM, Rustom Mody wrote: > > > >>And what about the grey area between lightweight and heavyweight? > > > > That's what the smart pointers are for. > > I'd say it's what higher-leve

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Marko Rauhamaa
Paul Rudin : > Marko Rauhamaa writes: >> Your brain's grammar engine will give you the correct answer. It may >> not match your English teacher's answer, but the language we are >> talking about is not standard English but the dialect you have >> acquired in childhood. > > Aha - the Humpty Dumpty

Is there a cairo like surface for the screen without the window hassle

2015-02-02 Thread Antoon Pardon
I need to have a program construct a number of designs. Of course I can directly use a pfd surface and later use a pdf viewer to check. But that becomes rather cumbersome fast. But if I use a cairo-surface for on the screen I suddenly have to cope with expose events and all such things I am not rea

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Paul Rudin
Marko Rauhamaa writes: > Chris Angelico : > >> On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano >> wrote: >>> And there are underspecified rules too. What is the plural of octopus? No >>> fair looking it up in the dictionary. >> >> Standard and well-known piece of trivia, and there are several >

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Devin Jeanpierre
On Mon, Feb 2, 2015 at 5:00 AM, Devin Jeanpierre wrote: > On Mon, Feb 2, 2015 at 4:06 AM, Steven D'Aprano > wrote: >>> On Sun, Feb 1, 2015 at 11:15 PM, Steven D'Aprano >>> wrote: >> Both K.f and K.g are methods, even though only one meets the definition >> given in the glossary. The glossary is

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Devin Jeanpierre
On Mon, Feb 2, 2015 at 4:06 AM, Steven D'Aprano wrote: >> On Sun, Feb 1, 2015 at 11:15 PM, Steven D'Aprano >> wrote: > Both K.f and K.g are methods, even though only one meets the definition > given in the glossary. The glossary is wrong. I agree, it oversimplified and has made a useless distinc

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Steven D'Aprano
Rustom Mody wrote: > My point was more methodological/sociological than technical: > > Are these dunder methods as 'internal' as say the register-allocation used > by a C compiler? Dunder methods are implementation, not interface. If you are the class author, then you care about the implementat

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Rustom Mody
On Monday, February 2, 2015 at 10:57:27 AM UTC+5:30, Vito De Tullio wrote: > Steven D'Aprano wrote: > > > Checking the REPL first would have revealed that [].__dir__ raises > > AttributeError. In other words, lists don't have a __dir__ method. > > ? > > Python 3.4.2 (default, Nov 29 2014, 00:45:

Re: Python is DOOMED! Again!

2015-02-02 Thread Rustom Mody
On Monday, February 2, 2015 at 1:13:30 PM UTC+5:30, Paul Rubin wrote: > Steven D'Aprano writes: > > No apples and no oranges aren't the same thing, but if somebody is > > expecting > > no apples, and I give them no oranges instead, it would be churlish for > > them > > to complain that none of

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Steven D'Aprano
Steven D'Aprano wrote: > Both K.f and K.g are methods, even though only one meets the definition > given in the glossary. The glossary is wrong. Oh I'm sure somebody is going to pick me up on this... In Python 2, they are methods. In Python 3, they are functions, and aren't converted into metho

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Steven D'Aprano
Devin Jeanpierre wrote: > -- Devin > > On Sun, Feb 1, 2015 at 11:15 PM, Steven D'Aprano > wrote: >> Gregory Ewing wrote: >> >>> Steven D'Aprano wrote: [quote] If the object has a method named __dir__(), this method will be called and must return the list of attributes.

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-02-02 Thread Amirouche Boubekki
On Mon Feb 02 2015 at 10:55:26 AM wrote: > I wrote a little script that acts like a proxy, you just give it a URL and > it will fetch the content and display it back to you. > > For some reason, this proxy blocks sometimes and refuses to serve any new > queries. The script still runs, but it seem

How to write a non blocking SimpleHTTPRequestHandler ?

2015-02-02 Thread yacinechaouche
I wrote a little script that acts like a proxy, you just give it a URL and it will fetch the content and display it back to you. For some reason, this proxy blocks sometimes and refuses to serve any new queries. The script still runs, but it seems like it's stuck somewhere. When I strace it to

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano > wrote: >> And there are underspecified rules too. What is the plural of octopus? No >> fair looking it up in the dictionary. > > Standard and well-known piece of trivia, and there are several > options. "Octopodes" is one of th

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Marko Rauhamaa
Steven D'Aprano : > Steven D'Aprano wrote: >> Of course people make grammar mistakes that they don't spot. > > Ironically, this is one of them. It should of course be "grammatical > mistakes". I don't believe you made a mistake according to your brain's grammar engine. Parenthetically, I don't b

cx_Freeze:Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'

2015-02-02 Thread iMath
I downloaded cx_Freeze from here, installed it successfully on Ubuntu following this thread . After run python3 setup.py build in cx_Freeze/samples/simple,then change the dir to cx_Freeze/samples/simple/build/exe.linux-i686-3.4,run the following command ,I got the error ?7?4 exe.linux-i686-3.