pihentagy

Hungary

Apr
13
awarded Popular Question
Apr
9
comment Log file viewer needed with web interface
Link does not exist. Any updated link/tool?
Apr
3
comment bash/ssh test for public key authentication
I blindly copy-pasted the solution to a function of a script, and it did not work with exec.
Apr
3
comment bash/ssh test for public key authentication
What is the purpose of the exec?
Apr
2
asked ttk equivalent of tix.FileEntry
Mar
31
comment Get a file's directory in a string selected by askopenfilename
Isn't there a convenient widget for that? Like tix.FileEntry(self, dialogtype='tixDirSelectDialog') but without tix?
Mar
18
comment Generate MD5 hash in Java
good, no external libraries required
Mar
13
comment picking a random line from stdout
This one needs to read all lines to memory
Mar
13
revised bash/ssh test for public key authentication
not related to python
Mar
12
comment Get full path from within Bash script
readlink $0 will not produce output, if the script is not a symlink. Use readlink -f. OTOH instead of $0, you could also use $BASH_SOURCE. Yes, that is bash specific.
Mar
12
revised Find copy-and-paste code - for bash / shell script
added 133 characters in body; edited title
Mar
12
comment Can a Bash script tell what directory it's stored in?
Instead of the if and the while loop, simply readlink -f
Mar
12
comment Find copy-and-paste code - for bash / shell script
Is there a similar site to migrate the question to?
Mar
11
revised Find copy-and-paste code - for bash / shell script
edited title
Mar
11
comment Find copy-and-paste code - for bash / shell script
I am surprised how few people know what is a copy paste detector (and maybe downvote for that reason)
Mar
11
revised Find copy-and-paste code - for bash / shell script
added 110 characters in body
Mar
11
asked Find copy-and-paste code - for bash / shell script
Mar
7
awarded Necromancer
Mar
5
comment bash assign default value
@DanMoulding: what about : ${VERY_LONG_VARIABLE_NAME:=hello} vs. : VERY_LONG_VARIABLE_NAME=${VERY_LONG_VARIABLE_NAME:-hello}. I hope you use descriptive variable names in your code :)
Mar
3
revised rank ascii characters by intensity/darkness/lightness
added 42 characters in body
1 2 3 4 5