Re: socket programming

2013-05-04 Thread Irmen de Jong
On 4-5-2013 4:13, Pedro wrote: > SERVER: > > import socket # Import socket module > > s = socket.socket() # Create a socket object > host = socket.gethostname() # Get local machine name > port = 12345# Reserve a port for your service. > s.bind((host, port))

Re: socket programming

2013-05-04 Thread Chris Angelico
On Sat, May 4, 2013 at 7:37 PM, Irmen de Jong wrote: > Bottom line: > Socket programming on this level is hugely complicated. It doesn't seem too > bad if you > start of with these simple example programs, but that's false hope. If at all > possible, > avoid direct socket programming, and use a

Re: Can read in the BMP data correctly ,but the size is not right?

2013-05-04 Thread Jimmie He
Totally right!Thanks again! -- http://mail.python.org/mailman/listinfo/python-list

About py2exe "bundle_files" setting?

2013-05-04 Thread Jimmie He
Hi Guys, Now I met an issue to use py2exe when I use bundle_files = 1.As the statement by py2exe,it means it will generate standalone EXE in stead of lots of ".dll & .pyc".But it crash when I use bundle_files = 1 or bundle_files = 2,if I use =3 it is okey.I 've search this issue by google, it

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Steven D'Aprano
On Sat, 04 May 2013 03:37:54 -0700, Jimmie He wrote: > Hi Guys, >Now I met an issue to use py2exe when I use bundle_files = 1.As the >statement by py2exe,it means it will generate standalone EXE in stead >of lots of ".dll & .pyc".But it crash when I use bundle_files = 1 or >bundle_

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Jimmie He
在 2013年5月4日星期六UTC+8下午7时31分04秒,Steven D'Aprano写道: > On Sat, 04 May 2013 03:37:54 -0700, Jimmie He wrote: > > > > > Hi Guys, > > >Now I met an issue to use py2exe when I use bundle_files = 1.As the > > >statement by py2exe,it means it will generate standalone EXE in stead > > >of lo

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Jimmie He
在 2013年5月4日星期六UTC+8下午7时31分04秒,Steven D'Aprano写道: > On Sat, 04 May 2013 03:37:54 -0700, Jimmie He wrote: > > > > > Hi Guys, > > >Now I met an issue to use py2exe when I use bundle_files = 1.As the > > >statement by py2exe,it means it will generate standalone EXE in stead > > >of lo

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Steven D'Aprano
On Sat, 04 May 2013 04:59:13 -0700, Jimmie He wrote: >I 've already put my project into GitHub,find the link below,in the >folder "Bug",I capture the expection pops up,it is not fatal blue >screen.Sorry for my non-english windows:-) > https://github.com/jimmiehe/BMPtool/tree/master/Bug

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Chris Angelico
On Sat, May 4, 2013 at 11:42 PM, Steven D'Aprano wrote: > On Sat, 04 May 2013 04:59:13 -0700, Jimmie He wrote: > >>I 've already put my project into GitHub,find the link below,in the >>folder "Bug",I capture the expection pops up,it is not fatal blue >>screen.Sorry for my non-english w

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Jimmie He
在 2013年5月4日星期六UTC+8下午10时50分14秒,Chris Angelico写道: > On Sat, May 4, 2013 at 11:42 PM, Steven D'Aprano > > wrote: > > > On Sat, 04 May 2013 04:59:13 -0700, Jimmie He wrote: > > > > > >>I 've already put my project into GitHub,find the link below,in the > > >>folder "Bug",I capture the ex

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Chris Angelico
On Sun, May 5, 2013 at 1:42 AM, Jimmie He wrote: > 在 2013年5月4日星期六UTC+8下午10时50分14秒,Chris Angelico写道: >> On Sat, May 4, 2013 at 11:42 PM, Steven D'Aprano >> >> wrote: >> >> > On Sat, 04 May 2013 04:59:13 -0700, Jimmie He wrote: >> >> > >> >> >>I 've already put my project into GitHub,find the l

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Jimmie He
在 2013年5月4日星期六UTC+8下午11时49分33秒,Chris Angelico写道: > On Sun, May 5, 2013 at 1:42 AM, Jimmie He wrote: > > > 在 2013年5月4日星期六UTC+8下午10时50分14秒,Chris Angelico写道: > > >> On Sat, May 4, 2013 at 11:42 PM, Steven D'Aprano > > >> > > >> wrote: > > >> > > >> > On Sat, 04 May 2013 04:59:13 -0700, Jimmie

Re: About py2exe "bundle_files" setting?

2013-05-04 Thread Chris Angelico
On Sun, May 5, 2013 at 2:27 AM, Jimmie He wrote: > 在 2013年5月4日星期六UTC+8下午11时49分33秒,Chris Angelico写道: >> Unfortunately it's fairly non-specific. Are you able to make _any_ >> >> program work with py2exe using bundle_files = 1? If you can make a >> >> simple "Hello, world" work but your current progr

Video tutorial for making a guess the number game in python

2013-05-04 Thread eli m
I made a video tutorial for making a guess the number game in python. You can check it out here: http://www.youtube.com/watch?v=0WSQb-7wMJQ -- http://mail.python.org/mailman/listinfo/python-list

Re: Libroffice PMT equivalent in python

2013-05-04 Thread Michael Marshall
On Thursday, April 25, 2013 6:46:01 AM UTC-4, ஆமாச்சு wrote: > Hi, > > > > Are there equivalent in any Python libraries that could match function > > like PMT in libreoffice? > > > > Refer: https://help.libreoffice.org/Calc/Financial_Functions_Part_Two#PMT > > > > -- > > > > Amachu Th

Re: Libroffice PMT equivalent in python

2013-05-04 Thread Michael Marshall
On Saturday, May 4, 2013 11:37:17 PM UTC-4, Michael Marshall wrote: > On Thursday, April 25, 2013 6:46:01 AM UTC-4, ஆமாச்சு wrote: > If the number of periods have a fractional part such as 10.5 years of 119.25 > months then besides the initial periodic payment, there may be 4 different > last pa

Re: Libroffice PMT equivalent in python

2013-05-04 Thread Michael Marshall
On Saturday, May 4, 2013 11:37:17 PM UTC-4, Michael Marshall wrote: > 4) Partial period payment > > But then if the NPER has a fraction, you may still opt to pay or collect the > payment at the actual time period but the amount you pay is the fraction of > time period times the remaining princi

Re: Collision of Two Rect

2013-05-04 Thread Tim Roberts
Alex Gardner wrote: > >When rect A collides with rect B they stick when I am wanting A to bounce off >of B. I have tried different methods, but none seem to work. My source is >here: http://pastebin.com/CBYPcubL > >The collision code itself is below: >-- ># Bounce off of the paddle >if pa

Help with loading file into an array

2013-05-04 Thread peter berrett
Hi all I am trying to build a program that can find comets in a series of astronomical images. I have already written functions to find the comet in a series of images, the data of which is stored in embedded lists. The area I am having difficulty with is take a standard gif file (1024 x 1024)