keithb's ramblings

Nov 11
Permalink

“I’ve heard some claim Fallout 3 is just Oblivion with guns. To those people, I say this: you say that like it’s a bad thing.

Jeff Atwood

My sleep schedule is completely tweaked, but it’s totally worth it. Fallout 3 is incredible.

Comments (View)
Sep 29
Permalink

I’ve had this exact meal before, down to the very same style paper plate. I must say it was obtained by more conventional means. (via SeriousEats)

Comments (View)
Aug 20
Permalink
Comments (View)
Aug 05
Permalink

boto’s get_all_keys() results depend on your definition of “all”

If you’re using boto to connect to s3 and want to get a listing of all the keys in a bucket, you’ll probably reach for get_all_keys(). Unfortunately, Amazon truncates the list after the first 1000. There’s a post discussing the problem and a potential solution here.

My preferred method:

 def really_get_all_keys(bucket, prefix=None):
     keys = boto.resultset.ResultSet()
     last_key_count = -1
     while last_key_count != len(keys):
         last_key_count = len(keys)
         keys += bucket.get_all_keys(prefix=prefix, 
             marker=keys[-1].key if keys else None)
     return keys

Beware if you have many many keys, this can take a while.

UPDATE: RTFM. get_all_keys() is deprecated in favor of using list(). I’ll use that instead.

Comments (View)
Permalink

In the future, your browser will make life more complicated. Tools should simplify your life, not force you to deal with more and more data.

How many clicks did it take to resolve the situation? Way too many.

(via Lifehacker)

Comments (View)
Jul 28
Permalink
Arnold Schwarzenegger petting my mom’s cats (Pookie & Catalyst) while making the rounds at an evacuation shelter for the recent Goleta fire.

Arnold Schwarzenegger petting my mom’s cats (Pookie & Catalyst) while making the rounds at an evacuation shelter for the recent Goleta fire.

Comments (View)
Jul 26
Permalink
When the machines take over, they’ll be sponsored by Coca Cola. Enjoy a refreshing soda before your demise. (via Serious Eats)

When the machines take over, they’ll be sponsored by Coca Cola. Enjoy a refreshing soda before your demise. (via Serious Eats)

Comments (View)
Jul 23
Permalink
Comments (View)