Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 19:20:06 +0300, Νικόλαος Κούρας wrote: > But iam not offering Steven full root access, but restricted user level > access. Are you implying that for example one could elevate his > privileges to root level access form within a normal restricted user > account? Me personally? P

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 10:16:42 -0400, Zero Piraeus wrote: > : > >> Steven, i can create a normal user account for you and copy files.py >> into your home folder if you want to take a look from within. > > Nikos, please, DO NOT DO THIS. > > It must be clear to you that Steven is *much* more experi

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Dave Angel
On 06/13/2013 05:46 PM, Chris Angelico wrote: On Fri, Jun 14, 2013 at 3:48 AM, Νικόλαος Κούρας wrote: You are right, but i still believe Stevn would not act maliciously in the server. He proved himself very helpfull already. You thought that about me, too. (And you were still correct.

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 3:48 AM, Νικόλαος Κούρας wrote: > On 13/6/2013 8:27 μμ, Zero Piraeus wrote: >> >> : >> >>> But iam not offering Steven full root access, but restricted user level >>> access. Are you implying that for example one could elevate his >>> privileges >>> to root level access for

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Grant Edwards
On 2013-06-13, wrote: > On 13/6/2013 8:27 , Zero Piraeus wrote: > >> Then you need to contract with paid, professional support to solve >> your problems. > > Or receive some free help, to solve this single detail i'am missing. "single detail I am missing" Seri

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 8:27 μμ, Zero Piraeus wrote: : But iam not offering Steven full root access, but restricted user level access. Are you implying that for example one could elevate his privileges to root level access form within a normal restricted user account? I am implying that your demonstrate

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Zero Piraeus
: > But iam not offering Steven full root access, but restricted user level > access. Are you implying that for example one could elevate his privileges > to root level access form within a normal restricted user account? I am implying that your demonstrated lack of ability means that *you don't

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Grant Edwards
On 2013-06-13, wrote: > On 13/6/2013 5:16 , Zero Piraeus wrote: >> : >> >>> Steven, i can create a normal user account for you and copy files.py into >>> your home folder if you want to take a look from within. >> >> Nikos, please, DO NOT DO THIS. >> >> It must be

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 5:16 μμ, Zero Piraeus wrote: : Steven, i can create a normal user account for you and copy files.py into your home folder if you want to take a look from within. Nikos, please, DO NOT DO THIS. It must be clear to you that Steven is *much* more experienced than you. Your presumpt

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Zero Piraeus
: > Steven, i can create a normal user account for you and copy files.py into > your home folder if you want to take a look from within. Nikos, please, DO NOT DO THIS. It must be clear to you that Steven is *much* more experienced than you. Your presumptions about what he can and can't do with t

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 7:43 PM, Νικόλαος Κούρας wrote: > On 13/6/2013 12:25 μμ, Chris Angelico wrote: >> >> On Thu, Jun 13, 2013 at 6:15 PM, �� >> wrote: >>> >>> I host no "e-shop" websites, hence into my system there is no credit card >>> info stored, no id photos, no SSN, nothing.

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 9:49 πμ, Νικόλαος Κούρας wrote: On 12/6/2013 1:40 μμ, Νικόλαος Κούρας wrote: Thanks Steven , i made some alternations to the variables names and at the end of the way that i check a database filename against and hdd filename. Here is the code: #

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 12:25 μμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 6:15 PM, �� wrote: I host no "e-shop" websites, hence into my system there is no credit card info stored, no id photos, no SSN, nothing. Now i checked and most are Joomla files or sites made by DreamWeaver. and t

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 6:15 PM, Νικόλαος Κούρας wrote: > I host no "e-shop" websites, hence into my system there is no credit card > info stored, no id photos, no SSN, nothing. > > Now i checked and most are Joomla files or sites made by DreamWeaver. > and they are 755, that would mean group and

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 10:54 πμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 4:49 PM, �� wrote: Steven, i can create a normal user account for you and copy files.py into your home folder if you want to take a look from within. At least you're not offering root access any more. But are yo

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 4:49 PM, Νικόλαος Κούρας wrote: > Steven, i can create a normal user account for you and copy files.py into > your home folder if you want to take a look from within. At least you're not offering root access any more. But are you aware that most of your users' files are wo

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 1:40 μμ, Νικόλαος Κούρας wrote: Thanks Steven , i made some alternations to the variables names and at the end of the way that i check a database filename against and hdd filename. Here is the code: # ==

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Steven D'Aprano
On Wed, 12 Jun 2013 15:42:07 +0100, Mark Lawrence wrote: > On 12/06/2013 13:42, Νικόλαος Κούρας wrote: >> >> Something you want me to try? > > I'd suggest suicide Mark, not cool. Seriously not cool. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Steven D'Aprano
On Wed, 12 Jun 2013 16:18:38 +, Neil Cerutti wrote: > On 2013-06-12, Mark Lawrence wrote: >> On 12/06/2013 13:42, wrote: >>> >>> Something you want me to try? >> >> I'd suggest suicide but that would no doubt start another stream of >> questions along the lines o

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 8:27 μμ, Νικόλαος Κούρας wrote: On 12/6/2013 3:42 μμ, Νικόλαος Κούρας wrote: = # Convert wrongly encoded filenames to utf-8 # ===

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 8:14 μμ, Νικόλαος Κούρας wrote: On 12/6/2013 5:42 μμ, Mark Lawrence wrote: On 12/06/2013 13:42, Νικόλαος Κούρας wrote: Something you want me to try? I'd suggest suicide but that would no doubt start another stream of questions along the lines of "How do I do it?". Okey that wa

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 3:42 μμ, Νικόλαος Κούρας wrote: = # Convert wrongly encoded filenames to utf-8 # ==

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 7:18 μμ, Neil Cerutti wrote: On 2013-06-12, Mark Lawrence wrote: On 12/06/2013 13:42, wrote: Something you want me to try? I'd suggest suicide but that would no doubt start another stream of questions along the lines of "How do I do it?". hi. I l

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 5:42 μμ, Mark Lawrence wrote: On 12/06/2013 13:42, Νικόλαος Κούρας wrote: Something you want me to try? I'd suggest suicide but that would no doubt start another stream of questions along the lines of "How do I do it?". Okey that was indeed very finny, i even laughed at my own

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Neil Cerutti
On 2013-06-12, Mark Lawrence wrote: > On 12/06/2013 13:42, wrote: >> >> Something you want me to try? > > I'd suggest suicide but that would no doubt start another > stream of questions along the lines of "How do I do it?". hi. I loopet rope aroung and jumped, but br

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread rusi
On Jun 12, 7:42 pm, Mark Lawrence wrote: > On 12/06/2013 13:42, Νικόλαος Κούρας wrote: > > > > > Something you want me to try? > > I'd suggest suicide but that would no doubt start another stream of > questions along the lines of "How do I do it?". There's a saying in some Indian languages (unfor

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Mark Lawrence
On 12/06/2013 13:42, Νικόλαος Κούρας wrote: Something you want me to try? I'd suggest suicide but that would no doubt start another stream of questions along the lines of "How do I do it?". -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 2:32 μμ, Νικόλαος Κούρας wrote: On 12/6/2013 12:37 μμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote: [1] Correction. While I was typing this, it came good, for about 20 seconds, and displayed a hideously ugly background pattern and a cute smil

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 12:37 μμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote: [1] Correction. While I was typing this, it came good, for about 20 seconds, and displayed a hideously ugly background pattern and a cute smiling face waving, and then broke again. Ah s

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
Thanks Steven , i made some alternations to the variables names and at the end of the way that i check a database filename against and hdd filename. Here is the code: # = # Convert

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Steven D'Aprano
On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote: > On 12/6/2013 12:17 μμ, Steven D'Aprano wrote: >> On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote: >> >>> On 12/6/2013 11:31 πμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote: >> > and

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 12:17 μμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote: On 12/6/2013 11:31 πμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote: and the output is just Pacman.exe as seen in http://superhost.gr/?page=files.py

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Steven D'Aprano
On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote: > On 12/6/2013 11:31 πμ, Steven D'Aprano wrote: >> On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote: >>> and the output is just Pacman.exe as seen in >>> >>> http://superhost.gr/?page=files.py >> >> Wrong. The output is: >> >> In

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Steven D'Aprano
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote: > # Collect directory and its filenames as bytes > path = b'/home/nikos/public_html/data/apps/' > files = os.listdir( path ) [snip code] I realised that the version I gave you earlier, or rather the modified version you came up with, wa

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
root@nikos [/home/nikos/www/data/apps]# ls -l total 412788 drwxr-xr-x 2 nikos nikos 4096 Jun 12 12:03 ./ drwxr-xr-x 6 nikos nikos 4096 May 26 21:13 ../ -rwxr-xr-x 1 nikos nikos 13157283 Mar 17 12:57 100\ Mythoi\ tou\ Aiswpou.pdf* -rwxr-xr-x 1 nikos nikos 29524686 Mar 11 18:17 Anekdotolog

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
On 12/6/2013 11:31 πμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote: i tried to insert print( filename ) sys.exit(0) That's not very useful. That will just print ONE file name, then stop. You have how many files in there? Two? Twenty? What if the problem do

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Steven D'Aprano
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote: > i tried to insert > print( filename ) > sys.exit(0) That's not very useful. That will just print ONE file name, then stop. You have how many files in there? Two? Twenty? What if the problem does not lie with the first one? > just bef

Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Νικόλαος Κούρας
# # Collect directory and its filenames as bytes path = b'/home/nikos/public_html/data/apps/' files = os.listdir( path ) for filename in files: # Compute 'path/to/filename' filepath_bytes = path + filename for