To reduce the amount of instance hours your app uses, you should serve files directly from either Blobstore or Google Cloud Storage. You do this by amending the HTTP response with a special `X-AppEngine-BlobKey` header (and an empty response body). This tells the appserver that the file should be served directly from Blobstore/GCS.
The value of the `X-AppEngine-BlobKey` header should contain the file's BlobKey. If you're using GCS, you'll need to import the blobstore module and use the `create_gs_key` function.
path = '/gs/example/file.png'
headers['X-AppEngine-BlobKey'] = blobstore.create_gs_key(path)
The parameter passed to blobstore.create_gs_key must begin with "/gs/" if the file is stored in GCS.
Published Aug. 23, 2013, midnight
Published Aug. 17, 2013, midnight
Move a window from one position to another.
Control-A, :number 1, Return
Published March 1, 2013, midnight
defaults write -g ApplePressAndHoldEnabled -bool false
Published Jan. 10, 2013, midnight
I've had to generate Google AuthSub tokens a bunch of times, and every time I have to re-read documentation on how to create these tokens. So here it is, step by step. How to generate a Google AuthSub Session token.
1. Log in to your Google account.
2. Visit this URL (you'll have to customize it a bit):
[INSERT SCOPE HERE]&session=1&secure=0
3. Authorize the request, then copy the token from the destination page. Note that it might have URL-encoded characters that you will have to decode. You now have your request token.
Your request token will look something like this:
4. Upgrade your request token to a session token:
curl -i -H 'Authorization: AuthSub token="1/hABD5BM2Ryoh9DEFbq14QvhBKYTIaYFmmR27Db4A"' https://www.google.com/accounts/AuthSubSessionToken
And the response will contain your AuthSub session token, ready for use in your web application.
Published Nov. 25, 2012, midnight
- 1 tablespoon butter
- 2 tablespoons canola oil
- 4 boneless, skinless chicken breast halves
- 1 onion, chopped
- 3 garlic cloves, minced
- 2 tablespoons curry powder for mild taste, 3 for hot
- 1/2 cup diced apple
- 1/2 cup chopped dried apricots
- 1/2 cup golden raisins
- 1 14 1/2-ounce can chicken broth
- Freshly cooked rice
Melt butter with oil in heavy large skillet over medium heat. Add chicken and brown on both sides, about 5 minutes. Transfer to plate. Add onion and garlic to skillet and sauté until translucent, about 6 minutes. Stir in curry powder. Return chicken to skillet. Add apple, apricots and raisins. Add enough broth to just cover mixture. Season with salt. Cover and simmer until chicken is just cooked through, about 10 minutes. Transfer chicken to platter. Keep warm. Continue simmering fruit mixture until fruit is tender and sauce thickens, about 5 minutes. Spoon sauce over chicken and serve with rice. Serves 4.
Published Nov. 11, 2012, midnight
You are referring to German potato dumplings or Knodel (o with an Umlaut). I make them with a mix called Pfanni and just follow the directions - even the Germans use a mix because to make them at home you have to grate raw potato which everyone says is too hard and these taste the same. These are very bland and only taste good with a gravy - so I make them with a pork roast. I can make this for you when you come home if you’d like and then you could watch me. Or I could send you the recipe. It is not hard to make. I also make this with sauerkraut that I cook with bacon to make it tasty.
Let me know if you’d like the recipes. And the Pfanni mix is sold at German deli’s or some specialty food stores. I get it here at a deli on Main St in Santa Monica.
Published Nov. 11, 2012, midnight
- onion, garlic, worchestshire, soy, vinegar, olive oil
- mix to taste
- let meat soak
- roasted tomatoes, red bell papers, and sweet peppers
- peeled almonds and hazelnuts
- olive oil
- salt and pepper
- a little bit of red wine
Published Nov. 1, 2012, midnight
Open the face of your AVIC D1 all the way, as if you were going to eject the DVD/CD navigation disc (but don’t do it).
Hold the reset button by moving the joystick (you will need a pen or paperclip to do it) and the navigation disc eject at the same time.
Now let go of the reset button.
Now let go of the DVD/CD navigation eject button. The screen will say “Press Reset”.
Press the joystick up two times.
Press the joystick down two times.
Published April 3, 2012, midnight
- Minh: tell her you like her
- Minh: ask ccowart if im right first lol
- Lilly: don't tell girls yer interested in about other girls yer interested in..lol
- Ian: so, status check. got any good dates?
- Jeremy: like girls or the fruit or calendar days?
- Ian: girls
- Jeremy: nope, HTML is my only lover.
A text message from Minh:
Jeremy it hurts my xhewja.. sdidn I drop my phone. Hard. I hoe nor buy me a new honbabu local y u bye
- Minh> i watched new moon
- Minh> only a horrible movie like this can beat box office of THE DARK KNIGHT
- Minh> gg human race
Published Nov. 16, 2009, midnight