wesley tanaka

Tech

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.

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

Projecting images onto a soap bubble

()

Switching the Windows key behavior in Ubuntu Unity

()

Ubuntu 12.04 LTS (Precise Pangolin)

Kill the Dock in Mac OS X

()

To kill the dock in Mac OS X, in a Terminal, type:

killall Dock

The dock will shut down and  re-start automatically.  If do not want the dock to run at all—for example if you want to free up memory or free up pixels from the screen—remove the /System/Library/CoreServices/Dock.app directory with:

cd /System/Library/CoreServices
sudo mv Dock.app Dock.app.orig
killall Dock

Un-fetch git-svn revisions; Rewind git svn commits; Revert remotes/trunk branch

()

It's possible for an old subversion commit to be changed after it has already been committed.  One example is someone editing a commit log message for an old revision with svn propedit -r <revision> --revprop svn:log <URL>

Make alt tab switch between all windows in Ubuntu Unity

()

Upgrading from Ubuntu 11.04 "Natty Narwhal" to Ubuntu 11.10 "Oneiric Ocelot" installs Ubuntu's Unity, which changes the configuration of the window switcher that is usually bound to Alt-Tab. Instead of switching between all windows, it now switches between applications.

These are instructions on how to revert the behavior back:

In gconf-editor:

Installing jpegtran in Ubuntu 10.10 (a.k.a. Oneiric Ocelot)

()

To install jpegtran in the Ubuntu 10.10 Linux distribution, you can run the following command in a terminal window/shell

sudo apt-get install libjpeg-progs

jpegtran allows lossless rotation of JPEG images.  For example, you can losslessly rotate an image 90° counterclockwise by running:

jpegtran -rotate 270 input.jpg > output.jpg

Or you can losslessly rotate an image 90° clockwise by running:

jpegtran -rotate 90 input.jpg > output.jpg

Syndicate content
by Wesley Tanaka