Skip to main content

Posts

Showing posts from November, 2013

Settting up PATH Environment Variables

HOW TO EDIT PATH VARIABLES IN MAC -  1. Open terminal and enter the following command  -  touch ~/.bash_profile; open ~/.bash_profile This will open the bash_profile in text editor   2. Add the following line to the end of the file adding whatever additional directory you want in your path: export PATH="$HOME/.rbenv/bin:$PATH" 3. Save the .bash_profile file and Quit (Command + Q) Text Edit. 4. Force the .bash_profile to execute. This loads the values immediately without having to reboot. In your Terminal window, run the following command. source ~/.bash_profile Voila ! You are done.  Check your Path vars by typing echo$PATH in the editor.    Multiple path environment variable setup with bash - export PATH = "A" export PATH = "$PATH:B" export PATH = "$PATH:C"

Install apk file on your phone through adb command .

While I was trying to download an android app on my mobile phone, I was getting a error ( 498) . Tried looking for the solution but couldn't get the resolution of my problem. That's when I tweaked around and downloaded the app on phone through adb install command from my mac book .  Steps -  (Follow steps 1, 2 if Android SDK is not already installed on your system. ) 1. Download the Android Software Development Kit (SDK) from the Android SDK Download Site. 2. Once downloaded, find a safe installation location on your machine and simply extract the zipped files to this directory. For example, • on Mac or Linux, install in $HOME/ • on Windows, install in C:/ Make note of the full path to and directory name of this directory where the SDK files are unpacked on your system.  3.  If you are currently in the platform-tools directory, just call ./ adb -- help The dot is your current directory, and this tells Bash to use adb from there. Otherw