Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Nick the Gr33k
Will someone please tell me how to install 'pip' My website is not working because modules are missing and the only way i can install them is by installing python's module manager 'pip' but 'yum install python-pip' fails. How would i install the damn thing? These action should be done via pa

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-06 Thread Nick the Gr33k
Στις 6/11/2013 9:38 πμ, ο/η Nick the Gr33k έγραψε: Ah great!!! I just examined my other MySQL database which just stored webpages and their corresponding visits and voila. Someone was able to pass values into my counters table: look: http://superhost.gr/?show=stats thats why it didn't

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-05 Thread Nick the Gr33k
Ah great!!! I just examined my other MySQL database which just stored webpages and their corresponding visits and voila. Someone was able to pass values into my counters table: look: http://superhost.gr/?show=stats thats why it didn't had 1 or 2 or 3 as 'counterID' but more values were pre

Adding 'download' column to existing 'visitors' table (as requested)

2013-11-05 Thread Nick the Gr33k
I have decided to take your advice. I wasn't able to fit those 'lists' of mine into MySQL's varchar() datatype after converting them to long strings and that sads me. My implementation is like the following. I do not use an extra table of downlaods that i asoociate with table visitors with a f

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 6/11/2013 12:54 πμ, ο/η John Gordon έγραψε: The code i provided only worked once before it failed and managed to store this: counterID,host,refs,city,userOS,browser,visits,hits,download - 1, 176-92-96-218.adsl.cyta.gr, Euro

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 6/11/2013 12:15 πμ, ο/η Piet van Oostrum έγραψε: Nick the Gr33k writes: IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. ALL I WANT IT TO DO IS JUST 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG STRINGS TO LISTS 3. ADD SOME CURRENT VALUES TO THOSE

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 6/11/2013 12:06 πμ, ο/η John Gordon έγραψε: In Nick the Gr33k writes: # fetch those columns that act as lists but are stored as strings cur.execute('''SELECT refs, visits, downloads FROM visitors WHERE counterID = %s and host = %s

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 10:19 μμ, ο/η John Gordon έγραψε: In Nick the Gr33k writes: IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. ALL I WANT IT TO DO IS JUST 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG STRINGS TO LISTS 3. ADD SOME CURRENT VALUES TO

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 8:02 μμ, ο/η Denis McMahon έγραψε: On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote: IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. Try starting with something simple. The following is a step by step guide to working out how you need to do this. Follow

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 7:41 μμ, ο/η Steven D'Aprano έγραψε: On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote: ALL I WANT IT TO DO IS JUST 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG STRINGS TO LISTS 3. ADD SOME CURRENT VALUES TO THOSE LISTS 4. CONVERT FROM LIS

Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
== # fetch those columns that act as lists but are stored as strings cur.execute('''SELECT refs, visits, downloads FROM visitors WHERE counterID = %s and host = %s''', (cID, host) ) data = cur.fetchone() ref

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 1:16 μμ, ο/η Dave Angel έγραψε: On Tue, 05 Nov 2013 12:33:49 +0200, Nick the Gr33k wrote: Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: > Did you read the documentation of fetchone? fetchone is like fetchall except from the fact that the former returned a row

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 5:45 μμ, ο/η Tim Chase έγραψε: On 2013-11-05 17:39, Nick the Gr33k wrote: data = infile.readlines You're assigning it to the bound function rather than calling the function. Use the "call" operator: data = infile.readlines() -tkc -- infile=open(&qu

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 3:15 μμ, ο/η Dave Angel έγραψε: On Tue, 05 Nov 2013 14:25:41 +0200, Nick the Gr33k wrote: i tried inserting a type function to notify me of the datatype of 'data' but that didnt help too. What did that print show ? In what way didn't it help? It said the type

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 1:49 μμ, ο/η Steven D'Aprano έγραψε: On Tue, 05 Nov 2013 12:33:49 +0200, Nick the Gr33k wrote: Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: Did you read the documentation of fetchone? fetchone is like fetchall except from the fact that the former returned a r

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: Did you read the documentation of fetchone? fetchone is like fetchall except from the fact that the former returned a row of data while the latter returned a list of rows of data. I dont know why it copmains about: TypeError: 'NoneType' o

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 11:34 πμ, ο/η Nick the Gr33k έγραψε: Στις 5/11/2013 11:10 πμ, ο/η M.F. έγραψε: On 11/05/2013 04:54 PM, Nick the Gr33k wrote: === data = cur.fetchall data = cur.fetchall() That is what the stack trace and Christ tried to inform you. for row in data

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 11:10 πμ, ο/η M.F. έγραψε: On 11/05/2013 04:54 PM, Nick the Gr33k wrote: === data = cur.fetchall data = cur.fetchall() That is what the stack trace and Christ tried to inform you. for row in data: === The only thing i can understand by looking the

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 10:21 πμ, ο/η Chris Angelico έγραψε: On Tue, Nov 5, 2013 at 7:07 PM, Nick the Gr33k wrote: How is ti possible for data to be none iterable? Do you know how to call a method in Python? If not, go back to the beginning of the tutorial and start reading. If so, look through your

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 10:21 πμ, ο/η Chris Angelico έγραψε: On Tue, Nov 5, 2013 at 7:07 PM, Nick the Gr33k wrote: How is ti possible for data to be none iterable? Do you know how to call a method in Python? If not, go back to the beginning of the tutorial and start reading. If so, look through your

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 8:54 πμ, ο/η Nick the Gr33k έγραψε: Στις 5/11/2013 12:46 πμ, ο/η Denis McMahon έγραψε: On Mon, 04 Nov 2013 19:03:58 +0200, Nick the Gr33k wrote: There is no built in support in the python / mysql system for puttinga list straight into a database, because mysql does not have

Re: How to add a current string into an already existing list

2013-11-04 Thread Nick the Gr33k
Στις 5/11/2013 12:46 πμ, ο/η Denis McMahon έγραψε: On Mon, 04 Nov 2013 19:03:58 +0200, Nick the Gr33k wrote: There is no built in support in the python / mysql system for puttinga list straight into a database, because mysql does not have"collection" record type. Does postgresq

Re: How to add a current string into an already existing list

2013-11-04 Thread Nick the Gr33k
Στις 3/11/2013 2:16 μμ, ο/η Roy Smith έγραψε: In article , Gregory Ewing wrote: Nick the Gr33k wrote: I just want a mysql column type that can be eligible to store an array of elements, a list that is, no need for having a seperate extra table for that if we can have a column that can

Re: Printing appropriately based on values retrieved

2013-11-02 Thread Nick the Gr33k
Στις 2/11/2013 8:25 μμ, ο/η Nick the Gr33k έγραψε: for row in newdata: (host, refs, city, useros, browser, visits, hits, downloads) = row if downloads != 'Δεν έχει κατεβάσει ταινία': print( '' ) for n, download in enumerate( downloads ):

Printing appropriately based on values retrieved

2013-11-02 Thread Nick the Gr33k
for row in newdata: (host, refs, city, useros, browser, visits, hits, downloads) = row if downloads != 'Δεν έχει κατεβάσει ταινία': print( '' ) for n, download in enumerate( downloads ): if n == 0: op_

Re: How to add a current string into an already existing list

2013-11-02 Thread Nick the Gr33k
Στις 2/11/2013 3:03 μμ, ο/η Andreas Perstinger έγραψε: On 02.11.2013 12:58, Nick the Gr33k wrote: Trying to add the current filename into the existent 'downloads' column Somehow i don't think i just use the plus sign into an existing column. We don't try to add numbers h

How to add a current string into an already existing list

2013-11-02 Thread Nick the Gr33k
Trying to add the current filename into the existent 'downloads' column Somehow i don't think i just use the plus sign into an existing column. We don't try to add numbers here but add an extra string to an already existing array of strings(list). ==

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-02 Thread Nick the Gr33k
You can see the erro as its appearing here: http://superhost.gr/ Its weird that no single quotes are enclosing the string values though and the other bizarre thign is that 'downloads' list is tryign to fiull in all the movies. -- https://mail.python.org/mailman/listinfo/python-list

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-02 Thread Nick the Gr33k
Στις 2/11/2013 4:00 πμ, ο/η ru...@yahoo.com έγραψε: On Friday, November 1, 2013 9:04:08 AM UTC-6, Ferrous Cranus wrote: Rurpy can you help me please solve this? is enum or set column types what needed here as proper columns to store 'download' list? I'd help if I could but I don't use MySql an

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 9:12 μμ, ο/η Denis McMahon έγραψε: On Thu, 31 Oct 2013 11:32:29 +0200, Nick the Gr33k wrote: The error seen form error log is: [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] pymysql.err.InternalError: (1241, 'Operand should contain 1 column(s)') (cID,

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 7:07 μμ, ο/η Paul Simon έγραψε: If you have a list of values of the same type, but different values, you need a new table with a foreign key to the table it relates to. This is a relational database question. You can read more here: http://en.wikipedia.org/wiki/Database_normaliz

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 5:56 μμ, ο/η Joel Goldstick έγραψε: On Fri, Nov 1, 2013 at 11:25 AM, Nick the Gr33k wrote: Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: On 10/31/2013 03:24 AM, Nick the Gr33k wrote: [...] # find out if visitor has downloaded torrents in the past cur.execute

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 5:04 μμ, ο/η Nick the Gr33k έγραψε: Στις 1/11/2013 12:24 πμ, ο/η Nick the Gr33k έγραψε: Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: You set the value of 'downloads' to a list: downloads = [] if data: for torrent in data: downlo

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: On 10/31/2013 03:24 AM, Nick the Gr33k wrote: [...] # find out if visitor has downloaded torrents in the past cur.execute('''SELECT torrent FROM files WHERE host = %s''', host ) data = cur

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 12:24 πμ, ο/η Nick the Gr33k έγραψε: Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: You set the value of 'downloads' to a list: downloads = [] if data: for torrent in data: downloads.append( torrent ) and when you use 'downl

Re: Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread Nick the Gr33k
Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: You set the value of 'downloads' to a list: downloads = [] if data: for torrent in data: downloads.append( torrent ) and when you use 'downloads', use have: INSERT INTO visitors (..

Re: Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread Nick the Gr33k
Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: You set the value of 'downloads' to a list: downloads = [] if data: for torrent in data: downloads.append( torrent ) and when you use 'downloads', use have: INSERT INTO visitors (..

Re: Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread Nick the Gr33k
Στις 31/10/2013 1:19 μμ, ο/η Nick the Gr33k έγραψε: Στις 31/10/2013 11:32 πμ, ο/η Nick the Gr33k έγραψε: The error seen form error log is: [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] Traceback (most recent call last): [Thu

Re: Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread Nick the Gr33k
Στις 31/10/2013 11:32 πμ, ο/η Nick the Gr33k έγραψε: The error seen form error log is: [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] Traceback (most recent call last): [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93

Re: Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread Nick the Gr33k
The error seen form error log is: [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] Traceback (most recent call last): [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] File "/home/nikos/public_html/cgi-bin/metrites.py"

Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread Nick the Gr33k
# if first time for webpage; create new record( primary key is automatic, hit is defaulted ), if page exists then update record cur.execute('''INSERT INTO counters (url) VALUES (%s) ON DUPLICATE KEY UPDATE hits = hits + 1''', page ) # get the primary key val

Re: Cookie issue(cant fix it with anyhting)

2013-10-27 Thread Nick the Gr33k
Στις 27/10/2013 8:01 μμ, ο/η Denis McMahon έγραψε: On Sat, 26 Oct 2013 15:29:52 +0300, Nick the Gr33k wrote: Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: c

Re: Cookie issue(cant fix it with anyhting)

2013-10-27 Thread Nick the Gr33k
Στις 27/10/2013 9:25 μμ, ο/η Benjamin Schollnick έγραψε: Nikos, Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE

Re: Printing a drop down menu for a specific field.

2013-10-27 Thread Nick the Gr33k
Στις 27/10/2013 6:00 πμ, ο/η ru...@yahoo.com έγραψε: On 10/26/2013 06:11 PM, Nick the Gr33k wrote: Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε: Ah foun it had to change in you code this line: key = host, city, useros, browser, ref to this line: key = host

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-26 Thread Nick the Gr33k
Στις 27/10/2013 4:24 πμ, ο/η Piet van Oostrum έγραψε: Piet van Oostrum writes: Νίκος Αλεξόπουλος writes: There is no set of cookie returned back when visitor comes from a referer. Isn't this strange? No matter if you visit a webpage as a direct hit or via a referer the cookie on the visito

Re: Printing a drop down menu for a specific field.

2013-10-26 Thread Nick the Gr33k
Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε: Ah foun it had to change in you code this line: key = host, city, useros, browser, ref to this line: key = host, city, useros, browser so 'ref' wouldnt be calculated in the unique combination key. I'

Re: Printing a drop down menu for a specific field.

2013-10-26 Thread Nick the Gr33k
Στις 27/10/2013 2:31 πμ, ο/η Nick the Gr33k έγραψε: Στις 26/10/2013 9:33 μμ, ο/η ru...@yahoo.com έγραψε: On 10/20/2013 05:30 PM, Νίκος Αλεξόπουλος wrote: try: cur.execute( '''SELECT host, city, useros, browser, ref, hits, lastvisit FROM visitors WHERE counterID = (SELECT I

Re: Printing a drop down menu for a specific field.

2013-10-26 Thread Nick the Gr33k
Στις 26/10/2013 9:33 μμ, ο/η ru...@yahoo.com έγραψε: On 10/20/2013 05:30 PM, Νίκος Αλεξόπουλος wrote: try: cur.execute( '''SELECT host, city, useros, browser, ref, hits, lastvisit FROM visitors WHERE counterID = (SELECT ID FROM counters WHERE url = %s) ORDER BY lastvisit DESC''', page )

Re: Printing a drop down menu for a specific field.

2013-10-26 Thread Nick the Gr33k
Στις 26/10/2013 5:10 μμ, ο/η Nick the Gr33k έγραψε: [QUOTE=turvey]Say your data is like the following: data = [('alice', 1), ('alice', 2), ('bob', 5), ('bob', 10), ('carrie', 3)] Where the first entry is your user and the second entry is a time

Re: Cookie fucking problem

2013-10-26 Thread Nick the Gr33k
Στις 26/10/2013 6:21 μμ, ο/η Mark Lawrence έγραψε: On 26/10/2013 15:55, Nick the Gr33k wrote: Στις 26/10/2013 5:34 μμ, ο/η Mark Lawrence έγραψε: On 26/10/2013 14:27, Nick the Gr33k wrote: Buy a sex manual. No need, i can practice with your mother. An interesting combination of stupid

Re: Cookie fucking problem

2013-10-26 Thread Nick the Gr33k
Στις 26/10/2013 5:34 μμ, ο/η Mark Lawrence έγραψε: On 26/10/2013 14:27, Nick the Gr33k wrote: Buy a sex manual. No need, i can practice with your mother. -- What is now proved was at first only imagined! & WebHost <http://superhost.gr> -- https://mail.python.org/mailman/listinfo/python-list

Printing a drop down menu for a specific field.

2013-10-26 Thread Nick the Gr33k
[QUOTE=turvey]Say your data is like the following: data = [('alice', 1), ('alice', 2), ('bob', 5), ('bob', 10), ('carrie', 3)] Where the first entry is your user and the second entry is a timestamp. Your data is structured basically like this, except I stripped the irrelevant details. [CODE]

Cookie fucking problem

2013-10-26 Thread Nick the Gr33k
Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] ) cookieID = cookie['name'].value except: cookieID = 'v

Cookie issue(cant fix it with anyhting)

2013-10-26 Thread Nick the Gr33k
Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] ) cookieID = cookie['name'].value except: cookieID = 'v

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 6:36 μμ, ο/η Joel Goldstick έγραψε: On Fri, Oct 25, 2013 at 11:34 AM, Chris Angelico wrote: On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k wrote: Assiciate the cookie with the url? You mean add a domain directive to the cookie like: Do you understand: 1) what cookies are

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 6:17 μμ, ο/η Denis McMahon έγραψε: If the client is not sending the expected cookie to the server, then the most likely problem is that the client does not associate that particular cookie with the server url. If this is the case, then the problem is that when you initially sent t

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε: On 25/10/2013 13:54, Nick the Gr33k wrote: Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k wrote: Can you reproduce this simple problem on your side to see if it behaves

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k wrote: Can you reproduce this simple problem on your side to see if it behaves the same way as in me? Like I said at the beginning, no it doesn't. Go forth and wield the Google. C

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 1:51 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 9:30 PM, Nick the Gr33k wrote: Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Trace your logs. You've been told this before; are you sure the request is even getting to your server? what do you me

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Trace your logs. You've been told this before; are you sure the request is even getting to your server? what do you mean by that Chris? please be more specific. -- What is now proved was at first only imagined! & WebHost

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

2013-08-28 Thread Nick the Gr33k
Στις 29/8/2013 7:29 πμ, ο/η 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

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

2013-06-16 Thread Nick the Gr33k
On 16/6/2013 12:22 μμ, Denis McMahon wrote: On Sun, 16 Jun 2013 11:07:12 +0300, Nick the Gr33k wrote: On 16/6/2013 9:32 πμ, Denis McMahon wrote: On Sat, 15 Jun 2013 19:18:53 +0300, Nick the Gr33k wrote: In both situations we still have 2 memory units holding values, so hows that different

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

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 l

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

2013-06-16 Thread Nick the Gr33k
On 16/6/2013 4:55 πμ, Tim Roberts wrote: Nick the Gr33k wrote: Because Python lets you use arbitrary values in a Boolean context, the net result is exactly the same. What is an arbitrary value? don even knwo what arbitrary means literally in English. In a long series separated by &qu

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

2013-06-16 Thread Nick the Gr33k
On 16/6/2013 9:32 πμ, Denis McMahon wrote: On Sat, 15 Jun 2013 19:18:53 +0300, Nick the Gr33k wrote: In both situations we still have 2 memory units holding values, so hows that different? Consider that each named variable is a pointer to a memory location that holds a value. This is one of

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

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

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

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: Don't feed the troll...

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 10:54 μμ, ru...@yahoo.com wrote: On 06/15/2013 12:18 PM, rusi wrote: On Jun 15, 10:52 pm, Steven D'Aprano wrote: On Sat, 15 Jun 2013 10:36:00 -0700, rusi wrote: With you as our spamming-guru, Onward! Sky is the limit! If you're going to continue making unproductive, off-topic,

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 sc

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 nik

Re: A few questiosn about encoding

2013-06-15 Thread Nick the Gr33k
On 14/6/2013 4:58 μμ, Nick the Gr33k wrote: On 14/6/2013 1:14 μμ, Cameron Simpson wrote: Normally a character in a b'...' item represents the byte value matching the character's Unicode ordinal value. The only thing that i didn't understood is this line. First please te

Re: Don't feed the troll...

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 8:47 μμ, Steven D'Aprano wrote: I still get two copies if you CC me. That's still unnecessary and rude. If I wanted a copy emailed to me, I'd subscribe via email rather than via news. Whether you agree or not, I'd appreciate if you respect my wishes rather than try to wiggle out of

Re: Don't feed the troll...

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 7:41 μμ, Chris “Kwpolska” Warrick wrote: On Sat, Jun 15, 2013 at 5:40 PM, Steven D'Aprano wrote: On Sat, 15 Jun 2013 07:58:27 -0400, D'Arcy J.M. Cain wrote: I suggested including the poster that you are replying to. In the name of all that's good and decent in the world, why on

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 8:11 μμ, Chris “Kwpolska” Warrick wrote: On Fri, Jun 14, 2013 at 5:25 AM, alex23 wrote: On Jun 14, 2:24 am, Νικόλαος Κούρας wrote: iam researchign a solution to this as we speak. Spamming endless "ZOMG HELP ME I'M INCOMPETENT" posts isn't "research". -- http://mail.python.org/m

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

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 6:53 μμ, Michael Torrie wrote: On 06/15/2013 07:07 AM, Nick the Gr33k wrote: result = mylist (since its a no-emoty list) result.append('bar') result is mylist True Never seen the last statement before. What does that mean? result is mylist Yes. Surprisin

Re: A few questiosn about encoding

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 5:59 μμ, Roy Smith wrote: And, yes, especially in networking, everybody talks about octets when they want to make sure people understand what they mean. 1 byte = 8 bits in networking though since we do not use encoding schemes with variable lengths like utf-8 is, how do we separ

Re: A few questiosn about encoding

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 5:44 μμ, Grant Edwards wrote: There is some ambiguity in the term "byte". It used to mean the smallest addressable unit of memory (which varied in the past -- at one point, both 20 and 60 bit "bytes" were common). These days the smallest addressable unit of memory is almost always

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 12:48 μμ, Lele Gaifax wrote: but those 2 gives the same results back "k" in (name+month+year) == "k" in (name and month and year) True so both seem to work as expected. That happens only by chance: it seems you now understand the evaluation of "boolean" expressions in Python, so t

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 12:48 μμ, Lele Gaifax wrote: Nick the Gr33k writes: but those 2 gives the same results back "k" in (name+month+year) == "k" in (name and month and year) True so both seem to work as expected. That happens only by chance: it seems you now understand the ev

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

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 12:54 μμ, Lele Gaifax wrote: Nick the Gr33k writes: On 15/6/2013 8:27 πμ, Larry Hudson wrote: Also they do NOT return "a variable's truthy value", they return the variable itself. No, as seen from my above examples, what is returned after the expr eval are the a

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

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 8:27 πμ, Larry Hudson wrote: On 06/14/2013 09:56 AM, Nick the Gr33k wrote: On 14/6/2013 7:31 μμ, Steven D'Aprano wrote: On Fri, 14 Jun 2013 16:07:56 +0300, Nick the Gr33k wrote: Returning True is the same thing as returning a variable's truthy value? NO! 'T

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 3:14 πμ, Cameron Simpson wrote: On 14Jun2013 12:50, Nikos as SuperHost Support wrote: | I started another thread because the last one was !@#$'ed up by | irrelevant replies and was difficult to jeep track. | | >>> name="abcd" | >>> month="efgh" | >>> year="ijkl" | | >>> print(name o

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Nick the Gr33k
On 14/6/2013 7:42 μμ, Nobody wrote: Python implements these operators by returning the actual value which determined the result of the expression rather than simply True or False. which in turn the actual value being returned is a truthy or a falsey. That cleared the mystery in my head entirel

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 10:49 πμ, Denis McMahon wrote: On Sat, 15 Jun 2013 10:04:41 +0300, Nick the Gr33k wrote: I called my self 'Ferrous Cranus'(this is what a guy from a forum initially called me for being hard-headed :-) ) because i'm indeed hardheaded and if i believe that 1 thing sho

Re: Eval of expr with 'or' and 'and' within

2013-06-15 Thread Nick the Gr33k
On 15/6/2013 9:50 πμ, alex23 wrote: Please keep the snarky comments offlist. Tried that. He posts them back here. Alternatively, I'd ask that if you're so willing to deal with him, that the *two of you* take this show offlist instead? I'm genuinely curious as to whether he'd agree to this: gi

Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 9:45 μμ, Mark Lawrence wrote: On 14/06/2013 17:46, Mark Lawrence wrote: Sure, just give me your password. He actually offered to do just this!!! How stupid can you get? I'm so fed up with his behaviour that I've emailed the Greek Embassy in London pointing out what he's up to.

Re: Eval of expr with 'or' and 'and' within

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 7:47 μμ, Benjamin Kaplan wrote: In an "and" clause, python returns the first false value or the last value, because that will evaluate to the correct Boolean value. In an "or" clause, python returns the first true value or the last value. When Python finally got a Boolean type, no o

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

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 7:31 μμ, Steven D'Aprano wrote: On Fri, 14 Jun 2013 16:07:56 +0300, Nick the Gr33k wrote: Thanks for explaining this but i cannot follow its logic at all. My mind is stuck trying to interpret it as an English sentence: if ('Parker' and 'May' and '20

Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 7:15 μμ, Steven D'Aprano wrote: On Fri, 14 Jun 2013 18:37:50 +0300, Nick the Gr33k wrote: please take an overall look at my httpd.conf at http://pastebin.com/Pb3VbNC9 in case you want to examine somehting else. Thank you very much. PLEASE SUGGEST SOMETHING! Don't s

Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k
On 13/6/2013 9:04 μμ, Νικόλαος Κούρας wrote: Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: On 13/6/2013 6:35 μμ, Joel Goldstick wrote: [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd \\u03c5\\

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 6:21 μμ, Joel Goldstick wrote: let's cut to the chase and start with telling us what you DO know Nick. That would take less typing Well, my biggest successes up until now where to build 3 websites utilizing database saves and retrievals in PHP in Perl and later in Python with abs

Re: Eval of expr with 'or' and 'and' within

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 5:49 μμ, Grant Edwards wrote: On 2013-06-14, Nick the Gr33k wrote: I started another thread no kidding. because the last one was !@#$'ed up by irrelevant replies and was difficult to jeep track. name="abcd" month="efgh" year="ijkl" prin

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

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 4:48 μμ, Zero Piraeus wrote: : On 14 June 2013 09:07, Nick the Gr33k wrote: Thanks for explaining this but i cannot follow its logic at all. My mind is stuck trying to interpret it as an English sentence: if ('Parker' and 'May' and '2001') if (&

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 1:14 μμ, Cameron Simpson wrote: Normally a character in a b'...' item represents the byte value matching the character's Unicode ordinal value. The only thing that i didn't understood is this line. First please tell me what is a byte value \x1b is a sequence you find inside strin

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

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 3:40 μμ, Jussi Piitulainen wrote: Nick the Gr33k writes: On 14/6/2013 12:21 μμ, Jussi Piitulainen wrote: Nick the Gr33k writes: On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: 'Parker' and 'May' and '2001' '2001' But why? that expres

  1   2   >