wesley tanaka



Android AccountManager com.google auth token types


Several AccountManager methods accept a String authTokenType which controls the "They are requesting permission to" list in the Permission request activity.

Here are some available values of authTokenType for the "com.google" accountType:

Make iTerm always quit when closing last window


While iTerm is not running, run:

defaults write com.googlecode.iterm2 MinRunningTime -float 0


Android Menu vs Action Bar


The options menu in Android will be displayed differently in the UI of your app depending on the value of android:targetSdkVersion that you set in AndroidManifest.xml. If android:targetSdkVersion is not set, or is set to a value less than 11, you will always get a grid of up to six menu items in one or two rows near the bottom of the screen.

View HTTP requests made by Internet Explorer


Tools that can inspect HTTP traffic coming from IE8, IE9, IE10 etc.Browser plugins

Network sniffers

Detect if Android application is running inside a unit test


I wanted to disable ACRA in an Android application while it was being unit tested by the android.test framework, so that crashes in worker threads would get detected by the test runner as failures, instead of getting reported to ACRA.

Ryan saying "apple"


Removing a battery stuck in Fenix E01 Flashlight


I was having trouble getting a dead battery out of a Fenix E01 LED Flashlight. The battery was an alkaline cell that had swelled up and wedged itself inside the flashlight tube.

Yam / Sweet Potato Fries

  • Sweet Potatoes
  • Olive Oil
  • Optional: Corn starch
  • Optional: Garlic, (rock) salt, pepper, cinnamon, other spices
  1. Preheat oven to 425-450°F (220°C)
  2. Toss sweet potatoes in olive oil
  3. Optionally add salt, garlic, pepper, etc.
  4. Optionally add corn starch to make the fries more crispy
  5. Bake 15-30 minutes, flipping every 10-15 minutes
  6. If you have a wire rack, you can bake on the rack to avoid needing to flip during the middle

Open Google Maps Android "Offline" List While Online


To open the list of offline maps in Google Maps for Android while a network connection is enabled, tap on "Maps" in the title bar and pick "My Places" from the list that drops down.

This can be useful for resuming failed downloads or re-downloading offline maps if they have mysteriously been deleted.

Syndicate content
by Wesley Tanaka