Thursday 12 March 2015

Record Android Screen Using Android SDK And ADB

There are many ways to record android screen , there are many applications those are capable of doing that but some of them requires root access . In this tutorial I am going to show you how you can use android sdk and tools to record android screen .

Prerequisites

  1. Android Device Running ” Kitkat ” or later
  2. System with android sdk installed
You can Download and install android sdk 
and make sure that you’ve installed platform tools and you can access adb tool .
first start adb
$ adb devices
sample output :
$  adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
d66479a device
adnroid adb
after that , you can see if any devices is attached with your computer , if not then enable developer option and connect your android device then try again . this tool record in mp4 format you can use vlc or any media player to play it quality of video vary device to device .
$ adb shell screenrecord  /sdcard/record17.mp4
after that press ctrl + c to stop recording . you can find that recording on root of your sdcard .
Screen Shot 2015-01-27 at 4.48.29 pm

How To Setup Apache PHP And MySQL In MacOS X 10.10 Yosemite [ Updated ]

Upgraded to Yosemite , great . now lets see how to setup Apache webserver with PHP and MySQL . unlike 10.7 Lion or 10.6 there is no prefrence pane option to turn on Apache . but don’t worry MacOSX Yosemite comes with Apache and you can turn on it using Terminal . Okay lets see how to setup Apache PHP and MySQL setup in Mac OS X Yosemite .
apachectl -v && php -v
apache and php with yosemite

Setup Apache

open terminal and type
sudo apachectl start 
now open your favourite browser and browse to http://localhost
you will see default apache page
default apache page in MacOX yosemite
Lets setup user-dir for per user
I am going to use nano in this guide feel free to use any of your favourite editor .
  • Enable mod_authz_core, mod_authz_host, mod_userdir and mod_userdir.so modules
sudo nano /etc/apache2/httpd.conf
Uncomment These Three Modules For Now ( Remove “#” sign from the starting of line if “#” is present )
LoadModule authn_core_module libexec/apache2/mod_authn_core.so
LoadModule authz_host_module libexec/apache2/mod_authz_host.so 
LoadModule userdir_module libexec/apache2/mod_userdir.so 

You can dump list of all Loaded Modules using sudo apachectl -M command .
Enable User Dir IN MacOSX
user-dir module
Then Navigate to bottom of the file , and uncomment following line
Include /private/etc/apache2/extra/httpd-userdir.conf
user_dir apache
then open /etc/apache2/extra/httpd-userdir.conf
sudo nano /etc/apache2/extra/httpd-userdir.conf  
and uncomment following line
Include /private/etc/apache2/users/*.conf
enabling user dir from extra conf
Okay Now Setup your user.conf
sudo nano /etc/apache2/users/YOURUSERNAME.conf
<Directory /Users/*/Sites>
 DirectoryIndex index.html index.php index index.html default.html default.htm
 AllowOverride FileInfo AuthConfig Limit Indexes
 Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
 <Limit GET POST OPTIONS>
 Require all granted
 </Limit>
 <LimitExcept GET POST OPTIONS>
 Require all denied
 </LimitExcept>
</Directory>
Now Create Sites Folder in your Home Director
mkdir Sites
Now test apache config using
Screen Shot 2014-07-11 at 10.06.05 pm
Now Create a File inside Sites Directory Name it index.html
Enter Some Plain HTML and save that
Now Let’s Test Apache Configuration
apachectl -t 
then restart apache
sudo apachectl restart
then open browser and browse to http://localhost/~yourusername , Note that “~” tilde in url
your will see something like this
Apache user dir mac osx page

Setup PHP

sudo nano /etc/apache2/httpd.conf 
and uncomment
LoadModule php5_module libexec/apache2/libphp5.so
enabling php in macos yosemite
and test apache config using apachectl -t
then create a file in your Sites Directory
nano ~/Sites/index.php
then enter simple phpinfo() in index.php
<?php 
phpinfo();
?>
and browse to http://localhost/~username/index.php
you will see phpinfo page
Screen Shot 2014-07-11 at 10.30.16 pm

Setup MySQL

Download MySQL (Download DMG ) : http://dev.mysql.com/downloads/mysql/
Screen Shot 2014-07-11 at 10.38.08 pm
Install that Like another Package of MacOSX there is nothing tricky , install prefPane ( included in DMG )
adding mysql in $PATH
touch ~/.bash_login && echo export PATH=$PATH:/usr/local/mysql/bin | tee ~/.bash_login
above command will create .bash_login file in your home directory and it will add MySQL in PATH
restart your terminal and start mysql from PrefrencePane
MySQL Prefrencepane yosemite
okay now open terminal and type
mysql_secure_installation

Aloks-Mac-Pro:~ alok$ mysql_secure_installation 



NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] < ------------------ Press ENTER 

Set root password? [Y/n] < ------------- Press Enter 

Screen Shot 2014-07-11 at 10.49.52 pm
New password:  < ------------------ ENETR NEW ROOT PASSWORD 
Re-enter new password:
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]  < ------------------- PRESS ENTER 

 

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]  < ------ PRESS ENTER 

Screen Shot 2014-07-11 at 10.50.52 pm

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]  < ---------- PRESS ENTER 
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]  < ------------- PRESS ENTER 
All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!


Cleaning up...

All Done Now MySQL is set up
Screen Shot 2014-07-11 at 10.53.52 pm
Now You Have Working APACHE PHP AND MYSQL

How To Disable Easy Installing Feature In VMware Workstation

VMware workstation has a feature called easy install it helps many times and save time too . but sometime you want to install anything with customization , For e.g.. I want to install Ubuntu server with my own configuration then you want to stop this feature(easy install).
1
I will show you how you can stop this feature.

1. Delete Autoinst.Iso Drive

disabling vmware easy install
2.  Delete the autoinst.flp  drive
disabling vmware easy install
That’s All now you can customize your installation
and here is the video : how to do that .. watch it in action

Video Calling Over Facebook



What do we mean by a video call?
for those who have never made a video call and dont know how to do it…..video calling is like video chat like we chat over different messengers similarly we can video chat where we share our live video with our friends see them live and talk to them face to face virtually.for these we need a webcam and a microphone and internet connection but if you using a laptop you already have both so you need just a software to start. Making a video call over internet is free.
Which software supports video calling?
there are many softwares available for making a video call like every chat messenger be it yahoo messenger(http://in.messenger.yahoo.com/download/),gtalk(http://www.google.com/talk/) or windows live messenger (http://explore.live.com/windows-live-messenger) all have video call support.the most widely used isskype(http://www.skype.com/intl/en/get-skype/on-your-computer/windows/but in all these you will need to make their email id like for yahoo messenger you need a yahoo id for gtalk gmail id for windows live messenger live id and for skype a skype id or username but now for those using facebook(almost everybody use it) you need not have these many ids because facebook+skypehas made video calling possible in your browser itself so no extra software or username required.
to enable video calling over facebook on your account just log in to your account and get started through this :http://www.facebook.com/videocalling
                                   fbvid
you will see a page like above just click on get started then follow the steps to install facebook video calling plugin in your browser then refresh the page and you are done and from now on whenever you chat with a friend you will see video call button attached to your chat box like dis
                                       finish
hope you have got it and are enjoying your video chat with friends over facebook.if you have any questions then please leave us a comment.