forked from bcaffo/courses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
303 lines (268 loc) · 9.49 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Getting Help</title>
<meta charset="utf-8">
<meta name="description" content="Getting Help">
<meta name="author" content="Roger D. Peng, Associate Professor of Biostatistics">
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="../../libraries/frameworks/io2012/phone.css"
media="only screen and (max-device-width: 480px)" >
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="../../libraries/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. -->
<script data-main="../../libraries/frameworks/io2012/js/slides"
src="../../libraries/frameworks/io2012/js/require-1.0.8.min.js">
</script>
<link rel="stylesheet" href = "../../assets/css/custom.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.BACKUP.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.BASE.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.LOCAL.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.orig">
<link rel="stylesheet" href = "../../assets/css/custom.css.REMOTE.546.css">
<link rel="stylesheet" href = "../../assets/css/ribbons.css">
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<!-- LOGO SLIDE -->
<!-- END LOGO SLIDE -->
<!-- TITLE SLIDE -->
<!-- Should I move this to a Local Layout File? -->
<slide class="title-slide segue nobackground">
<aside class="gdbar">
<img src="../../assets/img/bloomberg_shield.png">
</aside>
<hgroup class="auto-fadein">
<h1>Getting Help</h1>
<h2></h2>
<p>Roger D. Peng, Associate Professor of Biostatistics<br/>Johns Hopkins Bloomberg School of Public Health</p>
</hgroup>
</slide>
<!-- SLIDES -->
<slide class="" id="slide-1" style="background:;">
<hgroup>
<h2>Asking Questions</h2>
</hgroup>
<article>
<ul>
<li>Asking questions via email is different from asking questions in person</li>
<li>People on the other side do not have the background information you have
<ul>
<li>they also don’t know you personally (usually)</li>
</ul></li>
<li> Other people are busy; their time is limited</li>
<li>The instructor (me) is here to help in all circumstances but may not be able to answer all questions!</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-2" style="background:;">
<hgroup>
<h2>Finding Answers</h2>
</hgroup>
<article>
<ul>
<li>Try to find an answer by searching the archives of the forum you plan to post to.</li>
<li>Try to find an answer by searching the Web.</li>
<li>Try to find an answer by reading the manual.</li>
<li>Try to find an answer by reading a FAQ.</li>
<li>Try to find an answer by inspection or experimentation.</li>
<li>Try to find an answer by asking a skilled friend.</li>
<li>If you're a programmer, try to find an answer by reading the source code.</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-3" style="background:;">
<hgroup>
<h2>Asking Questions</h2>
</hgroup>
<article>
<ul>
<li>It’s important to let other people know that you’ve done all of the previous things already</li>
<li>If the answer is in the documentation, the answer will be “Read the documentation”
<ul>
<li>one email round wasted</li>
</ul></li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-4" style="background:;">
<hgroup>
<h2>Example: Error Messages</h2>
</hgroup>
<article>
<pre><code class="r">> library(datasets)
> data(airquality)
> cor(airquality)
Error in cor(airquality) : missing observations in cov/cor
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-5" style="background:;">
<hgroup>
<h2>Google is your friend</h2>
</hgroup>
<article>
<p><img src="../assets/img/google.png" height=500></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-6" style="background:;">
<hgroup>
<h2>Asking Questions</h2>
</hgroup>
<article>
<ul>
<li>What steps will reproduce the problem?</li>
<li>What is the expected output?</li>
<li>What do you see instead?</li>
<li>What version of the product (e.g. R, packages, etc.) are you using?</li>
<li>What operating system?</li>
<li>Additional information</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-7" style="background:;">
<hgroup>
<h2>Subject Headers</h2>
</hgroup>
<article>
<ul>
<li>Stupid: "Help! Can't fit linear model!"</li>
<li>Smart: "R 3.0.2 lm() function produces seg fault with large data frame, Mac OS X 10.9.1"</li>
<li>Smarter: "R 3.0.2 lm() function on Mac OS X 10.9.1 -- seg fault on large data frame"</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-8" style="background:;">
<hgroup>
<h2>Do</h2>
</hgroup>
<article>
<ul>
<li>Describe the goal, not the step</li>
<li>Be explicit about your question</li>
<li>Do provide the minimum amount of information necessary (volume is not precision)</li>
<li>Be courteous (it never hurts)</li>
<li>Follow up with the solution (if found)</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-9" style="background:;">
<hgroup>
<h2>Don't</h2>
</hgroup>
<article>
<ul>
<li>Claim that you’ve found a bug</li>
<li>Grovel as a substitute for doing your homework</li>
<li>Post homework questions on mailing lists (we’ve seen them all)</li>
<li>Email multiple mailing lists at once</li>
<li>Ask others to debug your broken code without giving a hint as to what sort of problem they should be searching for</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-10" style="background:;">
<hgroup>
<h2>Case Study: A Recent Post to the R-devel Mailing List</h2>
</hgroup>
<article>
<pre><code class="markdown">Subject: large dataset - confused
Message:
I'm trying to load a dataset into R, but
I'm completely lost. This is probably
due mostly to the fact that I'm a
complete R newb, but it's got me stuck
in a research project.
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-11" style="background:;">
<hgroup>
<h2>Response</h2>
</hgroup>
<article>
<pre><code class="markdown">Yes, you are lost. The R posting guide is
at http://www.r-project.org/posting-
guide.html and will point you to the
right list and also the manuals (at
e.g. http://cran.r-project.org/
manuals.html, and one of them seems
exactly what you need).
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-12" style="background:;">
<hgroup>
<h2>Analysis: What Went Wrong?</h2>
</hgroup>
<article>
<ul>
<li>Question was sent to the wrong mailing list (R-devel instead of R-help)</li>
<li>Email subject was very vague</li>
<li>Question was very vague</li>
<li>Problem was not reproducible</li>
<li>No evidence of any effort made to solve the problem</li>
<li>RESULT: Recipe for disaster!</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-13" style="background:;">
<hgroup>
<h2>Places to Turn</h2>
</hgroup>
<article>
<ul>
<li>Class discussion board; your fellow students</li>
<li><a href="mailto:[email protected]">[email protected]</a></li>
<li>Other project-specific mailing lists
(This talk inspired by Eric Raymond’s “How to ask questions the smart way”)</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="backdrop"></slide>
</slides>
<!--[if IE]>
<script
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
</script>
<script>CFInstall.check({mode: 'overlay'});</script>
<![endif]-->
</body>
<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="../../libraries/widgets/quiz/js/jquery-1.7.min.js"><\/script>')</script>
<!-- Load Javascripts for Widgets -->
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script> -->
<script>window.MathJax || document.write('<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="../../libraries/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>')
</script>
<!-- LOAD HIGHLIGHTER JS FILES -->
<script src="../../libraries/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
</html>