[error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
I think that something iam missing in the new VPS implementation concerning my python web page. After: tail -F /usr/local/apache/logs/error_log [Tue Aug 27 12:49:52 2013] [error] [client 178.59.111.223] (2)No such file or directory: exec of

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 3:52 μμ, ο/η Ferrous Cranus έγραψε: I think that something iam missing in the new VPS implementation concerning my python web page. After: tail -F /usr/local/apache/logs/error_log [Tue Aug 27 12:49:52 2013] [error] [client 178.59.111.223] (2)No such file

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 4:05 μμ, ο/η Ferrous Cranus έγραψε: Στις 27/8/2013 3:52 μμ, ο/η Ferrous Cranus έγραψε: I think that something iam missing in the new VPS implementation concerning my python web page. After: tail -F /usr/local/apache/logs/error_log [Tue Aug 27 12:49:52 2013

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 4:59 μμ, ο/η ishish έγραψε: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] ValueError: underlying buffer has been detached [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189]

Re: New VPS Provider needed

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 5:25 μμ, ο/η Grant Edwards έγραψε: On 2013-08-27, ni...@superhost.gr wrote: Iam having major issues with my VPS provider and losign customers becaue the provider doesnt set thign u[ cprrectly. Perhaps he's also having problems with a faulty keyboard.

Re: New VPS Provider needed

2013-08-27 Thread Ferrous Cranus
Στις 27/8/2013 7:25 μμ, ο/η Steven D'Aprano έγραψε: On Tue, 27 Aug 2013 21:18:10 +1000, David wrote: On 27 August 2013 17:13, Νικόλαος ni...@superhost.gr wrote: I know this isn't the place to ask Νικόλαος is 100% correct about this. So, this list is also not the correct place to answer.

Re: New VPS Provider needed

2013-08-28 Thread Ferrous Cranus
Hello Steven, Iam not trying to beg for your sympathy, i'am just expressing my frustration for my web hosting issues and i do that because i wanted to ask you for an alternative web service(python 3 enabled). Its totally human for one to express his own feeling to a python related and web

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τρίτη, 27 Αυγούστου 2013 8:07:52 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: On Tue, 27 Aug 2013 18:04:23 +0300, Ferrous Cranus wrote: So, in this line: cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) the variable 'page' needs conversion to what

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
In my attemtpt to be shwon only mesages pertaining to superhost.gr i try: alias err='tail -F /usr/local/apache/logs/error_log | grep nikos ' but now it only displays to me the lines that have '/home/nikos' within them and not all the relevant error lines. --

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τρίτη, 27 Αυγούστου 2013 6:22:32 μ.μ. UTC+3, ο χρήστης ishish έγραψε: Am 27.08.2013 16:04, schrieb Ferrous Cranus: Στις 27/8/2013 4:59 μμ, ο/η ishish έγραψε: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 1:11:05 μ.μ. UTC+3, ο χρήστης ishish έγραψε: http://wiki.python.org/moin/HandlingExceptions is this how you mean? try: #find the needed counter for the page URL if os.path.exists( path + page ) or

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 1:43:08 μ.μ. UTC+3, ο χρήστης Ferrous Cranus έγραψε: Τη Τετάρτη, 28 Αυγούστου 2013 1:11:05 μ.μ. UTC+3, ο χρήστης ishish έγραψε: http://wiki.python.org/moin/HandlingExceptions is this how you mean? try

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Okey, continue trying and trying i came up with this: try: if os.path.exists( path + page ) or os.path.exists( cgi_path + page ): cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) data = cur.fetchone() except: with open(err.out, a) as f:

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 2:32:44 μ.μ. UTC+3, ο χρήστης Dave Angel έγραψε: On 28/8/2013 07:14, Ferrous Cranus wrote: But i cannot test it without looking at the error log which is scrolling like hell and doesn't even quit with a ctrl+c I take it this 'error log

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 2:32:44 μ.μ. UTC+3, ο χρήστης Dave Angel έγραψε: On 28/8/2013 07:14, Ferrous Cranus wrote: But i cannot test it without looking at the error log which is scrolling like hell and doesn't even quit with a ctrl+c I take it this 'error log

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 2:32:44 μ.μ. UTC+3, ο χρήστης Dave Angel έγραψε: On 28/8/2013 07:14, Ferrous Cranus wrote: But i cannot test it without looking at the error log which is scrolling like hell and doesn't even quit with a ctrl+c I take it this 'error log

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 2:51:03 μ.μ. UTC+3, ο χρήστης ishish έγραψε: Am 28.08.2013 12:14, schrieb Ferrous Cranus: Okey, continue trying and trying i came up with this: try: if os.path.exists( path + page ) or os.path.exists( cgi_path + page ): cur.execute

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 3:11:07 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: On Wed, 28 Aug 2013 01:46:01 -0700, Ferrous Cranus wrote: Τη Τρίτη, 27 Αυγούστου 2013 8:07:52 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: Hint: you can use print(type(page), file=open

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 3:21:25 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: On Wed, 28 Aug 2013 03:43:08 -0700, Ferrous Cranus wrote: but i cannot see the error_log because of constant scrolling of error output. Then don't use tail -F, use less. Or try tail -s

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 3:38:11 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: On Wed, 28 Aug 2013 05:17:34 -0700, Ferrous Cranus wrote: As i have pointed out i as the owner of the accoutn have read and write perimssion bot at www/ and www/cgi-bin i also chnage the filename

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
This si what iam tryign now since the function ishish proposed wont help me. try: #find the needed counter for the page URL if os.path.exists( path + page ) or os.path.exists( cgi_path + page ): cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) data =

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Τετάρτη, 28 Αυγούστου 2013 4:38:02 μ.μ. UTC+3, ο χρήστης Ulrich Eckhardt έγραψε: Am 28.08.2013 13:55, schrieb Ferrous Cranus: Τη Τετάρτη, 28 Αυγούστου 2013 2:32:44 μ.μ. UTC+3, ο χρήστης Dave Angel έγραψε: You really have no directory in which you have write permissions? If so

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Πέμπτη, 29 Αυγούστου 2013 1:56:55 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: On Wed, 28 Aug 2013 06:11:13 -0700, Ferrous Cranus wrote: This si what iam tryign now since the function ishish proposed wont help me. I see that your apology for careless writing didn't last

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread Ferrous Cranus
Τη Πέμπτη, 29 Αυγούστου 2013 3:59:49 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: To be explicit: chgrp nobody the-file chmod g+w the-file Hello Cameron, ni...@superhost.gr [~/www]# touch err.out ni...@superhost.gr [~/www]# ls -l err.out -rw-rw-r-- 1 nikos nikos 0 Aug

Re: Question about XMLRPC

2013-08-29 Thread Ferrous Cranus
Στις 29/8/2013 2:54 μμ, ο/η Gregory Ewing έγραψε: i.she...@gmail.com wrote: I should write a python script(s) that listens to an existing XMLRPC service on my company's dev server. then i should parse that and return to the existing XML-RPC, or write the parsed data to the Posgresql

Re: Question about XMLRPC

2013-08-29 Thread Ferrous Cranus
Στις 29/8/2013 3:35 μμ, ο/η Ferrous Cranus έγραψε: Στις 29/8/2013 2:54 μμ, ο/η Gregory Ewing έγραψε: i.she...@gmail.com wrote: I should write a python script(s) that listens to an existing XMLRPC service on my company's dev server. then i should parse that and return to the existing XML

Re: Question about XMLRPC

2013-08-30 Thread Ferrous Cranus
Στις 29/8/2013 6:30 μμ, ο/η Ferrous Cranus έγραψε: Στις 29/8/2013 3:35 μμ, ο/η Ferrous Cranus έγραψε: Στις 29/8/2013 2:54 μμ, ο/η Gregory Ewing έγραψε: i.she...@gmail.com wrote: I should write a python script(s) that listens to an existing XMLRPC service on my company's dev server. then i

UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Suddenly my webiste superhost.gr running my main python script presents me with this error: Code: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3\xf4\xef \xfc\xed\xef\xec\xe1 \xf3\xf5\xf3\xf4\xde\xec\xe1\xf4\xef\xf2', 0, 1, 'invalid start byte') Does anyone know what this means? --

Re: UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Στις 31/8/2013 9:53 πμ, ο/η Chris Angelico έγραψε: On Sat, Aug 31, 2013 at 4:41 PM, Ferrous Cranus ni...@superhost.gr wrote: Suddenly my webiste superhost.gr running my main python script presents me with this error: Code: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3\xf4\xef \xfc\xed\xef

Re: UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Στις 31/8/2013 10:02 πμ, ο/η Ferrous Cranus έγραψε: Στις 31/8/2013 9:53 πμ, ο/η Chris Angelico έγραψε: On Sat, Aug 31, 2013 at 4:41 PM, Ferrous Cranus ni...@superhost.gr wrote: Suddenly my webiste superhost.gr running my main python script presents me with this error: Code: UnicodeDecodeError

Re: UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Στις 31/8/2013 10:25 πμ, ο/η Peter Otten έγραψε: Ferrous Cranus wrote: Suddenly my webiste superhost.gr running my main python script presents me with this error: Code: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3\xf4\xef \xfc\xed\xef\xec\xe1 \xf3\xf5\xf3\xf4\xde\xec\xe1\xf4\xef\xf2

Re: UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Here is the code inside files.py: try: gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat') city = gi.time_zone_by_addr( os.environ['REMOTE_ADDR'] ) or gi.time_zone_by_addr( os.environ['HTTP_CF_CONNECTING_IP'] ) host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] ) or

Re: UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Στις 31/8/2013 2:28 μμ, ο/η Steven D'Aprano έγραψε: On Sat, 31 Aug 2013 11:31:13 +0300, Ferrous Cranus wrote: Here is the code inside files.py: The code you show is not the ENTIRE code inside of files.py, is it? You are only showing us a small piece, correct? The code you show: try

Re: UnicodeDecodeError issue

2013-08-31 Thread Ferrous Cranus
Στις 31/8/2013 3:58 μμ, ο/η Ferrous Cranus έγραψε: Στις 31/8/2013 2:28 μμ, ο/η Steven D'Aprano έγραψε: On Sat, 31 Aug 2013 11:31:13 +0300, Ferrous Cranus wrote: Here is the code inside files.py: The code you show is not the ENTIRE code inside of files.py, is it? You are only showing us

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Τη Σάββατο, 31 Αυγούστου 2013 9:41:27 π.μ. UTC+3, ο χρήστης Ferrous Cranus έγραψε: Suddenly my webiste superhost.gr running my main python script presents me with this error: Code: UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3\xf4\xef \xfc\xed\xef\xec\xe1 \xf3\xf5\xf3\xf4

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 1/9/2013 10:12 πμ, ο/η Chris Angelico έγραψε: On Sun, Sep 1, 2013 at 4:50 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: Ye i'm aware that i need to define variables before i try to make use of them. I have study all of your examples and then re-view my code and i can *assure* you

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 1/9/2013 1:35 μμ, ο/η Dave Angel έγραψε: This is my first crack at it (untested): errout = open(/tmp/err.out, w) #opens and truncates the error output file try: gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat') city = gi.time_zone_by_addr( os.environ['REMOTE_ADDR'] ) or

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 1/9/2013 11:35 πμ, ο/η Steven D'Aprano έγραψε: On Sat, 31 Aug 2013 23:50:23 -0700, Ferrous Cranus wrote: Τη Σάββατο, 31 Αυγούστου 2013 9:41:27 π.μ. UTC+3, ο χρήστης Ferrous Cranus έγραψε: Suddenly my webiste superhost.gr running my main python script presents me with this error: Code

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 1/9/2013 5:08 μμ, ο/η Ferrous Cranus έγραψε: Στις 1/9/2013 11:35 πμ, ο/η Steven D'Aprano έγραψε: On Sat, 31 Aug 2013 23:50:23 -0700, Ferrous Cranus wrote: Τη Σάββατο, 31 Αυγούστου 2013 9:41:27 π.μ. UTC+3, ο χρήστης Ferrous Cranus έγραψε: Suddenly my webiste superhost.gr running my main

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 1/9/2013 6:36 μμ, ο/η Dave Angel έγραψε: On 1/9/2013 10:08, Ferrous Cranus wrote: snip Here is it: errout = open( '/tmp/err.out', 'w' )# opens and truncates the error output file try: gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat') city

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 1/9/2013 7:10 μμ, ο/η Ferrous Cranus έγραψε: Στις 1/9/2013 6:36 μμ, ο/η Dave Angel έγραψε: On 1/9/2013 10:08, Ferrous Cranus wrote: snip Here is it: errout = open( '/tmp/err.out', 'w' )# opens and truncates the error output file try: gi = pygeoip.GeoIP('/usr/local/share

Re: UnicodeDecodeError issue

2013-09-01 Thread Ferrous Cranus
Στις 2/9/2013 2:14 πμ, ο/η Dave Angel έγραψε: On 1/9/2013 18:23, Ferrous Cranus wrote: snip i still wonder how come the invalid byte messge dissapeared Too bad you never bothered to narrow it down to its source. if only i knew how up until yesterday when they were appearing

Re: UnicodeDecodeError issue

2013-09-02 Thread Ferrous Cranus
Στις 2/9/2013 2:38 μμ, ο/η Dave Angel έγραψε: On 2/9/2013 00:16, Ferrous Cranus wrote: Have you tried to decode those bytes in various encodings other than utf-8 ? No, because i wasn't aware of what string/variable they were pertaining at. http://pypi.python.org/pypi/chardet

Re: UnicodeDecodeError issue

2013-09-02 Thread Ferrous Cranus
Στις 2/9/2013 3:21 μμ, ο/η Dave Angel έγραψε: Starting with the byte string in the error message: f = open(junk.txt, w) f.write(b'\xb6\xe3\xed\xf9\xf3\xf4\xef\xfc\xed\xef\xec\xe1 \xf3\xf5\xf3\xf4\xde\xec\xe1\xf4\xef\xf2\n') f.close() Ιndeed but yet again, file checks out the encoding of the

Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Ferrous Cranus
Hello, i have written the following snipper of code to help me send mail: = # if html form is submitted then send user mail

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Ferrous Cranus
Στις 3/9/2013 12:33 μμ, ο/η feedthetr...@gmx.de έγραψε: Am Dienstag, 3. September 2013 09:48:13 UTC+2 schrieb Ferrous Cranus: Hello, i have written the following snipper of code to help me send mail: ... server.login(nikos.gr...@gmail.com, ..) HE DID IT AGAIN! The login works

Re: UnicodeDecodeError issue

2013-09-04 Thread Ferrous Cranus
Τη Δευτέρα, 2 Σεπτεμβρίου 2013 9:28:36 μ.μ. UTC+3, ο χρήστης Dave Angel έγραψε: On 2/9/2013 11:05, Ferrous Cranus wrote: Στις 2/9/2013 3:21 μμ, ο/η Dave Angel έγραψε: Starting with the byte string in the error message: f = open(junk.txt, w) f.write(b'\xb6\xe3\xed\xf9\xf3\xf4

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van Oostrum έγραψε: Where does it display that? Do you happen to read that mail in a Microsoft program? yes. Thunderbird. If yes, then it is the fault of that program. Read the mail in some other program and you will

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 2:15 μμ, ο/η Dave Angel έγραψε: Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van Oostrum έγραψε: Where does it display that? Do you happen to read that mail in a Microsoft program? yes. Thunderbird. When did Microsoft take over Thunderbird's development

Re: UnicodeDecodeError issue

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 2:26 μμ, ο/η Dave Angel έγραψε: On 4/9/2013 04:35, Ferrous Cranus wrote: Τη Δευτέρα, 2 Σεπτεμβρίου 2013 9:28:36 μ.μ. UTC+3, ο χρήστης Dave Angel έγραψε: On 2/9/2013 11:05, Ferrous Cranus wrote: Στις 2/9/2013 3:21 μμ, ο/η Dave Angel έγραψε: Starting with the byte string

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 3:18 μμ, ο/η Heiko Wundram έγραψε: Am 03.09.2013 09:48, schrieb Ferrous Cranus: Si there a workaround for that please? Yes, use/setup your own mailserver. Google will not allow you to send as (i.e., From:) an arbitrary address besides the one you've authenticated as. Hello

Re: UnicodeDecodeError issue

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 3:38 μμ, ο/η Dave Angel έγραψε: 'file' isn't magic. And again, it doesn't look at the filename, it looks at the content. So, you are saying that it looks a the content of the file and not of what encoding we used to save the file into? But the contents have within:

How to exit a cgi file after a download

2013-09-04 Thread Ferrous Cranus
Python help. I use the following code in a cgi file to give the client a download link to download a file. --- print %s % ('a href = Setup.zip Down Load /a') A click on Down Load opens a pop up browser window which allows the user to choose where to download the Setup.zip file, then

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 4/9/2013 7:16 μμ, ο/η Piet van Oostrum έγραψε: Ferrous Cranus nikos.gr...@gmail.com writes: I this hoq you mean? [...] SUBJECT = uMail από τον επισκέπτη: ( %s ) % FROM MESSAGE = \nFrom: %s

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Even though these examples are with ints, not strings, the precedence is the same. Go back to your code. Read your code. Does it look closer to this: 8 + 2 % 5 or this? (8 + 2) % 5 Can you solve this problem now? Yes Steven, according to your precedence example now i can: MESSAGE = (

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 12:34 μμ, ο/η Ferrous Cranus έγραψε: Even though these examples are with ints, not strings, the precedence is the same. Go back to your code. Read your code. Does it look closer to this: 8 + 2 % 5 or this? (8 + 2) % 5 Can you solve this problem now? Yes Steven, according

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 1:33 μμ, ο/η Dave Angel έγραψε: On 5/9/2013 05:36, Ferrous Cranus wrote: ni...@superhost.gr [~]# cat /tmp/err.out sendmail = 13-09-05 12:20:53 (class 'TypeError', TypeError(sendmail() missing 2 required positional arguments: 'to_addrs' and 'msg',), traceback object

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 2:02 μμ, ο/η feedthetr...@gmx.de έγραψε: Am 03.09.2013 09:48, schrieb Ferrous Cranus: Is there a workaround for that please? Yes, use/setup your own mailserver. Google will not allow you to send as (i.e., From:) an arbitrary address besides the one you've authenticated

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 3:18 μμ, ο/η feedthetr...@gmx.de έγραψε: Beeing serious: Which mailserver did you install? postfix, exim, sendmail, ...? Check that and read its dokumentation how to configure authentication. Then you can use it. And if you get stuck: A python list is NOT THE RIGHT PLACE to ask

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 4:29 μμ, ο/η feedthetr...@gmx.de έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python script. OK, I should have been more exact: To send mails you need a smtp-server (MTA - Mail Transfer Agent, Message

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 4:38 μμ, ο/η Ferrous Cranus έγραψε: Στις 5/9/2013 4:29 μμ, ο/η feedthetr...@gmx.de έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python script. OK, I should have been more exact: To send mails you need a smtp

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 6:00 μμ, ο/η feedthetr...@gmx.de έγραψε: Am Donnerstag, 5. September 2013 15:38:25 UTC+2 schrieb Ferrous Cranus: Στις 5/9/2013 4:29 μμ, ο/η feedthetroll έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-06 Thread Ferrous Cranus
Στις 6/9/2013 7:48 πμ, ο/η Piet van Oostrum έγραψε: hotmail.com. Register this as one of your email addresses in gmail. For this it must be a real email address that belongs to you, not a fake address. When it is registered with gmail, gmail will not change it if found in a From header.

Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Ferrous Cranus
try: # prepare mail data FROM = random_char(10) + '@' + random_char(10) + '.com' TO = nikos.gr...@gmail.com SUBJECT = random_char( 50 ) MESSAGE = random_char( 500 ) os.system( echo %s | mailx -v -r %s -s %s %s %

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
you ask, I'll start caring about the answers I give you. On Sun, 15 Sep 2013 08:54:48 -0700, Ferrous Cranus wrote: try: # prepare mail data FROM = random_char(10) + '@' + random_char(10) + '.com' TO = nikos.gr...@gmail.com SUBJECT

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 10:29 πμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 03:52, Steven D'Aprano schreef: Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 12:40 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 10:48, Chris Angelico schreef: On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 16-09-13 10:19, Chris Angelico schreef: It's a contribution that SAYS that it looks carelessly written. I think

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 2:21 μμ, ο/η Denis McMahon έγραψε: On Mon, 16 Sep 2013 12:06:06 +0200, Joost Molenaar wrote: It's most likely an issue in your local SMTP server's configuration. I'm not convinced about that. All the evidence is that OPs local mta delivers the message to google. I think the

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my server so the mails wont indicate that they derive from superhost.gr as they aare now sen

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 7:15 μμ, ο/η Ferrous Cranus έγραψε: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 8:53 μμ, ο/η William Ray Wing έγραψε: On Sep 16, 2013, at 12:15 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 10:09 μμ, ο/η Denis McMahon έγραψε: On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: We need to try it to see if it will work, or perhaps we can alter both the hostname and ip address variables on the server to some other values so that google will use them too

Having both if() and for() statements in one liner

2013-09-17 Thread Ferrous Cranus
o want to avoid having to type somehting like this: if person=George: times in range(0, 5): Why it gives me an error when i'm trying to write it like this: if person=George for times in range(0, 5): Can't i ahve both if and for in a one liner? --

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
Στις 17/9/2013 2:55 μμ, ο/η Joel Goldstick έγραψε: In honour of the value of mailing lists in general lets stop this thread since once again the troll pattern repeats ad infinitum. At least if you want to add to this nonsense, read each of the (several?) dozen entries. 1. a seemingly earnest

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Ferrous Cranus
Στις 17/9/2013 4:00 μμ, ο/η Roy Smith έγραψε: In article l19gdf$psh$1...@dont-email.me, Ferrous Cranus nikos.gr...@gmail.com wrote: o want to avoid having to type somehting like this: if person=George: times in range(0, 5): Why it gives me an error when i'm trying to write it like

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
On 17/9/2013 1:46 μμ, Heiko Wundram wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 01:41, schrieb Steven D'Aprano: I cannot fathom for the life of me a legitimate reason for your website to use a fake IP address and hostname when sending email. In addition to that: it's

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
On 17/9/2013 7:30 μμ, Denis McMahon wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? Python can not control data that is added to the message after it has left the python program. If you

Re: To whoever hacked into my Database

2013-11-07 Thread Ferrous Cranus
Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: On 06/11/2013 21:26, Νίκος Γκρ33κ wrote: Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it

Re: To whoever hacked into my Database

2013-11-07 Thread Ferrous Cranus
Here is the proof of the hacking into my clients database: http://i.imgur.com/5ErmFlI.png http://i.imgur.com/3u7At55.png But i just changes something in my script's code and she will not be successful on doing that again, i like to believe :) --

Re: datetime question

2013-11-12 Thread Ferrous Cranus
Στις 8/11/2013 11:11 μμ, ο/η Νίκος Αλεξόπουλος έγραψε: Is there someway to write the following line even better with the ability to detect daylight saving time by itself so i don't have to alter the line manually when time changes? lastvisit = ( datetime.utcnow() + timedelta(hours=2)

Re: datetime question

2013-11-12 Thread Ferrous Cranus
else: diff = 3 return diff lastvisit = (datetime.utcnow() +timedelta(hours=dst_greece())).strftime( '%y-%m-%d %H:%M:%S' ) On 12 November 2013 10:15, Ferrous Cranus nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 8/11/2013 11:11 μμ, ο/η Νίκος Αλεξόπουλος έγραψε

Re: To whoever hacked into my Database

2013-11-12 Thread Ferrous Cranus
Στις 11/11/2013 11:36 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! I can't believe your ignorance. You're actually telling a

Re: datetime question

2013-11-12 Thread Ferrous Cranus
Στις 12/11/2013 4:03 μμ, ο/η Joel Goldstick έγραψε: On Tue, Nov 12, 2013 at 8:32 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: Στις 12/11/2013 2:47 μμ, ο/η Andy Lawton έγραψε: Firstly , I should clarify I have no idea how to program python, I joined this mailing list in anticipation

Re: datetime question

2013-11-12 Thread Ferrous Cranus
Στις 12/11/2013 4:57 μμ, ο/η Chris Angelico έγραψε: On Wed, Nov 13, 2013 at 1:12 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: Joel i must thank you for your help. I cannot believe it was so simple. Tnhe server is self aware of its location so why use utcnow() + timedelte( some_digit_here

Re: datetime question

2013-11-12 Thread Ferrous Cranus
Στις 12/11/2013 5:54 μμ, ο/η Tim Chase έγραψε: On 2013-11-12 17:24, Ferrous Cranus wrote: But what of the server was in California and i live in Greece? How would datetime.now() work then? Best practices say to move the value from local time to UTC as soon as possible, then store/use the UTC

Re: To whoever hacked into my Database

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 1:38 πμ, ο/η Mark Lawrence έγραψε: On 12/11/2013 23:27, Ian Kelly wrote: On Tue, Nov 12, 2013 at 2:59 PM, Ethan Furman et...@stoneleaf.us wrote: Every time he uses foul language against somebody he's acting like a bully. Every time he reposts questions and ignores answers he's

Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
$ mkdir temp $ cd temp $ wget http://www.python.org/ftp/python/3.4/Python-3.4.tar.bz2 $ tar -xjvf Python-3.4.tar.bz2 $ cd Python-3.3.2 $ ./configure $ make make test $ su # make install # exit $ $ cd ../ rm -rf Python-3.4 root@secure [/home/nikos/www/cgi-bin]# python3 -V Python 3.4.0a4 can

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 4:17 μμ, ο/η Ferrous Cranus έγραψε: $ mkdir temp $ cd temp $ wget http://www.python.org/ftp/python/3.4/Python-3.4.tar.bz2 $ tar -xjvf Python-3.4.tar.bz2 $ cd Python-3.3.2 $ ./configure $ make make test $ su # make install # exit $ $ cd ../ rm -rf Python-3.4 root@secure [/home

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 4:23 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Wed, Nov 13, 2013 at 3:17 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: $ mkdir temp $ cd temp $ wget http://www.python.org/ftp/python/3.4/Python-3.4.tar.bz2 $ tar -xjvf Python-3.4.tar.bz2 $ cd Python-3.3.2 $ ./configure $ make

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 4:23 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Wed, Nov 13, 2013 at 3:17 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: $ mkdir temp $ cd temp $ wget http://www.python.org/ftp/python/3.4/Python-3.4.tar.bz2 $ tar -xjvf Python-3.4.tar.bz2 $ cd Python-3.3.2 $ ./configure $ make

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: and also is there a way to call it like #!/usr/bin/python Of course there is, but only if you wish to break your system. The OS will be expecting /usr/bin/python to be Python 2. Leave it be. Okey i will leave it be although i dislike the

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Wed, Nov 13, 2013 at 5:38 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: and also is there a way to call it like #!/usr/bin/python Of course there is, but only if you

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: Get ez_setup.py and get-pip.py, and run them with the desired Python. Why can't i just use that? root@secure

Re: To whoever hacked into my Database

2013-11-13 Thread Ferrous Cranus
root@secure:~/lib64# ls -al | grep libkey lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 - libkeyutils.so.1.3.0* -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* -rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so.1.3.0* root@secure:~/lib64# rpm -qf

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 11:44 μμ, ο/η Ned Batchelder έγραψε: On Wednesday, November 13, 2013 4:39:59 PM UTC-5, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε: On 13/11/2013 21:39, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: Get ez_setup.py

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Ferrous Cranus
Στις 14/11/2013 2:54 πμ, ο/η Johannes Findeisen έγραψε: On Thu, 14 Nov 2013 00:00:04 +0200 Ferrous Cranus wrote: Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε: snip But i have gone to the link and did what it said and it didn't proved usefull thats why i re-ask. Try looking

Re: To whoever hacked into my Database

2013-11-14 Thread Ferrous Cranus
Στις 13/11/2013 11:46 μμ, ο/η Ferrous Cranus έγραψε: root@secure:~/lib64# ls -al | grep libkey lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 - libkeyutils.so.1.3.0* -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* -rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so

  1   2   3   >