219 reputation
110
bio website
location California
age
visits member for 1 year, 7 months
seen 5 hours ago

{ 2X | X ∈ N }

"Do not try to solve all life's problems at once 
                -- learn to dread each day as it comes."
  -- Donald Kaul

"Type cat vmlinuz > /dev/audio to hear the Voice of God."

"Windows really does have preemptive multitasking: 
                 It can boot and crash at the same time."

"We all know Linux is great...
          it does infinite loops in 5 seconds."
  -- Linus Torvalds

1d
asked Implications of including GPL software in a distribution?
Oct
9
awarded  Popular Question
Oct
1
accepted When is 'if' not necessary?
Oct
1
comment When is 'if' not necessary?
hmm, that is what I had suspected. Comes down to a readability issue depending on what you are doing (in my case, checking if files or directories exist, and if not, making them, so the && construct is more readable than a bunch of cascading if statements). I just wanted to be sure bash wasn't doing anything else with this alternate syntax.
Oct
1
awarded  Yearling
Oct
1
comment When is 'if' not necessary?
@JohnWHSmith I believe I understand the && operation already, in the second example, the first part is evaluated, and if true, the second part (right side of the && is evaluated, which executes the code), if false, being a logical AND operation, it shorts and skips evaluation of the right side. This appears, to me, to be equivalent of the first example using the if then syntax, but has the downside of only being able to evaluate one command instead of multiples inside the if block. Then again, I suppose you could chain &&'s together... Am I missing anything?
Oct
1
asked When is 'if' not necessary?
Sep
11
comment Determine if Git working directory is clean from a script
you could just assume it's not clean and do a git reset --hard origin/branch if that is what you are going for... like if you are trying to cleanup after compiling something, etc.
Aug
18
revised Allow AD Groups to SUDO
added 379 characters in body
Aug
18
comment Allow AD Groups to SUDO
hmm, things like this: funwithlinux.net/2013/09/… and serverfault.com/questions/387950/… and help.ubuntu.com/community/LikewiseOpen seem to hint that it may be possible -- however so far I haven't been able to get it to work?
Aug
16
awarded  Curious
Aug
15
asked Allow AD Groups to SUDO
Jul
31
accepted Restore default /etc directory
Jul
29
answered Restore default /etc directory
Jul
29
comment Restore default /etc directory
@Warwick ya, i'm going to resort to a reinstall this evening. It's a development laptop so nothing major... more of a PITA than anything. -- the entire thing was caused by a path being wrongly prefixed by / when it should have used the working directory as it's root instead... damn...
Jul
29
asked Restore default /etc directory
May
2
awarded  Tumbleweed
Apr
25
asked Play On Linux host machine reporting
Apr
19
answered Does `sl` ever show the current directory?
Apr
12
comment Who pays for the storage and bandwidth of repositories?
@Shah most people (and places) do not use EC2 because it's ludicrously expensive. There are many similar services out there that cost less than half, and sane people use them. EC2 should only be used for very special purposes and if you have a very large budget (most distros do not fit either of those classifications). It's like the people who blindly recommend Cisco for everything because it's the only brand they know and hear about... doesn't make them the defacto standard nor the most commonly used (take a trip to your local DC, very little Cisco will be present I bet).