1,089 karma · joined March 1, 2007
C, Unix system and shell, Python, X Windows, ARM, ...
$ perl -i.bak -p0777e \
'print STDERR s/\xe4\x0a\x00\x2d/\xde\xad\xbe\xef/g + 0 . "\n"' a.out
1
$ cmp -l a.out.bak a.out
50161 344 336
50162 12 255
50163 0 276
50164 55 357
$
Perl prints the number of substitutions done. If it's 1, all's well. foo->vis = a || (b || !c && (...)) && z;
Coding standards, and the arbiters at code review, insisted on a nested set of if-then-else statements comparing, e.g. a == TRUE, rather than just `a', with the many blocks being either foo->vis = TRUE or FALSE as appropriate.This resulted in my two or three line statements turning into many more lines, which then gave them cause for concern because their style had swelled functions to where they thought they were getting too large!
Plus, the C compiler, one of IBM's, produced better POWER code for my line than theirs.
I finally got them to back down when I gave them a code sample in their style for study. Even when I pointed out it had an error they couldn't find it. I'd deliberately missed an else-block off an if-statement that had started a dozen lines before. This would mean foo->vis sometimes wasn't written to at all; impossible with my version.
Charlie doesn't exist, nor does he need to.
for n in '' -n; do for a in '' ' '; do for b in '' ' '; do echo $n "${a}ABC$b" | sha1sum; done; done; done
to try and get the output they give for http://www63.wolframalpha.com/input/?i=SHA+ABC and thought I hadn't managed it. $ resty 42; echo $?
resty: curl returned error 42
0
$
(curl was never called.)"Postfix is the default Mail Transfer Agent (MTA) for Ubuntu." -- https://help.ubuntu.com/community/Postfix
I agree though, the heavier the traffic the less they work. Especially when morons pull out onto it despite seeing the exit is jammed and without leaving room for other lanes to cross in front and behind of them. Also, in the UK, many drivers fail to signal correctly, giving less clues to other drivers as to when they can pull out, e.g. if you're not signalling left as you exit a roundabout, you're doing it wrong! :-)
awk and perl handle "foo" + 12, but they coerce "foo" to an integer, which is 0, and then add 12.
(Note, C lets you do "foo" + 12 but it isn't coercing 12 to a string, instead it's adding 12 to the address of the string "foo", e.g. "0123456789abcdef"[nibble].)
It would be interesting to enumerate those that do treat "foo" + 12 as if it was written "foo" + "12".
Edit: add http://en.wikipedia.org/wiki/List_of_programming_languages
Most? The minority I'd expect. Others do things like
TypeError: unsupported operand type(s) for +: 'dict' and 'int'