-
Notifications
You must be signed in to change notification settings - Fork 27
/
2013-02-01-Lab.html
312 lines (231 loc) · 8.21 KB
/
2013-02-01-Lab.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>2013-02-01-Lab</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="title" content="2013-02-01-Lab"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2013-02-01 17:25:49 PST"/>
<meta name="author" content="Jim Blomo"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<link rel="stylesheet" type="text/css" href="production/common.css" />
<link rel="stylesheet" type="text/css" href="production/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="production/projection.css" media="projection" />
<link rel="stylesheet" type="text/css" href="production/color-blue.css" media="projection" />
<link rel="stylesheet" type="text/css" href="production/presenter.css" media="presenter" />
<link href='http://fonts.googleapis.com/css?family=Lobster+Two:700|Yanone+Kaffeesatz:700|Open+Sans' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="preamble">
</div>
<div id="content">
<h1 class="title">2013-02-01-Lab</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Lab: Obtain and Explore Data</a></li>
<li><a href="#sec-2">2 Why GitHub?</a></li>
<li><a href="#sec-3">3 Setup GitHub account</a></li>
<li><a href="#sec-4">4 Setup git repository on ischool server</a></li>
<li><a href="#sec-5">5 Connect it to GitHub</a></li>
<li><a href="#sec-6">6 Share with us</a></li>
<li><a href="#sec-7">7 Obtain Data</a></li>
<li><a href="#sec-8">8 Questions</a></li>
<li><a href="#sec-9">9 Submit Homework</a>
<ul>
<li><a href="#sec-9-1">9.1 Pull Requests</a></li>
</ul>
</li>
<li><a href="#sec-10">10 Going Forward</a></li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Lab: Obtain and Explore Data <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-1">
<ul>
<li>Setup GitHub account
</li>
<li>Find a data set or external API
</li>
<li>Superficially examine it
</li>
<li>Summarize findings
</li>
<li>Submit assignment via GitHub
</li>
</ul>
</div>
</div>
<div id="outline-container-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> Why GitHub? <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-2">
<ul>
<li><code>git</code> tool is standard in industry
</li>
<li>GitHub provides best tools for sharing, commenting code
</li>
<li>This assignment will not have code, just practice submitting
</li>
</ul>
</div>
</div>
<div id="outline-container-3" class="outline-2">
<h2 id="sec-3"><span class="section-number-2">3</span> Setup GitHub account <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-3">
<ul>
<li>Create a <a href="https://github.com/signup/free">GitHub Account</a>, making sure to
use your .edu address
</li>
<li>Use <a href="https://github.com/edu">GitHub/Edu</a> to request a free micro plan:
these let us use private accounts
</li>
<li>Setup a <a href="https://help.github.com/articles/generating-ssh-keys">GitHub SSH Key</a>
</li>
</ul>
</div>
</div>
<div id="outline-container-4" class="outline-2">
<h2 id="sec-4"><span class="section-number-2">4</span> Setup git repository on ischool server <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-4">
<ul>
<li>On the server ischool.berkeley.edu
</li>
</ul>
<pre class="src src-bash">$ git clone git://github.com/jblomo/datamining290.git
</pre>
<ul>
<li>On the server, in the datamining290 directory run
</li>
</ul>
<pre class="src src-bash">$ git remote rename origin jblomo
</pre>
</div>
</div>
<div id="outline-container-5" class="outline-2">
<h2 id="sec-5"><span class="section-number-2">5</span> Connect it to GitHub <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-5">
<ul>
<li>After you recieve your free micro account on GitHub, create a private repository called datamining290
</li>
<li>It will provide you with an SSH git path, let's call it PATH
</li>
<li>You must use the <b>SSH</b> PATH starting with <code>git://</code>
</li>
<li>On the server, in the datamining290 directory, run
</li>
</ul>
<pre class="src src-html">$ git remote add origin PATH
$ git push origin master
</pre>
</div>
</div>
<div id="outline-container-6" class="outline-2">
<h2 id="sec-6"><span class="section-number-2">6</span> Share with us <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-6">
<ul>
<li>Hopefully you now have a private copy of my repository
</li>
<li>Add Shreyas and me (users: seekshreyas, jblomo) as a contributor to your private repository
</li>
</ul>
</div>
</div>
<div id="outline-container-7" class="outline-2">
<h2 id="sec-7"><span class="section-number-2">7</span> Obtain Data <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-7">
<ul>
<li>Look through the links in slides for interesting data sets, or find your own
</li>
<li>Or find a service API, like NYTimes
</li>
<li>Explore the data available to answer the following questions
</li>
</ul>
</div>
</div>
<div id="outline-container-8" class="outline-2">
<h2 id="sec-8"><span class="section-number-2">8</span> Questions <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-8">
<ul>
<li>What are the types of data available to you?
</li>
<li>For data sets: how many records are in the data set?
</li>
<li>For API: what are the limits on fetching data?
</li>
<li>Provide an "interesting" record, explain its properties and why it is
interesting
</li>
<li>What are 3 questions you could answer using your data?
</li>
</ul>
</div>
</div>
<div id="outline-container-9" class="outline-2">
<h2 id="sec-9"><span class="section-number-2">9</span> Submit Homework <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-9">
<ul>
<li>On the ischool server, create a branch called <code>hw-obtain-data</code>
</li>
<li>Create a text file to write the solution, a simple editor to use is <code>pico</code>
</li>
<li><code>git add</code> the file
</li>
<li><code>git commit</code> the change
</li>
<li><code>git push origin hw-obtain-data</code> to put it on GitHub
</li>
<li>on github, submit a "pull request" from the <code>hw-obtain-data</code> branch to your master branch
</li>
</ul>
</div>
<div id="outline-container-9-1" class="outline-3">
<h3 id="sec-9-1"><span class="section-number-3">9.1</span> Pull Requests <span class="tag"><span class="notes">notes</span></span></h3>
<div class="outline-text-3" id="text-9-1">
<ul>
<li>Pull requests are a way of showing updates in a way that lets me provide
comments, get notifications
</li>
<li>This is the first time I've tried it for class, so you're on the cutting
edge. Hopefully it will work, give me feedback if it is not
</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-10" class="outline-2">
<h2 id="sec-10"><span class="section-number-2">10</span> Going Forward <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-10">
<ul>
<li>Other homework assignments will be completing code
</li>
<li>General work-flow:
<ul>
<li>Start a new branch
</li>
<li>Add required files
</li>
<li>push to GitHub
</li>
<li>Submit Pull Request
</li>
</ul>
</li>
</ul>
<script type="text/javascript" src="production/org-html-slideshow.js"></script>
</div>
</div>
</div>
<div id="postamble">
<p class="date">Date: 2013-02-01 17:25:49 PST</p>
<p class="author">Author: Jim Blomo</p>
<p class="creator">Org version 7.8.02 with Emacs version 23</p>
<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
</div>
</body>
</html>