Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Νίκος
On 15/6/2013 11:37 μμ, Joshua Landau wrote: On 15 June 2013 20:51, Nick the Gr33k supp...@superhost.gr wrote: On 15/6/2013 10:46 μμ, Jarrod Henry wrote: Nick, at this point, you need to hire someone to do your work for you. The code is completely ready. Some detail is missing and its not

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Νίκος
On 17/6/2013 8:58 πμ, Νίκος wrote: On 15/6/2013 11:37 μμ, Joshua Landau wrote: On 15 June 2013 20:51, Nick the Gr33k supp...@superhost.gr wrote: On 15/6/2013 10:46 μμ, Jarrod Henry wrote: Nick, at this point, you need to hire someone to do your work for you. The code is completely ready.

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Steven D'Aprano
On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote: everything work as expected but not the part when the counter of a filename gets increased when the file have been requested. I don't see how since: if filename: #update file counter cur.execute('''UPDATE files SET hits = hits

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Simpleton
On 17/6/2013 10:00 πμ, Steven D'Aprano wrote: On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote: everything work as expected but not the part when the counter of a filename gets increased when the file have been requested. I don't see how since: if filename: #update file counter

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Simpleton
On 17/6/2013 12:07 μμ, Simpleton wrote: # Load'em for filename in filenames: try: # Check the presence of current filename against it's database presence cur.execute('''SELECT url FROM files WHERE url = %s''', filename ) data = cur.fetchone() if not

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Simpleton
On 17/6/2013 12:07 μμ, Simpleton wrote: On 17/6/2013 10:00 πμ, Steven D'Aprano wrote: On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote: everything work as expected but not the part when the counter of a filename gets increased when the file have been requested. I don't see how since: if

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-17 Thread Grant Edwards
On 2013-06-15, Nick the Gr33k supp...@superhost.gr wrote: On 15/6/2013 10:46 ??, Jarrod Henry wrote: Nick, at this point, you need to hire someone to do your work for you. The code is completely ready. OK. Good-bye then. -- Grant Edwards grant.b.edwardsYow! Th' MIND

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Denis McMahon
On Sat, 15 Jun 2013 22:38:38 +0300, Nick the Gr33k wrote: PLEASE take a look, its not a huge code First, you need to start writing your code to less than 80 columns if you're going to keep posting it to usenet. I'm sure I'm not the only person who can't be bothered to unwrap it. Secondly,

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Nick the Gr33k
On 16/6/2013 8:06 πμ, Steven D'Aprano wrote: Nikos, Have you considered subscribing to this? http://mail.python.org/mailman/listinfo/python-greece Possibly some of these concepts will be easier for you to understand if explained to you in your native language. Or you might be able to join a

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Nick the Gr33k
On 16/6/2013 10:23 πμ, Denis McMahon wrote: On Sat, 15 Jun 2013 22:38:38 +0300, Nick the Gr33k wrote: PLEASE take a look, its not a huge code First, you need to start writing your code to less than 80 columns if you're going to keep posting it to usenet. I'm sure I'm not the only person who

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Denis McMahon
On Sun, 16 Jun 2013 11:35:12 +0300, Nick the Gr33k wrote: TB behaves for me the same way. Any line 80 chars gets a newline. Why this is happening? Why not post up to 256 chars in a single line? Because this is usenet. Read the RFCs if you must know! -- Denis McMahon,

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Steven D'Aprano
On Sun, 16 Jun 2013 11:28:00 +0300, Nick the Gr33k wrote: On 16/6/2013 8:06 πμ, Steven D'Aprano wrote: Nikos, Have you considered subscribing to this? http://mail.python.org/mailman/listinfo/python-greece [...] I prefer staying here but i can also subscribe there as well if you teel me

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Ferrous Cranus
On 16/6/2013 1:33 μμ, Steven D'Aprano wrote: On Sun, 16 Jun 2013 11:28:00 +0300, Nick the Gr33k wrote: On 16/6/2013 8:06 πμ, Steven D'Aprano wrote: Nikos, Have you considered subscribing to this? http://mail.python.org/mailman/listinfo/python-greece [...] I prefer staying here but i can

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Chris “Kwpolska” Warrick
On Sun, Jun 16, 2013 at 12:33 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 16 Jun 2013 11:28:00 +0300, Nick the Gr33k wrote: On 16/6/2013 8:06 πμ, Steven D'Aprano wrote: Nikos, Have you considered subscribing to this?

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Mark Lawrence
On 16/06/2013 11:57, Ferrous Cranus wrote: i did Steven that why i asked in the 1st place To post a message to all the list members, send email to python-gre...@python.org. this is not a valid nrewgroup name/ Not valid in the same way that supp...@superhost.gr is not valid? -- Steve is

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Ferrous Cranus
On 16/6/2013 2:09 μμ, Mark Lawrence wrote: On 16/06/2013 11:57, Ferrous Cranus wrote: i did Steven that why i asked in the 1st place To post a message to all the list members, send email to python-gre...@python.org. this is not a valid nrewgroup name/ Not valid in the same way that

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Chris “Kwpolska” Warrick
On Sun, Jun 16, 2013 at 1:09 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 16/06/2013 11:57, Ferrous Cranus wrote: i did Steven that why i asked in the 1st place To post a message to all the list members, send email to python-gre...@python.org. this is not a valid nrewgroup name/

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Ferrous Cranus
On 16/6/2013 4:07 πμ, Nick the Gr33k wrote: On 16/6/2013 1:51 πμ, Chris Angelico wrote: On Sun, Jun 16, 2013 at 6:29 AM, Benjamin Schollnick benja...@schollnick.net wrote: cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) cur.execute('''INSERT INTO counters (url) VALUES (%s)''',

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Ferrous Cranus
On 16/6/2013 11:35 πμ, Nick the Gr33k wrote: On 16/6/2013 10:23 πμ, Denis McMahon wrote: On Sat, 15 Jun 2013 22:38:38 +0300, Nick the Gr33k wrote: PLEASE take a look, its not a huge code First, you need to start writing your code to less than 80 columns if you're going to keep posting it to

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread alex23
On Jun 16, 10:10 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Congratulation. You have just entered an extremely exclusive club. See you in a month. *plonk* So yours are the only pissy one-liner responses that shouldn't be taken off-list? --

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Mark Lawrence
On 17/06/2013 01:04, alex23 wrote: On Jun 16, 10:10 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Congratulation. You have just entered an extremely exclusive club. See you in a month. *plonk* So yours are the only pissy one-liner responses that shouldn't be taken

Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
Hello, Trying to browse http://superhost.gr/?page=files.py with tailing -F of the error_log i noticed that error log outputs no error! So that means that the script is correct. here are the directory app's files. ni...@superhost.gr [~/www/data/apps]# ls -l total 412788 drwxr-xr-x 2 nikos

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Jarrod Henry
Nick, at this point, you need to hire someone to do your work for you. We are not here to do your job. I would suggest finding a coder for hire and letting them do this job correctly. Thanks. On Sat, Jun 15, 2013 at 2:38 PM, Nick the Gr33k supp...@superhost.grwrote: Hello, Trying to

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 10:46 μμ, Jarrod Henry wrote: Nick, at this point, you need to hire someone to do your work for you. The code is completely ready. Some detail is missing and its not printing the files as expected. Irrelevant to my question i just noticed weird behavior about my pelatologio.py

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Benjamin Schollnick
Nick, at this point, you need to hire someone to do your work for you. The code is completely ready. Some detail is missing and its not printing the files as expected. Then the code is not completely ready, it has bugs, and your trying to have the list debug and fix it for you for free.

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Joshua Landau
On 15 June 2013 20:51, Nick the Gr33k supp...@superhost.gr wrote: On 15/6/2013 10:46 μμ, Jarrod Henry wrote: Nick, at this point, you need to hire someone to do your work for you. The code is completely ready. Some detail is missing and its not printing the files as expected. Look, Nick,

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Mark Lawrence
On 15/06/2013 20:38, Nick the Gr33k wrote: Thank you and please whoever does not feel like helping, please at least not spam the thread. Your arrogance clearly has no bounds. This is a public forum and people can say what they like. You've wasted enough time as it is, so why don't you

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Chris Angelico
On Sun, Jun 16, 2013 at 6:29 AM, Benjamin Schollnick benja...@schollnick.net wrote: cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) cur.execute('''INSERT INTO counters (url) VALUES (%s)''', page ) Sure, whoever wrote that code is a fool. http://xkcd.com/327/ They didn't

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Steven D'Aprano
On Sat, 15 Jun 2013 22:29:29 +0100, Mark Lawrence wrote: Your arrogance clearly has no bounds. This is a public forum and people can say what they like. You've wasted enough time as it is, so why don't you simply bugger off. Congratulation. You have just entered an extremely exclusive club.

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
On 16/6/2013 12:29 πμ, Mark Lawrence wrote: On 15/06/2013 20:38, Nick the Gr33k wrote: Thank you and please whoever does not feel like helping, please at least not spam the thread. Your arrogance clearly has no bounds. Your spamming to my threads in an unproductive and yet bitching way

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
On 16/6/2013 1:51 πμ, Chris Angelico wrote: On Sun, Jun 16, 2013 at 6:29 AM, Benjamin Schollnick benja...@schollnick.net wrote: cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) cur.execute('''INSERT INTO counters (url) VALUES (%s)''', page ) Sure, whoever wrote that code is a

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Mark Lawrence
On 16/06/2013 02:03, Nick the Gr33k wrote: On 16/6/2013 12:29 πμ, Mark Lawrence wrote: On 15/06/2013 20:38, Nick the Gr33k wrote: Thank you and please whoever does not feel like helping, please at least not spam the thread. Your arrogance clearly has no bounds. Your spamming to my

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
On 16/6/2013 1:51 πμ, Chris Angelico wrote: On Sun, Jun 16, 2013 at 6:29 AM, Benjamin Schollnick benja...@schollnick.net wrote: cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) cur.execute('''INSERT INTO counters (url) VALUES (%s)''', page ) Sure, whoever wrote that code is a

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
On 16/6/2013 1:51 πμ, Chris Angelico wrote: On Sun, Jun 16, 2013 at 6:29 AM, Benjamin Schollnick benja...@schollnick.net wrote: cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) cur.execute('''INSERT INTO counters (url) VALUES (%s)''', page ) Sure, whoever wrote that code is a

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Nick the Gr33k
On 16/6/2013 4:10 πμ, Mark Lawrence wrote: I have no intention of kill-filing you, muting your threads or ignoring you. I do intend hounding you until with any luck you crawl off into a hole somewhere and leave this group in peace. No such luck i'm afraid for you. And it seems to me that you

Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-15 Thread Steven D'Aprano
Nikos, Have you considered subscribing to this? http://mail.python.org/mailman/listinfo/python-greece Possibly some of these concepts will be easier for you to understand if explained to you in your native language. Or you might be able to join a local Users Group who can help you. --