Random Lines from a File

Update 2011-07-18: As Ernesto correctly points out in the comments, this algorithm selects N independent random lines from a file.

The following is my python implementation of choosing N random lines with equal probability from a file. This implementation is both memory and time efficient unlike other solutions. This problem …

more ...

Bye Bye Google: The End of a Great Summer

Damn it’s been over 8 weeks since I last wrote, and how I’ve missed it. As you may have guessed I’ve been terribly busy since my last post, especially in the most recent weeks. Since there is too much information for a single post, I’ll split …

more ...

Good Eatings: Dinner

This evening I went to dinner at the American Table cafe with Steve. Tonight’s selection was amazing! I had:

  • A bit of grilled wild boar bratwurst with sauerkraut, caramelized onions, mushrooms, shoestring celery root, turnips, brandy, Guinness
  • A bit of pacific almandine tilapia with crunchy almonds, lemon teriyaki and …
more ...

Good Eatings: Snack Time

Around three a few of us headed over to the hub for coffee, and as usual there is a different treat of the day. Today my snack time consisted of:

  • A few profiteroles
  • An iced mocha special made from the friendly barista
  • A little piece of chocolaty goodness
  • About 10 …
more ...

Good Eatings: Lunch

Today I had lunch at Google’s newest Cafe, Big Table. I headed there at noon and met up with some Santa Barbara Googlers. I didn’t eat that much since breakfast held me over quite well.

  • 2 Falafel patties(?) with Tahini and Yogurt Cucumber Mint Sauce
  • Caesar Salad with …
more ...

Good Eatings: Breakfast

I’ve been meaning to do this at least once all summer.

I arrived at Cafe Moma for breakfast at approximately 9:15 and I filled my plate with the following:

  • 2 Pancakes which I put a very light amount of raspberry syrup on
  • A piece of Sourdough French Toast …
more ...

Google Week 12: One More!

My last week at Google is finally here. It seems like just yesterday I was driving up to the Bay Area in the Porsche loaded to the roof with my stuff. Oh it’s been a great summer, but it’s not over yet!

Week 12 gave me the opportunity …

more ...

Google: Weeks 10 and 11

First I’d like to mention the obvious; I sold the Porsche this morning. Hmm ok maybe that’s not the obvious. Anyway my 944 of 6 years is finally gone, and it’s sad. Maybe someday when I have money to play with and a child who is into …

more ...