Re: help for using Python rsa

2015-02-07 Thread Dave Angel
On 02/07/2015 10:00 PM, Chris Angelico wrote: On Sun, Feb 8, 2015 at 1:55 PM, Cameron Simpson wrote: Given that Dave Angel has a tool that displays the 'SEcP...' string using mhr1224's input string, I'd say we're missing some context. I don't think he does; that was simulated output as part o

Re: help for using Python rsa

2015-02-07 Thread Chris Angelico
On Sun, Feb 8, 2015 at 1:55 PM, Cameron Simpson wrote: > Given that Dave Angel has a tool that displays the 'SEcP...' string using > mhr1224's input string, I'd say we're missing some context. I don't think he does; that was simulated output as part of an example of "here's how to ask your questi

Re: help for using Python rsa

2015-02-07 Thread Cameron Simpson
On 07Feb2015 18:15, Chris Angelico wrote: On Sat, Feb 7, 2015 at 4:14 PM, wrote: encrypted massage is like this: "@\xc4\xb2\x14r\xf1x\xb8\xb2\t;\x9a:\x1dl\x11\xe2\x10\xa9E\xee\x8b\xac\xd0\xd3Y\xfb}\xd9@\xdd\x0c\xa5\xd2\xfc1\xd6\x06\xf0\xb8\x944\xe1\xc2r\xe5anyq\xac\xdfh\xeb\x10\x80\x98\xa1\xe

Re: Python is DOOMED! Again!

2015-02-07 Thread Chris Angelico
On Sun, Feb 8, 2015 at 11:45 AM, Albert van der Horst wrote: > def square(x): x**2 > but > square = x->x**2 > > or > > mult = x,y -> >result = 0 >for i in range(x): > result +=y >return result > > doing away with the ternary operator def > > def .. ( .. ) : .. > > replacing it b

Re: What killed Smalltalk could kill Python

2015-02-07 Thread Chris Angelico
On Sun, Feb 8, 2015 at 10:54 AM, Albert van der Horst wrote: > Not to mention that mostly a game is understood, not as something like > chess, but an FPS (first person shooter) game. > But that is real time programming, one league beyond beginners > procedural (sequential) or functional programmin

Re: Python is DOOMED! Again!

2015-02-07 Thread Albert van der Horst
In article , Ethan Furman wrote: >-=-=-=-=-=- > >On 01/21/2015 08:30 PM, Steven D'Aprano wrote: >> >> So what is this unspeakable, nightmarish, cryptic abomination going to look >> like? Here's an example from PEP 484: >> >> def greeting(name: str) -> str: >> return 'Hello ' + name >> >> >> I

Re: What killed Smalltalk could kill Python

2015-02-07 Thread Albert van der Horst
In article , Chris Angelico wrote: >On Thu, Jan 22, 2015 at 1:53 PM, Paul Rubin wrote: >>> If someone's unfazed by the "it'll take you years before you can >>> actually write a saleable game" consideration, >> >> Wanting to write games is a completely different topic than wanting to >> sell them

Re: What killed Smalltalk could kill Python

2015-02-07 Thread Albert van der Horst
In article , Tim Chase wrote: >On 2015-01-22 03:34, Steven D'Aprano wrote: >> In 2009, Robert Martin gave a talk at RailsConf titled "What Killed >> Smalltalk Could Kill Ruby". > >Holy pacing, Batman. Watching it at 2x leaves me wondering how much >of the stage was worn off during the presentati

How to Mock a mongodb

2015-02-07 Thread Xavier Pegenaute
Dear, I am trying to mock the use of a mongo db and I am having some trouble. Appears that I am not able to return a desired value from mongo.find().count(). I made a proof of concept to try to reduce complexity of the real problem. You can find the code which is going to be tested in [1], a

Re: How to Mock a mongodb

2015-02-07 Thread mm0fmf
On 07/02/2015 22:09, Xavier Pegenaute wrote: Dear, I am trying to mock the use of a mongo db and I am having some trouble. Appears that I am not able to return a desired value from mongo.find().count(). I made a proof of concept to try to reduce complexity of the real problem. You can find the

Re: How to extract a movie title out of a text file

2015-02-07 Thread Gregory Ewing
Seymore4Head wrote: What I would like to be able to do is download and save to a folder all the srr files in this Usenet group. alt.binaries.moovee The nntplib module in the standard library would be a good place to start. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Incompatible idioms: relative imports, top-level program file

2015-02-07 Thread Gregory Ewing
Rustom Mody wrote: Wanted to try out sympy. apt-install promised ¼ GB download, ¾ GB space usage Just getting a src-tarball was: 6M download, 30M after opening the tar. Have you actually tried compiling and using that tarball, though? Sympy hooks into a lot of other libraries that are themsel

How to Mock a mongodb

2015-02-07 Thread Xavier Pegenaute
Dear, I am trying to mock the use of a mongo db and I am having some trouble. Appears that I am not able to return a desired value from mongo.find().count(). I made a proof of concept to try to reduce complexity of the real problem. You can find the code which is going to be tested in [1], a

Re: How to extract a movie title out of a text file

2015-02-07 Thread Chris Angelico
On Sun, Feb 8, 2015 at 3:50 AM, Seymore4Head wrote: > What I would like to be able to do is download and save to a folder > all the srr files in this Usenet group. alt.binaries.moovee > > I would then like to be able to search for a title in the text file. > > Anyone care to come up with the Pyth

Re: How to extract a movie title out of a text file

2015-02-07 Thread Albert-Jan Roskam
- On Sat, Feb 7, 2015 6:36 PM CET Mark Lawrence wrote: >On 07/02/2015 16:50, Seymore4Head wrote: >> What I would like to be able to do is download and save to a folder >> all the srr files in this Usenet group. alt.binaries.moovee >> >> I would then like to be able t

Re: How to extract a movie title out of a text file

2015-02-07 Thread Mark Lawrence
On 07/02/2015 16:50, Seymore4Head wrote: What I would like to be able to do is download and save to a folder all the srr files in this Usenet group. alt.binaries.moovee I would then like to be able to search for a title in the text file. Anyone care to come up with the Python code to do this?

Re: How to extract a movie title out of a text file

2015-02-07 Thread mm0fmf
On 07/02/2015 16:50, Seymore4Head wrote: Anyone care to come up with the Python code to do this? No problem, where I work charges me out at $2250/day plus expenses etc. I'll do it for half of that So send me $562 upfront and I'll get on with this for you. 24/7 hotline support is included in

How to extract a movie title out of a text file

2015-02-07 Thread Seymore4Head
What I would like to be able to do is download and save to a folder all the srr files in this Usenet group. alt.binaries.moovee I would then like to be able to search for a title in the text file. Anyone care to come up with the Python code to do this? -- https://mail.python.org/mailman/listi

Re: Matplotlib import error

2015-02-07 Thread Mark Lawrence
On 07/02/2015 15:23, C Smith wrote: On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote: In article , C Smith wrote: I had python 2.7.6 installed on OS X yosemite, which has always worked fine, until I tried to install matplotlib with pip. I got the same error below and upgraded to 2.7.9, used

Re: Matplotlib import error

2015-02-07 Thread C Smith
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote: > In article > , > C Smith wrote: >> I had python 2.7.6 installed on OS X yosemite, which has always worked >> fine, until I tried to install matplotlib with pip. I got the same >> error below and upgraded to 2.7.9, used pip to upgrade all the >>

Re: Monte Carlo probability calculation in Python

2015-02-07 Thread Sturla Molden
Paul Moore wrote: > > Yes. And a number of other variations. None gave anything that seemed to > relate. It's quite likely though that I'm simply not understanding how > things like pymc (which came up in the searches) might help me, or how to > convert my problem into a Monte Carlo integration

Re: logging question

2015-02-07 Thread Automn
Hello, On 2014-08-13, Arulnambi Nandagoban wrote: > > My pc restarts regularly. Whenever it restarts I lose all the log since it > writes in the file once per day. Is there a way to log information in a > file as soon as it available. You can log in the /var/tmp directory instead of /tmp. The f