1d
comment What are the dark corners of Vim your mom never told you about?
I have used macros for over 20 years and never knew this time saving festure. I wonder if it is supported in the original SysV version itself or an extension of Vim.
Jan
11
comment How to change maven logging level to display only warning and errors?
This seems to work as I could disable warning and info message by setting the level to error, but unfortunately it also turned off the regular output. I was actually trying to disable some warnings while running help:evaluate target to print the value of project.version and this output (though doesn't seem to come through slf4j) also got turned off.
Jan
7
comment Can less retain colored output?
And if you forgot to specify -r option, you can just type "-r" at the less prompt. This of course works with most or all less options (i.e., -i to turn on ignorecase).
Dec
9
awarded Revival
Nov
30
comment sort associative array in awk
Apologies.. I misread the indexing code as "flipping" key/values, but after rereading it, I noticed that you are using a constantly increasing number as index, not the original value. Thank you for getting back and clarifying it.
Nov
30
comment Sort associative array with AWK
Is the numeric sort behavior for right-justified numeric strings documented somewhere?
Nov
30
comment sort associative array in awk
Watch out, this solution is flawed as this ends up losing keys that have the same values in the original array. The accepted solution from this other thread has an idea on how to workaround that: stackoverflow.com/a/5345056/95750
Nov
28
comment Add photos to a post with only one shared photo (from the desktop or otherwise)
Doesn't seem like this is possible anymore, after the change to move photos out of G+.
Nov
14
awarded Necromancer
Nov
6
comment Jenkins environment variables available during post build step
I didn't try this, but I came across an open issue with passing arguments, so I am guessing this won't work. See: issues.jenkins-ci.org/browse/JENKINS-19873
Oct
26
comment Wireless Diagnostics: what does "_handleLinkEvent: Got an error trying to queyer WiFi for power. Resetting state variables" mean?
You suggested running Airport -I, but there is no Airport command in the path. Is it part of a specific package that needs to be run with full path?
Oct
12
answered embedding short python scripts inside a bash script
Oct
6
awarded Supporter
Sep
21
comment how to get all parent processes and all subprocesses by `pstree`
As a mnemonic I remember the args as laps as in pstree -laps <pid> to get the branch with additional information.
Sep
21
comment How to sort a list of files by time, given only the filenames
The second solution is what I needed, since I had too many paths to exceed the max command-line length and also had paths with spaces in them.
Sep
14
comment JRuby not finding gems from GEM_HOME
I had jruby 1.7.19 installed on Mac via Brew, so did a bit of experimentation. Interestingly, this works: GEM_HOME=~/jruby java -Xbootclasspath/a:/usr/local/Cellar/jruby/1.7.19/libexec/lib/jruby.jar -Djruby.home=/usr/local/Cellar/jruby/1.7.19/libexec org.jruby.Main, but this doesn't: GEM_HOME=~/jruby java -Xbootclasspath/a:/usr/local/Cellar/jruby/1.7.19/libexec/lib/jruby.jar org.jruby.Main, so the only difference is the jruby.home property and having a valid path makes GEM_HOME work.
Sep
11
comment JRuby not finding gems from GEM_HOME
OK, I just tried with full path instead of using ~ and it still didn't work. Any other ideas?
Sep
11
comment JRuby not finding gems from GEM_HOME
I saw gem env expand it properly, but you have a point, I should try with full path.
Sep
10
asked JRuby not finding gems from GEM_HOME
Sep
2
comment How to know if a disk is an SSD or an HDD
Nice! Works without having sudo privileges.
1 2 3 4 5