3,719 reputation
31441
bio website lekensteyn.nl
location Netherlands
age 21
visits member for 3 years, 4 months
seen 1 hour ago

Former Kubuntu desktop user, now using Arch Linux. Open-source enthusiast, programmer.

Interests: network protocols, Linux kernel, server administration, Android, breaking & fixing stuff.


1d
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.
1d
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.
1d
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.
1d
answered Simultaneously calculate multiple digests (md5, sha256)?
1d
awarded  Nice Question
1d
comment Simultaneously calculate multiple digests (md5, sha256)?
While this does output the correct checksums, this Java program calculates twice as slow as coreutils. See this commit message.
2d
comment Simultaneously calculate multiple digests (md5, sha256)?
Nice command! I already have this very useful package installed, didn't know of this funny-named utility.
2d
comment Simultaneously calculate multiple digests (md5, sha256)?
To make the output compatible with the *sum family of tools, this sed expression could be used instead: sed "s;-\$;${file//;/\\;}; (replaced the trailing - by the filename, but ensure that the filename gets properly escaped).
2d
revised Simultaneously calculate multiple digests (md5, sha256)?
Python 3 support, slightly more useful main parameter passing
2d
comment Simultaneously calculate multiple digests (md5, sha256)?
For a file of 2.3G, this version was has a comparable speed compared to md5sum and sha256sum combined (4.7s+14.2s vs 18.7s for this Python script, file in cache; 33.6s for the cold run). 64KiB vs 1MiB did not change the situation. With code commented, 5.1s was spent on md5 (n=3), 14.6s on sha1 (n=3). Tested on an i5-460M with 8GB RAM. I guess that this could further be improved by using more threads.
2d
comment Simultaneously calculate multiple digests (md5, sha256)?
See the comment to Marco, my worry is that although the command will be parallel, the slow disk gets accessed twice for the same data.
2d
comment Simultaneously calculate multiple digests (md5, sha256)?
@Marco The problem with that approach is that one command may be faster than the other, resulting in a disk cache that gets emptied and refilled later with the same data.
2d
asked Simultaneously calculate multiple digests (md5, sha256)?
Oct
22
answered Why isn't Firefox 33 use GCM on our webserver?
Oct
21
awarded  Popular Question
Oct
19
comment WMI-based hotkeys on not working
@MartinVegter Since it worked with Ubuntu 12.04, can you verify from a Ubuntu 12.04 Live USB/CD whether it still works in there? If so, could you repeat this with 14.04? If it is not working anymore, then a regression slipped in somewhere.
Oct
3
comment How do I open an incognito bash session?
unset HISTFILE has a similar effect. I have a function for this: n() { HISTFILE=; PS1="~${PS1#\~}"; }. That way I can clearly see whether I am in "incognito mode" or not.
Sep
30
awarded  Explainer
Sep
30
awarded  Popular Question
Sep
6
revised Why is there Apple copyright on lpadmin, lpq and lpstat pages?
fixed spelling