Sunday, June 25, 2017

How to install Maven on Windows

For windows follow these steps



Step  1 :  Download the Maven's zip file, and unzip it to the directory you wish to install,
                and configure the windows environment variables.
                        Tools used
                               JDK 1.7
                               Maven 3.2.2
                               Windows 8

Step  2 :  Make sure JDK is installed, and "JAVA_HOME" variable is added as                                                   Windows environment variable.

Step  3 :  Visit  Maven official website download the Maven zip file, for example
                             apache-mvn-3.2.2-bin.zip
                Unzip it to the folder you want to install Maven.
                             C:\Program Files\Apache\maven

Step  4 :  Add both M2_HOME and MAVEN_HOME variables in the Windows
                environment.

Step  5:  Update PATH variable, append Maven bin folder- %M2_HOME%\bin, so that
               you can run  the Maven's command everywhere.

Step  6:  Run mvn -version in the command prompt.

Thursday, June 22, 2017

How to Install Apache Maven on Ubuntu 16.04

How do I install maven?

For Ubuntu follow below steps

Prerequisites

  • A newly deployed Vultr Ubuntu 16.04 server.
  • A non-root user with sudo privileges created on your serve.


Step 1 :  update your system to the latest stable version by running the following 
              command
                         sudo apt-get update -y
                         sudo apt-get upgrade -y

Step 2 :  Apache Maven requires Java to be installed on your server. By default, Java 
             is not  available in Ubuntu's repository. Add the Oracle Java PPA to Apt 
              with the  following  command.
                           sudo add-apt-repository ppa:webupd8team/java

Step 3 :  update your Apt package database with the following command.
                           sudo apt-get update -y

Step 4 :  Install the latest stable version of Oracle Java 8.
                           sudo apt-get install oracle-java8-installer


Step 5 :  Verify the Java version by running the following command.
                           java -version

Step 6 :  Verify the Java version by running the following command.
                          java -version
              output for this step
                           java version "1.8.0_91"
                Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
                Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

Step 7 :  You can download the latest stable version of Apache Maven from its official 
              website, otherwise you can download it directly with the following 
               command.
                           cd /opt/
                wget http://www-eu.apache.org/dist/maven/
                maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

Step 8 :   Extract the downloaded archive.
                            sudo tar -xvzf apache-maven-3.3.9-bin.tar.gz

Step 9 :   Rename the extracted directory.
                             sudo mv apache-maven-3.3.9 maven

Step 10 :   you will need to setup the environment variables such as M2_HOME, 
                M2,  M2_OPTS and PATH . You can do this by creating a mavenenv.sh file 
                inside of  the /etc/profile.d/ directory.
                              sudo nano /etc/profile.d/mavenenv.sh

Step 11 :   Add the following lines.
                              export M2_HOME=/opt/maven
                  export PATH=${M2_HOME}/bin:${PATH}

Step 12 :   Load the environment variables with the following command.
                               sudo chmod +x /etc/profile.d/mavenenv.sh
                  sudo source /etc/profile.d/mavenenv.sh

Step 13 :   check the version of the Apache Maven.
                               mvn --version
           
             You should see the following output:
                  Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
                  2015-11-10T22:11:47+05:30)
                  Maven home: /opt/maven
                  Java version: 1.8.0_101, vendor: Oracle Corporation
                  Java home: /usr/lib/jvm/java-8-oracle/jre
                  Default locale: en_US, platform encoding: ANSI_X3.4-1968
                  OS name: "linux", version: "3.13.0-32-generic", 
                  arch: "amd64", family:"unix"




                          

Monday, June 19, 2017

How do I install ubuntu?

 
Follow these steps.
  1. create a partition for your hard disk. Give 100gb for ubuntu.
  2. switch off fastboot in windows. by going to power settings, click on change what power buttons do and the deselect turn on fast startup. (use google search if you don't know how)
  3. load ubuntu 14.04 bootable pendrive or a cd according to this link.
  4. now, insert the pendrive or the cd and click on power and restart while holding shift key.
  5. then click on "usb" and then click on first option that is available. (not sure what it says)
  6. then click on try ubuntu or install ubuntu.
  7. then follow the steps. in step 3 (i think) it will give you options to clear hard dive (i.e. delete ubuntu) or other. choose other.
  8. the give the following memory for each: ext4 / :40gb, ext4 /home: 50gb, ext2 /boot: 500mb and downset boot thing to boot partiton.
  9. then you are done. just follow steps.

Thursday, June 15, 2017

Business Scenario

We created two business scenario for our selected API's
  1. By using Google Adsense API IT industries can add their new things consistently from this people can easily get to know what's new today in IT field (eg new version of languages, whats new from previous version,new apps etc). By using 30boxes API they can scheduled their events like workshop , new languages launching dates, sprint meetings etc. Pushover API  help to chat with IT people to ask more about what they are advertise through google adsence.
  2.  By using BigCommerce API business people can analyze the market and find out what are the new business opportunities..By using Google adsence he can advertise his business & with the help of 30 boxes he can schedule his works. Coinbase supports to bitcoin transactions so that he can do buying and selling process with bitcoin.Finally pushover  helps to make conferences with customers and keep a good relationship with them.
     

Monday, June 12, 2017

How to Create a Business scenario

 A good business scenario is representative of a significant business need or problem, and enables vendors to understand the value to the customer organization of a developed solution.

A business scenario describes:
  • A business process, application, or set of applications that can be enabled by the architecture
  • The business and technology environment
  • The people and computing components (called "actors") who execute the scenario
  • The desired outcome of proper execution. 

Creating a business scenario involves the following,
  1. Identifying, documenting, and ranking the problem driving the scenario
  2. Identifying the business and technical environment of the scenario and documenting it in scenario models
  3. Identifying and documenting desired objectives (the results of handling the problems successfully); get "SMART"
  4. Identifying the human actors (participants) and their place in the business model
  5. Identifying computer actors (computing elements) and their place in the technology model
  6. Identifying and documenting roles, responsibilities, and measures of success per actor; documenting the required scripts per actor, and the results of handling the situation
  7. Checking for "fitness-for-purpose" and refining only if necessary

Saturday, June 10, 2017

Selected API

We selected five API's for implementing connectors.


It  covers five major areas related to businesses.
1.     Business analyzing.
                         API – 30boxes.
            2.  Advertising.
                         API - Google AdSense
2.     E-commerce
                         API - BigCommerce
3.     Crypto currency Exchange
                         API - Coinbase
4.     Business conferencing
                         API - Push Over
 
  • 30boxes
    • 30boxes is a calendaring service that allows you to organize your life,then share it with friends. It also supports SMS and email notifications. So it will helpful for business people to planning their events and analyze the market.
  • Google AdSense 
    • Using the AdSense API, developers can let users signup for AdSense through their site or program, generate detailes performance reports for users, and choose how the AdSense revenue is shared with our revenue sharing program. Additionally users can create accounts to store publisher website information, then generate ad code snippets and filter out wanted ads. It will help to advertise their business to people.
  • BigCommerce 
    • It useful to do e-commerce like online shopping.
  • Coinbase
    • Coinbase is an electronic service and "wallet" for bitcoins and digital currency.  Users  can transfer currency, pay merchants and make other payments instantly. It allows developers to access and integrate the functionality to coinbase with other applications.
  • Pushover 
    • It is useful for business chat. 

Wednesday, June 7, 2017

Finding API

How to find the API for our project

Thursday, June 1, 2017

Group-3s_Implementing connectors

IMPLEMENTING WSO2 CONNECTORS

This is our 3rd year group project regarding the subject Rapid Application Development. We are planned to develop this project  mainly for the business people who  get to know about market analysis to stand on a good position among other business and get a good place from their customers. The following members are working on this project.

Members
Reg. no
Mr. M. Kausik (leader)
2014/CSC/010
Mr.K.B.Ranushka Pasindu Dharmaranga
2014/CSC/016
Miss. Y. Ligitha
2014/CSC/023
Mr. D .M Dhanuska Chamara Dissanayake
2014/CSC/028
Mr. H. A. Cholaka lahiru madhushanka senanayaka
2014/CSC/034
 


To do this project we have to get clear knowledge about 
  • API
    •  Application program interface (API) is a set of routines, protocols, and tools for building software applications. An API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components.
  • Connector
    • A connector refers to a way to connect to an API that is provided by a third party.
  • Business Scenario 
    • Business scenarios are an important technique that may be used at various stages of the enterprise architecture to derive the characteristics of the architecture directly from the high-level requirements of the business. They are used to help identify and understand business needs, and thereby to derive the business requirements that the architecture development has to address. 

Streak methods

I have implemented following methods in Streak API getUser : This call will return the details for the user specified getPipeline: Re...