Re: SSH/Telnet program to Router/switch

2014-02-25 Thread Ferrous Cranus
Τη Τετάρτη, 19 Φεβρουαρίου 2014 10:45:53 π.μ. UTC+2, ο χρήστης Wojciech Łysiak έγραψε: > On 19.02.2014 09:14, Sujith S wrote: > > > Hi, > > > > > > I am new to programming and python. I am looking for a python script to do > > ssh/telnet to a network equipment ? I know tcl/perl does this usin

Re: Self-defence

2013-11-17 Thread Ferrous Cranus
Τη Κυριακή, 17 Νοεμβρίου 2013 8:00:19 μ.μ. UTC+2, ο χρήστης Petite Abeille έγραψε: > On Nov 17, 2013, at 6:50 PM, Yaşar Arabacı wrote: > > > > > 2013/11/17 Georg Brandl : > > >> Let the barrage of posts continue for a few more days; if he doesn't get > > >> replies he will get fed up eventua

If you continue being rude i will continue doing this

2013-11-17 Thread Ferrous Cranus
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 1

I don't care about your threats!

2013-11-17 Thread Ferrous Cranus
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 1

That's for trying to threat me

2013-11-17 Thread Ferrous Cranus
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 1

Next time it would be better to help instead of responding with threats!

2013-11-17 Thread Ferrous Cranus
== root@secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded Running setup.py egg_info for package pygeoip Traceback (most recent call last): File "", line 1

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ferrous Cranus
Mark wrote: > If you have to deliberately post like this in an attempt to annoy > people, would you please not do so using double spaced google crap as > it's very annoying, thank you in anticipation. Sure thing Mark, here: root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]#

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 6:07:35 μ.μ. UTC+2, ο χρήστης Ned Batchelder έγραψε: > On Saturday, November 16, 2013 11:03:39 AM UTC-5, Ferrous Cranus wrote: > > > root@secure [~]# find / -name python3.4 | rm -rf > > > > > > root@secure [~]# locate pyt

PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ferrous Cranus
root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]# locate python3.4 /root/.local/lib/python3.4 /usr/local/include/python3.4m /usr/local/lib/libpython3.4m.a /usr/local/lib/python3.4 /usr/local/share/man/man1/python3.4.1 still there!!! root@secure [~]# locate python3.4 | rm -rf

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
> Just as you use "which python" to figure out what "python" was executing, > >"which pip" will help you figure out what "pip" is running. root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# cd /usr/bin/python3 -bash: cd: /usr/bin/python3: Not a directory root@secure [~]# which pi

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: > On 16/11/2013 13:45, Ferrous Cranus wrote: > > > What the difference between locate and find? > > > > I neither know nor care as it's not Python related. > > > > &g

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:19:21 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus wrote: > > > If you know and wont tell me but instead you devote time to make ironic > > comments against me i will re-post the exact same

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Also there are leftovers form python3.4a Iam thinking fo deleting those as: 'locate pythοn3.4 | rm -rf' will this help or do any accidental damage? -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert Kern έγραψε: > On 2013-11-16 13:59, Νίκος wrote: > > > HELP ME > > > > The kind people at http://serverfault.com/ can help you with your system > > administration problems. I'm afraid that we cannot. > > > > -- >

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:04:41 μ.μ. UTC+2, ο χρήστης Ned Batchelder έγραψε: > On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote: > > > HELP ME > > > Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: > > > > not related to

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
What the difference between locate and find? and seen find show me some results, what now? 'rm -rf' those files or i will break something? and then how i'am gonna install those 2 modules for python 3.3.2? -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows: /usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg/pymysql /usr/lib/python2.6/site-packages/pymysql /var/tmp/pip-build-root/pymysql /var/tmp/pip-build-root/pymysql/pymysql /var/tmp/pip-build-root/pym

Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Finally i have managed to install 'Python' and 'Python-pip' from rpms from EPEL repository. That good BUT: root@secure [~]# pip install pymysql Downloading/unpacking pymysql Downloading PyMySQL-0.6.1.tar.gz (51kB): 51kB downloaded Running setup.py egg_info for package pymysql Installing collecte

Re: To whoever hacked into my Database

2013-11-14 Thread Ferrous Cranus
Στις 14/11/2013 2:32 μμ, ο/η Alister έγραψε: On Thu, 14 Nov 2013 12:46:29 +0200, Ferrous Cranus wrote: This must have happened when i was handling my root passwords out in the open. Served me well. At least you seem to be learning this lesson Can somebody explain to me why there is so

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

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 έγραψε: 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: 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-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: 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 libkeyutils.so.1.3.

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? roo

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 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 wish to break

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 i

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 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 && make t

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 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 && make t

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

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 c

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 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 acting like a bull

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: 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 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 ) when you can just

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 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 of learning soon. And

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 h

Re: datetime question

2013-11-12 Thread Ferrous Cranus
s_dst("Europe/Kiev") : diff = 2 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 mailto:nikos.gr...@gmail.com>> wrote:

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) ).strftime(

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 :) -- https://mail.python.org/mailman/listinfo/python

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 w

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

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 , Ferrous Cranus 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 this: if person="George&q

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 qu

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? -- https://mail.python.org/mailman/l

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. It

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 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 MESSAGE- Hash

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

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 iss

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 wrote: Op 16-09-13 10:19, Chris Angelico schreef: It's a contribution that SAYS that it looks carelessly written. I think most people here are intellige

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 g

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

2013-09-15 Thread Ferrous Cranus
questions 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&q

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: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 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.

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

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 Transp

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 ques

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 authent

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 (, TypeError("sendmail() missing 2 required positional arguments: 'to_addrs' and 'msg'",), ) ni...@

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 to

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 = ( "Fro

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

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

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" % (' Down Load ') 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 after the down

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: f.write(b'\x

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 authentica

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 in

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

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

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

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

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-01 Thread Ferrous Cranus
Στις 2/9/2013 2:14 πμ, ο/η Dave Angel έγραψε: On 1/9/2013 18:23, Ferrous Cranus wrote: 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. It

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: Here is it: errout = open( '/tmp/err.out', 'w' )# opens and truncates the error output file try: gi = pygeoip.Geo

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: Here is it: errout = open( '/tmp/err.out', 'w' )# opens and truncates the error output file try: gi = pygeoip.GeoIP('/usr/local/share/Geo

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

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:

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 g

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 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 that the line stat

Re: UnicodeDecodeError issue

2013-08-31 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\x

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

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:

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 socket.getho

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\

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 wrote: Suddenly my webiste superhost.gr running my main python script presents me with this error: Code: UnicodeDecodeError('utf-8

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 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\x

UnicodeDecodeError issue

2013-08-30 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? -- Web

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. t

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 existin

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 data

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

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

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 wh

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 = cur.fetchone()

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/ a

  1   2   3   >