Monday, October 6, 2014

How to make Ubuntu VM full screen with Virtual Box.

After installing Virtual Box and Ubuntu Desktop. The VM screen by default is small, below I will show you how to make the screen bigger.



1. Go to "Devices" tab.
2. Select last option "Insert Guest Additions CD image", then select "Run", enter your VM password when prompt.
3. Restart VM.

Now you will noticed the VM supports full screen.




Shared folder from Mac to Virtual Box Ubuntu VM

1. In your Ubuntu VM, go to "Devices" tab -> select "Shared Folders".
2. Select the folder from your Mac that you want to share with the VM (Virtual Machine).

3. Select Ok.
4. Now open the Terminal, and type this command:
$sudo adduser USERNAME vboxsf


4. Restart VM.
5. Now go to: /File System/media/(shared folder is here)

All done. enjoy :-)



Reference

Friday, September 26, 2014

How to make app icon for Android and iOS App (very simple)

1. Go to this link App icon
2. Drag and drop photo of you icon
3. Enter your email, check your email and download the zip file with the icons.

testflight-sdk-tutorial

Work in progress......



Reference:
testflight-sdk-tutorial

How to create an Scala Play 2 project (Mac)

Open terminal and enter below commands. enjoy!
1. Install brew.
$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Install Play 2.
$brew install typesafe-activator
3. Choose a /directory to create your first play project.
a. Create new Play project $ activator new
b. Select Scala $4
c. Enter name of project
(commands shown below)

USER:temp vhome$ activator new
Fetching the latest list of templates...
Browse the list of templates: http://typesafe.com/activator/templates
Choose from these featured templates or enter a template name:
  1) minimal-java
  2) minimal-scala
  3) play-java
  4) play-scala
(hit tab to see a list of all templates)
> 4
Enter a name for your application (just press enter for 'play-scala')
> Hello-Play-app
OK, application "Hello-Play-app" is being created using the "play-scala" template.
2. Open project UI. Go to project /directory and enter command below. It will open project in browser UI.
/../Hello-Play-app/$ activator ui
Wait few seconds then you will see below:


1. To run Play App.
a. open terminal and got o the project /directory
b. Enter command:
   $activator
c. Then enter command:
  $run

If everything is working fine; you will see the below terminal output:


Now your Play app is up and running.
To see the app running go to: http://localhost:9000/


This is to get you started. Good luck :-)

References:
Play 2 Framework

How to use Play Console


Wednesday, September 24, 2014

How to install Homebrew in Mac (10.9.+)

1. Open terminal, copy and paste below commnad:
$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
 Update Homebrew:
$brew update
Install application:
$brew install <application-name>
Example; Install wget using Homebrew:
  $brew install wget

  $brew install sbt

  $brew install scala

  $brew install git

(install play)
$brew install typesafe-activator

List applications installed by homebrew:
$brew list
Remove application:
$brew  remove <application-name>
Check for issues:
$brew doctor
What you can do with Homebrew:
$man brew




Reference:
http://coolestguidesontheplanet.com/setting-up-os-x-mavericks-and-homebrew/