Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread Tim Roberts
Dennis Lee Bieber wrote: > >On Sun, 12 Jun 2011 21:30:43 -0700, Tim Roberts >declaimed the following in gmane.comp.python.general: > >> More than that, any layout "more efficient" than QWERTY is practically >> meaningless. The whole "intentional inefficiency" thing in the design of >> the QWERTY

Re: Question regarding DNS resolution in urllib2

2011-06-15 Thread saurabh verma
> > > > If you edit your hosts file, it will affect where something.com points > - you can force it to be IPA and then test, then force it to IPB and > test. You'll still be downloading https://something.com so the HTTPS > handshake should work exactly the same way. > > there are issues with editin

Python for Web

2011-06-15 Thread sidRo
Is Python only for server side? -- http://mail.python.org/mailman/listinfo/python-list

R: Leo 4.9 b4 released

2011-06-15 Thread LordMax
great! I like much leo ^___^ -- http://mail.python.org/mailman/listinfo/python-list

Re: Question regarding DNS resolution in urllib2

2011-06-15 Thread Chris Angelico
On Wed, Jun 15, 2011 at 5:50 PM, saurabh verma wrote: >> If you edit your hosts file, it will affect where something.com points >> - you can force it to be IPA and then test, then force it to IPB and >> test. You'll still be downloading https://something.com so the HTTPS >> handshake should work e

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread Chris Angelico
On Wed, Jun 15, 2011 at 5:16 PM, Tim Roberts wrote: > Dennis Lee Bieber wrote: >>       Oh, there was an "inefficiency" in QWERTY -- but it only applies to >>fully manual typewriters, in which some of the more common letters were >>placed under the weakest fingers -- to slow down key strokes enou

Subprocess Startup Error

2011-06-15 Thread Dan Riner
I just installed Python 3.2 and when starting the GUI from the start menu I get a Subprocess Startup Error message : "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection." I'm running XP (SP3) and have added pytho

Re: Question regarding DNS resolution in urllib2

2011-06-15 Thread saurabh verma
> > You don't need to edit it on the server; just use any handy computer. > You need only tinker with the configuration on the client, not the > server. > Hmm true , Ok i can widen the problem statement but editing /etc/hosts still looks Ok for my test server . ( Thinking of putting this as a

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread Dotan Cohen
On Wed, Jun 15, 2011 at 11:30, Chris Angelico wrote: > Competing rumour: The layout was designed such that "typewriter" could > be typed out using only the top row, to improve demo speed by a factor > of three. > Utter nonsense. The QWERTY keyboard was - and this is verified fact - designed the w

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread Chris Angelico
On Wed, Jun 15, 2011 at 7:22 PM, Dotan Cohen wrote: > Utter nonsense. The QWERTY keyboard was - and this is verified fact - > designed the way is was because the inventor's mother in law's > initials were AS and his father is law was DF. The letter combinations > JK and L; were his childrens' init

Function within class and in modules

2011-06-15 Thread TheSaint
Hello sorry, I'm bit curious to understand what could be the difference to pack up a class for some number of functions in it and a simple module which I just import and use the similar functions? The only perspective that I think of is that class might instantiate a function several time. For m

Re: Python for Web

2011-06-15 Thread bruno.desthuilli...@gmail.com
On Jun 15, 9:50 am, sidRo wrote: > Is Python only for server side? Is it a theoretical question or a practical one ?-) More seriously: except for the old proof-of-concept Grail browser, no known browser uses Python as a client-side scripting language. -- http://mail.python.org/mailman/listinfo/

Re: Function within class and in modules

2011-06-15 Thread Roy Smith
In article , TheSaint wrote: > Hello > sorry, I'm bit curious to understand what could be the difference to pack up > a class for some number of functions in it and a simple module which I just > import and use the similar functions? If all you have is a bunch of functions, just sticking them

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread rusi
On Jun 15, 9:35 am, Dotan Cohen wrote: > On Wed, Jun 15, 2011 at 06:00, rusi wrote: > > For keyboarding (in the piano/organ sense) the weakest finger is not > > the fifth/pinky but the fourth. > > Because for the fifth you will notice that the natural movement is to > > stiffen the finger and the

integer to binary 0-padded

2011-06-15 Thread Olivier LEMAIRE
Hi there, I've been looking for 2 days for a way to convert integer to binary number 0-padded, nothing... I need to get numbers converted with a defined number of bits. For example on 8 bits 2 = 0010 I wrote the following: #!/usr/bin/env python def int2binPadded(number, size): """The

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread Dotan Cohen
On Wed, Jun 15, 2011 at 15:19, rusi wrote: >> Thank you rusi! Tell me, where can I read more about the advantages of >> each finger? Googling turns up nothing. My intention is to improved >> the Noah ergonomic keyboard layout. Thanks! > > Dont know how to answer that! I only have my experience to

Re: integer to binary 0-padded

2011-06-15 Thread Daniel Rentz
Hi, Am 15.06.2011 14:29, schrieb Olivier LEMAIRE: Hi there, I've been looking for 2 days for a way to convert integer to binary number 0-padded, nothing... I need to get numbers converted with a defined number of bits. For example on 8 bits 2 = 0010 bin(2)[2:].zfill(8) Regards Daniel --

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread rusi
On Jun 15, 5:32 pm, Dotan Cohen wrote: > Thanks. From testing small movements with my fingers I see that the > fourth finger is in fact a bit weaker than the last finger, but more > importantly, it is much less dexterous. Good to know! Most of the piano technique-icians emphasis, especially thos

Re: integer to binary 0-padded

2011-06-15 Thread Chris Angelico
On Wed, Jun 15, 2011 at 10:29 PM, Olivier LEMAIRE wrote: >    b = str(bin(number))[2:] >    if len(b) !=size: >        b = (size-len(b))*"0"+b You don't need the str() there as bin() already returns a number. Here's a relatively trivial simplification - although it does make the code more cryptic

Re: integer to binary 0-padded

2011-06-15 Thread Peter Otten
Olivier LEMAIRE wrote: > I've been looking for 2 days for a way to convert integer to binary number > 0-padded, nothing... I need to get numbers converted with a defined number > of bits. For example on 8 bits 2 = 0010 I wrote the following: > b = str(bin(number))[2:] The result of bin()

Re: integer to binary 0-padded

2011-06-15 Thread Olivier LEMAIRE
Thank you to all of you !! so finally, I can simply write : #!/usr/bin/env python def int2binPadded(number, size): """The purpose of this function is to convert integer number to binary number 0-padded.""" if type(number)!=int or number < 0: raise ValueError, "should be a

Re: integer to binary 0-padded

2011-06-15 Thread Tim Chase
On 06/15/2011 07:33 AM, Daniel Rentz wrote: Am 15.06.2011 14:29, schrieb Olivier LEMAIRE: Hi there, I've been looking for 2 days for a way to convert integer to binary number 0-padded, nothing... I need to get numbers converted with a defined number of bits. For example on 8 bits 2 = 0010

Re: integer to binary 0-padded

2011-06-15 Thread Olivier LEMAIRE
You're right, I use Python 2.6.6 -- http://mail.python.org/mailman/listinfo/python-list

Re: Function within class and in modules

2011-06-15 Thread Zach Dziura
> On Jun 15, 7:57 am, TheSaint wrote: > Hello > sorry, I'm bit curious to understand what could be the difference to pack up > a class for some number of functions in it and a simple module which I just > import and use the similar functions? > The only perspective that I think of is that class mi

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread Zach Dziura
On Jun 14, 8:22 pm, zainul franciscus wrote: > Thank you for the reply. I should have mentioned where I am hosting > the code *doh slap on the wrist. > > I am hosting the code in google > code:http://code.google.com/p/mirandafileorganizer/ > > There is a link to the user/developer guide on how to

How to form a dict out of a string by doing regex ?

2011-06-15 Thread Satyajit Sarangi
data = "GEOMETRYCOLLECTION (POINT (-8.96484375 -4.130859375000), POINT (2.021484375000 -2.63671875), POINT (-1.40625000 -11.162109375000), POINT (-11.95312500,-10.89843750), POLYGON ((-21.62109375 1.845703125000,2.46093750 2.

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread Zach Dziura
Also, can I be added to the project? Email is zcdzi...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Ravikanth
Hi all, I am a beginner in python. I need to implement a graph with multiple colors in it. In a way, I have a function which varies with respect to time and amplitude. I have time on x-axis and amplitude on y-axis. Lets say the amplitude of the graph is divided into 4 ranges, say 1-3,3-5,5-9, 10-3

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Wanderer
On Jun 15, 11:04 am, Ravikanth wrote: > Hi all, > > I am a beginner in python. I need to implement a graph with multiple > colors in it. > In a way, I have a function which varies with respect to time and > amplitude. I have time on x-axis and amplitude on y-axis. Lets say the > amplitude of the g

Re: How to form a dict out of a string by doing regex ?

2011-06-15 Thread Mel
Satyajit Sarangi wrote: > > > data = "GEOMETRYCOLLECTION (POINT (-8.96484375 > -4.130859375000), POINT (2.021484375000 -2.63671875), > POINT (-1.40625000 -11.162109375000), POINT > (-11.95312500,-10.89843750), POLYGON > ((-21.62109375 1

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread Verde Denim
I'm interested in helping out, but I'm also curious to know how this application will differentiate itself from those already in development (i.e. more robust feature set, tighter functionality, better security, or just because it is developed in Py)? Regards Jack On Wed, Jun 15, 2011 at 10:53 AM

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Ravikanth
On Jun 15, 10:32 am, Wanderer wrote: > On Jun 15, 11:04 am, Ravikanth wrote: > > > > > > > Hi all, > > > I am a beginner in python. I need to implement a graph with multiple > > colors in it. > > In a way, I have a function which varies with respect to time and > > amplitude. I have time on x-axi

Re: How to form a dict out of a string by doing regex ?

2011-06-15 Thread Miki Tebeka
One solution is https://gist.github.com/1027445. Note that you have a stray , in your last POINT. I recommend however using some kind of parser framework (PLY?). -- http://mail.python.org/mailman/listinfo/python-list

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Wanderer
On Jun 15, 12:00 pm, Ravikanth wrote: > On Jun 15, 10:32 am, Wanderer wrote: > > > > > > > > > > > On Jun 15, 11:04 am, Ravikanth wrote: > > > > Hi all, > > > > I am a beginner in python. I need to implement a graph with multiple > > > colors in it. > > > In a way, I have a function which varies

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Ravikanth
On Jun 15, 11:57 am, Wanderer wrote: > On Jun 15, 12:00 pm, Ravikanth wrote: > > > > > > > On Jun 15, 10:32 am, Wanderer wrote: > > > > On Jun 15, 11:04 am, Ravikanth wrote: > > > > > Hi all, > > > > > I am a beginner in python. I need to implement a graph with multiple > > > > colors in it. >

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Wanderer
On Jun 15, 1:28 pm, Ravikanth wrote: > On Jun 15, 11:57 am, Wanderer wrote: > > > > > > > > > > > On Jun 15, 12:00 pm, Ravikanth wrote: > > > > On Jun 15, 10:32 am, Wanderer wrote: > > > > > On Jun 15, 11:04 am, Ravikanth wrote: > > > > > > Hi all, > > > > > > I am a beginner in python. I need

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Ravikanth
On Jun 15, 12:59 pm, Wanderer wrote: > On Jun 15, 1:28 pm, Ravikanth wrote: > > > > > > > On Jun 15, 11:57 am, Wanderer wrote: > > > > On Jun 15, 12:00 pm, Ravikanth wrote: > > > > > On Jun 15, 10:32 am, Wanderer wrote: > > > > > > On Jun 15, 11:04 am, Ravikanth wrote: > > > > > > > Hi all, >

Re: How to form a dict out of a string by doing regex ?

2011-06-15 Thread Terry Reedy
On 6/15/2011 10:42 AM, Satyajit Sarangi wrote: data = "GEOMETRYCOLLECTION (POINT (-8.96484375 -4.130859375000), POINT (2.021484375000 -2.63671875), POINT (-1.40625000 -11.162109375000), POINT (-11.95312500,-10.89843750), POLYGON ((-21.62109375

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Wanderer
On Jun 15, 2:10 pm, Ravikanth wrote: > On Jun 15, 12:59 pm, Wanderer wrote: > > > > > > > > > > > On Jun 15, 1:28 pm, Ravikanth wrote: > > > > On Jun 15, 11:57 am, Wanderer wrote: > > > > > On Jun 15, 12:00 pm, Ravikanth wrote: > > > > > > On Jun 15, 10:32 am, Wanderer wrote: > > > > > > > On

Re: creating a multi colored graph with respect to the values in y-axis

2011-06-15 Thread Ravikanth
On Jun 15, 1:59 pm, Wanderer wrote: > On Jun 15, 2:10 pm, Ravikanth wrote: > > > > > > > On Jun 15, 12:59 pm, Wanderer wrote: > > > > On Jun 15, 1:28 pm, Ravikanth wrote: > > > > > On Jun 15, 11:57 am, Wanderer wrote: > > > > > > On Jun 15, 12:00 pm, Ravikanth wrote: > > > > > > > On Jun 15,

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-15 Thread Ian Kelly
On Tue, Jun 14, 2011 at 12:11 AM, Xah Lee wrote: > numerical keypad is useful to many. Most people can't touch type. Even > for touch typist, many doesn't do the number keys. So, when they need > to type credit, phone number, etc, they go for the number pad. It's not about being *able* to touch t

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread zainul franciscus
On Jun 16, 2:53 am, Zach Dziura wrote: > Also, can I be added to the project? Email is zcdzi...@gmail.com Thank you for the interest, I have added you as one of the committer. Let me know if you have any problem with the application, just IM me at gtalk, or email me. I am located in Wellington, N

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-15 Thread zainul franciscus
On Jun 16, 2:49 am, Zach Dziura wrote: > On Jun 14, 8:22 pm, zainul franciscus > wrote: > > > Thank you for the reply. I should have mentioned where I am hosting > > the code *doh slap on the wrist. > > > I am hosting the code in google > > code:http://code.google.com/p/mirandafileorganizer/ > >

Re: Python for Web

2011-06-15 Thread geremy condra
On Wed, Jun 15, 2011 at 5:11 AM, bruno.desthuilli...@gmail.com wrote: > On Jun 15, 9:50 am, sidRo wrote: >> Is Python only for server side? > > Is it a theoretical question or a practical one ?-) > > More seriously: except for the old proof-of-concept Grail browser, no > known browser uses Python

os.path and Path

2011-06-15 Thread Ethan Furman
In my continuing quest for Python Mastery (and because I felt like it ;) I decided to code a Path object so I could dispense with all the os.path.join and os.path.split and os.path.splitext, etc., etc., and so forth. While so endeavoring a couple threads came back and had a friendly little ch

Trapping MySQLdb warnings

2011-06-15 Thread Tim Johnson
Using Python 2.6.5 on linux. When using MySQLdb I am getting warnings printed to stdout, but I would like to trap, display and log those warnings. In the past I have used _mysql_exceptions.Warning, but that approach is not working in this case. My cursor is created with the relevant following co

Re: Trapping MySQLdb warnings

2011-06-15 Thread geremy condra
On Wed, Jun 15, 2011 at 6:58 PM, Tim Johnson wrote: > Using Python 2.6.5 on linux. > > When using MySQLdb I am getting warnings printed to stdout, but I would > like to trap, display and log those warnings. > > In the past I have used _mysql_exceptions.Warning, but that approach > is not working i

pycurl and MAX_RECV_SPEED_LARGE

2011-06-15 Thread Emanuel dos Reis Rodrigues
Hello Folks, I have a problem with pycurl. I need to do a download with a lower rate, + or - 1 Kb / 128bytes. I use the MAX_RECV_SPEED_LARGE setting with 128 as value. My problem is: The download take a long time to be finished. File: test.jpg 92 KB, with 128 rate, take 2.38 Minutes. T

Re: Trapping MySQLdb warnings

2011-06-15 Thread Tim Johnson
* geremy condra [110615 18:03]: > On Wed, Jun 15, 2011 at 6:58 PM, Tim Johnson wrote: > > Using Python 2.6.5 on linux. > > > > When using MySQLdb I am getting warnings printed to stdout, but I would > > like to trap, display and log those warnings. <.> > Have you tried > http://docs.python.