572 reputation
611
bio website zac.ca
location Victoria, Canada
age 39
visits member for 3 years, 11 months
seen Jun 13 at 6:39
stats profile views 26
Have worked as QA, developer, sysadmin, configuration manager, build engineer (not exclusively in that order)

May
21
comment Markdown Live Preview Editor?
better to list each of these as separate answers
Nov
29
comment How can I force my Mac Mini to eject a DVD
Method 4 seems simplest and most reliable
Feb
11
comment Make ls sort by file type (then name)
@patrix the filenames are not guaranteed to start on the 50th column.
Jun
4
comment Make ls sort by file type (then name)
@glenn, you are right ... if this was a concern I would probably replace the awk with something like sed -E -e 's/([^ ]+[ ]+){8}//' to strip out the first 8 fields instead of printing the 9th
Sep
24
comment Version control for Windows configuration
+1 ... you're almost certainly going about this the wrong way.
Aug
17
comment Can I use a different remote to control a MacBook?
@Ian It might be theoretically possible, but only if there is some way to receive arbitrary IR signals using the receiver. That's completely dependent on the circuitry, and given the existence of articles like the following, I doubt it is possible: xpmediacentre.com.au/community/other-hardware-windows-7/… If it is possible, I don't believe anyone has written such an app. Given the support built into universal remotes, it seems unlikely that there would be much of a demand for it. Sorry, I think you're out of luck.
May
31
comment Mac Mini drive problems but SMART verified: bad hard drive or controller?
This is very interesting: "if you can use the optical drive with no problems" ... as a matter of fact, I've rarely used the optical drive ("SuperDrive") for anything except watching DVDs, and it has been giving me problems with that for some time now. I've assumed it was software, though. And the first time I ran DiskWarrior, it stalled in the middle of trying to rebuild the hard drive's directory. Very intriguing! And you're right, I should run the AHT. I'll update the question with the DVD symptoms if that turns out to be relevant.
Apr
28
comment How to dump only a certain part of SVN repository?
.. I think you'd probably find the answer on serverfault, but I think these days there are enough "power users" using SVN on their local machines for it to be worth leaving here. It got votes!
Apr
23
comment Joining H264 *without* re-encoding
My apologies; I misread that bit on the site. Glad you found a simpler approach -- it did seem strange that it would be necessary to get a special tool for this.
Mar
20
comment What are the common Control combinations in a terminal setting
To address your particular motivation, I would discourage running screen-within-screen if you can avoid it: why do you want to use screen to maintain an ssh connection to another screen session? The point of screen is to allow ssh to close without losing your active program. I would suggest to just ssh to the second computer in a separate terminal. If you do have to do it (I have done so in the past), I find there is actually less cognitive load if I simply leave the default key bindings alone. You're forced to be conscious of when you're in the inner screen anyway.
Mar
20
comment What are the common Control combinations in a terminal setting
@Dennis yes, but the keys are actually determined by the readline library, which lots of programs use. Bash has 'set -o vi' but other programs don't. So even if bash is used with vi keys, these would still conflict with other programs. I updated this answer and added one for emacs.
Dec
14
comment Navigate to a directory just typed in a command
You can't trivially get the second-to-last argument, unless you know exactly how many arguments there are, in which case you can use e.g. !!:4 for the fourth argument.
Nov
3
comment Is RAID 0 as risky as people say it is?
No, it's wrong. Read your own sources again. Don't try to include the math if you're not going to pay any attention to it.
Oct
27
comment Make ls sort by file type (then name)
actually, I'm pretty sure this will work on linux, too, but as others have stated you have some built-in support there.
Oct
27
comment Recursively delete files on Windows
+1 for the 'for /f' - this is the way to do xargs-ish stuff under cmd. Could easily be modified into a complete solution: add another line for removing directories (replace 'del' with 'rmdir /s /q'). Loop until 'dir /b /s ._*' returns nothing (you have an extra * in there).
Oct
27
comment Recursively delete files on Windows
The unix command you provide above for will only work for files. Should the contents of matching directories also be deleted? That is, if directory ._d contains file f, should ._d be removed or not?
Sep
25
comment Could not play shockwave flash object (swf)
what sort of result do you get when you open it in your browser? blank screen? error message? etc.
Jul
17
comment Regex tool for Linux
Evan's point is correct. The Q doesn't specify what the intended purpose of the regular expression is. I find that it's very easy to take a regex that works for me in Vim and apply it in other situations. There seem to always be variations in escaping and other syntax details between regex implementations anyway.