Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 2:59 PM, alex23 wrote: > On Jun 5, 2:40 pm, Νικόλαος Κούρας wrote: >> Of course '/home/nikos/public_html/cgi-bin' = '/home/nikos/www/cgi-bin' >> What this has to do with what i asked? > > You display an error of "No such file or directory" and you wonder why > I'm trying to

Re: Bools and explicitness [was Re: PyWart: The problem with "print"]

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 4:11 PM, Russ P. wrote: > On Tuesday, June 4, 2013 8:44:11 AM UTC-7, Rick Johnson wrote: > >> Yes, but the problem is not "my approach", rather the lack >> >> of proper language design (my apologizes to the "anointed >> >> one". ;-) > > If you don't like implicit conversion

Re: Python Magazine

2013-06-05 Thread DRJ Reddy
On Saturday, June 1, 2013 1:45:06 PM UTC+5:30, Carlos Nepomuceno wrote: > Nice! Wish you luck! > > Do you have sponsors? Advertisers? What's the plan? Thanks Carlos, Right now we haven't engaged with sponsors or advertisers. Thinking whether to have a community magazine or go with the same w

Re: Issue values dictionary

2013-06-05 Thread Peter Otten
alex23 wrote: > def get_transcript_and_size(line): > columns = line.strip().split() > return columns[0].strip(), int(columns[1].strip()) You can remove all strip() methods here as split() already strips off any whitespace from the columns. Not really important, but the nitp

Re: Bools and explicitness [was Re: PyWart: The problem with "print"]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 12:15:57 AM UTC-7, Chris Angelico wrote: > On Wed, Jun 5, 2013 at 4:11 PM, Russ P. wrote: > > > On Tuesday, June 4, 2013 8:44:11 AM UTC-7, Rick Johnson wrote: > > > > > >> Yes, but the problem is not "my approach", rather the lack > > >> > > >> of proper language des

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 1:55 PM, Νικόλαος Κούρας wrote: > Good Day Chris, thanks for accepting. > > Please mail me and i will send you the root login credentials. Well, I wasn't sure whether this would actually happen or not, but it did. I made it fairly clear to him in multiple posts that I was

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 11:09:50 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 1:55 PM, Νικόλαος Κούρας wrote: > > > Good Day Chris, thanks for accepting. > > > > > > Please mail me and i will send you the root login credentials. > > > > Well, I wasn't sure whether

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 6:26 PM, Νικόλαος Κούρας wrote: > > I gave you out of my good and trustworthy heart my root password so for you > to look upon my systrem configuration and all you did was trying to fuck me > by sending mails to my clients? That would be "trusting", not "trustworthy", and

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 11:41:55 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 6:26 PM, Νικόλαος Κούρας wrote: > > > > > > I gave you out of my good and trustworthy heart my root password so for you > > to look upon my systrem configuration and all you did was trying

Re: Bools and explicitness [was Re: PyWart: The problem with "print"]

2013-06-05 Thread Mark Lawrence
On 05/06/2013 07:11, Russ P. wrote: But then, what would you expect of a language that allows you to write x = 1 x = "Hello" It's all loosey goosey -- which is fine for many applications but certainly not for critical ones. I want to launch this rocket with an expensive satellite on top.

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread alex23
On Jun 5, 6:53 pm, Νικόλαος Κούρας wrote: > So, iam to blame this for trusting you? I'm sure you were smart enough to get Chris to sign a contract before giving him the keys to your kingdom, no? -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 6:53 PM, Νικόλαος Κούρας wrote: > So, iam to blame this for trusting you? Your clients trust you to not compromise their security. You compromised their security by giving the root password to a stranger. > YOU COULD HAVE ACTUALLY TRIED TO SEE WHATS WRONG WITH 'FILES.PY' I

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread alex23
On Jun 5, 6:41 pm, Chris Angelico wrote: > This matter is far more serious than you seem to be giving it > consideration for. You complain that I violated your trust; you > violated the trust of people who are paying you money. I think the term I'm looking for here is: EPIC WIN :D -- http://mai

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 10:53, schrieb Νικόλαος Κούρας: I ALSO HAVE GIVEN ROOT ACCESS TO ANOTHER MEMBER OF THIS LIST AND HE IN FACT TRIED TO HELP ME INSTEAD OF DOING WHAT YOU DID. AND FROM 2 OTHER PEOPLE AS SOME OTHER FORUMS TOO. You know what you're saying there? You've given (at least) four people y

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 11:59:28 π.μ. UTC+3, ο χρήστης alex23 έγραψε: > On Jun 5, 6:41 pm, Chris Angelico wrote: > > > This matter is far more serious than you seem to be giving it > > > consideration for. You complain that I violated your trust; you > > > violated the trust of people who ar

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:05:36 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 6:53 PM, Νικόλαος Κούρας wrote: > > > So, iam to blame this for trusting you? > > > > Your clients trust you to not compromise their security. You > > compromised their security by giving

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:04:15 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε: > Am 05.06.2013 10:53, schrieb οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½: > > > I ALSO HAVE GIVEN ROOT ACCESS TO ANOTHER MEMBER OF THIS LIST AND HE IN FACT > > TRIED TO HELP ME INSTEAD OF DOING WHAT YOU DID. AND FRO

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 7:04 PM, Heiko Wundram wrote: > Seeing how riled up you get about this, what Chris did is for the better. At > least it seems that you won't be able to change your root password back, > either, and as such you won't have root access anymore to your system for > the time bein

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 7:14 PM, Νικόλαος Κούρας wrote: > NEXT THIS YOU'RE GONNA TELL ME IS TO BE HAPPY THAT YOU DIDN'T WIPE THE WHOLE > SYSTEM OUT BY 'RM -RF /' Yes. Actually, yes. Do you understand now what you have done by giving your password to multiple people? This is *completely* different

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 11:19, schrieb Chris Angelico: Not quite accurate; he can change his root password back as soon as he logs in as the non-root user and cats one little file. I understood that - I rather got the impression that he (as a person) wasn't technically capable of changing it. Alas, the

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 7:19 PM, Νικόλαος Κούρας wrote: > I'am a perosn that eaisly trust other people to have ethics, especially > python programmers who knows how difficult its to debug a script and have it > working. > Some people can be trusted, and actually try to help. > Some dont. > Chris

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:27:20 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 7:14 PM, Νικόλαος Κούρας wrote: > > > NEXT THIS YOU'RE GONNA TELL ME IS TO BE HAPPY THAT YOU DIDN'T WIPE THE > > WHOLE SYSTEM OUT BY 'RM -RF /' > > > > Yes. Actually, yes. Do you understa

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:29:10 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε: > Am 05.06.2013 11:19, schrieb Chris Angelico: > > > Not quite accurate; he can change his root password back as soon as he > > > logs in as the non-root user and cats one little file. > > > > I understood that - I

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:31:37 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 7:19 PM, Νικόλαος Κούρας wrote: > > > I'am a perosn that eaisly trust other people to have ethics, especially > > python programmers who knows how difficult its to debug a script and have >

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 7:32 PM, Νικόλαος Κούρας wrote: > iI got back root access and i > > 'rm -y /home/user/public_html/Hello_from_ROSUAV' > so to delete your deface. Thank God you just placed that text file there and > did not deface frontpages. Indeed. That's one of the few truly accurate sta

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread alex23
On Jun 5, 7:46 pm, Νικόλαος Κούρας wrote: > And here us Alex23 private mail that sent out to me: Which I spared the list from because it was off-topic, but I don't think that's a concept you're overly familiar with given your posting history. -- http://mail.python.org/mailman/listinfo/python-lis

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 7:37 PM, Νικόλαος Κούρας wrote: > TheRE is this saying that applis to you: > A THIEF BELEIVES EVERYBODY STEALS. > > You do not trust people because you think all of them are likely to screw > you, when its the other way around. You really need to do a basic course in inter

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
And here us Alex23 private mail that sent out to me: On Jun 5, 7:06 pm, Νικόλαος Κούρας wrote: > There would have been no violation if he just look into en encoding issue and > not meddled with my customers mail and data. "Waaah, why didn't this stranger do my job for me for free? I'm so confus

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 11:33, schrieb Νικόλαος Κούρας: It will remain, if you go away. Look, pal, I work as a programmer for a (medium size) network service provider, and due to that I (should) know my networking security 101. It's generally people like you who are: 1) extremely careless about their

Re: Issue values dictionary

2013-06-05 Thread alex23
On Jun 5, 5:43 pm, Peter Otten <__pete...@web.de> wrote: > You can remove all strip() methods here as split() already strips off any > whitespace from the columns. > > Not really important, but the nitpicker in me keeps nagging ;) Thanks, I really should have checked but just pushed the OPs code i

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread alex23
On Jun 5, 7:48 pm, Chris Angelico wrote: > No wonder the economy of Greece is in trouble. This isn't addressed just to Chris, as this isn't the first time the joke has been made, but could we not? There's a term for applying the failings of an individual to an entire genetic or cultural collectiv

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 7:52 PM, alex23 wrote: > On Jun 5, 7:48 pm, Chris Angelico wrote: >> No wonder the economy of Greece is in trouble. > > This isn't addressed just to Chris, as this isn't the first time the > joke has been made, but could we not? There's a term for applying the > failings of

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:55:49 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε: > Am 05.06.2013 11:33, schrieb οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½: > It's you who's the untrustworthy, completely unreliable and utterly > irresponsible member of the community of networks that's called the

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 12:21, schrieb Νικόλαος Κούρας: I dont care what you do for a living, you never helped me a bit in anything, you just presented to me your self 1 hour ago to join the party. Guess why I did so: you're presently touching a subject (network safety) that I hold dear, and not only b

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 1:12:55 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 7:52 PM, alex23 wrote: > > > On Jun 5, 7:48 pm, Chris Angelico wrote: > > >> No wonder the economy of Greece is in trouble. > > > > > > This isn't addressed just to Chris, as this isn't th

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 12:30, schrieb Νικόλαος Κούρας: You and Heiko of course would be excluded from the programmer for hire list. Guess what: I have a job. And I don't give a damn. -- --- Heiko. -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 12:49:13 μ.μ. UTC+3, ο χρήστης alex23 έγραψε: > On Jun 5, 7:46 pm, Νικόλαος Κούρας wrote: > > > And here us Alex23 private mail that sent out to me: > > > > Which I spared the list from because it was off-topic, but I don't > > think that's a concept you're overly f

ANN: A new version (0.3.4) of the Python module which wraps GnuPG has been released.

2013-06-05 Thread Vinay Sajip
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is a minor enhancement and bug-fix release. See the project website ( http://code.google.com/p/python-gnupg/ ) for more information. Summary: An encoding bug which caused an exception when ge

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Antoon Pardon
Op 05-06-13 11:19, Νικόλαος Κούρας schreef: > I'am a perosn that eaisly trust other people to have ethics, especially > python programmers who knows how difficult its to debug a script and have it > working. > Some people can be trusted, and actually try to help. > Some dont. > Chris is na exampl

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 1:39:28 μ.μ. UTC+3, ο χρήστης Antoon Pardon έγραψε: > Op 05-06-13 11:19, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ schreef: > > > I'am a perosn that eaisly trust other people to have ethics, especially > > python programmers who knows how difficult its to debug a scri

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-05 Thread Νικόλαος Κούρας
Is the above way likely to work Steven? -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 13:07, schrieb Νικόλαος Κούρας: Btw, since history doesnt show me his history comamnds when he logged in from .au(why not really?), how can i tell what exactly did he do when he logged on to the server? As root has full access to your system (i.e., can change file contents and

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread alex23
On Jun 5, 9:07 pm, Νικόλαος Κούρας wrote: > Btw, since history doesnt show me his history comamnds when he logged in from > .au(why not really?) http://lmgtfy.com/?q=centos+clear+command+line+history You're welcome. -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 2:14:34 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε: > Am 05.06.2013 13:07, schrieb οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½: > > >Btw, since history doesnt show me his history comamnds when he logged in > >from .au(why not really?), how can i tell what exactly did he

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Heiko Wundram
Am 05.06.2013 13:19, schrieb Νικόλαος Κούρας: Is there some logging utility i can use next time iam offering root access to someone(if i do it) or perhaps logging a normal's account activity? Short answer: Not for root, no. Long answer: as I've already said: root can change file contents, or

RE: Python Magazine

2013-06-05 Thread Carlos Nepomuceno
> Date: Wed, 5 Jun 2013 00:37:53 -0700 > Subject: Re: Python Magazine > From: rama29...@gmail.com [...] > > Do you have sponsors? Advertisers? What's the plan? > Thanks Carlos, > Right now we haven't engaged with sponsors or advertisers. Thinking > whether to have a community magazine or go

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Mark Lawrence
On 05/06/2013 10:06, Νικόλαος Κούρας wrote: Fuck you too and sod off. You've got a bloody nerve. You're charging people when you haven't the faintest idea what you're doing, won't pay for technical support, and then have the audacity to complain when people do try to help. As I've said b

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Mark Lawrence
On 05/06/2013 11:32, Νικόλαος Κούρας wrote: Τη Τετάρτη, 5 Ιουνίου 2013 12:49:13 μ.μ. UTC+3, ο χρήστης alex23 έγραψε: On Jun 5, 7:46 pm, Νικόλαος Κούρας wrote: And here us Alex23 private mail that sent out to me: Which I spared the list from because it was off-topic, but I don't think tha

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Mark Lawrence
On 05/06/2013 10:31, Chris Angelico wrote: You most definitely *are* a fool. ChrisA I believe the above is just plain wrong. A fool and his money are easily parted, but this guy won't part with his cash. -- "Steve is going for the pink ball - and for those of you who are watching in bl

Source code to identify user through browser?

2013-06-05 Thread Gilles
Hello I was wondering if some Python module were available to identify a user through their browser, like it's done on the Panopticlick site: http://panopticlick.eff.org/ I'd like to ban abusive users, and it seems like a good solution, since few users will think of installing a different browse

Re: Source code to identify user through browser?

2013-06-05 Thread Joel Goldstick
On Wed, Jun 5, 2013 at 9:08 AM, Gilles wrote: > Hello > > I was wondering if some Python module were available to identify a > user through their browser, like it's done on the Panopticlick site: > > http://panopticlick.eff.org/ > > I'd like to ban abusive users, and it seems like a good solution

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 4:16:46 μ.μ. UTC+3, ο χρήστης Mark Lawrence έγραψε: > On 05/06/2013 10:06, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote: > > > > > Fuck you too and sod off. > > > > > > > You've got a bloody nerve. You're charging people when you haven't the > > faintest id

I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
Traceback (most recent call last): File "Guessing_Game.py", line 32, in input (enter) File "", line 0 ^ SyntaxError: unexpected EOF while parsing -- (program exited with code: 1) This is the only place a string is used: else: print "Sorry you loose the game."

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Serhiy Storchaka
05.06.13 11:09, Chris Angelico написав(ла): Oh, and I changed the root password, since the current one was sent in clear text across the internet. Nikos, the new password has been stored in /home/nikos/new_password - you should be able to access that using your non-root login. I recommend you cha

Re: how to detect the character encoding in a web page ?

2013-06-05 Thread iMath
在 2012年12月24日星期一UTC+8上午8时34分47秒,iMath写道: > how to detect the character encoding in a web page ? > > such as this page > > > > http://python.org/ I found PyQt’s QtextStream can very accurately detect the character encoding in a web page . even for this bad page chardet and beautiful soup

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 5:46:57 μ.μ. UTC+3, ο χρήστης Serhiy Storchaka έγραψε: > 05.06.13 11:09, Chris Angelico написав(ла): > > > Oh, and I changed the root password, since the current one was sent in > > > clear text across the internet. Nikos, the new password has been > > > stored in /ho

RE: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Carlos Nepomuceno
> Date: Wed, 5 Jun 2013 07:40:52 -0700 > Subject: I just wrote my first Python program a guessing game and it exits > with an error I get this. > From: armandomontesdeoca...@gmail.com > To: python-list@python.org > > Traceback (most recent call last): > File "Guessing_Game.py", line 32, in

RE: Source code to identify user through browser?

2013-06-05 Thread Carlos Nepomuceno
> From: nos...@nospam.com > Subject: Source code to identify user through browser? > Date: Wed, 5 Jun 2013 15:08:54 +0200 > To: python-list@python.org > > Hello > > I was wondering if some Python module were available to identify a > user through their browser, like it's done on the Panopticlick

Re: how to detect the character encoding in a web page ?

2013-06-05 Thread iMath
在 2012年12月24日星期一UTC+8上午8时34分47秒,iMath写道: > how to detect the character encoding in a web page ? > > such as this page > > > > http://python.org/ I found PyQt’s QtextStream can very accurately detect the character encoding in a web page . even for this bad page http://www.qnwz.cn/html/yin

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote: > Traceback (most recent call last): > > File "Guessing_Game.py", line 32, in > > input (enter) > > File "", line 0 > > ^ > > SyntaxError: unexpected EOF while parsing > > -- > > (program

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Alister
On Wed, 05 Jun 2013 07:40:52 -0700, Armando Montes De Oca wrote: > Traceback (most recent call last): > File "Guessing_Game.py", line 32, in > input (enter) > File "", line 0 > ^ > SyntaxError: unexpected EOF while parsing -- > (program exited with code: 1) > This is t

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
I just post all my code I have for the guessing game. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to detect the character encoding in a web page ?

2013-06-05 Thread iMath
在 2012年12月24日星期一UTC+8上午8时34分47秒,iMath写道: > how to detect the character encoding in a web page ? > > such as this page > > > > http://python.org/ by the way ,we cannot get character encoding programmatically from the mate data without knowing the character encoding ahead ! -- http://mail

Re: Source code to identify user through browser?

2013-06-05 Thread rusi
On Jun 5, 8:10 pm, Carlos Nepomuceno wrote: > > From: nos...@nospam.com > > Subject: Source code to identify user through browser? > > Date: Wed, 5 Jun 2013 15:08:54 +0200 > > To: python-l...@python.org > > > Hello > > > I was wondering if some Python module were available to identify a > > user t

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Tim Golden
On 05/06/2013 16:14, Armando Montes De Oca wrote: > On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote: >> Traceback (most recent call last): >> >> File "Guessing_Game.py", line 32, in >> >> input (enter) >> >> File "", line 0 >> >> ^ >> >> SyntaxError: unexpecte

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
import random import sys enter = "Please Press Enter To Continue..." print " Hello! Welcome to a Guessing game!" print " Please Guess a number between 1 - 100" computernum = random.randint (1, 100) Guess1 = input ( "My First Guess Is: ") if Guess1 == computernum: print "You Win !"

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Mark Lawrence
On 05/06/2013 16:18, Armando Montes De Oca wrote: I just post all my code I have for the guessing game. Please post with some context so we don't have to go to other parts of the thread to find out what you're talking about, thanks. -- "Steve is going for the pink ball - and for those of yo

Re: Source code to identify user through browser?

2013-06-05 Thread Mark Lawrence
On 05/06/2013 16:18, rusi wrote: On Jun 5, 8:10 pm, Carlos Nepomuceno wrote: From: nos...@nospam.com Subject: Source code to identify user through browser? Date: Wed, 5 Jun 2013 15:08:54 +0200 To: python-l...@python.org Hello I was wondering if some Python module were available to identif

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Zachary Ware
On Wed, Jun 5, 2013 at 10:14 AM, Armando Montes De Oca wrote: > On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote: >> Traceback (most recent call last): >> >> File "Guessing_Game.py", line 32, in >> >> input (enter) >> >> File "", line 0 >> >> ^ >> >> SyntaxErr

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
Thank You now the program exits with: (program exited with code: 0) Press return to continue Is there a way to get the line (program exited with code: 0) to say something like: "The game will end now" Press return to contine -- http://mail.python.org/mailman/listinfo/python-list

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
Thank You I will give it a try I am using Linux Mint 14 Nadia and my Python is with Geany 1.22 and I think it is python 2 -- http://mail.python.org/mailman/listinfo/python-list

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Armando Montes De Oca
try: input = raw_input except NameError: pass This gave me the same output exited with code zero Same with or without. I am happy with the code 0 in it for now but if anyone knows with Geany in Linux Mint 14 Nadia what I can do to get it to say something nice and proper I would ap

Re: Bools and explicitness [was Re: PyWart: The problem with "print"]

2013-06-05 Thread Terry Jan Reedy
On 6/5/2013 2:11 AM, Russ P. wrote: But then, what would you expect of a language that allows you to write x = 1 > x = "Hello" It's all loosey goosey -- which is fine for many applications but certainly not for critical ones. I believe Shedskin, a Python *subset* compiler*, will reject tha

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Zachary Ware
On Wed, Jun 5, 2013 at 10:35 AM, Armando Montes De Oca wrote: > Thank You now the program exits with: > (program exited with code: 0) > Press return to continue > > > Is there a way to get the line (program exited with code: 0) to say something > > like: "The game will end now" > > Press return to

Re: Bools and explicitness [was Re: PyWart: The problem with "print"]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 1:59:01 AM UTC-7, Mark Lawrence wrote: > On 05/06/2013 07:11, Russ P. wrote: > > > > > But then, what would you expect of a language that allows you to write > > > > > > x = 1 > > > x = "Hello" > > > > > > It's all loosey goosey -- which is fine for many applicati

Re: Python Magazine

2013-06-05 Thread DRJ Reddy
> Do you have other magazines? Which ones? How are you going to supply contents? We don't have other magazines. I was referring to old python magazines which terminated now. Portable documents(PDF , EPUB or MOBI) for now is being planned. Regards, DRJ. -- http://mail.python.org/mailman/listinfo

Re: Source code to identify user through browser?

2013-06-05 Thread rusi
On Jun 5, 8:31 pm, Mark Lawrence wrote: > On 05/06/2013 16:18, rusi wrote: > > > > > > > > > > > On Jun 5, 8:10 pm, Carlos Nepomuceno > > wrote: > >>> From: nos...@nospam.com > >>> Subject: Source code to identify user through browser? > >>> Date: Wed, 5 Jun 2013 15:08:54 +0200 > >>> To: python-l

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 9:07 PM, Νικόλαος Κούρας wrote: > I will understand by his attitude in general if he is likely to help me or > not. How much of my attitude did you read before you decided I would trust you? Posts like this: http://mail.python.org/pipermail/python-list/2013-June/648428.ht

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Joel Goldstick
On Wed, Jun 5, 2013 at 12:15 PM, Zachary Ware wrote: > On Wed, Jun 5, 2013 at 10:35 AM, Armando Montes De Oca > wrote: > > Thank You now the program exits with: > > (program exited with code: 0) > > Press return to continue > > > > > > Is there a way to get the line (program exited with code: 0)

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Wed, Jun 5, 2013 at 9:19 PM, Νικόλαος Κούρας wrote: > Τη Τετάρτη, 5 Ιουνίου 2013 2:14:34 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε: >> Am 05.06.2013 13:07, schrieb οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½: >> >> >Btw, since history doesnt show me his history comamnds when he logged in >> >f

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Joel Goldstick
On Wed, Jun 5, 2013 at 12:24 PM, Chris Angelico wrote: > On Wed, Jun 5, 2013 at 9:07 PM, Νικόλαος Κούρας > wrote: > > I will understand by his attitude in general if he is likely to help me > or not. > > How much of my attitude did you read before you decided I would trust > you? Posts like this

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 12:46 AM, Serhiy Storchaka wrote: > 05.06.13 11:09, Chris Angelico написав(ла): >> >> Oh, and I changed the root password, since the current one was sent in >> clear text across the internet. Nikos, the new password has been >> stored in /home/nikos/new_password - you should

Re: How to increment date by week?

2013-06-05 Thread PieGuy
On Tuesday, June 4, 2013 2:31:07 PM UTC-7, PieGuy wrote: > Starting on any day/date, I would like to create a one year list, by week > (start date could be any day of week). Having a numerical week index in > front of date, ie 1-52, would be a bonus. > >ie, 1. 6/4/2013 > >2. 6/

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-05 Thread MRAB
On 05/06/2013 06:40, Michael Torrie wrote: On 06/04/2013 10:15 PM, Νικόλαος Κούρας wrote: One of my Greek filenames is "Ευχή του Ιησού.mp3". Just a Greek filename with spaces. Is there a problem when a filename contain both english and greek letters? Isn't it still a unicode string? All i did i

Re: Bools and explicitness [was Re: PyWart: The problem with "print"]

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 2:15 AM, Russ P. wrote: > On Wednesday, June 5, 2013 1:59:01 AM UTC-7, Mark Lawrence wrote: >> I want to launch this rocket with an expensive satellite on top. I know >> >> it's safe as the code is written in ADA. Whoops :( > > > So Python would have been a better choice?

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 7:37:47 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, Jun 6, 2013 at 12:46 AM, Serhiy Storchaka wrote: > > > 05.06.13 11:09, Chris Angelico написав(ла): > > >> > > >> Oh, and I changed the root password, since the current one was sent in > > >> clear text ac

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 7:33:50 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Wed, Jun 5, 2013 at 9:19 PM, Νικόλαος Κούρας wrote: > > > Τη Τετάρτη, 5 Ιουνίου 2013 2:14:34 μ.μ. UTC+3, ο χρήστης Heiko Wundram > > έγραψε: > > >> Am 05.06.2013 13:07, schrieb οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 7:35:48 μ.μ. UTC+3, ο χρήστης Joel Goldstick έγραψε: >To solve the OPs problems once and for all, I believe we need to know his >>social security number and his mother's maiden name.  (Yes, i know SSN is for >US >but... ) Even if i gibe you that info, what can you pos

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 3:05 AM, Νικόλαος Κούρας wrote: > I grant shell access to very new account i create but some of my customers > dont evn know the existance of linux, and the other that do, have no idea of > what a shell access is. But i grant them the ability just in cae for future > usag

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 3:02 AM, Νικόλαος Κούρας wrote: > Τη Τετάρτη, 5 Ιουνίου 2013 7:33:50 μ.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: >> In fact, I didn't even bother fiddling with syslog. All I did was >> .bash_history. Of course, I wasn't worried about you getting my IP >> addresses (one o

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 8:16:46 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, Jun 6, 2013 at 3:02 AM, Νικόλαος Κούρας wrote: > > > Τη Τετάρτη, 5 Ιουνίου 2013 7:33:50 μ.μ. UTC+3, ο χρήστης Chris Angelico > > έγραψε: > > >> In fact, I didn't even bother fiddling with syslog. All I did

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 8:56:36 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: Somehow, I don't know how because I didn't see it happen, you have one or more files in that directory where the file name as bytes is invalid when decoded as UTF-8, but your system is set to use UTF-8. So to fix th

Announcement: MICCAI workshop on Bio- Imaging and Visualization for Patient-Customized Simulations 2013

2013-06-05 Thread tava...@fe.up.pt
MICCAI workshop on Bio- Imaging and Visualization for Patient-Customized Simulations 2013 September 26, 2013 Nagoya University, Nagoya, Japan http://sites.google.com/site/mwbivpcs Description Imaging and Visualization are among the most dynamic and innovative areas of research of the past few dec

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 3:29 AM, Νικόλαος Κούρας wrote: > Now about what you did to me. I wanted to tell you that I (and I am sure > there are other people too) don't agree with what you did. I think it was > pretty rotten -- you told me it was a bad idea to give out the root password > and that

Re: Python Magazine

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 2:17 AM, DRJ Reddy wrote: > >> Do you have other magazines? Which ones? How are you going to supply >> contents? > > We don't have other magazines. I was referring to old python magazines which > terminated now. Portable documents(PDF , EPUB or MOBI) for now is being > pl

Re: how to detect the character encoding in a web page ?

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 1:14 AM, iMath wrote: > 在 2012年12月24日星期一UTC+8上午8时34分47秒,iMath写道: >> how to detect the character encoding in a web page ? >> >> such as this page >> >> >> >> http://python.org/ > > by the way ,we cannot get character encoding programmatically from the mate > data without k

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 8:47:38 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, Jun 6, 2013 at 3:29 AM, Νικόλαος Κούρας wrote: > > > Now about what you did to me. I wanted to tell you that I (and I am sure > > there are other people too) don't agree with what you did. I think it was >

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 4:08 AM, Νικόλαος Κούρας wrote: > Anyway, i should'n have given root access to you, i was a bit worried doing > so, but i was also under stress of also correcting this damn encoding issue > and i wanted to think you would be the one that finally help solving it. > > You sh

Re: Apache and suexec issue that wont let me run my python script

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 9:16:56 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: >Do you contact strangers to ask them to feed your cat? Or do you talk to a >>trusted friend? Well i dont consider you a perfect stranger, because we kind of know each other since we speak here sometime. You know h

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-05 Thread MRAB
On 05/06/2013 18:43, Νικόλαος Κούρας wrote: Τη Τετάρτη, 5 Ιουνίου 2013 8:56:36 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: Somehow, I don't know how because I didn't see it happen, you have one or more files in that directory where the file name as bytes is invalid when decoded as UTF-8, but y

  1   2   >