Android Application Developement Short Notes

1). Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. Android was developed by the Open Handset Alliance, led by Google, and other companies.

2). Android applications are usually developed in the Java language using the Android Software Development Kit.

3). Once developed, Android applications can be packaged easily and sold out either through a store such as Google Play or the Amazon Appstore.

Install Cruise Control and PHP Under Control

- Download the Latest version of CruiseControl
- Make the clone of PHP Under Control
git clone git://
- php phpUnderControl/bin/phpuc(.php|.bat) install /path/to/cruisecontrol
- Give the 755 permission to file under cruisecontrol folder
sudo chmod 755 ./
- Run the Commad :
sudo ./
- Set the JAVA_HOME according your java location.

PHP Code Formatter Setting for Zend Studio

Enable PSR2 Library in Zend Studio :
Windows >> Preferences >> PHP >> Code Style >> Formatter
Select PSR2 from Active Profile dropdown.

Installing Code sniffer
sudo wget
sudo php go-pear.phar
sudo /usr/bin/pear install PHP_CodeSniffer

Check code :
phpcs --standard=Zend --report=summary folder_path/ >summay.txt

Git Tag

Cloning the branch or tag:
git clone --branch <tag_name> <repo_url>

Git pull for a specific tag :
git pull origin <tag_name>

Git checkout for a specific tag :
git checkout <tag_name>

Git pushing the tag:
git push --tags

Installing node.js latest version and express framework

Run the following commands to install node.js and express framework in Ubuntu
  • sudo apt-get update
  • sudo apt-get install python-software-properties python g++ make
  • sudo add-apt-repository ppa:chris-lea/node.js
  • sudo apt-get update
  • sudo apt-get install nodejs
  • sudo npm install -g express

Install ZFTool for ZF2 Framework Project

  1. Download the ZFTool
  2. Extract it into "vendor/ZFTool" folder
  3. Now run the command "php vendor/ZFTool/zf.php"
  4. Above command will list the help for ZFTool
All the  command will be listed for using the ZFTool.
Some important ZFTools commands:
  1. zf.php modules : For listing the modules
  2. zf.php version : For getting the version of ZF2

Install Zendframe work2 on Ubuntu by Composer

Install the composer :
curl -sS | php

Now install the Zendframe work:
php composer.phar create-project -sdev --repository-url="" zendframework/skeleton-application /path/to/install/zendframework

If you got the "*.so" error then follow the below steps to solve it:
Run the command grep -Hrv ";" /etc/php5 | grep -i "extension="

Hack the Ubuntu Password

Steps to boot in single user mode in Ubuntu 12.04:

Step 1: When you start your system, press "shift" key continuously to get the grub loader screen.

Step 2: In Grub 2 menu, select the menu with Linux highlighted.

Step3: Press 'e' to edit the grub2 menu.

Step 4:  Move the cursor to the line that starts with "linux /boot/vmlinuz-3.2.0-23-generice-pae".