Git Commands

Git is a distributed source control repository. To get details knowledge on git visit official website.

Setting Up Git

At first if you want to use git you need to setup the basic git configuration. This is a one time only tasks and hence is important to set proper git configurations.

Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates. These variables can be stored in three different places:

  1. /etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically.
  2. ~/.gitconfig or ~/.config/git/config file: Specific to your user. You can make Git read and write to this file specifically by passing the --global option.
  3. config file in the Git directory (that is, .git/config) of whatever repository you’re currently using: Specific to that single repository.


Your Identity

git config --global "<UserName>"
Given username has been set as global variant for all git commands you’ll use later.
git config --global <Email_Id>
Given email will be set as global variant for all git commits.

Note: If you pass the --global option, then Git will always use Continue reading


Digital Literacy Training-Samata School, Patan

A five day long Digital Literacy Training(DLT) was held by the former Microsoft Student Partners with the support of other working engineers for the students of Samata School, Patan.

The event which started off on 12 September Friday was held on every evening for an hour or two where each students learned basics of computing with office packages,paints,internet and understanding the functioning of Computers.

Samata School, Gwarko
Samata School is renowned for its unique structure of being a Bamboo School where all its building are built from bamboo itself. Also the school provides a Continue reading

AndEngine Simple Android Game Tutorial

Here I go taking on Android Game Development with AndEngine.
This is a detailed simple blog post to help get started with Android Game Development.

Jimmar's blog thingie

WARNING: This is an outdated tutorial for the old AndEngine GLES1.0, if you want a tutorial for the new GLES2.0 then Check my Jimvaders tutorial ..

After playing around with the Android SDK , I thought that I should give game development a test drive. After giving Cocos2D a test, I faced the problem of online support, almost all the tutorials I found online were for the iOS version.. so I looked for other Engines made for Android.

AndEngine is an awesome game engine I found, but I couldn’t find a whole game tutorial.. so I thought that I’d port Dan’s simple Android Game tutorial (that’s actually ported from Ray’s iPhone cocos2D tutorial)

This tutorial will cover:
– Adding/Removing sprites
– Using timeHandlers
– Moving sprites
– Using Sound/Music
– Pausing/Resuming your game
– Simple collision detection

View original post 2,327 more words

Paypal REST API Verification

The REST Api for Paypal payment is used when the payment is made from a source other than Paypal account i.e.  using a Credit Card information.

Credit Card Payment

Before we verify credit card payments, there are few steps we should do to make REST Api available for our app.

  • Get Access Token for your App
  • Making sure the recipient is our account
  • Check the account and currency of Payment

Access token helps Paypal authenticate our app account and at the same time uniquely identify transactions.

  1. Getting Access Token
    Continue reading

Get an Access Token for REST Api

Access Token

This is a key provided by Paypal once it has verified our app and account as being authorized in Paypal. We will mostly use access token for REST Api calls in Paypal. Access token helps uniquely identify the authorized bearer of Paypal.

The Fields in Response we receive

  • access_token : The unique key we are trying to gain
  • token_type : The specification for the key , here it is authorized as being a bearer key.
  • app_id : Our app ID, make sure this is the ID of your app.
  • expires_in : Each token has an expiry date specified in seconds, for eg. 28800 . So make sure to gain your access token right before you intend to use one.

Before we can get an access token we need to create a Continue reading

Paypal Adaptive Payment Verification

Paypal adaptive payment is the case when a user pays using their Paypal account.

Adaptive Payment

Once the “proof of payment” response is received we still have one simple step to do before we end our Paypal environment, that is we still need to verify if the payment has reached to our account (seller account). By doing so we are

  • authenticating the response we are receiving
  • making sure the recipient is our account
  • check the amount and currency of payment

From the response we will need pay_key and app_id to further authenticate the payment details.

  • pay_key : this key helps to identify the payment for which you want to retrieve details.
  • app_id : the unique id of your application.

Furthermore, Continue reading