wesley tanaka

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.

Convert .vmdk virtual disk to .vdi


To convert a .vmdk virtual disk file into .vdi:

VBoxManage clonehd filename.vmdk filename.vdi -format VDI


Boston, Massachusetts, United States

Flower bed

Boston, Massachusetts, United States


Museum of Science, Boston, Massachusetts, USA

Syndicate content
by Wesley Tanaka