Aug
18
asked How to generate include folder directives with CLion
Jul
20
comment Python Connection Reset by Peer
I actually am having some kind of fun. Not sure you would understand why, though :-P Take care.
Jul
17
comment Python Connection Reset by Peer
sure you did. And yet you don't know the difference between a socket object and a port. Or between the local address and the remote one. Go figure.
Jul
17
comment Python Connection Reset by Peer
The PORT will not change when accepting the connection, but yes, you'll get a new SOCKET. You may want to find out what a PORT is and what a SOCKET is.
Jul
16
comment Python Connection Reset by Peer
There is no port change when you accept a connection on the server, otherwise how would a server be able to accept multiple connections. Also, socket.accept() returns a tuple (socket, remote_address), not (socket, port).
Jul
15
revised Python Connection Reset by Peer
added remark about listen's backlog value
Jul
15
revised Python Connection Reset by Peer
added 186 characters in body
Jul
15
comment String + Variable + String formatting in Python
Also, @germn answer mentions context managers, which is a good thing.
Jul
15
comment String + Variable + String formatting in Python
Oooops (about the iter thing) :-)
Jul
15
answered Python Connection Reset by Peer
Jul
15
comment String + Variable + String formatting in Python
He's calling iter on a file. And the output makes sense, it's just not complete.
Jul
15
comment String + Variable + String formatting in Python
Why the downvote?
Jul
15
answered String + Variable + String formatting in Python
Jun
8
accepted How to mock standard library functions in D
May
6
answered Does GNU Global/gtags support taglist vim plugin?
May
4
awarded Yearling
May
4
awarded Yearling
Apr
28
comment Calculate Italian fiscal code (tax code) in C#
Sure. On wikipedia you can find the translation of the algo as defined in the law's text: - Please be aware that if I'm not mistaken there may be cases of conflicts in which the code is manually overridden (for instance picking a different letter for the name)
Jan
22
awarded Good Answer
Jan
21
comment auto save vim session on quit and auto reload session on start
this is unrelated to the question, but if you want to protect yourself from unexpected disconnections you may want to look into tmux or similars :)
1 2 3 4 5