Monday, November 11, 2013

Dreambox 3D scan

Please checkout http://getlittle.com/index.php/

If you are interested creating a 3D scan of yourself, checkout the Getlittle store in Westfield San Francisco Mall. They are giving away free scans!

Tuesday, October 8, 2013

Setup Android Automation with Calabash

Android Automation Setup

This post will help you setup your system with Android Automation with Calabash, please feel free to post comments.

Calabash-android Github: https://github.com/calabash/calabash-android


Outline
1. Install Android SDK
2. Install RVM
3. Install Ruby
4. Install Calabash Android
5. Java Home
6. Prepare Calabash Apk
7. Run Calabash Apk on Real Device


Install Android SDK
  1. Visit Android SDK Website
    http://developer.android.com/sdk/index.html
  2. Download the SDK by clicking
    DOWNLOAD FOR OTHER PLATFORMS
  3. Under "SDK Tools Only" download the Mac OS X SDK
    android-sdk-macosx.zip
  4. Moving the SDK from downloads folder to ~/android-sdk
    Please type the following command on terminal
    mv ~/Downloads/android-sdk-macosx.zip ~/ Moving the SDK zip file to User Home
    unzip ~/android-sdk-macosx.zip Unzipping the SDK files
    rm ~/android-sdk-macosx.zip Removing the zip SDK file
  5. Setting Android Home
    Please type the following command on terminal
    echo 'export ANDROID_HOME=~/android-sdk-macosx' >> ~/.bash_profile
    source ~/.bash_profile
  6. Add Android tools to PATH 
    Please type the following command on terminal 
    echo 'export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools:$PATH' >> ~/.bash_profile
  7. Verifying Android SDK is setup correctly
    Please type the following command on terminal
    which android
    Output: ~/android-sdk-macosx/tools/android if you don't see this sdk installation was not successful
Install RVM
  1. Download RVM
    Please type the following command on terminal
    curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable
  2. Close the terminal and relaunch it
  3. Verify if the RVM is installed correctly
    Please type the following command on terminal
    type rvm | head -1
    If you do not see the output rvm is a function please do the following steps
  4. (Only if you failed above step)
    Please type the following command on terminal
    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile will allow you to run all of the rvm features
    source ~/.bash_profile This will reload your bash_profile
  5. Verify if the RVM is installed correctly
    Please type the following command on terminal
    type rvm | head -1
    Output should be rvm is a function
Install Ruby
  1. Make sure you have updated RVM
    rvm get stable --autolibs=enable
  2. Installing Ruby
    rvm install 2.0.0
  3. Make Ruby 2.0.0 default
    rvm use 2.0.0 --default
  4. Verify if Ruby version
    ruby -v
Install Calabash Android
  1. Install Calabash Android Gem
    gem install calabash-android
  2. Verify the calabash android was installed
    gem list calabash-android
  3. You should see output:
    calabash-android (version)
Java Home
  1. Make sure Java home is set correctly
    echo $JAVA_HOME
Prepare Calabash Apk
  1. calabash-android resign <apk_file>
  2. calabash-android build <apk_file>
Run Calabash Apk on Real Device
  1. calabash-android run <apk_file>