547 reputation
210
bio website
location Canada
age
visits member for 4 years, 2 months
seen Nov 18 at 17:59

Linux and Mac software developer


1d
awarded  Nice Answer
Sep
24
awarded  Autobiographer
Sep
7
comment How do I make my disk unmap pending unreadable sectors
@dmansfield, if you didn't encounter any errors, then I'm not sure why. I've noticed that only the raw value is accurate in the smart output, so if you were looking only at the 'cooked' value it may be that you don't have any pending sectors.
Sep
10
awarded  Yearling
Sep
11
awarded  Yearling
Jul
5
comment What are your favorite *painful* Unix moments
+1 for heroic recovery!
Jul
5
comment What are your favorite *painful* Unix moments
I've been burned by aliases, too, so nowadays I use bash functions instead, which are a much better-designed feature.
Jul
5
comment What are your favorite *painful* Unix moments
git rebase (with squashing) and git filter-branch (for removing files) are your friends :-) By this I mean that there are safer ways to remove cruft from your repo history and end up with a relatively clean project. I usually make a backup copy of the current branch before extensive rebasing.
Jul
5
comment What are your favorite *painful* Unix moments
@Sven: Another way is .??*, which I find easier to type. This one won't match two-letter dot files like .a, but those are unusual too. I search the config files in my home directory with grep -r .??*, for example.
Jul
5
comment What are your favorite *painful* Unix moments
I use a non-standard, high-numbered port for ssh, forwarded from the router to the standard ssh port on my Linux and Mac OS X boxes. I never get any attempted logins. I have the port configured in a shortcut in ~/.ssh/config on my other machines so usually I don't even have to type it.
Jul
4
comment Does (should) LC_COLLATE affect character ranges?
Note that en_US is NOT the same as en_US.utf8, and typically means en_US.iso-8859-1, depending on exactly what you have installed. If en_US (with no suffix) doesn't appear in the output of locale -a you don't actually have this locale. What does LC_COLLATE=en_US locale -k LC_COLLATE show?
Jul
4
comment Does (should) LC_COLLATE affect character ranges?
I cannot reproduce this on Debian wheezy either.
Jul
4
comment Does (should) LC_COLLATE affect character ranges?
My point is that the meaning of an explicit range is locale-dependent, and different systems are not required to define their locales the same way, so this is not a bug. Technically, you are abusing the system, so you shouldn't be surprised at getting "undefined" behaviour. Also, several people have commented that they can't reproduce the behaviour on their Debian systems, so there seems to be something unusual about your system(s).
Jul
4
comment Program to filter lines by passing them to an external program?
printf '%s\n' "$line" is the same as echo "$line", isn't it?
Jul
3
answered Does (should) LC_COLLATE affect character ranges?
May
27
comment Any funny *nix one-liners?
Note the now-obsolete =& instead of &=
May
22
awarded  Nice Answer
Feb
12
comment /mnt Directories Disappearing
@mxmissile: There are console programs smbclient and smbget that might be an alternative to using fstab. You can pass username and password on the command line, and disable world-read on the scripts .
Feb
12
revised How can I write an OpenSuse script that will change my boot menu.lst file and add “nomodeset” automatically both to failsafe and normal boot option?
Describe grub2 parameter differences
Feb
12
comment How can I write an OpenSuse script that will change my boot menu.lst file and add “nomodeset” automatically both to failsafe and normal boot option?
If you want to use a script to make an identical change to a large number of machines, that's really outside the scope of a question like this. You would need to ask a more general question. You could do a lot of damage if you don't understand what you're doing, so it's not a good idea just to take a script posted by someone else and use it as-is.