Re: OT: e-mail reply to old/archived message

2013-06-12 Thread nagia . retsina
Τη Τετάρτη, 12 Ιουνίου 2013 9:36:41 π.μ. UTC+3, ο χρήστης Phil Connell έγραψε: > On 12 Jun 2013 02:20, wrote: > > > > > > How can i be able to answer you guys posts by my mail client? > > Don't delete mails that you might want to reply to. > > If you do anything else, you're just making it di

Re: Receing a form variable as a list instead of as a string

2013-06-11 Thread nagia . retsina
if page or form.getvalue('show') == 'log': # it is a python script page = page.replace( '/home/nikos/public_html/cgi-bin', '' ) elif page or form.getvalue('show') == 'stats': page = page.replace( '/home/nikos/public_html/cgi-bin', '' ) in the first if option page work

Re: A certainl part of an if() structure never gets executed.

2013-06-11 Thread nagia . retsina
Τη Τετάρτη, 12 Ιουνίου 2013 1:43:21 π.μ. UTC+3, ο χρήστης MRAB έγραψε: > On 11/06/2013 21:20, Νικόλαος Κούρας wrote: > > > [code] > > > if not re.search( '=', name ) and not re.search( '=', month ) > > and not re.search( '=', year ): > > > cur.execute( '''SELECT

Re: OT: e-mail reply to old/archived message

2013-06-11 Thread nagia . retsina
How can i be able to answer you guys posts by my mail client? -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-10 Thread nagia . retsina
Τη Κυριακή, 9 Ιουνίου 2013 3:31:44 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > py> c = 'α' > py> ord(c) > 945 The number 945 is the characters 'α' ordinal value in the unicode charset correct? The command in the python interactive session to show me how many bytes this character will take u

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

2013-06-09 Thread nagia . retsina
Τη Κυριακή, 9 Ιουνίου 2013 3:36:51 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > > printing a greek Unicode string in the error with ASCII > > as the output encoding (default when not a tty IIRC). > An interesting thought. How would we test that? Please elaborare this for me. I ditn undertood

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

2013-06-09 Thread nagia . retsina
Thanks Stevn, i ll read them in a bit. When i read them can you perhaps tell me whats wrong and ima still getting decode issues? [CODE] # = # If user downloaded a file, thank the user

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

2013-06-08 Thread nagia . retsina
Trying yum install dos2unix and root@nikos [/home/nikos/www/cgi-bin]# dos2unix koukos.py dos2unix: converting file koukos.py to UNIX format ... Then browsed to the page again in Chrome it worked as expected :-) -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-08 Thread nagia . retsina
Τη Σάββατο, 8 Ιουνίου 2013 9:47:53 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > Fortunately, Python lets us hide away pretty much all those details, > just as it lets us hide away the details of what makes up a list, a > dictionary, or an integer. You can safely assume that the string "foo" > i

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

2013-06-06 Thread nagia . retsina
Τη Παρασκευή, 7 Ιουνίου 2013 4:25:40 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > MRAB tells you to work with the bytes, because the filenames' bytes are > invalid decoded as UTF-8. If you fix the file names by renaming using a > terminal set to UTF-8, then they will be valid and you can for

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

2013-06-03 Thread nagia . retsina
Τη Τρίτη, 4 Ιουνίου 2013 1:46:53 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > Not so -- it actually shows correctly, provided you use the right > encoding. Tell your browser to view the page as UTF-8, and the file name > is displayed correctly. I can't believe Chrome whcih by default uses ut

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-03 Thread nagia . retsina
Τη Δευτέρα, 3 Ιουνίου 2013 5:35:46 μ.μ. UTC+3, ο χρήστης Walter Hurry έγραψε: > On Sun, 02 Jun 2013 14:41:45 +1000, Chris Angelico wrote: > > > > > Nikos just > > > needs to learn the skill of figuring out where his problems really are. > > > > > Between the keyboard and the chair, obv. May

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

2013-06-03 Thread nagia . retsina
Τη Δευτέρα, 3 Ιουνίου 2013 3:54:30 μ.μ. UTC+3, ο χρήστης rusi έγραψε: > Is that how you renamed your file? > In any case thats what I see! > [Dont whether to say: Its greek to me or its not greek to me!!] Now! that weird again. I rename sit using proper Greek letters but as it appears to you it a

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

2013-06-02 Thread nagia . retsina
Τη Κυριακή, 2 Ιουνίου 2013 10:44:05 μ.μ. UTC+3, ο χρήστης Carlos Nepomuceno έγραψε: > Hey guys! Come on!!! > Repeat with me: "Googsfraba!" You are not and Jack Nicholson and this is not an Anger Management lesson (which was a great movie btw). I'am the one that i should chant that mantra becau

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread nagia . retsina
Τη Πέμπτη, 30 Μαΐου 2013 1:53:33 μ.μ. UTC+3, ο χρήστης nagia@gmail.com έγραψε: > Τη Πέμπτη, 30 Μαΐου 2013 12:29:56 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > > > On 05/29/2013 04:30 AM, nagia.rets...@gmail.com wrote: > > > > > > > What makes us o sure it is a pymysql issue and not pyth

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread nagia . retsina
Τη Πέμπτη, 30 Μαΐου 2013 12:29:56 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > On 05/29/2013 04:30 AM, nagia.rets...@gmail.com wrote: > > > What makes us o sure it is a pymysql issue and not python's encoding > > > issue? > > > > The original traceback, which showed that the encoding error w

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-30 Thread nagia . retsina
Can ypou tell me how to install MySQLdb in python 3 using pip? pip install MySQLdb doesnt find the module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-29 Thread nagia . retsina
What makes us o sure it is a pymysql issue and not python's encoding issue? -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread nagia . retsina
But i think iam gonna fight it some more because mysqldb in python 3 has issues too :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread nagia . retsina
Τη Τρίτη, 28 Μαΐου 2013 9:19:21 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > On 05/28/2013 12:08 PM, nagia.rets...@gmail.com wrote: > > > Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie > > > έγραψε: > > > > > >> Basically you want pelatologio.py to run and then you proc

Re: Encodign issue in Python 3.3.1 (once again)

2013-05-28 Thread nagia . retsina
Τη Τρίτη, 28 Μαΐου 2013 8:17:05 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > Basically you want pelatologio.py to run and then you process the output > through a template, correct? That is correct. > Inside pelatologio.py > there is some object that you are trying to reference the "id" attribu

Re: TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'

2013-05-26 Thread nagia . retsina
Τη Κυριακή, 26 Μαΐου 2013 4:10:02 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Sun, May 26, 2013 at 11:00 PM, Νίκος Γκρ33κ wrote: > > > Anyone seeign somethign wrong? > > > > Yes. You're posting requests, then bumping the thread two hours later > > as though you're entitled to a response

Re: Unicode issue with Python v3.3

2013-04-17 Thread nagia . retsina
Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 13Apr2013 23:00, nagia.rets...@gmail.com wrote: > > | root@nikos [/home/nikos/public_html/foo-py]# pwd > > | /home/nikos/public_html/foo-py > > | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py >

Re: Unicode issue with Python v3.3

2013-04-14 Thread nagia . retsina
Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 13Apr2013 23:00, nagia.rets...@gmail.com wrote: > > | root@nikos [/home/nikos/public_html/foo-py]# pwd > > | /home/nikos/public_html/foo-py > > | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py >

Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 12:10:13 π.μ. UTC+3, ο χρήστης Νίκος Γκρ33κ έγραψε: > Hello, iam still trying to alter the code form python 2.6 => 3.3 > > > > Everyrging its setup except that unicode error that you can see if you go to > http://superhost.gr > > > > Can anyone help with this? >

Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Σάββατο, 13 Απριλίου 2013 1:28:07 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 12Apr2013 21:50, nagia.rets...@gmail.com wrote: > > | Ookey after that is corrected, i then tried the plain solution and i got > this response back form the shell: > > | > > | Traceback (most recent call

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Σάββατο, 13 Απριλίου 2013 4:41:57 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 11Apr2013 09:55, Nikos wrote: > > | Τη Πέμπτη, 11 Απριλίου 2013 1:45:22 μ.μ. UTC+3, ο χρήστης Cameron Simpson > έγραψε: > > | > On 10Apr2013 21:50, nagia.rets...@gmail.com > wrote: > > | > | the doctype

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Παρασκευή, 12 Απριλίου 2013 9:37:29 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > On Fri, Apr 12, 2013 at 8:36 AM, wrote: > > > Τη Παρασκευή, 12 Απριλίου 2013 4:29:51 μ.μ. UTC+3, ο χρήστης rusi έγραψε: > > >> On Apr 12, 6:18 pm, nagia.rets...@gmail.com wrote: > > >> > Well, instead of being a smartas

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Παρασκευή, 12 Απριλίου 2013 4:29:51 μ.μ. UTC+3, ο χρήστης rusi έγραψε: > On Apr 12, 6:18 pm, nagia.rets...@gmail.com wrote: > > > Τη Παρασκευή, 12 Απριλίου 2013 4:14:39 μ.μ. UTC+3, ο χρήστης Chris Angelico > > έγραψε: > > > > > > > On Fri, Apr 12, 2013 at 10:50 PM,   wrote: > > > > > > > >

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Τη Παρασκευή, 12 Απριλίου 2013 4:14:39 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Fri, Apr 12, 2013 at 10:50 PM, wrote: > > > Someone HEELP ME!! > > > > http://youtu.be/VxMYwjp8t0o > > > > ChrisA Well, instead of being a smartass it would be nice if you could actu

Re: Unicode issue with Python v3.3

2013-04-12 Thread nagia . retsina
Someone HEELP ME!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Well, can somebody else propose somehting plz? i have paste the whole script and even the necessary snippet that perhaps causing this encoding confusion in 3.3 -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Of course here is how it look like: if page.endswith('.html'): f = open( "/home/nikos/www/" + page, encoding="utf-8" ) htmldata = f.read() htmldata = htmldata % (quote, music) counter = '''

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Τη Πέμπτη, 11 Απριλίου 2013 11:20:47 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Thu, 11 Apr 2013 07:50:19 +, Steven D'Aprano wrote: > > > > > On Thu, 11 Apr 2013 00:13:46 -0700, nagia.retsina wrote: > > > > > >> Since now we k ow the problem maybe we can tell metrites.py to open

Re: Unicode issue with Python v3.3

2013-04-11 Thread nagia . retsina
Since now we k ow the problem maybe we can tell metrites.py to open index.html using utf-8 encoding rather as binary, dont you think? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-10 Thread nagia . retsina
Firtly thank uou for taking a look into the code. the doctype is coming form the attempt of script metrites.py to open and read the 'index.html' file. But i don't know how to try to open it as a byte file instead of an tetxt file. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode issue with Python v3.3

2013-04-10 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 7:25:21 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > What does os.environ['REMOTE_ADDR'] give? Until you answer that question, > you won't make any progress. I insists stevv. Look at what 'python3 metrites.py' gives me -- http://mail.python.org/mailman/listi

Re: Unicode issue with Python v3.3

2013-04-09 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 12:34:25 π.μ. UTC+3, ο χρήστης Ian έγραψε: > On Tue, Apr 9, 2013 at 3:10 PM, Νίκος Γκρ33κ wrote: > > > Hello, iam still trying to alter the code form python 2.6 => 3.3 > > > > > > Everyrging its setup except that unicode error that you can see if you go > > to http

Re: Reseller Host with Python 3 support

2013-04-02 Thread nagia . retsina
An offer someone please? -- http://mail.python.org/mailman/listinfo/python-list

Reseller Hosting Plan with Python 3 support

2013-04-02 Thread nagia . retsina
I'am looking for this: Reseller Plan with 200$ per year α) 20 GB ftp quota b) 200 GB traffic c) cPanel d) Python 3 e) Python MySQLdb module f) ssh support Please make the best offer possible. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Switching from Apche to LiteSpeed

2013-04-01 Thread nagia . retsina
Τη Δευτέρα, 1 Απριλίου 2013 11:29:47 μ.μ. UTC+3, ο χρήστης John Gordon έγραψε: > In <9a35850a-7fcb-4585-84ae-5e13cef91...@googlegroups.com> > =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= writes: > > > > > Just today i changed from HostGator to EZPZ, which means from Apache Web > > Server to LiteSpeed. >

Re: No errors displayed but i blank scren nstead.

2013-03-29 Thread nagia . retsina
Τη Παρασκευή, 29 Μαρτίου 2013 9:34:07 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Sat, Mar 30, 2013 at 6:27 AM, wrote: > > > But now iam also receivein this error message as shown here when i switches > > to 'pymysql' > > > > Why the change of email address? Are you trying to dodge ki

Re: No errors displayed but i blank scren nstead.

2013-03-29 Thread nagia . retsina
But now iam also receiving this error message as shown here when i switches to 'pymysql' -- http://mail.python.org/mailman/listinfo/python-list

Re: No errors displayed but i blank scren nstead.

2013-03-29 Thread nagia . retsina
But now iam also receivein this error message as shown here when i switches to 'pymysql' -- http://mail.python.org/mailman/listinfo/python-list

Re: No errors displayed but i blank scren nstead.

2013-03-29 Thread nagia . retsina
Τη Πέμπτη, 28 Μαρτίου 2013 4:19:47 μ.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε: > Fianlly my cgi .py script doesnt produce any more errors, i think i ahve > correct them but it present a blank screen > > > > http://superhost.gr > > > > Any idea why? > > What should i check? Thants not the is

Re: Cannot run a single MySQLdb execute....

2013-03-29 Thread nagia . retsina
Τη Παρασκευή, 29 Μαρτίου 2013 7:39:20 μ.μ. UTC+2, ο χρήστης Alan Meyer έγραψε: > On 03/29/2013 01:32 PM, Alan Meyer wrote: > > > > > However, MySQLdb is a well established module and what you're asking it > > > to do is very simple and very standard. > > > > Oh, sorry, I see that you already

Re: MySQLdbd error. Perhpas it isn't installed?

2013-03-27 Thread nagia . retsina
Τη Τετάρτη, 27 Μαρτίου 2013 6:48:44 μ.μ. UTC+2, ο χρήστης MRAB έγραψε: > On 27/03/2013 06:42, Νίκος Γκρ33κ wrote: > > > Τη Τετάρτη, 27 Μαρτίου 2013 6:26:06 π.μ. UTC+2, ο χρήστης ru...@yahoo.com > > έγραψε: > > > > > >> If not, maybe you can try adding a print statement to your code that > > >>

Re: This mail never gets delivered. Any ideas why?

2013-03-11 Thread nagia . retsina
Thank you Thomas but that simple line as i have it now its capable of sending mail successfully wven with greek letters two in subject or in message variables. Now need to dad additional extra code for it to work. -- http://mail.python.org/mailman/listinfo/python-list

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread nagia . retsina
Τη Σάββατο, 9 Μαρτίου 2013 2:26:56 π.μ. UTC+2, ο χρήστης Ian έγραψε: > On Fri, Mar 8, 2013 at 1:31 PM, Νίκος Γκρ33κ wrote: > > > Thank you very much for pointing my flaws once again! > > > > > > I cant beleive how easy you hacked the webserver again and be able to read > > my cgi scripts sourc

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread nagia . retsina
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano έγραψε: > >>> -c ''; rm -rf /; oops.py > Please don't tell the newbies to destroy their system, no matter how > tempting it might be. What that "-c ''" options i keep seeing in the attempts to pass bogus info in my 'pa

Re: sync databse table based on current directory data without losign previous values

2013-03-06 Thread nagia . retsina
Τη Τετάρτη, 6 Μαρτίου 2013 4:04:26 μ.μ. UTC+2, ο χρήστης Michael Ross έγραψε: > On Wed, 06 Mar 2013 12:52:00 +0100, Mark Lawrence > > wrote: > > > > > On 06/03/2013 07:45, Νίκος Γκρ33κ wrote: > > >> I'am using this snipper to read a current directory and insert all > > >> filenames into

Re: Embedding a for inside an html template for substitution

2013-03-04 Thread nagia . retsina
Τη Δευτέρα, 4 Μαρτίου 2013 5:14:00 μ.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε: > Hello pythonistas! > > > > I'am tryign to populate a table with dictionary keys and values: > > > > Foe that iam using an html template and the questions is what i should write > inside 'files.html' so then then