115 reputation
19
bio website twitter.com/JamesDenholm
location Melbourne, Australia
age 22
visits member for 3 years, 3 months
seen Oct 11 at 23:59

(James' about me used to be blank)


Sep
30
answered Why does my vim status line say “Obtaining ../”?
Sep
10
revised Is it possible to use dd to clone only the part of the hard drive which is used?
Added partition manager suggestion spiel. Also a few minor typographical errors fixed.
Sep
10
suggested suggested edit on Is it possible to use dd to clone only the part of the hard drive which is used?
Sep
10
awarded  Commentator
Sep
10
comment Is it possible to use dd to clone only the part of the hard drive which is used?
What do you mean by used, exactly? Are you saying you have a 100GB partition on the drive, or a 300GB partition with 100GB of data on it?
May
31
awarded  Editor
May
31
revised Using regex in for loop
Emphasised that $gpat isn't a regex.
May
24
comment Python file issue from root path
Assuming that the Storage class is an extension of a file object (as I couldn't find it in the standard docs), this being the problem can be checked by printing ` os.path.dirname(os.path.realpath(storage))` post-assignment. Because yay, debugging?
May
24
comment Using regex in for loop
That's weird, because then the earlier lines should have worked as well - all the above line does differently is define the pattern in the expansion rather than deferring to a string variable. If you don't have extglobs set, or were using your original array variable instead of a globbing pattern, that would be a possible reason...
May
23
comment Using regex in for loop
Should work, then... What's the output of for f in *; do echo -- "$f" "${f//[%>#]/}"; done?
May
23
comment Using regex in for loop
Ah, of course - I glossed over the OS X tag, sorry. After a quick bit of searching, it appears that the default OS X shell might not be /bin/bash - Could you provide the output of echo $SHELL and bash --version?
May
23
answered Using regex in for loop
May
23
comment Using regex in for loop
Minor note: I assume the double-hyphen is misplaced in the provided echo call?
May
23
awarded  Autobiographer
May
22
awarded  Teacher
May
21
answered gcc produces erroneous “No such file or directory” under Cygwin
May
21
awarded  Citizen Patrol
Nov
26
awarded  Notable Question
Oct
30
awarded  Supporter
Mar
11
awarded  Popular Question