Re: [BangPypers] sending binary files over socket

2010-05-31 Thread Roshan Mathews
On Tue, Jun 1, 2010 at 10:31, murugadoss wrote: > I need to pack and send a binary file over socket. The binary file is > already existing. > Define a protocol, using http://code.google.com/p/protobuf/ That's one way. Roshan Mathews ___ BangPypers maili

[BangPypers] sending binary files over socket

2010-05-31 Thread murugadoss
hi, I need to pack and send a binary file over socket. The binary file is already existing. Do i need to unpack and read the file and then pack it once again using struct.pack or i can directly send the binary file. Since the binary file is very big,reading and packing is little difficult in my

Re: [BangPypers] time in seconds and milliseconds

2010-05-31 Thread murugadoss
It is done. Thank u -- Thanks & Regards V.Murugadoss On Tue, Jun 1, 2010 at 10:19 AM, Pradeep Gowda wrote: > On Mon, May 31, 2010 at 8:33 PM, murugadoss > wrote: > > how to represent the time in seconds and milliseconds ?A function similar > to > > gettimeofday() in c. > > > > gettimeofday(&t

Re: [BangPypers] time in seconds and milliseconds

2010-05-31 Thread Pradeep Gowda
On Mon, May 31, 2010 at 8:33 PM, murugadoss wrote: > how to represent the time in seconds and milliseconds ?A function similar to > gettimeofday() in c. > > gettimeofday(&tv, NULL) http://docs.python.org/library/time.html Which functions have you YOU tried so far? Your attempts at getting other

[BangPypers] time in seconds and milliseconds

2010-05-31 Thread murugadoss
Hi, how to represent the time in seconds and milliseconds ?A function similar to gettimeofday() in c. gettimeofday(&tv, NULL) Thanks for all ur support. -- Thanks & Regards V.Murugadoss ___ BangPypers mailing list BangPypers@python.org http://mail.py

Re: [BangPypers] packing floating data

2010-05-31 Thread Anand Balachandran Pillai
On Mon, May 31, 2010 at 6:22 PM, murugadoss wrote: > hi, > > When i pack and unpack, i am able to get real part of the float number. can > anyone please tell me, how i can pack both the real and imaginary part. Do > i > need to split n store the values ?? > Did I imagine this or did you say "im

Re: [BangPypers] packing floating data

2010-05-31 Thread Srinivas Reddy Thatiparthy
Yes, you need to pack real and imaginary parts separately.I mean ,there is no way to pass Complex object to pack method(well,struct performs conversions between Python values and C structs represented as Python bytes objects),so struct.pack('ff',realpart,imaginarypart) #provided both parts are fl

Re: [BangPypers] packing floating data

2010-05-31 Thread Anand Balachandran Pillai
On Mon, May 31, 2010 at 6:22 PM, murugadoss wrote: > hi, > > When i pack and unpack, i am able to get real part of the float number. can > anyone please tell me, how i can pack both the real and imaginary part. Do > i > need to split n store the values ?? > You seem to keep posting without takin

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread S.Ramaswamy
> > Not by default but you need to stick 2 or 3 lines into your startup > file to get it going. > > -- > > Tab completion with the standard interpreter doesn't work on Windows even with those 2-3 lines in the startup file - GNU Readline doesn't work on Windows AFAIK. With IPython you can get it wo

Re: [BangPypers] packing floating data

2010-05-31 Thread murugadoss
hi, When i pack and unpack, i am able to get real part of the float number. can anyone please tell me, how i can pack both the real and imaginary part. Do i need to split n store the values ?? -- Thanks & Regards V.Murugadoss On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim wrote: > On Mon, Ma

Re: [BangPypers] packing floating data

2010-05-31 Thread Noufal Ibrahim
On Mon, May 31, 2010 at 5:34 PM, murugadoss wrote: > Hi all, > > I am trying to pack a float value like 45.90,43.78,543.87. i am using > struct.pack( ) function. When i unpack (using struct.unpack) and print it i > am getting only real part of the number. > > Type of the variable is long, > var =

[BangPypers] packing floating data

2010-05-31 Thread murugadoss
Hi all, I am trying to pack a float value like 45.90,43.78,543.87. i am using struct.pack( ) function. When i unpack (using struct.unpack) and print it i am getting only real part of the number. Type of the variable is long, var = 45.90 data = struct.pack("!l",float(var)) when i unpack and print

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Shiv Shankar
You could try Dream Pie, its from the same guy who worked on code completion for idle. Its a pretty cool replacement for both IDLE and out of the box interpreter. -- shiv ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/li

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Noufal Ibrahim
On Mon, May 31, 2010 at 2:55 PM, Jeffrey Jose wrote: > Correct me if I'm wrong but tab-completion doesn't work out of the box for > standard python interpreter. Not by default but you need to stick 2 or 3 lines into your startup file to get it going. -- ~noufal http://nibrahim.net.in __

Re: [BangPypers] UI Designing

2010-05-31 Thread Roshan Mathews
On Mon, May 31, 2010 at 15:27, steve wrote: > http://www.geekchix.org/blog/2010/01/03/a-collection-of-printable-sketch-templates-and-sketch-books-for-wireframing/ > That's a very nice find, Steve. Although I guess it's something that only the artistically inclined could use well. I usually pref

Re: [BangPypers] Harvestman error

2010-05-31 Thread JAGANADH G
On Mon, May 31, 2010 at 3:16 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > On Sun, May 30, 2010 at 9:56 PM, JAGANADH G wrote: > > > Dear All I was trying to run Harvestman(A Python tool for web > harvesting). > > I got the following error > > http://pastebin.com/uPzUs0Xw > > > > My

Re: [BangPypers] UI Designing

2010-05-31 Thread steve
Hi, addendum ... On 05/31/2010 03:23 PM, steve wrote: Hi, [...snip...] I stumbled upon this recently which might help with 1 and 2: http://konigi.com/tools/graph-paper I am not a designer, but a quick google threw up this: http://www.geekchix.org/blog/2010/01/03/a-collection-of-printable-s

Re: [BangPypers] UI Designing

2010-05-31 Thread Kumar Gaurav
On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra wrote: > Hi. > > Can you please share what sort of UI Design tools the members on the > list currently use for designing web applications ? If you are talking about some quick wireframes and prototyping then check out http://www.balsamiq.com/builds/mo

Re: [BangPypers] UI Designing

2010-05-31 Thread steve
Hi, Please, please, please ..do not top post ! On 05/31/2010 02:58 PM, Jeffrey Jose wrote: For UI design, I 1. Start off with pen and paper, quickly mock up several designs and interaction patterns 2. Proceed onto Photoshop/Illustrator to get a feel of how things would "look" at the end. Repe

Re: [BangPypers] Harvestman error

2010-05-31 Thread Anand Balachandran Pillai
On Sun, May 30, 2010 at 9:56 PM, JAGANADH G wrote: > Dear All I was trying to run Harvestman(A Python tool for web harvesting). > I got the following error > http://pastebin.com/uPzUs0Xw > > My configuration file is http://pastebin.com/dfhiy2Q6 > > Can any body help me regarding this. > > I was t

Re: [BangPypers] UI Designing

2010-05-31 Thread Ankur Gupta
Pencil is a firefox extension with which you can make wireframes. If you want to make wireframes that look like paper prototypes then just search for stencils. On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra wrote: > Hi. > > Can you please share what sort of UI Design tools the members on the > li

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Anand Balachandran Pillai
On Mon, May 31, 2010 at 2:55 PM, Jeffrey Jose wrote: > Correct me if I'm wrong but tab-completion doesn't work out of the box for > standard python interpreter. > Not by default. But it is quite easy to enable. http://docs.python.org/library/rlcompleter.html > > -- --Anand __

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Senthil Kumaran
On Mon, May 31, 2010 at 02:55:12PM +0530, Jeffrey Jose wrote: > Correct me if I'm wrong but tab-completion doesn't work out of the box for > standard python interpreter. You are right. Tab Completion does not work out of box for standard python interpreter. But IDLE has auto-completion on . (os. w

Re: [BangPypers] UI Designing

2010-05-31 Thread Jeffrey Jose
For UI design, I 1. Start off with pen and paper, quickly mock up several designs and interaction patterns 2. Proceed onto Photoshop/Illustrator to get a feel of how things would "look" at the end. Repeat 1 and 2 over and over Once I'm ok with a design, I proceed to the next phase, probably writ

Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Jeffrey Jose
Correct me if I'm wrong but tab-completion doesn't work out of the box for standard python interpreter. On Mon, May 31, 2010 at 11:05 AM, Noufal Ibrahim wrote: > On Mon, May 31, 2010 at 8:32 AM, Jeffrey Jose > wrote: > > Dear Murugadoss, > > > > If you're starting out Python, I highly recommend