Fri, 31 Aug 2012

Fixing "emulator window was out of view and was recentered"

Every time I tried to start an Android emulator, the window appear briefly, then disappear, and I'd get the error, "emulator window was out of view and was recentered". The solution is to edit emulator-user.ini in the avd's directory, $HOME/.android/avd/<image name>, by default, on linux. Set window.x and window.y to 0.

The solution is on stackoverflow, but Google couldn't find it.

Update 10/05/2012: I've found this solution to work inconsistently. A better solution under xmonad is to set up a ManageHook to match the emulator window and move it to the floating layer:

myManageHook  = composeAll
	[ className =? "emulator-arm" --> doFloat

tech | Comments | Permanent Link

Mon, 13 Aug 2012

A Convoluted Solution to Google Drive for Linux

I need to use Google Drive to share files with coworkers. I tried using grive, but it crashed regularly.

The solution I came up with uses VirtualBox, a Windows 7 image, Google Drive for Windows, a tool from Microsoft called SyncToy, and the Windows task scheduler.

  1. Install VirtualBox
  2. Install a Windows image using ievms
  3. Share a folder from your linux host to your windows guest, e.g. /home/user/GDrive
  4. Install Google Drive in Windows, and configure to sync to your hard drive image, e.g. C:\Users\IEUser\Google Drive, not the shared drive; Google Drive won't sync to a networked drive.
  5. Install SyncToy, and configure it to sync between your Google Drive location and your shared drive, e.g. \\VBOXSVR\GDrive. Use the network name rather than the drive letter assigned to the shared drive for scheduled syncing to work.
  6. Create a scheduled task to run as IEUser whether the user is logged in or not (you don't need to run with the highest privileges). Set the trigger to one time, and repeat every 5 minutes indefinitely. Set the action to run "C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" with the -R argument.

tech | Comments | Permanent Link

Sat, 11 Aug 2012

Kanban for Salesforce

Based on my previous app for managing Salesforce Cases on a Kanban board, I've built Kanban for Salesforce, a project management tool on the platform. It uses a custom object for cards so it's not tied to an existing Salesforce native object. Cards can be organizated into sprints.

I've built a proper website for it, and there's an online demo. Check it out at

tech » salesforce | Comments | Permanent Link

The state is that great fiction by which everyone tries to live at the expense of everyone else. - Frederic Bastiat