Saturday, August 2, 2014

Clone your github repository and add commit push your changes

1) get your repository URL from your github account: e.g. url1

2) Open terminal and type
> git clone url1

this will create the local copy for already existing remote repo.

3) Start working and create some file in the cloned directory dir1 and add the file to local git
dir1> touch file1
dir1> git add file1

4) Commit the changes with some message
dir1> git commit -m "first commit"

5) Push the changes to remote server
dir1> git push
.

6) Check your github account for the changes, it must be reflected there.

Thursday, July 24, 2014

Install git on MAC OS X 10.8 Mountain Lion

Installing git from http://git-scm.com for MAC OS X 10.8 is kind of cumbersome, and does not work.

You get the following error, when you try to clone the repository.
> git clone ....

dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib



Solution::

NOTE: In case you do not have Apple developer account, please register it in 2 seconds and proceed.

step1: go to https://developer.apple.com/xcode/downloads/


step2: scroll down and click on "View Downloads" in Additional Tools as shown above.


step3: We have to install "Command Line Tools for XCode". Scroll down the list and look for the description that suits your MAC OS flavor. In this case of course it is MAC OS Mountain Lion (10.8)




step4: Install DMG file as usual and you are all set. Open a terminal and enjoy git :)



Thursday, June 26, 2014

Want to learn Python & SciPy

Trying to learn Python and hands on using the link:
http://learnpythonthehardway.org

Will try to implement necessary stuff and sync up on github repo


Also, trying to learn Scientific Modules of Python:

1) iPython: interactive python
2) Pandas: for data wrangling
3) NumPy: for matrix operations
4) SciPy: Scientific Computing
5) ggPlot or matplotlib

all from scipy.org