Re: Version Control Software

2013-06-13 Thread cutems93
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 benefits over open source in some

Re: A few questiosn about encoding

2013-06-13 Thread Νικόλαος Κούρας
On 13/6/2013 3:13 πμ, Steven D'Aprano wrote: On Wed, 12 Jun 2013 14:23:49 +0300, Νικόλαος Κούρας wrote: So, how many bytes does UTF-8 stored for codepoints 127 ? Two, three or four, depending on the codepoint. The amount of bytes needed by UTF-8 to store a code-point(character), depends

Re: Why doesn't nose see my plugin? (FIXED)

2013-06-13 Thread alex23
On Jun 13, 2:12 am, r...@panix.com (Roy Smith) wrote: Still strugging to get my head fully around setuptools :-) We should start a club! :D -- http://mail.python.org/mailman/listinfo/python-list

Re: A few questiosn about encoding

2013-06-13 Thread Νικόλαος Κούρας
On 12/6/2013 11:30 μμ, Nobody wrote: On Wed, 12 Jun 2013 14:23:49 +0300, Νικόλαος Κούρας wrote: So, how many bytes does UTF-8 stored for codepoints 127 ? U+..U+007F 1 byte U+0080..U+07FF 2 bytes U+0800..U+ 3 bytes =U+1 4 bytes 'U' stands for Unicode code-point which

Re: Debugging memory leaks

2013-06-13 Thread dieter
writeson doug.farr...@gmail.com writes: ... Anyway, my real question is how to go about debugging memory leak problems in Python, particularly for a long running server process written with Twisted. I'm not sure how to use heapy or guppy, and objgraph doesn't tell me enough to locate the

Re: A few questiosn about encoding

2013-06-13 Thread jmfauth
-- UTF-8, Unicode (consortium): 1 to 4 *Unicode Transformation Unit* UTF-8, ISO 10646: 1 to 6 *Unicode Transformation Unit* (still actual, unless tealy freshly modified) jmf -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-13 Thread dieter
Ranjith Kumar ranjitht...@gmail.com writes: 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. I found following libraries speech, dragonfly and pyspeech supports only windows and sphinx for

Re: Wrong website loaded when other requested

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

Re: Version Control Software

2013-06-13 Thread rusi
On Jun 13, 11:00 am, cutems93 ms2...@cornell.edu 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

Re: A few questiosn about encoding

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 4:21 PM, Νικόλαος Κούρας supp...@superhost.gr wrote: How can you be able to tell up to what character utf-8 needs 1 byte or 2 bytes or 3? You look up Wikipedia, using the handy links that have been put to you MULTIPLE TIMES. ChrisA --

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

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

Re: 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

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 actually wrong.

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). --

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

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

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')

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

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 4:49 PM, Νικόλαος Κούρας supp...@superhost.gr 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

Re: A few questiosn about encoding

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 5:42 PM, Νικόλαος Κούρας supp...@superhost.gr 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

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):

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, �� supp...@superhost.gr 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

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, �� supp...@superhost.gr 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

Re: A few questiosn about encoding

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

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 ros...@gmail.com 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'

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 wing...@gmail.com 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

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

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 6:15 PM, Νικόλαος Κούρας supp...@superhost.gr 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

Re: Future standard GUI library

2013-06-13 Thread Frank Millman
Wolfgang Keller felip...@gmx.net 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

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 tjre...@udel.edu 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:

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, Νικόλαος Κούρας supp...@superhost.gr wrote: On 13/6/2013 10:58 πμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 5:42 PM, �� supp...@superhost.gr wrote: On 13/6/2013 10:11 ��, Steven D'Aprano wrote:

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, �� supp...@superhost.gr 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

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 steve+comp.lang.pyt...@pearwood.info 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

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. Modifying

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

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 jacopo.pe...@gmail.com 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

Re: Version Control Software

2013-06-13 Thread Roy Smith
In article 2644d0de-9a81-41aa-b27a-cb4535964...@googlegroups.com, cutems93 ms2...@cornell.edu 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

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

Re: Version Control Software

2013-06-13 Thread rusi
On Jun 13, 4:26 pm, MRAB pyt...@mrabarnett.plus.com 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

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* display in

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 ne...@norwich.edu 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:

Re: Re-using copyrighted code

2013-06-13 Thread Chris Angelico
On Mon, Jun 10, 2013 at 3:22 AM, Mark Janssen dreamingforw...@gmail.com 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

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 rantingrickjohn...@gmail.com 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

Re: Version Control Software

2013-06-13 Thread rusi
On Jun 13, 7:30 am, Ben Finney ben+pyt...@benfinney.id.au 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

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: [...] code 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,z values

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: 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 seem to

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

2013-06-13 Thread rusi
On Jun 12, 8:20 pm, Zero Piraeus sche...@gmail.com wrote: : On 12 June 2013 10:55, Neil Cerutti ne...@norwich.edu 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:  

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

2013-06-13 Thread Neil Cerutti
On 2013-06-12, Zero Piraeus sche...@gmail.com wrote: On 12 June 2013 10:55, Neil Cerutti ne...@norwich.edu 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:

Re: Version Control Software

2013-06-13 Thread Rui Maciel
Roy Smith wrote: In article 98c13a55-dbf2-46a7-a2aa-8c5f052ff...@googlegroups.com, cutems93 ms2...@cornell.edu 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

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 mailman.3185.1371126784.3114.python-l...@python.org, Tim Chase python.l...@tim.thechases.com 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)

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, Νικόλαος Κούρας supp...@superhost.gr 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

Re: My son wants me to teach him Python

2013-06-13 Thread rusi
On Jun 13, 12:46 am, John Ladasky john_lada...@sbcglobal.net 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

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 rustompm...@gmail.com wrote: On Jun 12, 8:20 pm, Zero Piraeus sche...@gmail.com wrote: : On 12 June 2013 10:55, Neil Cerutti ne...@norwich.edu wrote: He's definitely trolling. I can't think of any

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 rustompm...@gmail.com 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

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

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 robert.k...@gmail.com 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,

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 robert.k...@gmail.com 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

Re: My son wants me to teach him Python

2013-06-13 Thread rusi
On Jun 13, 6:07 pm, Roy Smith r...@panix.com wrote: In article 545a441b-0c2d-4b1e-82ae-024b011a4...@e1g2000pbo.googlegroups.com,  rusi rustompm...@gmail.com 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,

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 robert.k...@gmail.com 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

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 burak.ars...@arskom.com.tr 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):

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 robert.k...@gmail.com 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

Re: Future standard GUI library

2013-06-13 Thread Chris Angelico
On Thu, Jun 13, 2013 at 7:32 PM, Frank Millman fr...@chagford.com 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

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 rui.mac...@gmail.com 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? snip/ The position in space is represented as a vector,

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, Νικόλαος Κούρας supp...@superhost.gr mailto:supp...@superhost.gr wrote: == RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας supp...@superhost.gr 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

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

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

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 andiper...@gmail.com 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: 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

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

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

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

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 john_lada...@sbcglobal.net 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

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

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

Re: Wrong website loaded when other requested

2013-06-13 Thread Chris Angelico
On Fri, Jun 14, 2013 at 2:23 AM, Νικόλαος Κούρας supp...@superhost.gr 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.

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 andiper...@gmail.com 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

Re: Wrong website loaded when other requested

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

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

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, �� supp...@superhost.gr 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.

Re: Version Control Software

2013-06-13 Thread Grant Edwards
On 2013-06-13, Ben Finney ben+pyt...@benfinney.id.au wrote: cutems93 ms2...@cornell.edu 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

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

2013-06-13 Thread Grant Edwards
On 2013-06-13, supp...@superhost.gr 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

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

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 rto...@ceti.pl 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

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 rto...@ceti.pl 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.

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

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

2013-06-13 Thread Grant Edwards
On 2013-06-13, supp...@superhost.gr 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

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\\

  1   2   3   >