GIT setup: basic configuration

Hola!

After installing Git client it's ready to use right away. However there are few things you may want to consider setting up. Those are things like for example user name and e-mail address.

You can display current config values with the following command:
$ git config --list

Important Note
When setting configuration parameters you can set it either as global or local value. By default you are setting the local value. By using --global param it will be set-up globally which means it will be used for all of your projects unless overridden by a local setting.


Setting user name
$ git config --global user.name "xuser"
$ git config user.name "xuser"

Setting e-mail

$ git config --global user.email xuser@example.com
$ git config user.email xuser@example.com



That's it.


Android: simulate incoming call

Hi,

There are at least 2 ways of making incoming calls to your test device (either real device or emulator).

Solution A: Make the call from within Eclipse DDMS UI



Solution B: Make the call using command line

1. List the available devices:

$ adb devices

List of devices attached
localhost:5554    device


2. Telnet to the device:
$ telnet localhost 5554

3. Make the incoming call:
> gsm call <specify_number>



Cheers!


Android Emulator: How to run APK file?

If you want to install and run APK on the emulator device follow the steps below.


You will be using adb script which should be located in android-sdks/platform-tools/

1. List the available devices:
$ ./adb devices

2. Install the APK file:
$ ./abd install example_app.apk



Success!



Git Error: Permission denied (publickey)

Hello,

The other day I was trying to fetch the changes from the remote repo and the following error has been displayed:

$ git fetch origin

Agent admitted failure to sign using the key.
# Permission denied (publickey).



In this case the reason was that I've changed / switched between two different ssh keys. However if you got similar issues the problem has been fixed by telling ssh to use the key by running the following command:

$ ssh-add

That's it - problem solved :)