Reputation
15,193
Next tag badge:
101/100 score
11/20 answers
Badges
21 96 173
Impact
~2.0m people reached

Jul
22
comment foolproof way to detect if java process is running
Build a health check into the application. Spring actuator has some good stuff, or at least will give you an idea. Your app could be running according to the os but not responding. App providing a health check could catch that in addition to it catching dead app.
Jul
19
comment Can I set my local machine's terminal colors to use those of the machine I ssh into?
If the terminal emulator supports it yes
Jul
2
comment How do I recursively check permissions in reverse?
hadn't looked at this in a long time, but I think I just realized why I had problems with it. it looks at the path you give it, so if you do namei -l file you'll just get that permission. namei /home/user/file would give the listing from root.
Jun
10
comment can I make a vagrant multi machine vm depend on another
@Tasos it may be easier just to say "ensure oracle is started first" a la vagrant up oracle && vagrant up distributed
Jun
10
comment Portable encrypted container
truecrypt is no longer recommended by the truecrypt authors, and is no longer maintained.
Jun
10
comment Switch Maven version after installing from jpackage?
that's kind of what the question was about, I couldn't figure out how to make alternatives do this honestly. (my first hack was just to modify the path)
Jun
9
comment Switch Maven version after installing from jpackage?
that's a list of about 30 entries, but caused in the middle of yum install java-1.7.0-openjdk-devel maven3 tomcat7
Jun
7
comment Switch Maven version after installing from jpackage?
vagrant chef/CentOS-6.5
Jun
7
comment Switch Maven version after installing from jpackage?
I think something else is pulling in maven haven't checked what. This is an entirely new image, built from vagrant. 3.0.3 is just enough in our case.
May
1
comment grep print relative file path when doing a recursive search
this should be more efficient than xargs, but accomplishes the same (including the too many args problem) find . -name 'pom.xml' -exec grep -3 'org.hibernate' '{}' +
May
1
comment grep print relative file path when doing a recursive search
this is the default behavior, it does not give the relative or absolute path, I can't tell the difference between one pom.xml and another with this (or maybe this option is ignored...) . Also this is not in my man page... are you sure this is for a freebsd grep and not gnu grep?
Apr
20
comment Airdrop compatible
for varying defintions of drop in... samba isn't exactly the only part needed for drop in on windows network sharing, but yeah, something I could use to basically do that. I of course, assume(d) that /someone/ is working on such a thing, though perhaps no one is.
Apr
4
comment Setting environment variables at runtime in KDE4
No it is not possible to update a running programs environment. It is possible to start a new shell with the new environment. @Gilles I suspect if you remove the KDE aspect this is a duplicate... do you know?
Jan
30
comment What is the different bash per terminal session for Konsole?
@Jim I would say that, no bash does not run separately from the terminal, the terminal spawns a new bash process. If you want to share a bash process between tabs, you'd need something like tmux or other terminal multiplexer.
Jan
3
comment Efficiently delete large directory containing thousands of files
using + instead of \; would make this faster as it passes more arguments to rm at once, less forking
Jan
3
comment Efficiently delete large directory containing thousands of files
if you're going to use exec you almost certainly want not use -ls and do find . -type f -exec rm '{}' + + is faster because it will give as many arguments to rm as it can handle at once.
Dec
26
comment How to find out from the logs what caused system shutdown?
@gilles I gotta say this is subtly different, in the cat foo | grep bar vs grep bar foo sort of way, it appears that last is capable of filtering itself.
Nov
5
comment Are there any discussions about proposing a new filesystem hierarchy standard?
anyone else find it strange that LSB is using bzr and not git...
Nov
5
comment How to interpret the explicit references to GNU in the LSB specifications?
@jordanm and although I know very little about this standard... there is more than one rpm provider... Suse RPMS are not 100% compat with RHELs. Standards are for interop, but usually an implementation or prefereably two exist before the standard does.
Oct
15
comment How to manage multiple panel layouts for different display setups in KDE?
unfortunately, not at this time no. There currently are some people working on kscreen stuff. Don't know if they actually plan on making this happen. I want this feature too. (pretty sure I have a bug open for screen profiles)