Author: mark

  • Great Movie and Lawrence

    If your’e looking for a great crime movie with an excellent script and brilliant actors at the top of their game, go rent “The Brave One”.

    There are so many great lines in this movie, but I think the D.H. Lawrence quote got me: “The essential American soul is hard, isolate, stoic – and a killer.”

    Lawrence was an Englishman – and this should be taken in the context of his time: The late 1800’s to 1930. But I think the instinct survives today. Of course I’m a foreigner too so what the hell do I know.

    Speaking of great mainstream movies that steal from great literature, here’s another that you’ve head a thousand times:

    From “Self Pity” by Lawrence:

    I never saw a wild thing sorry for itself.
    A bird will fall frozen dead from a bough
    without ever having felt sorry for itself.

    When I see a disabled dog in Marymoor park playing like it doesn’t matter I think of this poem … and sometimes when I’ve pulled a 12 hour day and got another 5 to go.

    Poetry and Writing’s ability to inspire is quite amazing. Which is why I’m so glad the writers strike is now resolved and the architects of our culture got a raise.

  • Buffet

    CNBC had a 1 hour segment this evening with a collection of Buffet interviews. My favorite quote: “On Wall St we get the innovators then the imitators and then the swarming incompetents.”

    Buffet is a master at distilling an entire thesis into a sentence.

  • Slow lighttpd on Ubuntu 7.10 Gutsy Server with 200+ hits/sec?

    aaaah you say. Finally, after many a Google search finally I found someone who understands my pain. I know you’re in a rush and I can’t stand people who love the sound of their typing either, so here’s how you fix this little problem.

    If you have a brand new super fast server and a high traffic website (200+ requests per second) and you install lighttpd and it performs like a dog, try the following:

    Add this to your /etc/sysctl.conf file:

    net.ipv4.tcp_fin_timeout = 1
    net.ipv4.tcp_tw_recycle = 1

    net.core.wmem_max = 16777216
    net.ipv4.tcp_rmem = 4096 87380 16777216
    net.ipv4.tcp_wmem = 4096 65536 16777216
    net.ipv4.tcp_no_metrics_save = 1
    net.ipv4.tcp_moderate_rcvbuf = 1
    net.core.wmem_default = 16777216

    net.core.rmem_max = 16777216
    net.core.rmem_default = 16777216
    net.core.netdev_max_backlog = 262144
    net.core.somaxconn = 262144

    net.ipv4.tcp_syncookies = 1
    net.ipv4.tcp_max_orphans = 262144
    net.ipv4.tcp_max_syn_backlog = 262144
    net.ipv4.tcp_synack_retries = 2
    net.ipv4.tcp_syn_retries = 2

    #Only enable these if you’re dumb enough to have netfilter connection tracking enabled
    #net.ipv4.netfilter.ip_conntrack_max = 1048576
    #net.nf_conntrack_max = 1048576

    Then run

    sysctl -p

    Also make darn sure you don’t have netfilter’s conntrack modules enabled in the kernel. If you’re using shorewall on your lighttpd box this will probably be enabled. You can check if conntrack is enabled by checking if the file /proc/net/nf_conntrack exists. Also run lsmod and you’ll see a ton of modules starting with nf_contrack_

    To get rid of conntrack if it’s enabled I would avoid rmmodding them – rather remove the app that enabled it and reboot the box just to keep things sane.

    If you must insist in using conntrack then uncomment the last two lines in the sysctl.conf sample above.

    Google the individual params above and you’ll find a ton of explanation on each.

  • Things that piss me off about OS X

    1. Whenever I double click on text in a terminal when ssh’ing to another box it either selects a single word or the whole line – it doesn’t select just the text I want it to select. Linux does, windows does, why the hell can’t OS X?
    2. When I select text in a terminal I have to click Apple-C to copy it into the buffer. Why can’t it behave like unix is supposed to and just put it in the buffer for me? You’d think they’d get that if you’re running terminal on OS X you’re probably expecting it to behave like a unix terminal which it is.
    3. Whenever I SSH to a remote host I have to type ‘TERM=screen screen’ (no quotes) to unf***k the terminal emulation when I run screen.

    But other than that I feel like a rock-star working on an Apple instead of a Dell laptop, so that  counts more than any screwy terminal emulation – even if seconds of my life are ticking away as I reach for Apple-C once again.

  • Phish Phood and the Mystery of the Dissapearing Kitty

    I don’t feel so good. Last night I ate a pint of Ben and Jerry’s Phish Phood in a single sitting. It’s basically every decadent thing they could come up with shoved into a 1 pint cardboard container.

    I think I made myself diabetic in an evening.

    I had good reason though. My cat dissapeared two days ago. Ziggy – or ziggers as he has come to be known is my fat orange tabby. We share the same hair color so there’s a special bond.

    Ziggy is quite the adventurer and – as it happens – a spectacular fighter. Don’t ever scratch his tummy because he’ll take your hand off. He’s a rescue and had a rough childhood, so there’s history there I’m sure.

    Two evenings ago he decided to not come home. So we went looking for him clanking his bowl and calling and he never showed up. I had to get to work the next morning – big migration this weekend etc – but came home in the evening and still no ziggers. So last night I’m tramping the Sammamish trail (which has great mouse hunting if you’re that way inclined) and still no ziggers.

    At around midnight last night I decided to give it one last shot. I was clanking his bowl and calling him and I kinda got into a routine so I never realized how far north I walked. Way further than I’d ever assume he’d adventure.

    About half a mile up the trail I hear MEEEEOW and I recognize his hoarse litle meow immediatelly. He’s stuck in a tree in someone’s back yard about 3o ft up.

    This is the second time he’s done this. I don’t know if he gets chased up there by critters or if he just loves the feel of bark beneath his paws.

    So I sprint half a mile back to the house – we grab a huge piece of canvas, sprint back and assume the fireman pose underneath the tree holding the canvas between us like a trampoline trying to coax him to jump. Sound crazy? That’s what worked last time and it was much higher.

    We must have stood out there for at least 90 minutes until he finally slipped, stayed in a pull-up position hanging from a branch for ages and then finally let go. He landed with a heavy thud and almost ripped the canvas from our hands – guess he’s put on a bit of weight.

    We got him home – he’s was actually in great shape but I fed him some electrolytes and next thing he’s meowing at the door ready to go out again.

    So to destress I had to eat a pint of Phish Phood.

  • QOTD

    From the nginx docs under Known Problems:

    3. Nginx may laugh at your Perl code and hit on your girlfriend.

  • Benjamin Zander and Shining Eyes

    Alec Hogg writes about Benjamin Zander’s session at Davos in Moneyweb, a South African publication. Lots to take away from this.

  • Mergelab

    I had the great pleasure this morning of getting a surprise visit from Phil, Mark and Alan from Mergelab at our offices. We had an excellent chat and shared a little of what each of us is working on. It’s been great watching the rapid and early iterative approach they’ve taken to figuring out what business they’re in – many startups arrive at their C round still not knowing what they do – and it looks like they’ve hit on a very interesting space. They’re still in closed beta, but keep an eye on mergelab.com because they’re going public soon.

  • BOFH

    About 5 thousand years ago at UCT a friend of mine introduced me to the BOFH series. I decided knowing what BOFH is is a prerequisite for the ops position I have open so I found them online and while I’m waiting for the right version of Ubunu to download (after installing the 32 bit version on a 64bit xeon) I was LMFAO to the very first one called Genesis – and here it is:

    I’m really bored. You know how bored you get when work’s going on and on and on, and nothing interesting is happening, and you’re listening to a radio that picks up ONE station on FM, and it’s always the station with the least records in the city, about 5, and one of them is “You’re so Vain” which wasn’t too bad a song until you hear it about 3 times a day for a year, and *EVERY* time it plays, the announcer tells you it’s about Warren Beaty and who he’s currently poking, someone you’ll never sniff the toe-jam of, let alone meet, let alone get amourous with. And EVERY time someone mentions Warren Beaty, someone says that he used to go out with Madonna too, and have you seen “In Bed With..”

    AND THEN, someone ELSE will say “It wasn’t really about Warren Beaty, it was James Taylor” and the first person will say “What, `In bed with Madonna?’”, and they laugh and everyone else laughs, and I slip out the Magnum from under the desk where I keep it in case someone laughs at a joke that’s so dry it’s got a built in water-fountain, and blow the lot of them away as a community Service. I figure that I’ll get time off my sentence if I ever kill someone by accident who’s got a life.

    So visitors are getting pretty thin at the moment, and the Quick-Lime Pits are filling up rapidly, and all I’ve got to do is the full backups and maybe I can go home.

    So, to relieve the boredom, I get some iron filings and pour them into the back of my Terminal until it fizzes out (Which doesn’t take all that long, surprisingly enough), then call our maintenance contractors and log a fault on the device. Sometimes they’ll send someone who knows what they’re doing, but it’s a lot more fun when they don’t – which is about 98% of the time.

    So they maintenance guy comes in, and I can tell he’s NEW because the photo on his ID actually LOOKS like him, not like the head engineer, whose photo’s a black and white tin-type (he’s that old).

    Maintenance Contractors always dress up nice, with a tie and everything because they believe that a customer will trust a nicely dressed guy with their million dollar equipment *just* because he’s got a nice tie..

    Because he’s NEW and ALONE, he’s what you call an appeasement engineer, the new guy they send so they respond within the 4 hour guaranteed response period. (Things are getting better and better) Your average appeasement engineer is about as clued-up on computers as the average computer “hacker” is about B.O, and their main job is to make sure the power plug is in and switched on, then call back to the office for “PARTS”. The really keen ones will sometimes even take a cover off the equipment and pretend that they see this stuff all the time. I wonder what sort today’s is…

    “You got a dud terminal?” he asks pleasantly

    I tell him yeah, and bring him into the control room.

    “Which one is it?” he asks, confused by the fact that only one of them is smoking.

    “It’s the Model Three” I say, giving NOTHING away.

    “Ah, the old model three!” he says knowingly, without a clue what a model three is, or which one of the three terminals it is, which isn’t surprising, as I just made it up.

    “We get a lot of Model Three problems” he says nodding “So what actually happened?”

    Sneaky, but not good enough. I’m not going to point it out to him.

    “It just went dead” I say, in luser mode.

    “I see. Could you just recreate what you were doing so I can check the unit out when it’s ready for operation?”

    Very Sneaky. I decide to let him off the hook.

    “Look, I’ve got to go to the toilet, there it is over there” I say, pointing at our Waffle-Iron.

    “But that’s a Wa…” He says, then stops. He’s a beginner, and it’s just possible that the company has a line of terminals that look like waffle irons. He bites.

    “Sorry” he says, smiling again “for a minute there I thought it was a Model 2!”

    A reasonably good save, but it won’t save him. “Huh, it’s nothing like a model 2! *THAT’S* the model 2” I say, pointing to the expresso machine.

    He nods and I leave, which means he’s got to take the iron to bits, otherwise he knows I won’t believe he’s worked on it. I give him a couple of minutes to get the element exposed then wander back in.

    “So how does it look?” I ask, concerned-like.

    “Well, I think we could have a processor problem..” he says concentrating on prying the element up.

    ..concentrating so much that he doesn’t notice me plugging the iron in.

    “Shouldn’t you be wearing an earthing strap?” I ask innocently.

    When he thinks I can’t see, he creeps his hand over to the wiring frame and says “Well, It’s just as easy to hold onto earth like this”

    “But what about the risk of a cross-the-body shock with no resistor in series with you?” I ask ever-so-more-innocently

    “Oh, it’s ok” he says “the unit’s unplug…”

    >click< >BZZZZZZZEEERRT!< >clunk!<

    I ring the maintenance help-desk again…

    It’s Rhonda

    “Hey Ronda!, Ah, I’m going to need another engineer and a new Waffle Iron over here; for some reason your engineer opened up my Waffle Iron without switching it off.” I say

    Rhonda knows me. It’s the third call and the third appeasement engineer this year. You’d think they’d learn.

    “You’re a real prick” she says, annoyed

    “Tell ya what Rhonda, why don’t you come and fix it; it’s a Model Three…”

  • XTreme Football

    From Antonio S in Croatia – one of the coolest viral campaigns I’ve seen for a while. Check the outtakes at http://5x5m.com/files/xtremefootball/