>
>
> I also reread the docs at https://docs.python.org/2/howto/sockets.html and
> decided to remove the "b" from "open('myfile.png', 'wb') open('myfile.png',
> 'rb') seeing how binary could be different depending on the machine and I
> have not yet learned how to deal with this.
>
Whoa, wait. I
ok so I finally got all the bytes to be transfered to the server, however I
am unable to open the image on the server; although the filed is saved as a
png file on the server, the server does not recognize the file as png
format?
I changed the loops to the following...
Client:
f = open('/Users/B
Hey Danny, yes I have been having quite a bit of fun learning to work with
sockets. Thank you for your response. I have applied what you suggested
with the exception of the "logging." I read through the logging docs and
figured logging would be learning for another day. I have a hard time
enough st
On Fri Oct 31 2014 at 10:31:20 AM Bo Morris wrote:
> Hello all, hope everyone is doing well.
>
> I have been practicing with sockets and I am trying to send a small png
> from the client to the server.
>
Hey Bo,
Very cool! Socket programming is fun, because it lets your programs start
talking
[code cut]
Hi Matt,
It looks like you're trying to write your own srt parser as part of this
problem. If you're in a hurry, you may want to look at existing parsers
that people have written. For example:
https://github.com/byroot/pysrt
But, even though it successfully kills these additi
Hello all, hope everyone is doing well.
I have been practicing with sockets and I am trying to send a small png
from the client to the server.
the client code is...
import socket
f = open('/Users/Bo/Desktop/logo_ONEConnxt.png', 'rb')
strf = f.read()
client_socket = socket.socket(socket.AF_INET,
On 31/10/14 11:07, Matt Varner wrote:
# Import sys to get at stdout (standard output) - "print" results will
be written to file
import sys
This is a bad idea.
Instead, write your strings directly to o
o.write(s)
Print adds newlines automatically(unless you explicitly suppress them).
But prin
cool, thanks guys :)
-Robert
On Thu, Oct 30, 2014 at 7:24 PM, Danny Yoo wrote:
>
>
> On Thu Oct 30 2014 at 7:58:32 AM Lukas Nemec wrote:
>
>> Hello,
>>
>> take a look at argparse library.
>>
>
>
> Hi Robert,
>
> As Lukas mentions, it sounds like you're looking for a "flag parsing"
> library.
TL:DR - Skip to "My Script: "subtrans.py"
Optional Links to (perhaps) Helpful Images:
1. The SRT download button:
http://i70.photobucket.com/albums/i82/RavingNoah/Python%20Help/tutor1_zps080f20f7.png
2. A visual comparison of my current problem (see 'Desire Versus
Reality' below):
http://i70.ph