“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.”
My sleep schedule is completely tweaked, but it’s totally worth it. Fallout 3 is incredible.
My sleep schedule is completely tweaked, but it’s totally worth it. Fallout 3 is incredible.
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)
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.
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)
Arnold Schwarzenegger petting my mom’s cats (Pookie & Catalyst) while making the rounds at an evacuation shelter for the recent Goleta fire.
When the machines take over, they’ll be sponsored by Coca Cola. Enjoy a refreshing soda before your demise. (via Serious Eats)
I’ve run headlong into this problem multiple times, and came to much the same solution. Exclusion lists save lives.
The other technique I’ve used is to modify the algorithm to only run steps 1a and 5. This has the effect of only stemming words that look like plurals, which works well for the context-sensitive stemming we perform in tweakeat’s recipe parser.