Re: Python Script Works Locally But Not Remotely with SSH

2012-04-02 Thread Emile van Sebille
On 3/27/2012 5:51 PM goldtech said... Hi, I have a WinXP PC running an SSH server and I have a Linux PC with an SSH client and logged into the XP seemingly OK. It's all on my personal LAN, the connection seems OK. I have a py file on the XP that I run via SSH from the Linux, it's: import webb

Re: Python Script Works Locally But Not Remotely with SSH

2012-04-02 Thread Jerry Hill
On Tue, Mar 27, 2012 at 8:51 PM, goldtech wrote: > I have a WinXP PC running an SSH server and I have a Linux PC with an > SSH client  and logged into the XP seemingly OK. It's all on my > personal LAN, the connection seems OK. > > I have a py file on the XP that I run via SSH from the Linux, it's

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-02 Thread Chris Angelico
On Fri, Mar 30, 2012 at 2:48 AM, Steve Howell wrote: > I agree with you on the overall point, but I think that Python > actually does a fine job of replacing REXX and PHP.  I've used both of > the latter (and, of course, Python).  REXX and PHP are great at what > they do, but I don't think their s

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-02 Thread Chris Angelico
On Sun, Apr 1, 2012 at 6:23 AM, Steve Howell wrote: > On Mar 31, 1:13 pm, Tim Rowe wrote: >> >> I know 10 languages. But I'm not telling you what base that number is :) >> > > Well, that means you know at least two programming languages, which > puts you ahead of a lot of people. :) That's enoug

Re: Python is readable

2012-04-02 Thread Chris Angelico
On Sat, Mar 31, 2012 at 4:07 PM, Steve Howell wrote: > On Mar 30, 1:20 pm, Chris Angelico wrote: > >> Totally. That's why we're all still programming in assembly language >> and doing our own memory management, because we would lose a lot of >> personal value if programming stopped being so diffi

simple rsa from javascript to python

2012-04-02 Thread Astan Chee
Hi, I've got a simple javascript that looks like this: var public_key_mod = "B99808B881F3D8A620F043D70B89674C0A120417FBD3690B3472589C641AD5D422502D0B26CADF97E2CB618DDDBD06CA0619EBBFB328A2FA31BD0F272FE3791810546E04BF42F05DB620FC7B4D0A2EAA17C18FF30C84D93341205C1D6EAD6ACBF2F08E334049DEBF31555CF164AD5

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Michael Hrivnak
That method uses the default port 993. Can you connect to that port at all from your computer? For example, try using a telnet client. Michael On Sat, Mar 31, 2012 at 1:39 AM, Julien wrote: > Hi, > > I'm able to connect to an Exchange server via SMTP and IMAP from my > iPhone using SSL and w

Re: Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread Emile van Sebille
On 3/31/2012 8:38 AM Cameron Laird said... And it's time to bring "Python-URL!" to a close. Three cheers for your efforts over the years keeping this going. Many heartfelt thanks, Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
Hi Michael, Thanks for your reply. I did try port 993. I know that port generally works for me, as I can access the Gmail IMAP/SMTP server using SSL. It also works for that other Exchange server but only when the VPN is turned on. Somehow my iPhone works fine without a VPN, as long as it uses SSL

Re: Is Programing Art or Science?

2012-04-02 Thread J�rgen Exner
"Pascal J. Bourguignon" wrote: >ccc31807 writes: > >> Programming is neither an art nor a science, but a trade. Oh, that's why it is tought in trade schools alongside butchery, plumbing, masonry, and chimney sweeping and why you don't find any programming classes at university. jue -- http://m

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-02 Thread Tim Chase
PHP is a language that I wish would die off quickly and gracefully. I feel like the good things of PHP have already been subsumed into the ecosystems of stronger programming languages (including Python). The one killer feature PHP has to offer over other languages: ease of efficient deployment

Re: Is Programing Art or Science?

2012-04-02 Thread Emile van Sebille
On 4/2/2012 4:52 PM Jürgen Exner said... "Pascal J. Bourguignon" wrote: ccc31807 writes: Programming is neither an art nor a science, but a trade. Oh, that's why it is tought in trade schools alongside butchery, plumbing, masonry, and chimney sweeping Yes -- back when we opened our firs

How I can draw the grid lines at intervals with step=1?

2012-04-02 Thread Andres Soto
Hi I am trying to draw a step (or staircase) function. My points are all integers. I would like that the grid lines help to identify the limits of each line, but when I draw the grid, it is set each 5 units. How can I draw the grid lines at intervals with step=1? Thanks for your help in advance R

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-02 Thread Steve Howell
On Apr 2, 2:50 pm, Chris Angelico wrote: > On Fri, Mar 30, 2012 at 2:48 AM, Steve Howell wrote: > > I agree with you on the overall point, but I think that Python > > actually does a fine job of replacing REXX and PHP.  I've used both of > > the latter (and, of course, Python).  REXX and PHP are

Re: How I can draw the grid lines at intervals with step=1?

2012-04-02 Thread Chris Rebert
On Mon, Apr 2, 2012 at 5:14 PM, Andres Soto wrote: > Hi > I am trying to draw a step (or staircase) function. My points are all > integers. I would like that the grid lines help to identify the limits of > each line, but when I draw the grid, it is set each 5 units. > How can I draw the grid lines

Re: Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread python
Thanks for all your hard work - I learned a lot by visiting the links you guys gathered over the years. Best regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Cannot remove PIL, numpy lib from XP

2012-04-02 Thread W. eWatson
Well, it looks like I cannot remove PIL with control panel remove/add. The dialog just flashes when I push the button. I tried on an old program not in use, and it did respond as one would want. My guess is that I should not have started with removing Python 2.5.2 first. How do I get out of th

Re: getaddrinfo NXDOMAIN exploit - please test on CentOS 6 64-bit

2012-04-02 Thread John Nagle
On 4/1/2012 1:41 PM, John Nagle wrote: On 4/1/2012 9:26 AM, Michael Torrie wrote: On 03/31/2012 04:58 PM, John Nagle wrote: Removed all "search" and "domain" entries from /etc/resolve.conf It's a design bug in glibc. I just submitted a bug report. http://sourceware.org/bugzilla/show_bug.cg

Re: string interpolation for python

2012-04-02 Thread Yingjie Lan
>>> I can't find a way to use an argument more than once, >>> without switching to "dictionary mode" and using keys for >>> everything. Even in "dictionary mode", the key is spelled more than once. The "tuple mode" below seems to save some typing.  However, when there are more and more item

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Michael Hrivnak
Your phone may be using TLS on the normal IMAP port (143). Or, are you sure your phone is using IMAP and not active sync? Michael On Mon, Apr 2, 2012 at 6:25 PM, Julien wrote: > Hi Michael, > > Thanks for your reply. I did try port 993. I know that port generally > works for me, as I can access

Re: Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread Ben Finney
Cameron Laird writes: > I pine for the fjords. > > And it's time to bring "Python-URL!" to a close. "Python-URL!", which > Jean-Claude Wippler and I appear to have launched in 1998, has reached > the end of its utility. Emile van Sebille writes: > On 3/31/2012 8:38 AM Cameron Laird said... >

Re: Is Programing Art or Science?

2012-04-02 Thread Chiron
On Fri, 30 Mar 2012 01:27:16 -0700, Xah Lee wrote: > 〈Is Programing Art or Science〉 Why is this question important? -- You are confused; but this is your normal state. -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I use PyGTK to put text besides clickable buttons?

2012-04-02 Thread Dan Stromberg
You could use an hbox. Or rather, a vbox with a bunch of hbox's in it. On Thu, Mar 29, 2012 at 10:45 PM, Jason Hsu, Mr. Swift Linux < jhsu802...@gmail.com> wrote: > I've decided to use PyGTK instead of gtkdialog for providing > configuration menus/dialog boxes in Swift Linux, the Linux distro I

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-02 Thread Nathan Rice
On Sun, Apr 1, 2012 at 11:18 PM, alex23 wrote: > On Mar 30, 3:37 pm, Nathan Rice > wrote: >> We live in a world where the tools that are used are based on >> tradition (read that as backwards compatibility if it makes you feel >> better) and as a mechanism for deriving personal identity.  The wor

Re: simple rsa from javascript to python

2012-04-02 Thread Nobody
On Mon, 02 Apr 2012 16:19:05 -0700, Astan Chee wrote: > and I'm trying to convert this into python and I'm rather stuck with > pycrypto as there is no example on how to make the public key with a mod > and exponent (or I've probably missed it). from Crypto.PublicKey import RSA mod = long("B99808B

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-02 Thread alex23
On Apr 3, 2:55 pm, Nathan Rice wrote: > I don't care what people do related to legacy systems. And that's what earns you the label 'architecture astronaut'. Legacy systems are _part_ of the problem; it's very easy to hold to a purist approach when you ignore the bulk of the domain that causes th

Google Tech Talk: lisp at JPL

2012-04-02 Thread Xah Lee
Dearly beloved lisperati, I present you, Ron Garret (aka Erann Gat — aka Naggum hater and enemy of Kenny Tilton), at Google Tech Talk 〈The Remote Agent Experiment: Debugging Code from 60 Million Miles Away〉 Google Tech Talk, (2012-02-14) Presented by Ron Garret. @ http://www.youtube.com/watch?v=_

Re: No os.copy()? Why not?

2012-04-02 Thread Thomas Rachel
Am 02.04.2012 23:11 schrieb HoneyMonster: One way: import os os.system ("cp src sink") Yes. The worst way you could imagine. Why not the much much better from subprocess subprocess.call(['cp', 'src', 'sink']) ? Then you can call it with (really) arbitrary file names: def call_cp(from, t

<    1   2