Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-01 Thread Νικόλαος Κούρας
Τη Σάββατο, 1 Ιουνίου 2013 6:44:36 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > /home/nikos/public_html/cgi-bin/metrites.py in () > > 217 template = htmldata + counter > > 218 elif page.endswith('.py'): > > => 219 htmldata = subprocess.check_ou

Re: Cutting a deck of cards

2013-06-01 Thread Lee Crocker
>> and in fact will probably make it worse depending on how you choose >> the cutpoint. > I'm pretty sure it won't. Otherwise you'd be lowering entropy by doing > a random thing to a random thing. Doing a random thing to a random thing usually *does* lower entropy when the "random" things are a

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-01 Thread Chris Angelico
On Sun, Jun 2, 2013 at 2:36 PM, Cameron Simpson wrote: > This is not a recommendation one way or another re CentOS versus > Ubunutu; it is a recommendation not to change without a better reason. Agreed. I happen to like Debian-family Linuxes, having spent most of my Linux time on either Ubuntu or

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-01 Thread Cameron Simpson
On 01Jun2013 01:30, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= wrote: | Τη Σάββατο, 1 Ιουνίου 2013 11:21:14 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: | > On 01Jun2013 00:51, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= wrote: | > | Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris A

xsd:anyType parameter in suds!

2013-06-01 Thread Tamer Higazi
Hi people! I have a problem passing an xs:anyType Parameter in "suds". The original sample is an application, where a "PHP Array" is being passed for the remoted method. What is the same type in python to accomplish the task?! doc with sample: http://kasapi.kasserver.com/dokumentation/?open=soap

Re: Create a file in /etc/ as a non-root user

2013-06-01 Thread rusi
On Jun 2, 2:19 am, Denis McMahon wrote: > On Fri, 31 May 2013 02:12:58 -0700, BIBHU DAS wrote: > > Any Idea how to create a file in /etc as non-root user?Can i use umask > > or chmod...confused > > If you don't have root access, you probably shouldn't be trying to write > in /etc. If you need

Need to modify a Python Gui

2013-06-01 Thread matt . doolittle33
Hi everybody, I have a Python GUI that displays some data in labeled fields. As new data comes in the fields clear and the old data is lost. I need to make a text box in the GUI that will display the cleared data in a scrolling list. I also need this scrolling list to be logged to a file in c

Re: How to Begin Web Development with Python ?

2013-06-01 Thread Modulok
> > I have learnt python and used it for various purposes for scietific > > computing using sage and GUI development using Tkinter and lots more. I > > want to start web development using python My goal is to learn the web > > development in python from the basic level and understand the big web >

Re: Future standard GUI library

2013-06-01 Thread Terry Jan Reedy
On 6/1/2013 4:46 PM, Chris Angelico wrote: On Sun, Jun 2, 2013 at 4:18 AM, Wolfgang Keller wrote: And by "screenworkers" I didn't refer to programmers. Those people rarely have to use the stuff that they implement. Of course not, programmers never use software they've themselves written. Ne

Re: Create a file in /etc/ as a non-root user

2013-06-01 Thread Denis McMahon
On Fri, 31 May 2013 02:12:58 -0700, BIBHU DAS wrote: > Any Idea how to create a file in /etc as non-root user?Can i use umask > or chmod...confused If you don't have root access, you probably shouldn't be trying to write in /etc. If you need to write in /etc, explain to the sysadmin why you

Re: Future standard GUI library

2013-06-01 Thread Chris Angelico
On Sun, Jun 2, 2013 at 4:18 AM, Wolfgang Keller wrote: >> > A GUI that can not be used without taking the ten fingers off the >> > keyboard is indeed entirely unusable for any half-proficient >> > screenworker. And anyone doing actual productive screenwork every >> > day for more than just a few m

Re: Future standard GUI library

2013-06-01 Thread Wolfgang Keller
> > A GUI that can not be used without taking the ten fingers off the > > keyboard is indeed entirely unusable for any half-proficient > > screenworker. And anyone doing actual productive screenwork every > > day for more than just a few months will inevitably (have to) get > > proficient (unless c

Re: Can anyone please help me in understanding the following python code

2013-06-01 Thread rusi
On May 30, 2:48 pm, bhk...@gmail.com wrote: > Code : > - > def mergeSort(alist): >     print("Splitting ",alist) >     if len(alist)>1: >         mid = len(alist)//2 >         lefthalf = alist[:mid] >         righthalf = alist[mid:] > >         mergeSort(lefthalf) >         mergeSort(righthalf)

Re: Cutting a deck of cards

2013-06-01 Thread Joshua Landau
On 31 May 2013 12:56, Lee Crocker wrote: > Why on Earth would you want to? "Cutting" a deck makes no sense in software. > Randomize the deck properly (Google "Fisher-Yates") and start dealing. > Cutting the deck will not make it any more random, True > and in fact will probably make it worse d

problem loading Python PIL module

2013-06-01 Thread Elliot Perlman
Hi, I have a Python program which worked successfully on several PCs using version 2.2 and showed videos using the PIL module version 1.1.5 . (All the rest works but the videos.) When I try to install the downloaded PIL module on my current laptop PC, I get the error message "Could not create

Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-01 Thread Νικόλαος Κούρας
/home/nikos/public_html/cgi-bin/metrites.py in () 217 template = htmldata + counter 218 elif page.endswith('.py'): => 219 htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + page ) 220 template = htmldata.d

Re: Python Magazine

2013-06-01 Thread 88888 Dihedral
Steven D'Aprano於 2013年5月26日星期日UTC+8上午11時50分31秒寫道: > On Sat, 25 May 2013 21:54:43 -0400, Roy Smith wrote: > > > > > Of course not every IPv6 endpoint will be able to talk to every other > > > IPv6 endpoint, even if the both have globally unique addresses. But, > > > the access controls will be

Re: Cutting a deck of cards

2013-06-01 Thread Giorgos Tzampanakis
On 2013-05-26, RVic wrote: > Suppose I have a deck of cards, and I shuffle them > > import random > cards = [] > decks = 6 > cards = list(range(13 * 4 * decks)) > random.shuffle(cards) > > So now I have an array of cards. I would like to cut these cards at some > random point (between 1 and 13 * 4

Re: Python toplevel in a Web page

2013-06-01 Thread Giorgos Tzampanakis
On 2013-05-30, Franck Ditter wrote: > Hello, > I wonder if I can find some source code example > of a Python 3 toplevel box in a Web page. > Something simple, no mySQL, no Django hammer, etc. > Just the basics of the technology to get the > content of a small text editor in which the user > writes

Re: How to Begin Web Development with Python ?

2013-06-01 Thread Giorgos Tzampanakis
Chitrank Dixit wrote: > Hello Python developers > > I have learnt python and used it for various purposes for scietific > computing using sage and GUI development using Tkinter and lots more. I > want to start web development using python My goal is to learn the web > development in python from th

Re: netcdF4 variables

2013-06-01 Thread Sudheer Joseph
Thank you very much it works for me. with best regards, Sudheer On Saturday, June 1, 2013 12:51:01 PM UTC+5:30, Andreas Perstinger wrote: > On 01.06.2013 05:30, Sudheer Joseph wrote: > > > some hing like a list > > > xx=nc,variables[:] > > > should get me all variable names with out other surro

Re: Apache and suexec issue that wont let me run my python script

2013-06-01 Thread Νικόλαος Κούρας
Τη Σάββατο, 1 Ιουνίου 2013 12:03:47 μ.μ. UTC+3, ο χρήστης Alain Ketterlin έγραψε: > http://httpd.apache.org/docs/2.2/suexec.html > Read this and check your setup to see if it matches. I have already seen this Alan thank you and tried the command i mentioned but with no successfull result whats

Re: Apache and suexec issue that wont let me run my python script

2013-06-01 Thread Alain Ketterlin
Νικόλαος Κούρας writes: [...] > [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could > not open log file Here is a link to suexec documentation (at least some version of it, this is the second link provided by google): http://httpd.apache.org/docs/2.2/suexec.html Rea

Re: Apache and suexec issue that wont let me run my python script

2013-06-01 Thread Νικόλαος Κούρας
I was searchign all night long yesterday an i didn manged to get this workign. Please if someoen is expreinces with linux just help me out here a but. -- http://mail.python.org/mailman/listinfo/python-list

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-01 Thread Νικόλαος Κούρας
Τη Σάββατο, 1 Ιουνίου 2013 11:21:14 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 01Jun2013 00:51, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= > wrote: > > | Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: > > | > That would require that the repo have a 3.3

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-01 Thread Cameron Simpson
On 01Jun2013 00:51, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= wrote: | Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: | > That would require that the repo have a 3.3.2 build in it. I don't | > know the Red Hat / CentOS policies there, but I know Debian stable | >

RE: Python Magazine

2013-06-01 Thread Carlos Nepomuceno
> Date: Fri, 31 May 2013 04:11:06 -0700 > Subject: Re: Python Magazine > From: rama29...@gmail.com > To: python-list@python.org > > Hello all, > Was busy with work. Finally finished the job of registering the domain name. > Will be live soon. The url is http

Re: Apache and suexec issue that wont let me run my python script

2013-06-01 Thread Chris Angelico
On Sat, Jun 1, 2013 at 5:49 PM, Νικόλαος Κούρας wrote: > Τη Σάββατο, 1 Ιουνίου 2013 8:38:17 π.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: > >> You posted it FIFTEEN HOURS AGO on a low-traffic forum. >> Sheesh! Learn a little patience. > > I think this is enough time for to get an answer, i dont

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-01 Thread Chris Angelico
On Sat, Jun 1, 2013 at 5:51 PM, Νικόλαος Κούρας wrote: > Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: > >> That would require that the repo have a 3.3.2 build in it. I don't >> know the Red Hat / CentOS policies there, but I know Debian stable >> wouldn't have

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-01 Thread Νικόλαος Κούρας
Τη Σάββατο, 1 Ιουνίου 2013 9:18:26 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > That would require that the repo have a 3.3.2 build in it. I don't > know the Red Hat / CentOS policies there, but I know Debian stable > wouldn't have anything so new - it takes time to test things. Is there a way

Re: Apache and suexec issue that wont let me run my python script

2013-06-01 Thread Νικόλαος Κούρας
Τη Σάββατο, 1 Ιουνίου 2013 8:38:17 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > You posted it FIFTEEN HOURS AGO on a low-traffic forum. > Sheesh! Learn a little patience. I think this is enough time for to get an answer, i dont think so meone would answer from there but if you know some other

RE: Short-circuit Logic

2013-06-01 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Short-circuit Logic > Date: Fri, 31 May 2013 08:45:13 + > To: python-list@python.org > > On Fri, 31 May 2013 17:09:01 +1000, Chris Angelico wrote: > >> On Fri, May 31, 2013 at 3:13 PM, Steven D'

Re: netcdF4 variables

2013-06-01 Thread Andreas Perstinger
On 01.06.2013 05:30, Sudheer Joseph wrote: some hing like a list xx=nc,variables[:] should get me all variable names with out other surrounding stuff?? In [4]: ncf.variables Out[4]: OrderedDict([(u'LON', ), [SNIP] It looks like "variables" is an OrderedDict. Thus >>> ncf.variables.keys() sho