My Sites


Tuesday, June 10, 2014

Cannot import node js project to eclipse!! This is how to do it ...

You cannot directly import a nodejs project in to eclipse workspace.What you should do first is to setup nodeclipse.You can install it using,
                            $ npm install -g nodeclipse 
Then go to where the project is located and using   $ nodeclipse -g convert 
the project in to nodeclipse capable environment
                            $ cd sampleNodeProject 
                            $ nodeclipse -g 
After that using file--> import --> General --> Existing Projects into workspace ,
you can import the node js project. Cheers!!!

 
 

How to setup the Cisco Anyconnect VPN client on ubuntu?

Install following through ubuntu terminal 
sudo apt-­get install network­-manager­-pptp 
sudo apt­-get install network­-manager­-vpnc
sudo apt-­get install network­-manager­-openvpn  
sudo apt-­get install network­-manager­-openconnect-gnome 
 
select VPN connections -->  configure vpn --> add
and select VPN compatible Cisco AnyConnect.cheers!!  
 
enter image description here

Saturday, June 7, 2014

Develop mobile applications using Phonegap


Phonegap is  is a mobile development framework which uses JavaScript, HTML 5 , and CSS3 to build applications for mobile devices.The software underlying PhoneGap is Apache Cordova which is an open source software.

Let's get started!
1.) Make sure you have setup Nodejs then setup phone gap using following command.                    
                                npm install -g phonegap
2.) You can setup platforms as you like,
                                cordova platform add android
                                cordova platform add ios
                                cordova platform add amazon-fireos
3.) Go to directory where you want to create the phonegap application and create project using,
                               phonegap create helloWorld

4.) Go to helloWorld  cd helloWorld
5.) Build application in your platform
                                       cordova build android
6.) Setup your emulator (using AVD ) or plug your mobile device.
                               cordova emulate android
                               cordova run android


7.) You can edit index.html or add more html pages. js files ,resources in www folder inside the created project.use javascript to develop program , the api is provided by phone gap . http://docs.phonegap.com/en/edge/cordova_events_events.md.html#Events 
 
sudo gedit .profile
sudo gedit /etc/profile
. /etc/profile 
sudo gedit  .bashrc
 
# Android Path
PATH=$PATH:$HOME/Documents/Android/sdk:$HOME/Documents/Android/sdk/tools
export PATH

# For SDK version r_08 and higher, also add this for adb:
PATH=$PATH:$HOME/Documents/Android/sdk/platform-tools
export PATH

android avd
android sdk
android list sdk
 
What’s The Best Framework for Building Mobile Apps?
I found a nice article which supports this question with detailed information. Please have a look on the following amazing article.

Sunday, June 1, 2014

Cassandra 2.0 Up and running on Ubuntu 14.04

 Introduction
 Cassandra handles large amount of data  (Big Data)  across many    commodity  servers providing high availability  with  no single point of failure.

 Key features of Apache Cassandra

 1.) Decentralized so every node in the same cluster has the same role, therefore no single point of failure.
 2.) Supports replication and multi data center replication. 
 3.) Scalability.
 4.) Cassandra is highly available  and distributed.
 5.) High Performance.
 6.) Tunable consistency
 7.) NoSQL and Open source

 Setup Apache Cassandra 2.0 on Ubuntu 14.04
 
1.First check which version of Java is installed by running the following command in a terminal in ubuntu 14.04 .(Oracle JRE is recommended.)
java -version 
 
2.Add the DataStax Community repository to the aptitude repository source list file (/etc/apt/sources.list).
deb http://debian.datastax.com/community stable main 
 
3.Install curl in ubuntu 14.04 using,
sudo apt-get curl 
 
4.Add the DataStax repository key
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - 
 
5.Update ubutntu 14.04
sudo apt-get update
 
6.Install datastax community package
sudo apt-get install dsc20 

 Simple Cassandra Tutorial  (Cassandra Query Language)
 
create keyspace ScoreCard with replication = {'class':'SimpleStrategy', 'replication_factor':1};

select * from system.schema_keyspaces
 
use scorecard;

create table teamscorecard (teamname varchar ,teamid int , releasetimeuuid timeuuid,releaseid int ,actualid double ,actualgrowth double , PRIMARY KEY (teamname,teamid)); 
 
insert into teamscorecard (teamname, teamid , releasetimeuuid , releaseid , actualid , actualgrowth ) VALUES ('HE Portal', 100,now(),20,3.0,4.0);

select * from teamscorecard;