1,089 karma · joined March 1, 2007
C, Unix system and shell, Python, X Windows, ARM, ...
date -d @1262307721 wget -Ufoo -qO- 'http://www.google.com/search?q=ip' |
sed -n '/.*Your public IP address is [^0-9]*\([0-9.]*\).*/{s//\1/p;q;}'!!foo to map 0→0 and everything else to 1. Always interesting to see if the compiler produces the best machine code for it.
#define NEW(a) ((a) = emalloc(sizeof(*(a))))
NEW(foo);
Similarly with NEW0() and ecalloc(). Yes, the macro uses the parameter more than once, and yes it's another macro for the reader to grasp, but it's a simple one and NEW() is used so widely it's soon learnt.Though by all means up-vote my post. ;-)
"help@posterous.uservoice.com rejected a message that claimed an envelope sender address of ralph@[elided].
"help@posterous.uservoice.com received a message from getfile.posterous.com (184.106.20.101) that claimed an envelope sender address of ralph@[elided].
"However, the domain [elided] has declared using SPF that it does not send mail through getfile.posterous.com (184.106.20.101). That is why the message was rejected."
I'm happy with my SPF definitions; looks like an internal posterous problem. Can someone who knows the posterous mob give them a bell; they may appreciate the wake-up. :-) Thanks.
Get in line behind the rest of us. :-)
Unlike some other bounty schemes, there are small bounties available. One can look for ages without finding a $50 bounty, so long that boredom would probably set in and the hunt would be abandoned. But coming across the odd $1 or $5 bounty keeps interest going at small cost to Colin and still improves the overall source quality. It's almost like a bit of a game, a treasure hunt, where small pickings on route keep one's hopes up of rich pickings down the road. A game that can be set down and picked up later as time allows.
Secondly, Colin was very fair in judging the bounty to be awarded. It soon became apparent that I could trust his judgement; whenever I thought a bug was undervalued another would come along that might be overvalued. On mentioning this to him, it turns out it was sometimes deliberate; he'd be wavering and thought it fair to even out which side of the boundary the bug fell.
As for the OCD, I boggle a bit at some of those style bugs and don't think they were all me! :-) I do recall sending in some trivial thing suggesting it wasn't bountiful but perhaps should be fixed anyway; Colin generously still gave a dollar. I thought it worth reporting even without expecting a bounty because I think anything that interrupts the flow of the reader, causes them to pause, irked at a possessive "its" misspelt as "it's", detracts from the odds of them spotting something more serious.
Overall, a well crafted and executed bounty scheme. In some ways I'm surprised other companies don't do something similar, even if it was with closed source under an NDA. If the feedback is prompt then the bounty hunter can decide to stop if the bounties aren't awarded fairly enough in his opinion, or the company can cancel, perhaps having shelled out their budget or unhappy with the quality of the bugs, without the hunter having wasted much time since the last bounty.
http://www.bbcbasic.co.uk/bbcbasic/manual/bbckey1.html#colou...
Yes, BBC as in British Broadcasting Corporation.
awk 1 lzop -9v $file
lzop -dc $file.lzo | sort ...
You shouldn't use cat(1) if you don't need to. You're removing the ability of wc(1) to do faster things than read(2) from a pipe, e.g. mmap(2) the file, which is probably what cat is doing.Similarly don't use uniq(1) if sort's -u option will suffice as you're forcing 35GB of data to be written down a pipe to uniq(1) when it's quite possible that `sort -u' would produce 100MB or so.
...| sort -g | uniq | sort -g
The second sort is doing nothing. And sort can do uniq, saving time and I/O. $ (seq 10; seq 5) | shuf | sort -gu | fmt
1 2 3 4 5 6 7 8 9 10
$