Blogs

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
http://kaz.dl.sourceforge.net/project/cruisecontrol/CruiseControl/2.8.4/cruisecontrol-bin-2.8.4.zip
- Make the clone of PHP Under Control
git clone git://github.com/phpundercontrol/phpUnderControl.git
- php phpUnderControl/bin/phpuc(.php|.bat) install /path/to/cruisecontrol
- Give the 755 permission to cruisecontrol.sh file under cruisecontrol folder
sudo chmod 755 ./cruisecontrol.sh
- Run the Commad :
sudo ./cruisecontrol.sh
- 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 http://pear.php.net/go-pear.phar
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 https://getcomposer.org/installer | php

Now install the Zendframe work:
php composer.phar create-project -sdev --repository-url="http://packages.zendframework.com" 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 3.2.0.23-generic-pae 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".

Pages