Reputation
5,173
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
7 23 49
Impact
~469k people reached

Nov
27
answered Trying to read USB Audio Device, but /dev/hidraw0 is unavailable for reading
Nov
22
comment Minimal MTA that delivers mail locally (for cron)?
@gauteh I think you are better off with a more complete MDA such as Dovecot for that use case. You are free to patch femtomail for your use case though, and maybe even send a PR in case others are interested.
Nov
20
comment Minimal MTA that delivers mail locally (for cron)?
@gauteh That is already more advanced and probably not for use on a single-user machine. More features means larger code and a greater chance of bugs. What is your use case?
Nov
16
awarded  Popular Question
Nov
11
awarded  Nice Answer
Nov
9
comment SSH Gateway in ~/.ssh/config
Use -W whenever available, our gateway somehow had a lot of nc instances spinning even if the SSH connection to the gateway was gone.
Nov
7
answered How to know where a program is stuck in linux?
Nov
6
awarded  Notable Question
Nov
3
comment What's the easiest way to find an unused local port?
Yes, I wrongly assumed that you would exit the loop and use $port in the actual program as in while ...; done; program --port $port.
Nov
2
comment What's the easiest way to find an unused local port?
This port tries to use the first port available. When you have two concurrent processes, then the port which just got checked might be reused. Re-reading your answer, it seems that you suggest to retry binding on an available port until all ports are exhausted. Assuming that the program in question can distinguish between "port in use" and other errors, it should be fine (though randomization would still make it better for unpredictability).
Nov
2
comment What's the easiest way to find an unused local port?
This races badly when multiple applications employ this trick. Mark's answer is much better as it is randomized.
Nov
2
comment What's the easiest way to find an unused local port?
Here is a one-liner (valid with Python 2 and Python 3): python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'
Nov
2
revised Shared folder between QEMU Windows guest and Linux host
added 170 characters in body
Nov
2
asked Shared folder between QEMU Windows guest and Linux host
Oct
25
accepted Simultaneously calculate multiple digests (md5, sha256)?
Oct
24
comment Simultaneously calculate multiple digests (md5, sha256)?
@liori Too bad that Debian implemented it that way, it might be worth to file a bug on this. On Arch Linux there is a moreutils-parallel name to avoid the conflict.
Oct
24
comment Simultaneously calculate multiple digests (md5, sha256)?
C or C++ will probably not matter that much as much of the runtime is spent in the OpenSSL module anyway (used by hashlib). More threads does improve speed, see this post about a multi-threaded Python script.
Oct
24
comment Simultaneously calculate multiple digests (md5, sha256)?
pee has the best interface, a time comparison with other tools can be found in this post which also demonstrates a multi-threaded Python tool.
Oct
24
answered Simultaneously calculate multiple digests (md5, sha256)?
Oct
24
awarded  Nice Question