Re: i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no

2021-07-08 Thread Νίκος Βέργος
No, the way i have installed flask was under root account with the command pip3 install flask. But even if i installed flask under my nikos user account its evene worse as the file flask is not entered into PATH. So i guess as root i have to install flask, but then why cant it import 'run" ?

Re: How to POST html data to be handled by a route endpoint

2020-03-07 Thread Νίκος Βέργος
You will see if you create a route endpoint called 'mailform' within '/' which is an alias of 'www.py' and you also have '/mailform' in 'superhost.gr/test' when the latter tries to post data to '/mailform' instead of sending them to 'superhost.gr/test/' it sends them to '/' which is

Re: How to POST html data to be handled by a route endpoint

2020-03-07 Thread Νίκος Βέργος
Τη Σάββατο, 7 Μαρτίου 2020 - 9:00:41 μ.μ. UTC+2, ο χρήστης DL Neil έγραψε: > On 7/03/20 2:33 AM, îØî-îºî¿ïé îÆî ïüî³î¿ïé wrote: > > First i must say i use Bottle, but the same may also be the case in Flask > too. I ask here and not in sub Bottle because there are only a few people > there and i

Re: How to POST html data to be handled by a route endpoint

2020-03-07 Thread Νίκος Βέργος
î¤î· î£î¬î²î²î±ïäî¿, 7 î£î±ïüïäî-î¿ïà 2020 - 12:34:21 ï .î¼. UTC+2, î¿ ïçïüîRïâïäî·ïé DL Neil î î³ïüî±ïêîµ: > Please post the full error message and traceback. > > To clarify: is the error coming from Python or from the web server? I beleive it comes from the web server. Here it is: Error: 500

Re: How to POST html data to be handled by a route endpoint

2020-03-07 Thread Νίκος Βέργος
You will see if you create a route endpoint called 'mailform' within '/' which is an alias of 'www.py' and you also have '/mailform' in 'superhost.gr/test' when the latter tries to post data to '/mailform' instead of sending them to 'superhost.gr/test/' it sends them to '/' which is

Re: How to POST html data to be handled by a route endpoint

2020-03-07 Thread Νίκος Βέργος
Τη Σάββατο, 7 Μαρτίου 2020 - 12:34:21 π.μ. UTC+2, ο χρήστης DL Neil έγραψε: > Please post the full error message and traceback. > > To clarify: is the error coming from Python or from the web server? I beleive it comes from the web server. Here it is: Error: 500 Internal Server Error Sorry,

How to POST html data to be handled by a route endpoint

2020-03-06 Thread Νίκος Βέργος
First i must say i use Bottle, but the same may also be the case in Flask too. I ask here and not in sub Bottle because there are only a few people there and i receive no responses. Actualy since i started here let me say what i have found. Iam just trying to post html form data to the

How to POST html data to be handled by a route endpoint

2020-03-06 Thread Νίκος Βέργος
First i must say i use Bottle, but the same may also be the case in Flask too. I ask here and not in sub Bottle because there are only a few people there and i receive no responses. Actualy since i started here let me say what i have found. Iam just trying to post html form data to the

WHY it compains about the missing argument is WHAT i don't understand

2019-10-08 Thread Νίκος Βέργος
plugin = bottle_pymysql.Plugin( dbuser='user', dbpass='pass', dbname='counters', dictrows=False ) app.install(plugin) ... ... @app.route( '/' ) @auth_basic( counters.is_authenticated_user ) def listall( pymydb ): But when i try to load the app's URL like http://superhost.gr/clientele

Re: pymysql.err.InterfaceError after some hours of usage

2019-10-02 Thread Νίκος Βέργος
Τη Τετάρτη, 2 Οκτωβρίου 2019 - 7:11:52 μ.μ. UTC+3, ο χρήστης Inada Naoki έγραψε: > 2019年10月3日(木) 0:56 Νίκος Βέργος : > > > Τη Τετάρτη, 2 Οκτωβρίου 2019 - 8:26:38 π.μ. UTC+3, ο χρήστης Inada Naoki > > έγραψε: > > > MySQL connection can be closed automatically by various

Re: pymysql.err.InterfaceError after some hours of usage

2019-10-02 Thread Νίκος Βέργος
Τη Τετάρτη, 2 Οκτωβρίου 2019 - 8:26:38 π.μ. UTC+3, ο χρήστης Inada Naoki έγραψε: > MySQL connection can be closed automatically by various reasons. > For example, `wait_timeout` is the most common but not only reason for > closing the connection. > > You should connect and close MySQL connection

pymysql.err.InterfaceError after some hours of usage

2019-10-01 Thread Νίκος Βέργος
Hello, i use 'module pymysql' for connectivity in my wsgi scripts. For some reason after some hours of i.e. 'http://superhost.gr/files' i get the following error when the script tries to run: Do you know why this is happening?! Error: 500 Internal Server Error Sorry, the requested URL

Re: Convert a list with wrong encoding to utf8

2019-02-14 Thread Νίκος Βέργος
con = pymysql.connect( db = 'clientele', user = 'vergos', passwd = '***', charset = 'utf8' ) cur = con.cursor() Στις Πέμ, 14 Φεβ 2019 στις 9:13 μ.μ., ο/η Igor Korot έγραψε: > Hi, > > On Thu, Feb 14, 2019 at 1:10 PM wrote: > > > > Τη Πέμπτη, 14 Φεβρουαρίου 2019 - 8:16:40 μ.μ. UTC+2, ο

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Νίκος
Τη Τρίτη, 21 Αυγούστου 2018 - 4:39:50 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > On 08/20/2018 06:07 AM, Νίκος wrote: > > Iam trying to access the bottle web framework running on my VPS as > > > > http://superhost.gr:8080/hello > > > > i get connecti

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Νίκος
Τη Δευτέρα, 20 Αυγούστου 2018 - 7:18:16 μ.μ. UTC+3, ο χρήστης Chris Warrick έγραψε: > On Mon, 20 Aug 2018 at 18:15, Νίκος wrote: > > > > Τη Δευτέρα, 20 Αυγούστου 2018 - 9:49:00 π.μ. UTC+3, ο χρήστης Miki Tebeka > > έγραψε: > > > If you're trying to access the mac

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-20 Thread Νίκος
Τη Δευτέρα, 20 Αυγούστου 2018 - 9:49:00 π.μ. UTC+3, ο χρήστης Miki Tebeka έγραψε: > If you're trying to access the machine from another machine, you need to > change the host to '0.0.0.0'. 'localhost' is the internal interface. > > On Sunday, August 19, 2018 at 10:36:25 PM UTC+3,

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-20 Thread Νίκος
Τη Δευτέρα, 20 Αυγούστου 2018 - 7:59:06 π.μ. UTC+3, ο χρήστης dieter έγραψε: > Νίκος writes: > > i just installed bottle and flask web frameworks in my CentOS environment > > but i canno get it working even with the simpleste xample. The coonection > > is refused alw

Connection refused when tryign to run bottle/flask web framweworks

2018-08-19 Thread Νίκος
Hello, i just installed bottle and flask web frameworks in my CentOS environment but i canno get it working even with the simpleste xample. The coonection is refused always. from bottle import route, run, template @route('/hello/') def index(name): return template('Hello {{name}}!',

Re: Target WSGI script cannot be loaded as Python module.

2018-05-23 Thread Νίκος
Τη Τετάρτη, 23 Μαΐου 2018 - 6:18:13 μ.μ. UTC+3, ο χρήστης John Gordon έγραψε: > Is your web server using Python 2 or Python 3 to execute WSGI? I really dont knwo that detail. How can i check that? -- https://mail.python.org/mailman/listinfo/python-list

Re: Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Νίκος
Τη Τρίτη, 22 Μαΐου 2018 - 10:55:54 μ.μ. UTC+3, ο χρήστης Alexandre Brault > > Any ideas as to why iam getting the above error although i have python36 > > isntalled along with all modules? why can it find it? > How did you install geoip2? Was it by any chance in a virtual > environment? If it

Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Νίκος
Hello all, Iam tryign to run a bootle script iw rote as wsgi app and iam gettign the follwing eroor. === [Tue May 22 06:49:45.763808 2018] [:error] [pid 24298] [client 46.103.59.37:14500] mod_wsgi (pid=24298): Target WSGI script

Re: Escaping confusion with Python 3 + MySQL

2017-03-27 Thread Νίκος Βέργος
fugure that out cost me lots of time. Στις Δευ, 27 Μαρ 2017 στις 10:52 π.μ., ο/η Johann Spies < johann.sp...@gmail.com> έγραψε: > Νίκος, > > I am glad that you solved the problem. > > I am not using mysql but postgresql. When I get a problem using python to > communicat

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Δευτέρα, 27 Μαρτίου 2017 - 6:00:34 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Mon, Mar 27, 2017 at 1:52 PM, Νίκος Βέργος <me.on@gmail.com> wrote: > > Its NOT that i have not read it exactly, but for some strange reason i was > > under the belief that the wa

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Δευτέρα, 27 Μαρτίου 2017 - 5:43:01 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Mon, Mar 27, 2017 at 1:39 PM, Νίκος Βέργος <me.on@gmail.com> wrote: > >> MariaDB / MySQL shows part of your SQL from where they failed to parse. > >> In your case, yo

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Δευτέρα, 27 Μαρτίου 2017 - 2:27:31 π.μ. UTC+3, ο χρήστης INADA Naoki έγραψε: > > i dont have to update table set column1 = this value, column2=that value and > > so on > > Why do you think so? Did you really read the manual? > > mysql> create table test_update (a int primary key, b int, c

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 11:59:21 μ.μ. UTC+3, ο χρήστης Larry Hudson έγραψε: > On 03/26/2017 01:21 AM, Νίκος Βέργος wrote: > > print('''UPDATE visitors SET (pagesID, host, ref, location, useros, > > browser, visits) VALUES (%s, %s, %s, %s, %s, %s, %s) WHERE host LIKE &g

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 11:05:34 μ.μ. UTC+3, ο χρήστης Νίκος Βέργος έγραψε: > Τη Κυριακή, 26 Μαρτίου 2017 - 10:56:07 μ.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: > > On Mon, Mar 27, 2017 at 6:33 AM, Νίκος Βέργος <me.on@gmail.com> wrote: > > > Since i'm inc

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 10:56:07 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Mon, Mar 27, 2017 at 6:33 AM, Νίκος Βέργος <me.on@gmail.com> wrote: > > Since i'm incopetent as you suggest i'am show us your level of skills and > > expertise and provide a so

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 10:23:27 μ.μ. UTC+3, ο χρήστης bream...@gmail.com έγραψε: > On Sunday, March 26, 2017 at 4:11:54 PM UTC+1, Νίκος Βέργος wrote: > > Τη Κυριακή, 26 Μαρτίου 2017 - 5:49:00 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > > > > > The database wrapp

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 10:04:31 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Mon, Mar 27, 2017 at 5:52 AM, Νίκος Βέργος <me.on@gmail.com> wrote: > > Τη Κυριακή, 26 Μαρτίου 2017 - 9:32:13 μ.μ. UTC+3, ο χρήστης Chris Angelico > > έγραψε: > >> On Mon,

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 8:58:55 μ.μ. UTC+3, ο χρήστης alister έγραψε: > On Sun, 26 Mar 2017 07:43:51 -0700, Νίκος Βέργος wrote: > > > Τη Κυριακή, 26 Μαρτίου 2017 - 5:38:57 μ.μ. UTC+3, ο χρήστης alister > > έγραψε: > >> On Sun, 26 Mar 2017 07:24:49 -0700, Νίκος Βέ

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 9:32:13 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Mon, Mar 27, 2017 at 4:54 AM, Νίκος Βέργος <me.on@gmail.com> wrote: > > Τη Κυριακή, 26 Μαρτίου 2017 - 8:06:07 μ.μ. UTC+3, ο χρήστης INADA Naoki > > έγραψε: > >> Read my mail

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 8:06:07 μ.μ. UTC+3, ο χρήστης INADA Naoki έγραψε: > Read my mail again. > > > This error came from MySQL. If there are no logs in error_log, it's > > your configuration issue. > > > See https://dev.mysql.com/doc/refman/5.7/en/update.html for Update > > statement

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
I do not see why my UPDATE fails. cur.execute('''UPDATE visitors SET (pagesID, host, ref, location, useros, browser, visits) VALUES (%s, %s, %s, %s, %s, %s, %s)''') works i dont have to update table set column1 = this value, column2=that value and so on It's just when the LIKE clause jumps in

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Any ideas on how to make progress on that? After all its just an UPDATE with a WHERE clause?! Do you also think is DBI related issue? -- https://mail.python.org/mailman/listinfo/python-list

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Currently to avoid any misinformations my code looks as follows: domain = '.'.join( host.split('.')[-2:] ) domain_query = '%%%s' % domain cur.execute('''UPDATE visitors SET (pagesID, host, ref, location, useros, browser, visits) VALUES (%s, %s, %s, %s, %s, %s, %s) WHERE host LIKE %s''', (pID,

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 6:39:01 μ.μ. UTC+3, ο χρήστης Steve D'Aprano έγραψε: > On Mon, 27 Mar 2017 02:11 am, Νίκος Βέργος wrote: > > > I just tried: > > > > domain = '.'.join( host.split('.')[-2:] ) > > domain = '%' + domain + '%' > > > > cur.exe

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 6:28:12 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Mon, Mar 27, 2017 at 2:11 AM, Νίκος Βέργος <me.on@gmail.com> wrote: > > Τη Κυριακή, 26 Μαρτίου 2017 - 5:49:00 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > > > >> The database

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
domain = '.'.join( host.split('.')[-2:] ) domain = '%' + domain + '%' domain = '%%%s%%' % domain domain = '%{}%'.format(domain) cur.execute('''UPDATE visitors SET (pagesID, host, ref, location, useros, browser, visits) VALUES (%s, %s, %s, %s, %s, %s, %s) WHERE host LIKE "%s" ''',

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 5:49:00 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > The database wrapper won't do substitution into the middle of a string > like that. Either concatenate the literal %'s on in the SQL statement > or add them to the string before you pass it in, i.e. '%' + domain + > '%' or

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
t;>> '%%%s%%' % (42,) > '%42%' > > On Sun, Mar 26, 2017 at 11:35 PM, Νίκος Βέργος <me.on@gmail.com> > wrote: > > i have tried that 2 days ago. > > > > Problem is that you maintained space before and after '%s' which wont > work > > within like >

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
i have tried that 2 days ago. Problem is that you maintained space before and after '%s' which wont work within like How would you type it without space as in "%%s%" ? Στις Κυρ, 26 Μαρ 2017 στις 5:32 μ.μ., ο/η INADA Naoki < songofaca...@gmail.com> έγραψε: > > I MEAN HOW TO DIFFERENTIATE '%S'

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 5:38:57 μ.μ. UTC+3, ο χρήστης alister έγραψε: > On Sun, 26 Mar 2017 07:24:49 -0700, Νίκος Βέργος wrote: > > > Τη Κυριακή, 26 Μαρτίου 2017 - 5:19:27 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > > > >> You need to change the placeholders ba

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 5:19:27 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > You need to change the placeholders back. The poster who told you to > replace them was misinformed. okey altered them back to cur.execute('''UPDATE visitors SET (pagesID, host, ref, location, useros, browser, visits)

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 5:04:27 μ.μ. UTC+3, ο χρήστης INADA Naoki This error came from MySQL. If there are no logs in error_log, it's > your configuration issue. > > See https://dev.mysql.com/doc/refman/5.7/en/update.html for Update > statement syntax. cur.execute('''UPDATE visitors SET

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
cur.execute('''UPDATE visitors SET (pagesID, host, ref, location, useros, browser, visits) VALUES ({}, {}, {}, {}, {}, {}, {}) WHERE host LIKE "{}"'''.format(pID, domain, ref, location, useros, browser, lastvisit, domain) ) Same kind of output in the error-log even with this attempt. --

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 4:39:44 μ.μ. UTC+3, ο χρήστης MeV έγραψε: > On Sunday, March 26, 2017 at 6:34:30 AM UTC-7, Νίκος Βέργος wrote: > > with import cgitb; cgitb.enable() > > > > ProgrammingError(1064, "You have an error in your SQL syntax; check the > >

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Τη Κυριακή, 26 Μαρτίου 2017 - 4:39:44 μ.μ. UTC+3, ο χρήστης MeV έγραψε: > On Sunday, March 26, 2017 at 6:34:30 AM UTC-7, Νίκος Βέργος wrote: > > with import cgitb; cgitb.enable() > > > > ProgrammingError(1064, "You have an error in your SQL syntax; check the > >

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
Ths is the whole snippert i'am trying so you can see what i'm tryong to do. [code] # if bot is contained in hostname update all previous database bot hostname entries with current bot hostname for bot in bots: if bot in host:

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
with import cgitb; cgitb.enable() ProgrammingError(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(pagesID, host, ref, location, useros, browser, visits) VALUES (1, 'cyta.gr', '' at line 1") that

Escaping confusion with Python 3 + MySQL

2017-03-26 Thread Νίκος Βέργος
print('''UPDATE visitors SET (pagesID, host, ref, location, useros, browser, visits) VALUES (%s, %s, %s, %s, %s, %s, %s) WHERE host LIKE "%s"''', (pID, domain, ref, location, useros, browser, lastvisit, domain) ) prints out: UPDATE visitors SET (pagesID, host, ref, location, useros, browser,

Downloading and Sending the file to the client's browser

2017-02-02 Thread Νίκος Βέργος
== # Give user the file requested url = "http://superhost.gr/data/files/%s; % realfile response = requests.get( url, stream=True ) with open( realfile, 'wb' ) as f: f.write( response.content ) == The above code will

Re: Python3 using requests to grab HTTP Auth Data

2017-02-02 Thread Νίκος Βέργος
Τη Πέμπτη, 2 Φεβρουαρίου 2017 - 9:38:47 μ.μ. UTC+2, ο χρήστης Ian έγραψε: > If you want the user to authenticate to your script and not just > whatever file you're redirecting them to, then you need to configure > the server to require authorization for the script and not just the > redirect

Re: Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Νίκος Βέργος
# Give user the file requested print('''http://superhost.gr/data/files/%s;>''' % realfile) authuser = os.environ.get( 'REMOTE_USER', 'Άγνωστος' ) print( authuser ) Trying this, feels liek i'm almost there except

Re: Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Νίκος Βέργος
Τη Πέμπτη, 2 Φεβρουαρίου 2017 - 1:51:52 π.μ. UTC+2, ο χρήστης Ian έγραψε: > On Wed, Feb 1, 2017 at 2:51 PM, Νίκος Βέργος <me.on@gmail.com> wrote: > > Τη Τετάρτη, 1 Φεβρουαρίου 2017 - 11:41:28 μ.μ. UTC+2, ο χρήστης Michael > > Torrie έγραψε: > >> On 02/01/201

Re: Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Νίκος Βέργος
Τη Τετάρτη, 1 Φεβρουαρίου 2017 - 11:41:28 μ.μ. UTC+2, ο χρήστης Michael Torrie έγραψε: > On 02/01/2017 01:51 PM, Νίκος Βέργος wrote: > > as well as input() for both user & pass combo but iam not getting in chrome > > the basic pop-up HTTP auth window. > > > >

Re: Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Νίκος Βέργος
Τη Τετάρτη, 1 Φεβρουαρίου 2017 - 9:22:46 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > You should use the input() function (called raw_input() in Python 2) > for a user name, and the getpass module for the password: I have just tried === # Give user the file

Re: Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Νίκος Βέργος
Τη Τετάρτη, 1 Φεβρουαρίου 2017 - 9:22:46 μ.μ. UTC+2, ο χρήστης Chris > You should use the input() function (called raw_input() in Python 2) > for a user name, and the getpass module for the password: i have just tried: # Give user the file requested url =

Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Νίκος Βέργος
# Give user the file requested url = "http://superhost.gr/data/files/%s; % realfile user, password = 'user', 'passwd' r = requests.get( url, auth = (user, password) ) # send auth unconditionally r.raise_for_status() == How can i ASK the user for http auth data and

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Νίκος
HELP ME Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: not related to python On Sat, Nov 16, 2013 at 8:10 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows:

Re: To whoever hacked into my Database

2013-11-11 Thread Νίκος Αλεξόπουλος
Στις 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 huge group of developers from all over the globe

Re: datetime question

2013-11-11 Thread Νίκος Αλεξόπουλος
Στις 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-10 Thread Νίκος Αλεξόπουλος
Στις 10/11/2013 12:20 πμ, ο/η Chris Angelico έγραψε: On Sun, Nov 10, 2013 at 2:32 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: And i had until i made some new changes last night, which i think i have corrected now as we speak. Continuing the arrogance. Just to put that in

Re: To whoever hacked into my Database

2013-11-10 Thread Νίκος Αλεξόπουλος
Στις 10/11/2013 3:49 μμ, ο/η Antoon Pardon έγραψε: Op 10-11-13 11:32, Νίκος Αλεξόπουλος schreef: Στις 10/11/2013 12:20 πμ, ο/η Chris Angelico έγραψε: There are two major problems with what you did here, Nikos, and they are: 1) Starting with a hopelessly insecure system and then trying

Re: To whoever hacked into my Database

2013-11-10 Thread Νίκος Αλεξόπουλος
Στις 10/11/2013 4:45 μμ, ο/η Mark Lawrence έγραψε: On 10/11/2013 10:32, Νίκος Αλεξόπουλος wrote: Ha, ha ha! I'm safe now!! No breaks in this time! She's just biding her time again. Or was it the little fingers of my team? Tell your female friend to polish her nails or do her hair

Re: To whoever hacked into my Database

2013-11-10 Thread Νίκος Αλεξόπουλος
Στις 10/11/2013 5:28 μμ, ο/η Antoon Pardon έγραψε: Op 10-11-13 16:01, Νίκος Αλεξόπουλος schreef: Στις 10/11/2013 3:49 μμ, ο/η Antoon Pardon έγραψε: Op 10-11-13 11:32, Νίκος Αλεξόπουλος schreef: Ha, ha ha! I'm safe now!! No breaks in this time! You just can't help yourself, can you? I

Re: To whoever hacked into my Database

2013-11-10 Thread Νίκος Αλεξόπουλος
Στις 10/11/2013 7:57 μμ, ο/η Petite Abeille έγραψε: On Nov 10, 2013, at 4:28 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: You are a perfect example of the arrogance of the ignorant. Finally! The Dunning–Kruger effect proven beyond a doubt. You are a moron, no doubt! Freddy

Re: To whoever hacked into my Database

2013-11-10 Thread Νίκος Αλεξόπουλος
Στις 10/11/2013 9:16 μμ, ο/η Petite Abeille έγραψε: On Nov 10, 2013, at 7:46 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: You are a moron Rumor has it you are the head of ELSTAT, the Hellenic Statistical Authority. Any truth to that? Perhaps i'm working for NSA too and i

Re: To whoever hacked into my Database

2013-11-09 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 9:54 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Στις 9/11/2013 9:05 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Στις 9/11/2013 8:37 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 5:32 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: I'am not saying out of arrogance but i was really under

Re: To whoever hacked into my Database

2013-11-09 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 10:39 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 7:31 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: if page and os.path.isfile( cgi_path + page ) in os.listdir( cgi_path ): Try pass bogus values again into my database! Well done! *slow clap* In the interests

Re: To whoever hacked into my Database

2013-11-09 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 10:39 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 7:31 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: if page and os.path.isfile( cgi_path + page ) in os.listdir( cgi_path ): Try pass bogus values again into my database! Well done! *slow clap* In the interests

Re: datetime question

2013-11-09 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 2:45 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 23:02, Νίκος Αλεξόπουλος wrote: Στις 9/11/2013 12:49 πμ, ο/η Denis McMahon έγραψε: On Sat, 09 Nov 2013 00:01:37 +0200, Νίκος Αλεξόπουλος wrote: I saw the link and i'm wondering if it can be written in 1-liner. Yes, but you

Re: To whoever hacked into my Database

2013-11-09 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 5:07 μμ, ο/η Steven D'Aprano έγραψε: On Sat, 09 Nov 2013 09:05:51 +0200, Νίκος Αλεξόπουλος wrote: Its probably unwise to post the following snippet of code that validates user input so an attacker wouldn't pass arbitrary values to my script but what the heck

Re: To whoever hacked into my Database

2013-11-09 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 5:07 μμ, ο/η Steven D'Aprano έγραψε: On Sat, 09 Nov 2013 09:05:51 +0200, Νίκος Αλεξόπουλος wrote: Its probably unwise to post the following snippet of code that validates user input so an attacker wouldn't pass arbitrary values to my script but what the heck

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 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'am pleased to see that various ppl have tried to mess my db by 1. submitted my webiste to netcraft.com

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Fortunately for me they have all failed. That means that i have *actually* made security of my scripts stronger. Now whoever called me incompetent should think

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 01:32, alex23 wrote: On 8/11/2013 7:39 AM, Ian Kelly wrote: Unless the Python installation on Nikos' system has become self-aware and is actively objecting to his code, I think that messages like Read a manual and Learn to code

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:19 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 08:59, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Fortunately for me they have all failed. That means that i have

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:19 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 08:59, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 10:31 πμ, ο/η Chris Angelico έγραψε: On Fri, Nov 8, 2013 at 7:20 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Fortunately for me they have all failed. That means that i have

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:52 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 09:34, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 11:15 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 01:32, alex23 wrote: On 8/11/2013 7:39 AM, Ian Kelly wrote: Unless the Python installation on Nikos' system has become self-aware

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:55 πμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 09:39, Νίκος Αλεξόπουλος wrote: You wouldn't be able to write the scripts i have written. All you do is criticize me, but you never ever have posted code to anything i have asked. Perhaps you can't even write a simple script

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 3:12 μμ, ο/η Tim Delaney έγραψε: On 8 November 2013 21:00, Νίκος Αλεξόπουλος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: I have never exposed my client's data. Prove otherwise. https://mail.python.org/pipermail/python-list/2013-June/648550.html Or don't you

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 3:30 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 10:00, Νίκος Αλεξόπουλος wrote: I have never exposed my client's data. Prove otherwise. If your site has successfully been hacked *TWICE* then by definition your clients data has been exposed. Didn't you also hand out your

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 4:02 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 10:09, Chris Angelico wrote: On Fri, Nov 8, 2013 at 9:00 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 08/11/2013 09:52, Chris Angelico wrote: Mar-Kal El-awrence! Able to leap tall bridges in a single bound, more powerful

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: But let's not waste any more time on this. Please get back to checking your web site. She might have been hacking again. Or little fingers from one of my highly paid contractors might have been up to no good. Oh but I forgot, you've made it

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 6:48 μμ, ο/η unknown έγραψε: On Fri, 08 Nov 2013 18:28:39 +0200, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: But let's not waste any more time on this. Please get back to checking your web site. She might have been hacking again. Or little

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 7:01 μμ, ο/η unknown έγραψε: On Fri, 08 Nov 2013 18:57:21 +0200, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 6:48 μμ, ο/η unknown έγραψε: On Fri, 08 Nov 2013 18:28:39 +0200, Νίκος Αλεξόπουλος wrote: Στις 8/11/2013 6:06 μμ, ο/η Mark Lawrence έγραψε: But let's not waste any more

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 8:19 μμ, ο/η Denis McMahon έγραψε: On Fri, 08 Nov 2013 01:28:19 +0200, Νίκος Αλεξόπουλος wrote: If i was completely incompetent i wouldn't had a working website and i wasn't able to design my customers' webpages. If your website is working, why do you keep posting here asking

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 7:11 μμ, ο/η ru...@yahoo.com έγραψε: On 11/08/2013 03:05 AM, Νίκος Αλεξόπουλος wrote: I never ignore advices. I read all answers as carefully as i can. But nevertheless sometimes i feel things should have been better implemented using my way. Not of course that i know better

datetime question

2013-11-08 Thread Νίκος Αλεξόπουλος
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( '%y-%m-%d %H:%M:%S' )# MySQL datetime

Re: datetime question

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 8/11/2013 11:29 μμ, ο/η Mark Lawrence έγραψε: On 08/11/2013 21:11, Νίκος Αλεξόπουλος wrote: 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

Re: datetime question

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 12:49 πμ, ο/η Denis McMahon έγραψε: On Sat, 09 Nov 2013 00:01:37 +0200, Νίκος Αλεξόπουλος wrote: I saw the link and i'm wondering if it can be written in 1-liner. Yes, but you have to rewrite all your code in perl to do this. Please tell me and as a git i will provide you

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 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 have to congratulate the hacher because as it seems s/he's done it again. S/he's manages to actually pass fake

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 7:54 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Στις 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 have to congratulate the hacher because as it seems s

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 8:20 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 4:54 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 will make it again

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 8:20 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 4:54 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com 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 will make it again

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 8:37 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 5:32 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: I'am not saying out of arrogance but i was really under the impression i had secure my script. And i had until i made some new changes last night, which i think i

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 8:45 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 5:35 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: I believe these hostnames belong to you: mail14.ess.barracuda.com mail0.ess.barracuda.com 89-145-108-205.as29017.net 209.133.77.167.T01713-01.above.net

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 9:19 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 6:11 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: These 4 are yours for sure: mail14.ess.barracuda.com mail0.ess.barracuda.com 209.133.77.167.T01713-01.above.net 209.133.77.164.T01713-01.above.net This one '89-145

Re: To whoever hacked into my Database

2013-11-08 Thread Νίκος Αλεξόπουλος
Στις 9/11/2013 9:05 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Στις 9/11/2013 8:37 πμ, ο/η Chris Angelico έγραψε: On Sat, Nov 9, 2013 at 5:32 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: I'am not saying out of arrogance but i was really under the impression i had secure my script. And i had

  1   2   3   4   5   6   >