6502

Italy

gripho.it

Age: 48

Programmer... some quite outdated infos on my website (that is abandonware because I've yet to find a way to create time, so I had to take decisions instead).

19h
answered How to chain include in C++?
23h
revised reshaping csv by eliminating redundant row keys and merging fields using python
added 4 characters in body
2d
revised Why only 1024 bytes are read in socketserver example
added 189 characters in body
2d
answered understanding basics of arguments in javascript
2d
comment Why only 1024 bytes are read in socketserver example
@BunnyRabbit: no... extra data when using a TCP stream connection will remain in the OS buffer for the next call to recv (that will succeed instantly). That example is a toy (broken) server example that is not handling the case the client sends more than 1024 bytes or that data ends up being fragmented. The sendall call makes a loop for sending, but for receiving instead you're required to write a loop yourself and to define a protocol to establish when a message is complete (e.g. prepending a size or considering line terminators).
2d
comment Why only 1024 bytes are read in socketserver example
@cdarke: a recv call can proceed when there is any amount of data, not when the buffer is filled. It's of course trivial to implement a recvall (with a mandatory size parameter) by making a loop.
2d
revised Why only 1024 bytes are read in socketserver example
added 389 characters in body
2d
answered Why only 1024 bytes are read in socketserver example
2d
revised 'numpy.int64' object has no attribute 'pop'
deleted 18 characters in body
Apr
22
answered An algorithm for iterating over a rectangular area inside a 1 dimensional array (bitmapping)
Apr
19
awarded Yearling
Apr
19
awarded Yearling
Apr
18
awarded Constituent
Apr
16
revised Using strtok to find substring
added 148 characters in body
Apr
16
answered Using strtok to find substring
Apr
16
answered In Node.js, is setTimeout reliable?
Apr
15
awarded Nice Question
Apr
14
comment Call base method from non-derived code, is that possible? Legal?
Every time you think that something shouldn't be legal because it's "wrong" please remember that in most cases the C++ rule is "trust the programmer": if it's wrong the programmer won't do it. Please remember also that you can "memset" over an object instance if you're really pissed off :-D... if something cannot happen involuntarily there's no need to forbid it.
Apr
13
awarded Nice Answer
Apr
12
answered pseudo random distribution which guarantees all possible permutations of value sequence - C++
1 2 3 4 5