Jonas Wielicki

Germany

sotecware.net

Age: 23

2d
awarded Informed
Feb
5
comment Dynamically select which subclass to inherit methods from?
@AndréSouto The good thing with python is, if there are any such side effects, you can exchange it for a class again. If you find that you need that curious pattern and a function won’t work, you could ask another question with the added details why a function does not work. Or simply use one of the other suggested solutions.
Feb
1
answered input from file on server prompt
Feb
1
comment input from file on server prompt
Can you add what you wrote in the comments to your question? The two points "you absolutely must wait" and "I need to make calculations based on what the server sent" are very imporant (and render shell utils useless).
Jan
31
answered My command line gets colored after I output a colored command in linux terminal
Jan
31
comment input from file on server prompt
Do you need to wait for the server to send its prompt or can you just assume that it will send the prompt and send the data right away?
Jan
30
answered Send urgent/high priority e-mails automatically
Jan
27
comment Developer survey: how many pennies were there?
What is the frequency or common factor of the spikes in the distribution? Hard to read from the axis, and I thought you might already have investigated that.
Jan
27
comment How can changing your DNS protect your online privacy?
Has anyone checked whether they don’t rewrite the DNS so that everything goes through proxy servers of theirs? I mean, that would break a helllotofthings, but would probably work just fine for HTTP(S), given SNI.
Jan
23
revised Split first column into two and preserve rest in unix
fix formatting
Jan
22
comment What would happen if magnets stopped working?
This should be at whatif.xkcd.com instead of worldbuilding. At least, the disastrous results match whatif :)
Jan
22
comment Sympy seems to break down with higher numbers
No, this also happens if you substitute "1.02" with "(102/100)", which stops sympy from using floating point values (verify by looking at the string repr of eq). At that point, it truly is trying to solve the equation symbolically, so it can’t be accuracy I think.
Jan
22
reviewed Approve suggested edit on Why M::operator<< causes a link error instead of std::cout::operator<<
Jan
22
comment Why M::operator<< causes a link error instead of std::cout::operator<<
In that case, please rephrase the question so that it is clear.
Jan
22
comment Why M::operator<< causes a link error instead of std::cout::operator<<
Possible duplicate of Undefined reference to static constexpr char[]
Jan
22
comment Idiomatic way to chose shared memory or unix semaphore key
This also only is a "shall". As soon as you have more than 2^24 files (32 bit key_t minus 8 bit project ID), there is no way to guarantee that. Considering that it is likely that the device ID plays a role too (the manpages suggest that), less than 2^24 files will suffice, maybe only 2^16 files are sufficient (my system currently has ~2^20 files on /, a fresh debian has about 2^14) so that a collision must exist. And that only if inodes are assigned sequentially and re-used when freed. ftok is a 32-bit hash function so collisions will happen and one has to prepare for it.
Jan
22
comment Idiomatic way to chose shared memory or unix semaphore key
Note that ftok (naturally) does not guarantee different values for different files (and proj_id), but only same values for same files. That values are different for simultanously existing files is only a "should" in the manpage.
Jan
21
answered Idiomatic way to chose shared memory or unix semaphore key
Jan
21
comment Split first column into two and preserve rest in unix
Why did you edit that? I tested your sed command locally and I’m seeing the output of the previous version, which is also presuambly the correct answer for the question.
Jan
21
comment Uart communication with Hex-Code in C
@MichaelWalz The signature (and the fact that tcdrain, most likely from termios(3), is also used) strongly suggests that it is write(2).
1 2 3 4 5