-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeck.html
executable file
·235 lines (195 loc) · 9.06 KB
/
deck.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=1024, user-scalable=no">
<title>Elasticsearch for Everything</title>
<!-- Required stylesheet -->
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/core/deck.core.css">
<!-- Extension CSS files go here. Remove or add as needed. -->
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/extensions/goto/deck.goto.css">
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/extensions/menu/deck.menu.css">
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/extensions/navigation/deck.navigation.css">
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/extensions/status/deck.status.css">
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/extensions/hash/deck.hash.css">
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/extensions/scale/deck.scale.css">
<!-- Style theme. More available in /themes/style/ or create your own. -->
<!-- <link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/themes/style/web-2.0.css"> -->
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/themes/style/web-2.0.css">
<!-- Transition theme. More available in /themes/transition/ or create your own. -->
<link rel="stylesheet" href="libraries/imakewebthings-deck.js-e42bd0c/themes/transition/horizontal-slide.css">
<!-- Required Modernizr file -->
<script src="libraries/imakewebthings-deck.js-e42bd0c/modernizr.custom.js"></script>
<style type="text/css">
.slide dd {margin-bottom: 20px;}
</style>
</head>
<body>
<article class="deck-container">
<!-- Begin slides. Just make elements with a class of slide. -->
<section class="slide" id="intro">
<h2>Elasticsearch for Everything</h2>
<dl>
<dt>Justin T. Arthur</dt>
<dd>Senior Software Engineer</dd>
</dl>
<img src="graphics/BlackLocus_logo_h.png" style="width: 25%; text-align: left;"/>
</section>
<section class="slide" id="elasticsearch">
<h2>What Elasticsearch Is</h2>
<ul>
<li>Decentralized Cluster of Data and Compute Power</li>
<li>A RESTful Create, Read, Update, Delete Datasource</li>
<li>Uses Replicas for High Availability of the Data</li>
<li>A Java web application and service layer.</li>
</ul>
<p>A webservice for <span style="font-size: larger">storing data safely</span> and <span style="font-size: larger">retrieving data quickly.</span></p>
</section>
<section class="slide" id="activity">
<h2>A Very Active Project</h2>
<iframe src="http://tylerlh.github.com/github-latest-commits-widget/?username=elasticsearch&repo=elasticsearch&limit=5"
allowtransparency="false" frameborder="0" scrolling="no" width="502px" height="252px"></iframe>
</section>
<section class="slide" id="what-its-made-for">
<h2>What It's Made For</h2>
<h3>Search. Near-realtime querying of indexed data. Also, analysis.</h3>
</section>
<section class="slide" id="as_a_db">
<h2>But you can also use it as a RESTful database.</h2>
<p>Take TodoMVC, a simple browser-side application implemented in any one of a variety of JS MVC frameworks</p>
<p>Lists of items are a perfect application for RESTful JSON storage. MongoDB and DynamoDB could work.</p>
</section>
<section class="slide" id="as_a_db_for_a_webapp">
<iframe src="libraries/addyosmani-todomvc-d41638c/architecture-examples/backbone/index.html" height="600" width="600"></iframe>
</section>
<section class="slide" id="as_a_db_for_a_webapp_why">
<h2>Great, but why do such a thing?</h2>
<ul>
<li>Form field autocomplete widgets that are smarter, faster.</li>
<li>Could enable faceted navigation of my site's data.</li>
<li>Queries that can power amazing data visualizations quickly.</li>
<li>Scaling & availabity.</li>
</ul>
</section>
<!-- Before importing the twitter data, had to:
PUT http://devdatasearch.blacklocus.com:9200/tweets/tweets/_mapping
{"tweets": {
"properties": {
"created_at": {
"type": "date",
"format": "EEE MMM dd HH:mm:ss Z yyyy"
}
}
}
}
-->
<section class="slide" id="for_your_life1">
<h2>Elasticsearch Your Life</h2>
<h3>I'm not a web developer, what can elasticsearch do to improve my life?</h3>
<p>I downloaded my tweet archive from twitter.com and used Adrian Hills' ElasticTweets app to import them into elasticsearch.</p>
<img src="graphics/elastictweets.png"/>
</section>
<section class="slide" id="for_your_life2">
<h2>Elasticsearch Your Life</h2>
<pre id="tweets_query">
{
"query" : {
"match_all": {}
},
"facets": {
"what_times_of_day_do_i_tweet": {
"terms" : {
"script_field" : "doc['created_at'].date.hourOfDay"
}
},
"who_do_i_talk_back_to": {
"terms": { "field": "in_reply_to_screen_name" }
}
}
}
</pre>
<!-- <button id="tweets_query_run">Run Query</button>
<pre id="tweets_result"></pre> -->
<!-- TODO: result or go to es-head for the query at this point. -->
</section>
<section class="slide" id="shardloads_of_bs">
<h2>I haven't been entirely forthcoming...</h2>
<h3>Elasticsearch doesn't have authentication or security.</h3>
<h3>Search queries don't give you real-time access to your data.</h3>
<h3>Relational data... meh</h3>
</section>
<section class="slide" id="links">
<h2>Links</h2>
<dl>
<dt><a href="http://www.elasticsearch.org/">http://www.elasticsearch.org/</a></dt><dd>Download and Documentation</dd>
<dt><a href="https://github.com/AdaTheDev/ElasticTweets">https://github.com/AdaTheDev/ElasticTweets</a></dt><dd>ElasticTweets, upload tweets to elasticsearch. I got it to compile with Mono in OS X</dd>
<dt><a href="http://addyosmani.github.com/todomvc/">http://addyosmani.github.com/todomvc/</a></dt><dd>TodoMVC</dd>
<dt><a href="http://mobz.github.com/elasticsearch-head/">http://mobz.github.com/elasticsearch-head/</a></dt><dd>elasticsearch-head</dd>
<dt><a href="http://www.elasticsearch.org/2011/05/13/data-visualization-with-elasticsearch-and-protovis/">Data Visualization with ElasticSearch and Protovis</a></dt><dd>On the elasticsearch blog.</dd>
</dl>
</section>
<section class="slide" id="my_todos">
<h2>My elasticsearch Todo List</h2>
<ul>
<li>Open-source my elasticsearch ORM for Backbone Sync</li>
<li>Open-source this slide deck</li>
<li>Help out with elasticsearch documentation.</li>
</ul>
</section>
<!-- End slides. -->
<!-- Begin extension snippets. Add or remove as needed. -->
<!-- deck.navigation snippet -->
<a href="#" class="deck-prev-link" title="Previous">←</a>
<a href="#" class="deck-next-link" title="Next">→</a>
<!-- deck.status snippet -->
<p class="deck-status">
<span class="deck-status-current"></span>
/
<span class="deck-status-total"></span>
</p>
<!-- deck.goto snippet -->
<form action="" method="get" class="goto-form">
<label for="goto-slide">Go to slide:</label>
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
<datalist id="goto-datalist"></datalist>
<input type="submit" value="Go">
</form>
<!-- deck.hash snippet -->
<a href="" title="Permalink to this slide" class="deck-permalink">#</a>
<!-- End extension snippets. -->
<!-- Required JS files. -->
<script src="libraries/imakewebthings-deck.js-e42bd0c/jquery-1.7.2.min.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/core/deck.core.js"></script>
<!-- Extension JS files. Add or remove as needed. -->
<script src="libraries/imakewebthings-deck.js-e42bd0c/extensions/hash/deck.hash.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/extensions/menu/deck.menu.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/extensions/goto/deck.goto.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/extensions/status/deck.status.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/extensions/navigation/deck.navigation.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/extensions/scale/deck.scale.js"></script>
<script src="libraries/imakewebthings-deck.js-e42bd0c/themes/launchpad/launchpad.js"></script>
</article>
<!-- Initialize the deck. You can put this in an external file if desired. -->
<script>
$(function() {
$.deck('.slide');
});
</script>
<!--
<script>
$(function () {
$("#tweets_result").hide();
$('#tweets_query_run').click(function() {
var query = $('#tweets_query').text();
$.getJSON("http://devdatasearch.blacklocus.com:9200/tweets/_search", query, function(data) {
$('#tweets_result').text(JSON.stringify(data)).toggle();
$("#tweets_query").toggle();
$("#tweets_result").toggle();
});
});
});
</script>
-->
</body>
</html>