Create Your First Android App in Windows 7


NODEJS
1. install nodejs
2. npm install -g phonegap
3. npm install -g cordova

 

JAVA
1. install java sdk
2. set JAVA_HOME environment variable. eg: JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05
3. add JAVA’s bin folder to PATH environment variable, eg: C:\Program Files\Java\jdk1.8.0_05\bin

 

ANDROID
1. copy to desired location, eg: C:\dev
2. set ANDROID_HOME environment variable, eg: ANDROID_HOME=C:\dev\adt-bundle\sdk
3. add ANDROID’s tools and platform-tools folder to the PATH environment variable, eg: %ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

 

ANT
1. copy to  sdk/tools folder
2. set ANT_HOME environement variable, eg: ANT_HOME=C:\dev\adt-bundle\sdk\tools\ant
3. add ANT’s tools and bin folder to PATH environment variable, eg:  %PATH%\tools;%ANT_HOME%\bin

 

TESTING THE INSTALLATION

java -version
java version “1.8.0_05″
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

ant -version
Apache Ant(TM) version 1.9.3 compiled on December 23 2013

cordova -version
3.4.1-0.1.0

phonegap -version
3.4.0-0.19.13

$ cordova create hello com.example.hello “HelloWorld”
$ cd hello
$ cordova platform add android
$ cordova build
$ cordova emulate android

deploy to the device (enable USB DEBUGGING first, the connect the device via USB)
$ cordova run android

Debug Rewrite Rule In Apache


Sometimes we need to test rewrite rule and log to see what happen, just put this on .htaccess file

RewriteLog /tmp/rewritelog
RewriteLogLevel 9

RewriteLog directive set the path to the log file. you can also set this directive to send log to a program. For a bit more complete information about this see here

valid values for RewriteLogLevel is 0-9

0 = no logging at all
9 = logging all possible information

see here for more complete explanation

don’t forget to turn on the RewriteEngine by putting this line

RewriteEngine on

70 Javascript Libraries You Can Choose for Your Productivity


Here are 70 Javascript Libraries I’ve found from some articles and a bit googling

  • angularjs.org
  • backbonejs.org
  • emberjs.com
  • expressjs.com
  • meteor.com
  • derbyjs.com
  • socketstream.org
  • developer.yahoo.com/cocktails/mojito/‎
  • nombo.io
  • coke-js.org
  • sleekjs.com
  • actionherojs.com
  • frisbyjs.com
  • mcavage.github.io/node-restify
  • percolatorjs.com
  • strongloop.com/mobile-application-development/loopback/
  • spumko.github.io (hapi)
  • flatironjs.org
  • locomotivejs.org
  • compoundjs.com
  • geddyjs.org
  • sailsjs.org
  • threejs.org
  • raphaeljs.com
  • processingjs.org
  • d3js.org
  • kineticjs.com
  • createjs.com
  • handlebarsjs.com
  • mustache.github.io
  • jasmine.github.io
  • qunitjs.com
  • unitjs.com
  • knockoutjs.com
  • microscopejs.com
  • krakenjs.com
  • underscorejs.org
  • totaljs.com
  • spinejs.com
  • tupaijs.com
  • trintejs.com
  • getlavaca.com
  • mozart.io
  • agilityjs.com
  • puremvc.org
  • docpad.org
  • towerjs.org
  • agilityjs.com
  • hcanjs.com
  • sammyjs.org
  • snackjs.com
  • serenadejs.org
  • feathersjs.com
  • rappidjs.com
  • amplifyjs.com
  • blacksmith.jit.su
  • moot.it/riotjs/‎
  • github.com/robtweed/ewdGateway2
  • github.com/jnordberg/wintersmith
  • github.com/felixge/node-romulus
  • github.com/caolan/petrify
  • github.com/tshemsedinov/impress
  • github.com/airbnb/rendr
  • github.com/mklabs/backnode
  • hay.github.io/stapes/
  • britesnow.com/brite‎/
  • senchalabs.org/connect/
  • peter.michaux.ca/maria/‎
  • mochi.github.io/mochikit/
  • somajs.github.io/somajs/