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

2013-06-05 Thread Νικόλαος Κούρας
Yes this is a linxu issue although locale is se to utf-8 root@nikos [~]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRES

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Νικόλαος Κούρας
root@nikos [~]# chmod 755 /var/log root@nikos [~]# chmod 755 /var/log/httpd root@nikos [~]# chmod 666 /var/log/httpd/suexec.log root@nikos [~]# chmod 755 /usr/local/apache root@nikos [~]# chmod 755 /usr/local/apache/logs/ root@nikos [~]# chmod 666 /usr/local/apache/logs/error_log and then execut

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

2013-06-05 Thread Nobody
On Thu, 06 Jun 2013 03:55:11 +1000, Chris Angelico wrote: > The HTTP header is completely out of band. This is the best way to > transmit encoding information. Otherwise, you assume 7-bit ASCII and start > parsing. Once you find a meta tag, you stop parsing and go back to the > top, decoding in th

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

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 3:54 PM, jmfauth wrote: > ("filesystems are just bytes", > yeah, whatever...). Sure. You tell me what a proper Unicode rendition of an animated GIF is. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Ian Kelly
On Wed, Jun 5, 2013 at 10:25 PM, Russ P. wrote: > I recall reading a few years ago that Guido was thinking about adding > optional type annotations. I don't know if that went anywhere or not, but I > thought it was a good idea. Eventually I got tired of waiting, and I realized > that I just wan

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

2013-06-05 Thread jmfauth
On 5 juin, 19: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-

Re: Python Magazine

2013-06-05 Thread DRJ Reddy
> The real problem is the ongoing supply of content. If you can publish > > on a regular schedule (weekly?) with interesting content, you'll have > > a highly successful magazine... but if you have to provide all that > > content yourself, you'll burn out. Try to line up a couple of backup > >

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

2013-06-05 Thread Νικόλαος Κούρας
Can someone else explain to me what MRAB is trying to say to me? Is there a way even if we dont know the encoding used from filanems to become bytestreams still to be able to open the greek filenames? -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 7:29:44 PM UTC-7, Chris Angelico wrote: > On Thu, Jun 6, 2013 at 11:56 AM, Steven D'Aprano > > wrote: > > > On Wed, 05 Jun 2013 14:59:31 -0700, Russ P. wrote: > > >> As for Python, my experience with it is that, as > > >> your application grows, you start getting con

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

2013-06-05 Thread Νικόλαος Κούρας
Τη Πέμπτη, 6 Ιουνίου 2013 6:57:08 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Wed, 05 Jun 2013 03:32:42 -0700, Νικόλαος Κούρας wrote: > > > > [...] > > > You spare it from the list because you wanted to bitch in private. Now > > > sod off. > > > > Νικόλαος, please stop trading insult

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

2013-06-05 Thread Steven D'Aprano
On Wed, 05 Jun 2013 03:32:42 -0700, Νικόλαος Κούρας wrote: [...] > You spare it from the list because you wanted to bitch in private. Now > sod off. Νικόλαος, please stop trading insults with people who you feel have wronged you. If somebody gives you deliberately bad advice, that is one thing.

Re: Beginner question

2013-06-05 Thread eschneider92
Thanks everyone! -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 9:43:18 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > Τη Τετάρτη, 5 Ιουνίου 2013 9:32:15 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: > > > On 05/06/2013 18:43, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote: > > > > > > > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 5 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Νικόλαος Κούρας
Τη Πέμπτη, 6 Ιουνίου 2013 1:21:08 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, Jun 6, 2013 at 7:18 AM, wrote: > > > On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote: > > >> On Thu, Jun 6, 2013 at 6:56 AM, wrote: > > >> > On Wednesday, June 5, 2013 1:54:45 PM UTC-6,

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Νικόλαος Κούρας
Τη Πέμπτη, 6 Ιουνίου 2013 12:18:39 π.μ. UTC+3, ο χρήστης ru...@yahoo.com έγραψε: > On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote: > > > On Thu, Jun 6, 2013 at 6:56 AM, wrote: > > > > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote: > > > >>... > > > >> p

Re: Do you consider Python a 4GL? Why (not)?

2013-06-05 Thread Ian Kelly
On Tue, Jun 4, 2013 at 6:38 PM, Carlos Nepomuceno wrote: > I don't have an opinion yet, but I've found contradictory evidence from many > sources, such as: > > "A domain-specific language (DSL) is a type of programming language or > specification language in software development and domain enginee

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

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 11:56 AM, Steven D'Aprano wrote: > On Wed, 05 Jun 2013 14:59:31 -0700, Russ P. wrote: >> As for Python, my experience with it is that, as >> your application grows, you start getting confused about what the >> argument types are or are supposed to be. > > Whereas people neve

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

2013-06-05 Thread Steven D'Aprano
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 Your problem is that you should not be using input(), but ra

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

2013-06-05 Thread Tim Chase
On 2013-06-05 17:57, ru...@yahoo.com wrote: > On 06/05/2013 05:19 PM, Dennis Lee Bieber wrote: > stories over the years where people where convicted (or > at least charged with) violating the DMCA (or perhaps > equally draconian followup U.S. laws) even though they > clearly penetrated the system

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

2013-06-05 Thread Steven D'Aprano
On Wed, 05 Jun 2013 14:59:31 -0700, Russ P. wrote: > I'm not an Ada guy, but Ada advocates claim that it reduces development > time by half in the long run compared to C and C++ due to reduced > debugging time and simpler maintenance. They may be right. Far too many people think that C and C++

THRINAXODON BEATS A HOMOSEXUAL, TO THE GROUND!!

2013-06-05 Thread Thrinaxodon
AS THRINAXODON VENTURED ACROSS THE WORLD, HE MET PROMINENT GAYS, "David Iain Greig" AND "Peter Nyikos", AS THRINAXODON CAUGHT THE TWO "GIVING LOVE," THRINAXODON BEATS THEM WITH HIS WOODEN STICK(S). AS HE CAUGHT ASSHAT, RUNNING WILD, TRYING TO GET OUT OF THEIR; THRINAXODON JUMPED AND PUNCHED, DROP-K

Re: python netcdf

2013-06-05 Thread Sudheer Joseph
Thank you very much Jason With best regards Sudheer On Thursday, June 6, 2013, Jason Swails wrote: > > > > On Wed, Jun 5, 2013 at 9:07 PM, Sudheer Joseph > > > wrote: > >> Dear Members, >> Is there a way to get the time:origin attribute from a >> netcdf file as string using th

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

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 11:37 AM, Steven D'Aprano wrote: > What prevents bugs is the skill of the people writing the code, not the > compiler. +1 QOTW. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Cameron Simpson
On 05Jun2013 14:18, ru...@yahoo.com wrote: | On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote: | > On Thu, Jun 6, 2013 at 6:56 AM, wrote: | > > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote: | > >>... | > >> print( cookie, "Content-type: text/html; charset=u

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

2013-06-05 Thread Steven D'Aprano
On Wed, 05 Jun 2013 09:15:01 -0700, Russ P. wrote: > 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 loo

Python 3 and ‘python-daemon’ (was: [RELEASED] Python 2.7.5)

2013-06-05 Thread Ben Finney
Joshua Landau writes: > Don't take this list too seriously - some of those do have fully > working and stable Python 3 packages that just aren't in pip, like > python-daemon. That's news to me, as the package maintainer. There's no official ‘python-daemon’ release for Python 3. What ‘python-daem

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 8:36 AM, wrote: >> And it's really easy to try things out interactively to see what >> they'll do... > > Sure, once one makes the connection between "Server Error" and missing "\n" > which is where Νικόλαος was stuck I'm guessing. I know that's a bit of a jump. That's why,

Re: python netcdf

2013-06-05 Thread Jason Swails
On Wed, Jun 5, 2013 at 9:07 PM, Sudheer Joseph wrote: > Dear Members, > Is there a way to get the time:origin attribute from a > netcdf file as string using the Python netcdf? > Attributes of the NetCDF file and attributes of each of the variables can be accessed via the dot-op

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

2013-06-05 Thread Michael Torrie
On 06/05/2013 05:52 PM, Russ P. wrote: > My comment shows you nothing about what I understand about names, > objects, and variables. Yes that probably is true. > You have chosen to question my understanding apparently because my > point bothered you but you don't have a good reply. Then you link

python netcdf

2013-06-05 Thread Sudheer Joseph
Dear Members, Is there a way to get the time:origin attribute from a netcdf file as string using the Python netcdf? with best regards, Sudheer -- 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 rurpy
On 06/05/2013 05:19 PM, Dennis Lee Bieber wrote: > On Wed, 5 Jun 2013 10:29:44 -0700 (PDT), Íéêüëáïò Êïýñáò > declaimed the following in > gmane.comp.python.general: >> >> In the US there is a law called the DMCA which I think would make what >> you did illegal, even though i have you a password,

Dijkstra (was Re: Source code to identify user through browser?)

2013-06-05 Thread Terry Jan Reedy
On 6/5/2013 6:07 PM, Carlos Nepomuceno wrote: Didn't know he was such a humorist! lol Although I prefer when he's serious: http://www.cs.utexas.edu/~EWD/transcriptions/EWD10xx/EWD1094.html pythonic summary: Let S be an finite iterable of numbers (make it not an iterable if one interprets th

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

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 4:18:13 PM UTC-7, Michael Torrie wrote: > On 06/05/2013 12: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 a

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 23:51, Armando Montes De Oca wrote: Well I am sure this will end up a simple solution which is not solved by the geniuses with no sense of humor. Programmers are known for being odd nerds and I just got two of them. Goldstick Jesus what a couple of lazy minded nonsense. Your an a

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

2013-06-05 Thread Michael Torrie
On 06/05/2013 12: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. This comment shows me that you don't understand the

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
Well I am sure this will end up a simple solution which is not solved by the geniuses with no sense of humor. Programmers are known for being odd nerds and I just got two of them. Goldstick Jesus what a couple of lazy minded nonsense. Your an ass hole. -- http://mail.python.org/mailman/listinf

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread rurpy
On 06/05/2013 04:21 PM, Chris Angelico wrote: > On Thu, Jun 6, 2013 at 7:18 AM, wrote: >> On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote: ..[...] >> Ah, quite right. Something like >> >> print( cookie, "\nContent-type: text/html; charset=utf-8\n\n", message ) >> >> then. >

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 7:18 AM, wrote: > On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote: >> On Thu, Jun 6, 2013 at 6:56 AM, wrote: >> > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote: >> >>... >> >> print( cookie, "Content-type: text/html; charset=utf-8\n"

RE: Source code to identify user through browser?

2013-06-05 Thread Carlos Nepomuceno
> Date: Wed, 5 Jun 2013 08:18:56 -0700 > Subject: Re: Source code to identify user through browser? > From: rustompm...@gmail.com [...] > > What do you mean by user? > > Ha! Nice question. Not in direct answer but here's E.W Dijkstra > defining 'user': > > [from http://www.cs.utexas.edu/~EWD/tra

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

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 9:59:07 AM UTC-7, Chris Angelico wrote: > 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

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread rurpy
On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote: > On Thu, Jun 6, 2013 at 6:56 AM, wrote: > > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote: > >>... > >> print( cookie, "Content-type: text/html; charset=utf-8\n", message ) > >>... > > print( cookie, "Cont

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
Not to make excuses as to my forum etiquette I apologize. I am half Cuban and simple. I meant no disrespect I like Mr. Goldstick's name. Maybe I can find the answer somewhere else true. However a simple code to close the program like in Visual Basic "Me.close" seems like something that should c

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 6:56 AM, wrote: > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote: >>... >> print( cookie, "Content-type: text/html; charset=utf-8\n", message ) >>... > > If you look in the Apache error log file, you will see something like, > > [Wed Jun 05 16:39:14 20

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread rurpy
On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote: >... > print( cookie, "Content-type: text/html; charset=utf-8\n", message ) >... If you look in the Apache error log file, you will see something like, [Wed Jun 05 16:39:14 2013] [error] [client 192.168.0.1] malformed header fr

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 4:18 PM, Thomas Murphy wrote: > Goldstick which seems Jewish to me. I would think as a Gentile Heathen > Jesus save us this would project a need for a good sex life > > *WAT* > * > * > I second the WAT. You are a strange person. I think you were being offensive. I can'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 Chris Angelico
On Thu, Jun 6, 2013 at 5:59 AM, Armando Montes De Oca wrote: > Well I am replying to To whom it may concern at this point I am a bit lost. I > posted all my code. I am not taking classes on this nor do I have a book I > followed a guy on You Tube. I am a student but I heard Python is a good > l

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

2013-06-05 Thread Thomas Murphy
Goldstick which seems Jewish to me. I would think as a Gentile Heathen Jesus save us this would project a need for a good sex life *WAT* * * * * Armando, are you understanding that input and raw_input make Python do very different things, and this is dependent of the version of Python you're using

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread John Gordon
In <400ea041-adcf-4640-8872-f81808f7d...@googlegroups.com> =?ISO-8859-7?B?zenq/Ovh7/Igyu/98eHy?= writes: > 'python files.py' interprets without an error. > Problem is that when via browser - http://superhost.gr/cgi-bin/koukos.py > i receive the following: Why should 'files.py' have any relation

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 5:54 AM, Νικόλαος Κούρας wrote: > print( cookie, "Content-type: text/html; charset=utf-8\n", message ) > Do you know what this does? Try it at the console. See what it outputs. ChrisA -- 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
Well I am replying to To whom it may concern at this point I am a bit lost. I posted all my code. I am not taking classes on this nor do I have a book I followed a guy on You Tube. I am a student but I heard Python is a good language to learn in conjunction with C++ and Perl for example. I have

Errin when executing a cgi script that sets a cookie in the browser

2013-06-05 Thread Νικόλαος Κούρας
Since the other thread gone into the wild, i choosed not to participate any longer and i state the question in this new thread. 'python files.py' interprets without an error. Problem is that when via browser - http://superhost.gr/cgi-bin/koukos.py i receive the following: ---

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

2013-06-05 Thread Joel Goldstick
Now, you were right about my bad mouth because iam going to tell you to sod off. >Well, if he had ethics he would have told me that his intentiosn were to screw my business and also he could actually tried to help me out. Many times I've seen people here give you their best advice and you co

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

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 10:13:41 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, Jun 6, 2013 at 4:58 AM, Νικόλαος Κούρας wrote: > > > Well, if he had ethics he would have told me that his intentiosn were to > > screw my business and also he could actually tried to help me out. > > >

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:58 AM, Νικόλαος Κούρας wrote: > Well, if he had ethics he would have told me that his intentiosn were to > screw my business and also he could actually tried to help me out. I did. :) > I'am not incompetentm i;m a beginner and i learn along the way, also i ahve a > hos

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

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 9:55:46 μ.μ. UTC+3, ο χρήστης rusi έγραψε: > On Jun 5, 11:34 pm, Νικόλαος Κούρας wrote: > > > Here is the mails you sent to my customers for the other members to see. > > > > > > In the normal run of things, I would say Chris has done a horrible > > thing. > > In

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:55 AM, rusi wrote: > If you obdurately, obstinately, insistently, incessantly behave like > an asshole, you leave no-one the choice but to treat you like an > asshole. This is Python. We duck-type people. ChrisA -- 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 9:52:27 μ.μ. UTC+3, ο χρήστης Zero Piraeus έγραψε: > : > > > > On 5 June 2013 14:34, Νικόλαος Κούρας wrote: > > > Here is the mails you sent to my customers for the other members to see. > > > --- > > > [...] > > > I advise that you

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

2013-06-05 Thread rusi
On Jun 5, 11:34 pm, Νικόλαος Κούρας wrote: > Here is the mails you sent to my customers for the other members to see. In the normal run of things, I would say Chris has done a horrible thing. In this case however, let us remember: Many people -- hardly exclusively Chris -- tried to educate you

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

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 9:46:03 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Thu, Jun 6, 2013 at 4:34 AM, Νικόλαος Κούρας wrote: > > > Here is the mails you sent to my customers for the other members to see. > > > > Yep, containing nothing I haven't said on-list. > > > > > Thanks fo

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

2013-06-05 Thread Zero Piraeus
: On 5 June 2013 14:34, Νικόλαος Κούρας wrote: > Here is the mails you sent to my customers for the other members to see. > --- > [...] > I advise that you look to alternative web hosting. > --- > > Thanks for screwing me up entirely

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:34 AM, Νικόλαος Κούρας wrote: > Here is the mails you sent to my customers for the other members to see. Yep, containing nothing I haven't said on-list. > Thanks for screwing me up entirely and made me look what you made me look for > all i did was to trust you. Making

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

2013-06-05 Thread Νικόλαος Κούρας
Τη Τετάρτη, 5 Ιουνίου 2013 9:32:15 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: > On 05/06/2013 18:43, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote: > > > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 5 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 2013 8:56:36 οΏ½.οΏ½. > > UTC+3, οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ Steven D'Aprano οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½

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:22 AM, Νικόλαος Κούρας wrote: > Τη Τετάρτη, 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

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

2013-06-05 Thread Νικόλαος Κούρας
Here is the mails you sent to my customers for the other members to see. --- Greetings. I apologize for this unsolicited email, but I feel that you have a right to know about the security of your server. Νικόλαος Κούρας (Nikos) has been in repeated communication wi

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

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: 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 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: 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: 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: 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

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: 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

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: 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 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 Νικόλαος Κούρας
Τη Τετάρτη, 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 Νικόλαος Κούρας
Τη Τετάρτη, 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: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: 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: 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: 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: 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: 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 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: 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: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: 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: 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: 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: 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 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 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: 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
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 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: 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 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: 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 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

  1   2   >