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

 On Mon, May 31, 2010 at 8:32 AM, Jeffrey Jose jeffjosej...@gmail.com
 wrote:
  Dear Murugadoss,
 
  If you're starting out Python, I highly recommend IPython (
  http://ipython.scipy.org/moin/ ). With its excellent tab completion, you
  would never run into an  AttributeError

 -1. Tab completion is there in the standard interpreter and ipython is
 not a substitute for reading the documentation and going through the
 tutorial which evidently the OP has not done.

 --
 ~noufal
 http://nibrahim.net.in
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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 writing
some code.

/jeff

On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra gvka...@gmail.com wrote:

 Hi.

 Can you please share what sort of UI Design tools the members on the
 list currently use for designing web applications ?


 --
 With Thanks
 Gaurav Kalra
 gvka...@googlemail.com
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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. will give
all supported methods and parameters for os module).

-- 
Senthil

Sometimes a cigar is just a cigar.
-- Sigmund Freud
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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

 Hi.

 Can you please share what sort of UI Design tools the members on the
 list currently use for designing web applications ?


 --
 With Thanks
 Gaurav Kalra
 gvka...@googlemail.com
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Harvestman error

2010-05-31 Thread Anand Balachandran Pillai
On Sun, May 30, 2010 at 9:56 PM, JAGANADH G jagana...@gmail.com 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 trying to harvest my blog with a word filter 'Python'


 There is no word filter anymore. You hit upon a bug which seems to
 still apply the word-filter code :)

 For filtering based on words or regular expressions on the page content,
 you can implement a custom crawler. It is pretty easy and a sample
 already exists. Just modify the code to suit the keyword(s) you want
 to filter.

 Look for searchingcrawler.py inside apps/samples folder and
 modify the code.



 --
 **
 JAGANADH G
 http://jaganadhg.freeflux.net/blog
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers




-- 
--Anand
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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.

Repeat 1 and 2 over and over

Once I'm ok with a design, I proceed to the next phase, probably writing
some code.



I stumbled upon this recently which might help with 1 and 2:
http://konigi.com/tools/graph-paper

cheers,
- steve

--
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] UI Designing

2010-05-31 Thread Kumar Gaurav
On Mon, May 31, 2010 at 3:52 AM, Gaurav Kalra gvka...@gmail.com 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/mockups-web-demo/

The free demo version also might suffice in lot of cases.

Balsamiq also has a useful tool in their market place which allows you
to convert the image to html.



-- 
Kumar Gaurav
Latest Post -- Gitting things right
http://wp.me/pbU2Q-2j
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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-sketch-templates-and-sketch-books-for-wireframing/

which might be interesting too !

cheers,
- steve
--
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] UI Designing

2010-05-31 Thread Roshan Mathews
On Mon, May 31, 2010 at 15:27, steve st...@lonetwin.net 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 prefer text
(there's this input, which will respond so to valid input, and so to
invalid input) and boxes and arrows on paper/whiteboard.

Roshan Mathews
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Extracting zipfile

2010-05-31 Thread Noufal Ibrahim
On Mon, May 31, 2010 at 2:55 PM, Jeffrey Jose jeffjosej...@gmail.com 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
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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/listinfo/bangpypers


[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, i am getting as 45,0,0,0. I am using byte type
while unpacking [struct.unpack(!B,data) ].

2. How to unpack short and long type data.

can anyone help me.
Thanks in advance

--
Thanks  Regards
V.Murugadoss
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] packing floating data

2010-05-31 Thread Noufal Ibrahim
On Mon, May 31, 2010 at 5:34 PM, murugadoss murugadoss2...@gmail.com 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 = 45.90
 data = struct.pack(!l,float(var))

http://docs.python.org/library/struct.html#format-characters





-- 
~noufal
http://nibrahim.net.in
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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

 On Mon, May 31, 2010 at 5:34 PM, murugadoss murugadoss2...@gmail.com
 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 = 45.90
  data = struct.pack(!l,float(var))

 http://docs.python.org/library/struct.html#format-characters





 --
 ~noufal
 http://nibrahim.net.in
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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 working on Windows with the PyReadline (
https://launchpad.net/pyreadline ). DreamPie tab-completion also works OOB
on Windows.

Ramaswamy
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] packing floating data

2010-05-31 Thread Anand Balachandran Pillai
On Mon, May 31, 2010 at 6:22 PM, murugadoss murugadoss2...@gmail.comwrote:

 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 taking the hints. Noufal's reply
 was to try and lead you to the answer which is the Python documentation
 on formatting for struct.pack method.

 Please don't expect answers to be presented on a platter. All of us
 are very nice and all that, but if you have habit (as you seem to) of
 posting basic questions without looking it up yourselves first, it
 gets a bit tiresome pretty soon.

 In this case you need to use 'f' as format character.
 Try this.

  s=struct.pack('f', 45.90)
  s
 '\x9a\x997B'
  struct.unpack('f',s)
 (45.91525878906,)

 This is mentioned quite clearly in struct module's documentation
 - Have you ever tried to see that ?

Thanks

--Anand



 --
 Thanks  Regards
 V.Murugadoss


 On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim nou...@gmail.com wrote:

  On Mon, May 31, 2010 at 5:34 PM, murugadoss murugadoss2...@gmail.com
  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 = 45.90
   data = struct.pack(!l,float(var))
 
  http://docs.python.org/library/struct.html#format-characters
 
 
 
 
 
  --
  ~noufal
  http://nibrahim.net.in
  ___
  BangPypers mailing list
  BangPypers@python.org
  http://mail.python.org/mailman/listinfo/bangpypers
 
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers




-- 
--Anand
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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

ThanksRegards,
Srinivas Reddy Thatiparthy, 
Mobile:9393099772, 



-Original Message-
From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on 
behalf of murugadoss
Sent: Mon 5/31/2010 6:22 PM
To: Bangalore Python Users Group - India
Subject: Re: [BangPypers] packing floating data
 
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 nou...@gmail.com wrote:

 On Mon, May 31, 2010 at 5:34 PM, murugadoss murugadoss2...@gmail.com
 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 = 45.90
  data = struct.pack(!l,float(var))

 http://docs.python.org/library/struct.html#format-characters





 --
 ~noufal
 http://nibrahim.net.in
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] packing floating data

2010-05-31 Thread Anand Balachandran Pillai
On Mon, May 31, 2010 at 6:22 PM, murugadoss murugadoss2...@gmail.comwrote:

 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 imaginary part of a float ? Maybe you
  meant fractional part ?



 --
 Thanks  Regards
 V.Murugadoss


 On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim nou...@gmail.com wrote:

  On Mon, May 31, 2010 at 5:34 PM, murugadoss murugadoss2...@gmail.com
  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 = 45.90
   data = struct.pack(!l,float(var))
 
  http://docs.python.org/library/struct.html#format-characters
 
 
 
 
 
  --
  ~noufal
  http://nibrahim.net.in
  ___
  BangPypers mailing list
  BangPypers@python.org
  http://mail.python.org/mailman/listinfo/bangpypers
 
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers




-- 
--Anand
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


[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.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] time in seconds and milliseconds

2010-05-31 Thread Pradeep Gowda
On Mon, May 31, 2010 at 8:33 PM, murugadoss murugadoss2...@gmail.com 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 people give you the answers is not
gaining you any friends on this list.

Let's see some effort from your side.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


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 prad...@btbytes.com wrote:

 On Mon, May 31, 2010 at 8:33 PM, murugadoss murugadoss2...@gmail.com
 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 people give you the answers is not
 gaining you any friends on this list.

 Let's see some effort from your side.
 ___
 BangPypers mailing list
 BangPypers@python.org
 http://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


[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 case.

Is there any way, i can append the file with the message and send.

As of now i am trying to read file,each byte and pack it.

If any one can help me.please send me some information.

--
Thanks  Regards
V.Murugadoss
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers