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

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 4:55 πμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 14:17:32 +0300, Νικόλαος Κούρας wrote: doesn't that mean? if '=' not in ( name and month and year ): if '=' does not exists as a char inside the name and month and year variables? i think it does, but why it fai

Re: A few questiosn about encoding

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 09:09:19 +0300, Νικόλαος Κούρας wrote: > On 13/6/2013 3:13 πμ, Steven D'Aprano wrote: >> Open an interactive Python session, and run this code: >> >> c = ord(16474) >> len(c.encode('utf-8')) >> >> >> That will tell you how many bytes are used for that example. > This si actual

Re: Version Control Software

2013-06-13 Thread Serhiy Storchaka
13.06.13 05:41, Tim Chase написав(ла): -hg: last I checked, can't do octopus merges (merges with more than two parents) +git: can do octopus merges Actually it is possible in Mercurial. I just have made a merge of two files in CPython test suite (http://bugs.python.org/issue18048). -- http

Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)

2013-06-13 Thread Andreas Perstinger
On 13.06.2013 02:59, rice.cr...@gmail.com wrote: I am parsing the output of an open-iscsi command that contains severalblocks of data for each data set. Each block has the format: [SNIP] I tried using \s* to swallow the whitespace between the to iSCSI lines. No joy... However [\s\S]*? allows th

Re: Any speech to text conversation python library for Linux and mac box

2013-06-13 Thread Alan Gauld
On 13/06/13 04:59, Ranjith Kumar wrote: Hello all, I'm looking for speech to text conversation python library for linux and mac box, I found few libraries but non of them supports any of these platform. This list is for people learning the python language and standard library. If you are looki

Re: A few questiosn about encoding

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 10:11 πμ, Steven D'Aprano wrote: >>> chr(16474) '䁚' Some Chinese symbol. So code-point '䁚' has a Unicode ordinal value of 16474, correct? Correct. where in after encoding this glyph's ordinal value to binary gives us the following bytes: >>> bin(16474).encode('utf-8') b'0

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: A few questiosn about encoding

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 5:42 PM, Νικόλαος Κούρας wrote: > On 13/6/2013 10:11 πμ, Steven D'Aprano wrote: >> No! That creates a string from 16474 in base two: >> '0b10001011010' > > I disagree here. > 16474 is a number in base 10. Doing bin(16474) we get the binary > representation of number 164

Re: Problems with serial port interface

2013-06-13 Thread lionelgreenstreet
I've some other informations: i've created a class like this class CReader(QThread): def start(self, ser, priority = QThread.InheritPriority): self.ser = ser QThread.start(self, priority) self._isRunning = True self.numData=0; def run(self): pr

Re: A few questiosn about encoding

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 10:58 πμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 5:42 PM, �� wrote: On 13/6/2013 10:11 ��, Steven D'Aprano wrote: No! That creates a string from 16474 in base two: '0b10001011010' I disagree here. 16474 is a number in base 10. Doing bin(16474) we get the

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: A few questiosn about encoding

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 6:08 PM, Νικόλαος Κούρας wrote: > On 13/6/2013 10:58 πμ, Chris Angelico wrote: >> >> On Thu, Jun 13, 2013 at 5:42 PM, �� >> wrote: >> >>> On 13/6/2013 10:11 ��, Steven D'Aprano wrote: No! That creates a string from 16474 in base two: '0b1000

Re: My son wants me to teach him Python

2013-06-13 Thread TP
On Wed, Jun 12, 2013 at 1:02 PM, Chris Angelico wrote: > I put the question to the > list, and got back a number of excellent and most useful answers > regarding book recommendations, and we ended up going with (if memory > serves me) Think Python [1] > Here's a link [1] to Chris' original quest

Re: My son wants me to teach him Python

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 6:35 PM, TP wrote: > Also Chris has an "unnatural" abhorrence of Python 2.7 :) --- at least as > far as learning Python books. Thanks for hunting that thread down, I probably should have back when I mentioned it :) As to my abhorrence of Py2 - I don't hate the language (a

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: Future standard GUI library

2013-06-13 Thread Frank Millman
"Wolfgang Keller" wrote in message news:2013061819.2a044e86ab4b6defe1939...@gmx.net... > > But could it be that you have never seen an actually proficient user of > a typical "enterprise" application (ERP, MRP, whatever) "zipping" > through the GUI of his/her bread-and-butter application so

Re: Split a list into two parts based on a filter?

2013-06-13 Thread Oscar Benjamin
On 12 June 2013 19:47, Terry Reedy wrote: > The proper loop statement > > for s in songs: > (new_songs if s.is_new() else old_songs).append(s) I think I would just end up rewriting this as for s in songs: if s.is_new(): new_songs.append(s) else: old_songs.append(s) b

Re: A few questiosn about encoding

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 11:20 πμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 6:08 PM, Νικόλαος Κούρας wrote: On 13/6/2013 10:58 πμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 5:42 PM, �� wrote: On 13/6/2013 10:11 ��, Steven D'Aprano wrote: No! That creates a string from 16474 in

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: A few questiosn about encoding

2013-06-13 Thread Nobody
On Thu, 13 Jun 2013 12:01:55 +1000, Chris Angelico wrote: > On Thu, Jun 13, 2013 at 11:40 AM, Steven D'Aprano > wrote: >> The *mechanism* of UTF-8 can go up to 6 bytes (or even 7 perhaps?), but >> that's not UTF-8, that's UTF-8-plus-extra-codepoints. > > And a proper UTF-8 decoder will reject "\

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-13 Thread Nobody
On Thu, 13 Jun 2013 01:23:27 +, Steven D'Aprano wrote: > Python does have a globally-global namespace. It is called "builtins", and > you're not supposed to touch it. Of course, being Python, you can if you > want, but if you do, you are responsible for whatever toes you shoot off. > > Modify

How to pass instance into decorator function

2013-06-13 Thread Jayakrishnan Damodaran
I have a class which calculates some salary allowances. Instead of a blind calculation I need to check some conditions before I can return the calculated amount. Like if all the allowances calculated till now plus the one in progress must not exceed the total salary(this may occur since these al

Re: PYTHONPATH: dev and prod

2013-06-13 Thread jacopo
On Wednesday, June 12, 2013 5:10:05 PM UTC+1, rusi wrote: > On Jun 12, 6:29 pm, jacopo wrote: > > > > 1. How you run -- 'launch' -- the code -- from py and from prod > > > > > > when I have to test I use "python any_script.py"  but in production there > > is a c++ program that is able to wrap

Re: Version Control Software

2013-06-13 Thread Roy Smith
In article <2644d0de-9a81-41aa-b27a-cb4535964...@googlegroups.com>, cutems93 wrote: > Thank you everyone for such helpful responses! Actually, I have one more > question. Does anybody have experience with closed source version control > software? If so, why did you buy it instead of downloadin

Re: How to pass instance into decorator function

2013-06-13 Thread Peter Otten
Jayakrishnan Damodaran wrote: > I have a class which calculates some salary allowances. Instead of a blind > calculation I need to check some conditions before I can return the > calculated amount. Like if all the allowances calculated till now plus the > one in progress must not exceed the total

Re: Version Control Software

2013-06-13 Thread MRAB
On 13/06/2013 07:00, cutems93 wrote: Thank you everyone for such helpful responses! Actually, I have one more question. Does anybody have experience with closed source version control software? If so, why did you buy it instead of downloading open source software? Does closed source vcs have some

Re: Version Control Software

2013-06-13 Thread rusi
On Jun 13, 4:26 pm, MRAB wrote: > On 13/06/2013 07:00, cutems93 wrote:> Thank you everyone for such helpful > responses! Actually, I have one > > more question. Does anybody have experience with closed source > > version control software? If so, why did you buy it instead of > > downloading open

Re: A few questiosn about encoding

2013-06-13 Thread Steven D'Aprano
On Thu, 13 Jun 2013 12:41:41 +0300, Νικόλαος Κούρας wrote: >> In Python 2: > 16474 > typing 16474 in interactive session both in python 2 and 3 gives back > the number 16474 > > while we want the the binary representation of the number 16474 Python does not work that way. Ints *always* displ

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

2013-06-13 Thread Zero Piraeus
: On 12 June 2013 10:55, Neil Cerutti wrote: > > He's definitely trolling. I can't think of any other reason to > make it so hard to kill-file himself. He's not a troll, he's a help vampire: http://slash7.com/2006/12/22/vampires/ ... a particularly extreme example, I'll admit: his lack of co

Re: Re-using copyrighted code

2013-06-13 Thread Chris Angelico
On Mon, Jun 10, 2013 at 3:22 AM, Mark Janssen wrote: >>> At least partially, my confusion seems to be caused by the dichotomy of >>> the concepts of copyright and license. How do these relate to each other? >> >> A license emerges out of the commercial domain is purely about >> commercial protecti

Re: My son wants me to teach him Python

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 2:47 PM, Rick Johnson wrote: > On Wednesday, June 12, 2013 11:08:44 PM UTC-5, Chris Angelico wrote: > >> No. Definitely not. Programming does NOT begin with a GUI. It begins >> with something *simple*, so you're not stuck fiddling around with the >> unnecessary. On today's

Re: Version Control Software

2013-06-13 Thread rusi
On Jun 13, 7:30 am, Ben Finney wrote: > > You should be wary of GitHub, a very popular Git hosting site. It uses > what amount to proprietary protocols, which encourage using GitHub's > specific interface instead of native Git for your operations and hide a > lot of the needless complexity; but th

Re: Newbie: question regarding references and class relationships

2013-06-13 Thread Rui Maciel
Rick Johnson wrote: > On Monday, June 10, 2013 8:18:52 AM UTC-5, Rui Maciel wrote: >> [...] >> >> >> class Point: >> position = [] >> def __init__(self, x, y, z = 0): >> self.position = [x, y, z] > > Firstly. Why would you define a Point object that holds it's x,y

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

2013-06-13 Thread Sibylle Koczian
Am 13.06.2013 09:11, schrieb Νικόλαος Κούρας: On 13/6/2013 4:55 πμ, Steven D'Aprano wrote: The "and" operator works in a similar fashion. Experiment with it and see how it works for yourself. I read yours psots many times,all of them, tryign to understand them. But you didn't do what he re

Re: Version Control Software

2013-06-13 Thread Tim Chase
On 2013-06-13 10:20, Serhiy Storchaka wrote: > 13.06.13 05:41, Tim Chase написав(ла): > > -hg: last I checked, can't do octopus merges (merges with more > > than two parents) > > > > +git: can do octopus merges > > Actually it is possible in Mercurial. Okay, then that moots this pro/con pair. I

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

2013-06-13 Thread rusi
On Jun 12, 8:20 pm, Zero Piraeus wrote: > : > > On 12 June 2013 10:55, Neil Cerutti wrote: > > > > > He's definitely trolling. I can't think of any other reason to > > make it so hard to kill-file himself. > > He's not a troll, he's a help vampire: > >  http://slash7.com/2006/12/22/vampires/ > >

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

2013-06-13 Thread Neil Cerutti
On 2013-06-12, Zero Piraeus wrote: > On 12 June 2013 10:55, Neil Cerutti wrote: >> >> He's definitely trolling. I can't think of any other reason to >> make it so hard to kill-file himself. > > He's not a troll, he's a help vampire: > > http://slash7.com/2006/12/22/vampires/ > > ... a particula

Re: Version Control Software

2013-06-13 Thread Rui Maciel
Roy Smith wrote: > In article <98c13a55-dbf2-46a7-a2aa-8c5f052ff...@googlegroups.com>, > cutems93 wrote: > >> I am looking for an appropriate version control software for python >> development, and need professionals' help to make a good decision. >> Currently I am considering four software: gi

Newbie: standard way to add version, author and license to a source file?

2013-06-13 Thread Rui Maciel
Is there any PEP that establishes a standard way to specify the version number of a source code file, as well as its authors and what license it's distributed under? Thanks in advance, Rui Maciel -- http://mail.python.org/mailman/listinfo/python-list

Re: Version Control Software

2013-06-13 Thread Roy Smith
In article , Tim Chase wrote: > On 2013-06-13 10:20, Serhiy Storchaka wrote: > > 13.06.13 05:41, Tim Chase написав(ла): > > > -hg: last I checked, can't do octopus merges (merges with more > > > than two parents) > > > > > > +git: can do octopus merges > > > > Actually it is possible i

Re: Newbie: standard way to add version, author and license to a source file?

2013-06-13 Thread Robert Kern
On 2013-06-13 13:47, Rui Maciel wrote: Is there any PEP that establishes a standard way to specify the version number of a source code file, as well as its authors and what license it's distributed under? As for versions: http://www.python.org/dev/peps/pep-0396/ For licenses and author:

Re: Wrong website loaded when other requested

2013-06-13 Thread Mark Lawrence
On 12/06/2013 21:19, Chris Angelico wrote: On Thu, Jun 13, 2013 at 3:33 AM, Νικόλαος Κούρας wrote: Why is pointing to /home/nikos isntead of /home/dauwin ? Why is question pointing to python-list@python.org isntead [sic] of your home town and some paid support? ChrisA Surely support at su

Re: My son wants me to teach him Python

2013-06-13 Thread rusi
On Jun 13, 12:46 am, John Ladasky wrote: > Hi folks, > > My son is 17 years old.  He just took a one-year course in web page design at > his high school.  HTML is worth knowing, I suppose, and I think he has also > done a little Javascript.  He has expressed an interest in eventually wanting >

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

2013-06-13 Thread Roy Smith
In article <8a75b1e4-41e8-45b5-ac9e-6611a4698...@g9g2000pbd.googlegroups.com>, rusi wrote: > On Jun 12, 8:20 pm, Zero Piraeus wrote: > > : > > > > On 12 June 2013 10:55, Neil Cerutti wrote: > > > > > > > > > He's definitely trolling. I can't think of any other reason to > > > make it so hard

Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Dotan Cohen
I am using the Requests module to access remote URLs. Sometimes I need to URL-decode or URL-encode a string (via RFC 3986). Must I import urllib or urllib2 just to use their quote() and unquote() methods? Does not Requests have such an ability, and perhaps I just cannot find it? On Stack Overflow

Re: My son wants me to teach him Python

2013-06-13 Thread Roy Smith
In article <545a441b-0c2d-4b1e-82ae-024b011a4...@e1g2000pbo.googlegroups.com>, rusi wrote: > Python is at least two things, a language and a culture. This is true of all languages. Hang out on the PHP, Ruby, Python, etc, forums and you quickly learn that the cultures are as different (or mor

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Robert Kern
On 2013-06-13 14:05, Dotan Cohen wrote: I am using the Requests module to access remote URLs. Sometimes I need to URL-decode or URL-encode a string (via RFC 3986). Must I import urllib or urllib2 just to use their quote() and unquote() methods? Yes. Do you think there is a problem with doing so

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Dotan Cohen
On Thu, Jun 13, 2013 at 4:20 PM, Robert Kern wrote: > Yes. Do you think there is a problem with doing so? > I'm pretty sure that Requests will use either urllib or urllib2, depending on what is available on the server. I would like to use whatever Requests is currently using, rather than import t

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Robert Kern
On 2013-06-13 14:25, Dotan Cohen wrote: On Thu, Jun 13, 2013 at 4:20 PM, Robert Kern wrote: Yes. Do you think there is a problem with doing so? I'm pretty sure that Requests will use either urllib or urllib2, depending on what is available on the server. No, it doesn't. It gets its quote()

Re: My son wants me to teach him Python

2013-06-13 Thread rusi
On Jun 13, 6:07 pm, Roy Smith wrote: > In article > <545a441b-0c2d-4b1e-82ae-024b011a4...@e1g2000pbo.googlegroups.com>, > >  rusi wrote: > > Python is at least two things, a language and a culture. > > This is true of all languages.  Hang out on the PHP, Ruby, Python, etc, > forums and you quickl

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Dotan Cohen
On Thu, Jun 13, 2013 at 4:34 PM, Robert Kern wrote: >> I'm pretty sure that Requests will use either urllib or urllib2, >> depending on what is available on the server. > > No, it doesn't. It gets its quote() function from urllib always. > I see, thanks. Then that is what I will do as well! >> I

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Dotan Cohen
On Thu, Jun 13, 2013 at 4:44 PM, Burak Arslan wrote: > On 06/13/13 16:25, Dotan Cohen wrote: > paste this to your python console, it'll show you what modules requests > imports: > > import sys > p = set(sys.modules) > import requests > for m in sorted(set(sys.modules) - p): > print(m) > Thank y

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

2013-06-13 Thread Burak Arslan
On 06/13/13 16:25, Dotan Cohen wrote: On Thu, Jun 13, 2013 at 4:20 PM, Robert Kern wrote: Yes. Do you think there is a problem with doing so? I'm pretty sure that Requests will use either urllib or urllib2, depending on what is available on the server. I would like to use whatever Requests is

Re: Future standard GUI library

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 7:32 PM, Frank Millman wrote: > I am talking about what I call 'field-by-field validation'. Each field could > have one or more checks to ensure that the input is valid. Some can be done > on the client (e.g. value must be numeric), others require a round-trip to > the serv

Re: Newbie: question regarding references and class relationships

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 10:06 PM, Rui Maciel wrote: > Rick Johnson wrote: >> Firstly. Why would you define a Point object that holds it's x,y,z values >> in a list attribute? Why not store them as self.x, self.y and self.z? > > > The position in space is represented as a vector, which is then use

Re: A few questiosn about encoding

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 2:49 μμ, Steven D'Aprano wrote: Please confirm these are true statement: A code-point and the code-point's ordinal value are associated into a Unicode charset. They have the so called 1:1 mapping. So, i was under the impression that by encoding the code-point into utf-8 was the

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 9:41 πμ, Νικόλαος Κούρας wrote: On 12/6/2013 11:35 μμ, Joel Goldstick wrote: On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας mailto:supp...@superhost.gr>> wrote: == RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html)

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας wrote: > Please suggest something of why this happnes. You remind me of George. http://www.chroniclesofgeorge.com/ ChrisA -- http://mail.python.org/mailman/listinfo/python-list

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: A certainl part of an if() structure never gets executed.

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 3:22 μμ, Sibylle Koczian wrote: Am 13.06.2013 09:11, schrieb Νικόλαος Κούρας: On 13/6/2013 4:55 πμ, Steven D'Aprano wrote: The "and" operator works in a similar fashion. Experiment with it and see how it works for yourself. I read yours psots many times,all of them, tryign to un

Re: Wrong website loaded when other requested

2013-06-13 Thread Thomas Murphy
Chris, I had never encountered George before today, and now my life is a little bit better. This and "help vampires" in one morning, today's shaping up well! (now if this JSON would serialize with this #*@$ing angularJS Controller, but that's for another list) On Thu, Jun 13, 2013 at 10:28 AM,

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

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 12:16 πμ, Sibylle Koczian wrote: Am 12.06.2013 22:00, schrieb Νικόλαος Κούρας: On 12/6/2013 10:48 μμ, Sibylle Koczian wrote: if '=' not in ( name and month and year ): i understand: if '=' not in name AND '=' not in month AND '=' not in year Wrong. The "'=' not in (...)" first ev

Re: Wrong website loaded when other requested

2013-06-13 Thread Andreas Perstinger
On 13.06.2013 16:23, Νικόλαος Κούρας wrote: Please suggest something of why this happnes. That's not a Python problem. BTW both scripts at http://superhost.gr/~dauwin/metrites.py and at http://superhost.gr/~dauwin/cgi-bin/metrites.py show the world the passwords to your databases in plain text

Re: Performance of list.index - how to speed up a silly algorithm?

2013-06-13 Thread Onyxx
I would convert your list to a pandas dataframe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger wrote: > On 13.06.2013 16:23, Νικόλαος Κούρας wrote: >> >> Please suggest something of why this happnes. > > > That's not a Python problem. > > BTW both scripts at > http://superhost.gr/~dauwin/metrites.py > and at > http://superhost.gr/~dauwin/

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: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)

2013-06-13 Thread Kevin LaTona
On Jun 12, 2013, at 5:59 PM, rice.cr...@gmail.com wrote: > I am parsing the output of an open-iscsi command that contains several blocks > of data for each data set. Each block has the format: > Lastly, a version of this regex as a non-VERBOSE expression works as > expected.. Something about

Re: Wrong website loaded when other requested

2013-06-13 Thread Joel Goldstick
So Nick, I am top posting because I don't think you read your replies. I replied yesterday. Read this line below. Read the line below. READ it. READ IT.. each letter. READ it: [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd \\u03c5

Re: Performance of list.index - how to speed up a silly algorithm?

2013-06-13 Thread Dave Angel
On 06/13/2013 10:55 AM, Onyxx wrote: I would convert your list to a pandas dataframe. You're leaving a message on a public forum without any context in the message, using a title that was apparently last used in 2010. Are you really trying to reply to a message from over 3 years ago??? --

Re: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
On Thu, 13 Jun 2013, rusi wrote: > On Jun 13, 12:46 am, John Ladasky wrote: > > Hi folks, > > > > My son is 17 years old.  He just took a one-year course in web page > > design at his high school.  HTML is worth knowing, I suppose, and I > > think he has also done a little Javascript.  He has e

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: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 5:54 μμ, Andreas Perstinger wrote: That's not a Python problem. BTW both scripts at http://superhost.gr/~dauwin/metrites.py and at http://superhost.gr/~dauwin/cgi-bin/metrites.py show the world the passwords to your databases in plain text. Oh my God, i'll find an httpd.conf dire

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 2:23 AM, Νικόλαος Κούρας wrote: > Oh my God, i'll find an httpd.conf directive ot .htaccess directive that > prohibits display of source code of cgi scripts > > please tell me if you know of such a directive. Yes. This will majorly improve your security. It goes in your ht

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 6:11 μμ, Chris Angelico wrote: On Fri, Jun 14, 2013 at 12:54 AM, Andreas Perstinger wrote: On 13.06.2013 16:23, �� wrote: Please suggest something of why this happnes. That's not a Python problem. BTW both scripts at http://superhost.gr/~dauwin/metrites.py and at

Re: Wrong website loaded when other requested

2013-06-13 Thread rusi
On Jun 13, 7:28 pm, Chris Angelico wrote: > On Fri, Jun 14, 2013 at 12:23 AM, Íéêüëáïò Êïýñáò > wrote: > > Please suggest something of why this happnes. > > You remind me of George. > > http://www.chroniclesofgeorge.com/ > > ChrisA HA! You are evil -- Chris! -- http://mail.python.org/mailman/l

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
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\\u03c0\\u03ac\\u03c1\\ u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03b

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

2013-06-13 Thread Νικόλαος Κούρας
if '-' not in name + month + year: cur.execute( '''SELECT * FROM works WHERE clientsID = (SELECT id FROM clients WHERE name = %s) and MONTH(lastvisit) = %s and YEAR(lastvisit) = %s ORDER BY lastvisit ASC''', (name, month, year) ) elif '-' not in name + year:

Re: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 7:28 μμ, Chris Angelico wrote: On Fri, Jun 14, 2013 at 2:23 AM, �� wrote: Oh my God, i'll find an httpd.conf directive ot .htaccess directive that prohibits display of source code of cgi scripts please tell me if you know of such a directive. Yes. This will majorly

Re: Version Control Software

2013-06-13 Thread Grant Edwards
On 2013-06-13, Ben Finney wrote: > cutems93 writes: > >> I am looking for an appropriate version control software for python >> development, and need professionals' help to make a good decision. > >> Currently I am considering four software: git, SVN, CVS, and >> Mercurial. > > These days there i

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: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
I've reposted on another list and got this reply. At first I was sceptic a bit, but for the sake of completeness, here goes. Processing language seems to be interesting in its own right. Examples are Java-flavoured, images are ok. Regards, Tomasz Rola -- ** A C programmer asked whether comput

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: My son wants me to teach him Python

2013-06-13 Thread Paul Rubin
Tomasz Rola writes: > I've reposted on another list and got this reply. At first I was sceptic > a bit, but for the sake of completeness, here goes. Processing language > seems to be interesting in its own right. Examples are Java-flavoured, > images are ok. There is a book "Python for Kids" t

Re: My son wants me to teach him Python

2013-06-13 Thread Mark Janssen
> Despite not want to RTFM as you say, you might set him in front of > VPython, type I totally forgot PyGame -- another likely source of self-motivated learning for a teen programmer. -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: My son wants me to teach him Python

2013-06-13 Thread rusi
On Jun 13, 9:50 pm, Tomasz Rola wrote: > I've reposted on another list and got this reply. At first I was sceptic > a bit, but for the sake of completeness, here goes. Processing language > seems to be interesting in its own right. Examples are Java-flavoured, > images are ok. > > Regards, > Tomas

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 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: Wrong website loaded when other requested

2013-06-13 Thread Νικόλαος Κούρας
Τη Πέμπτη, 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\\u03c0\\u03ac\\u03c1\\ > > > > >

Re: Debugging memory leaks

2013-06-13 Thread writeson
Dieter, Thanks for the response, and you're correct, debugging memory leaks is tough! So far I haven't had much luck other than determining I have a leak. I've used objgraph to see that objects are being created that don't seem to get cleaned up. What I can't figure out so far is why, they are

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
Τη Πέμπτη, 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\\u03c0\\u03ac\\u03c1\\ > >> > >>

Re: Newbie: question regarding references and class relationships

2013-06-13 Thread Rui Maciel
Chris Angelico wrote: > Just FYI, Rick Johnson (aka Ranting Rick) is a known troll. Don't let > him goad you :) > > Follow other people's advice, and take Rick's posts with a grain of > salt. Sometimes he has a good point to make (more often when he's > talking about tkinter, which is his area of

Re: Wrong website loaded when other requested

2013-06-13 Thread Joel Goldstick
On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k 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] \

Re: Wrong website loaded when other requested

2013-06-13 Thread Andreas Perstinger
On 13.06.2013 20:10, Nick the Gr33k wrote: [nothing new] Could you please stop spamming the whole internet with your problems. Not only that you've posted two similar offtopic messages within only 6 minutes to this list, you've also crossposted to alt.os.linux (where it is offtopic too) and to

Re: Any speech to text conversation python library for Linux and mac box

2013-06-13 Thread Miki Tebeka
On Wednesday, June 12, 2013 8:59:44 PM UTC-7, Ranjith Kumar wrote: > I'm looking for speech to text conversation python library for linux and mac Not a Python library, but maybe you can work with http://cmusphinx.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging memory leaks

2013-06-13 Thread Dave Angel
On 06/13/2013 02:07 PM, writeson wrote: Dieter, Thanks for the response, and you're correct, debugging memory leaks is tough! So far I haven't had much luck other than determining I have a leak. I've used objgraph to see that objects are being created that don't seem to get cleaned up. What I

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
On 13/6/2013 9:28 μμ, Joel Goldstick wrote: On Thu, Jun 13, 2013 at 2:10 PM, Nick the Gr33k mailto:supp...@superhost.gr>> wrote: Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > On 13/6/2013 6:35 μμ, Joel Goldstick wrote: > >> [Tue Ju

Re: Wrong website loaded when other requested

2013-06-13 Thread Nick the Gr33k
On 13/6/2013 9:37 μμ, Andreas Perstinger wrote: On 13.06.2013 20:10, Nick the Gr33k wrote: [nothing new] Could you please stop spamming the whole internet with your problems. Not only that you've posted two similar offtopic messages within only 6 minutes to this list, you've also crossposted to

Re: My son wants me to teach him Python

2013-06-13 Thread russ . pobox
I couldn't read every post here so don't know if this has been suggested, or if there is perhaps a better suggestion which I haven't read in this thread, but in as far as I've read I feel the need to recommend: learnpythonthehardway.org Knowing a little JavaScript and even allot of HTML doesn't

Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread buford . lumbar
Hi, I'm new to Python. Would someone be able to write me and/or to show me how to write a simple program that: 1-follows a hyperlink from MS Excel to the internet (one of many links like this, http://www.zipdatamaps.com/76180, for e.g.) and then, 2-copies some data (a population number, e.g. 54

  1   2   >