Skip to content

Latest commit

 

History

History
102 lines (70 loc) · 4.6 KB

File metadata and controls

102 lines (70 loc) · 4.6 KB

Computer Setup and Data Handling

Macs: installing homebrew

Homebrew is a mac installer for packages/libraries/etc that works alongside Apple's installers. We need it for git. Install oneliner:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

If you recieve an SSL certificate error:

ruby -e "$(curl --insecure -fsSL https://raw.github.com/mxcl/homebrew/go)"

Installing git

Note: If you have issues with brew install because of an XCode error, try using this Heroku Toolbelt installation that will include git, or choose an OS based installation from this guide: http://git-scm.com/book/en/Getting-Started-Installing-Git

Once you've setup git and github, clone your fork of the class repository. We'll be using the Fork and Pull git model. You will be pushing changes to your forked repository, and submitting pull requests to the class repository.

From the github help page:

The Fork & Pull Model lets anyone fork an existing repository and push changes to their personal fork without requiring access be granted to the source repository. The changes must then be pulled into the source repository by the project maintainer.

cd ~/; git clone [email protected]:<your github username>/GADS9-NYC-Spring2014.git

For example:

cd ~/; git clone [email protected]:datadave/GADS9-NYC-Spring2014.git

python

The easiest install is Anaconda's Python. Download and install here for your computer.

Note to Engineers: If you prefer to not have anaconda's distribution as your primary python, comment out the PATH line for anaconda in ~/.bash_profile and add an alias for anaconda's python, ipython and conda package handler:

alias apython="~/anaconda/bin/python"
alias ipython="~/anaconda/bin/ipython"
alias conda="~/anaconda/bin/conda"

For visualizations we'll primarily use matplotlib and yhat's version of ggplot for python:

conda install -c https://conda.binstar.org/public ggplot

Users experiencing ggplot package errors should try pip (this problem was observed on Ubuntu and Windows):

pip install ggplot

Lab Submissions

in GADS9-NYC-Spring2014/lab_submissions/lab01, make a directory with your first initial/full last name.

DIR='flastname'; cd ~/GADS9-NYC-Spring2014/lab_submissions/lab01; mkdir $DIR; open $DIR

With a text or markdown editor, create and save a markdown file with the following content:

  • Your name and what you do
  • One liner about your coding and math background
  • Any social web you use and don't mind sharing (twitter link, for example)
  • A data blog post you read recently for sharing with the class

create a branch of the repository with a unique name, and then commit to that repo

git checkout -b my_name_class_1
git add .
git commit -m 'my first git commit!'
git push origin my_name_class_1

Add a pull request. This is the actual submission of your work. You can do this on github by finding your branch and clicking "Create pull request." Developers, feel free to use some command line tool for this if you prefer it.

Again, a link to github documentation on the Fork and Pull git model.

Next Steps

We will always recommend 4 or 5 readings or other support materials for every class, either to supplement the current material, prep for the next class, or covering previous material that students still have questions on.

Reading and other Materials