Mercurial > hg > Members > masakoha > seminar
annotate 2015/0512.html @ 23:0e91573eb337
add 0512
author | masa |
---|---|
date | Mon, 11 May 2015 14:20:28 +0900 |
parents | 2015/0504.html@e456138b7b1e |
children | 14d14dcb8219 |
rev | line source |
---|---|
10 | 1 <!DOCTYPE html> |
2 <html> | |
3 <head> | |
4 <meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
5 <title>seminar</title> | |
6 | |
7 <!-- | |
8 Notes on CSS media types used: | |
9 | |
10 1) projection -> slideshow mode (display one slide at-a-time; hide all others) | |
11 2) screen -> outline mode (display all slides-at-once on screen) | |
12 3) print -> print (and print preview) | |
13 | |
14 Note: toggle between projection/screen (that is, slideshow/outline) mode using t-key | |
15 | |
16 Questions, comments? | |
17 - send them along to the mailinglist/forum online @ http://groups.google.com/group/webslideshow | |
18 --> | |
19 | |
20 <!-- styles --> | |
21 <style media="screen,projection"> | |
22 | |
23 html, | |
24 body, | |
25 .presentation { margin: 0; padding: 0; } | |
26 | |
27 .slide { display: none; | |
28 position: absolute; | |
29 top: 0; left: 0; | |
30 margin: 0; | |
31 border: none; | |
32 padding: 2% 4% 0% 4%; /* css note: order is => top right bottom left */ | |
33 -moz-box-sizing: border-box; | |
34 -webkit-box-sizing: border-box; | |
35 box-sizing: border-box; | |
36 width: 100%; height: 100%; /* css note: lets use border-box; no need to add padding+border to get to 100% */ | |
37 overflow-x: hidden; overflow-y: auto; | |
38 z-index: 2; | |
39 } | |
40 | |
41 .slide.current { display: block; } /* only display current slide in projection mode */ | |
42 | |
43 .slide .stepcurrent { color: black; } | |
44 .slide .step { color: silver; } /* or hide next steps e.g. .step { visibility: hidden; } */ | |
45 | |
46 .slide { | |
47 /* | |
48 background-image: -webkit-linear-gradient(top, blue, aqua, blue, aqua); | |
49 background-image: -moz-linear-gradient(top, blue, aqua, blue, aqua); | |
50 */ | |
51 } | |
52 </style> | |
53 | |
54 <style media="screen"> | |
55 .slide { border-top: 1px solid #888; } | |
56 .slide:first-child { border: none; } | |
57 </style> | |
58 | |
59 <style media="print"> | |
60 .slide { page-break-inside: avoid; } | |
61 .slide h1 { page-break-after: avoid; } | |
62 .slide ul { page-break-inside: avoid; } | |
63 </style> | |
64 | |
65 | |
66 <!-- add js lib (jquery) --> | |
67 <script src="js/jquery-1.7.min.js"></script> | |
68 | |
69 <!-- S6 JS --> | |
70 <script src="js/jquery.slideshow.js"></script> | |
71 <script src="js/jquery.slideshow.counter.js"></script> | |
72 <script src="js/jquery.slideshow.controls.js"></script> | |
73 <script> | |
74 $(document).ready( function() { | |
75 Slideshow.init(); | |
76 | |
77 // Example 2: Start Off in Outline Mode | |
78 // Slideshow.init( { mode: 'outline' } ); | |
79 | |
80 // Example 3: Use Custom Transition | |
81 // Slideshow.transition = transitionScrollUp; | |
82 // Slideshow.init(); | |
83 | |
84 // Example 4: Start Off in Autoplay Mode with Custom Transition | |
85 // Slideshow.transition = transitionScrollUp; | |
86 // Slideshow.init( { mode: 'autoplay' } ); | |
87 } ); | |
88 </script> | |
89 | |
90 </head> | |
91 <body> | |
92 | |
93 <div class="presentation"> | |
94 | |
95 <div class='slide cover'> | |
96 <table width="90%" height="90%" border="0" align="center"> | |
97 <tr> | |
98 <td><div align="center"> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
99 <h1>Cerium での正規表現の実装</h1> |
10 | 100 </div> |
101 </td> | |
102 </tr> | |
103 <tr> | |
104 <td><div align="right"> | |
23 | 105 <name>Masataka Kohagura 5th, May , 2015</name> |
10 | 106 </div></td> |
107 </tr> | |
108 </tr> | |
109 </table> | |
110 </div> | |
19 | 111 |
10 | 112 <div id="cover"> |
113 <h1>研究目的</h1> | |
114 <ul> | |
115 <li> | |
19 | 116 当研究室では並列プログラミングフレームワーク Cerium Task Manager でプログラミングを行っている。 |
10 | 117 </li> |
118 <li> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
119 |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
120 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
121 <li> |
10 | 122 </li> |
123 <li> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
124 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
125 </ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
126 </div> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
127 |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
128 <div id="cover"> |
23 | 129 <h1>今日の話題</h1> |
130 <ul> | |
131 <li> | |
132 正規表現について | |
133 </li> | |
134 <li> | |
135 オートマトンについて | |
136 </li> | |
137 <li> | |
138 正規表現の基本三演算 | |
139 </li> | |
140 <li> | |
141 正規表現の他の演算 | |
142 </li> | |
143 </ul> | |
144 </div> | |
145 | |
146 <div id="cover"> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
147 <h1>正規表現について</h1> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
148 <ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
149 <li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
150 文字列の一部をパターン化して表現する手法 |
19 | 151 </li> |
152 <li> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
153 文章からあるパターン文字列を検索したいときに使用する <br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
154 (e.g. 「ed」が末尾に含まれる英単語を検索する場合 : .*ed) |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
155 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
156 <li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
157 正規表現は有限オートマトンで表現できる |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
158 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
159 </ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
160 </div> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
161 |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
162 <div id="cover"> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
163 <h1>オートマトンについて</h1> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
164 <ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
165 <li> |
10 | 166 </li> |
167 </ul> | |
168 </div> | |
169 | |
170 <div id="cover"> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
171 <h1>正規表現の基本三演算</h1> |
10 | 172 <ul> |
173 <li> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
174 正規表現は「連接」「選択」「繰返し」の演算が備えられている |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
175 R,S という 2 つの正規表現が存在すると仮定する。<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
176 <b>連接 「RS」</b>: R の直後に S が続くパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
177 <ul>(e.g.) RS, RRS, RSS, RRSS, ...<br></ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
178 <b>選択 「R|S」</b>: R もしくは S が出現するパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
179 <ul>(e.g.) R, S, RS, ...<br></ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
180 <b>繰返し 「R*S」</b>: 「*」の直前(R)が 0 回以上出現するパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
181 <ul>(e.g.) S, RS, RRS, RRRS, ...</ul> |
10 | 182 </li> |
183 <li> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
184 基本三演算は結合順位が存在する<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
185 <ul>繰返し > 連接 > 選択</ul> |
10 | 186 </li> |
187 </ul> | |
188 </div> | |
189 | |
190 <div id="cover"> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
191 <h1>正規表現の他の演算</h1> |
10 | 192 <ul> |
193 <li> | |
21
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
194 <b>「R+S」</b>: 「+」の直前のパターンが 1 回以上出現するパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
195 <ul>(e.g.) RS, RRS, RRRS, ...</ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
196 <ul>R+S ≡ R(R*)S</ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
197 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
198 <li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
199 <li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
200 <b>「R?S」</b>: 「?」の直前のパターンが 0 or 1 回出現するパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
201 <ul>(e.g.) S, RS</ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
202 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
203 <li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
204 <b>「R{1,3}」</b>: 「{}」の直前のパターンが 1 or 3 回出現するパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
205 <ul>(e.g.) R, RR, RRR</ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
206 </li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
207 <li> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
208 <b>「R{1,}」</b>: 「{}」の直前のパターンが 1 回以上出現するパターン<br> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
209 <ul>(e.g.) R, RR, RRR, ...</ul> |
a4227cbaa7b3
remove some files
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
20
diff
changeset
|
210 <ul>R+S ≡ R(R*)S ≡ R{1,}S</ul> |
10 | 211 </li> |
212 </ul> | |
213 </div> | |
214 | |
215 <!-- | |
216 <div id="cover"> | |
217 <h1>prog</h1> | |
218 <ul> | |
219 <li> | |
220 | |
221 </li> | |
222 | |
223 <pre> | |
224 <code> | |
225 typedef struct SDL_AudioSpec { | |
226 int freq; /** DSP frequency samples per second */ | |
227 Uint16 format; /** Audio data format */ | |
228 Uint8 channels; /** Number of channels: 1 mono, 2 stereo */ | |
229 Uint8 silence; /** Audio buffer silence value (calculated) */ | |
230 Uint16 samples; /** Audio buffer size in samples (power of 2) */ | |
231 Uint16 padding; /** Necessary for some compile environments */ | |
232 Uint32 size; /** Audio buffer size in bytes (calculated) */ | |
233 void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len); | |
234 void *userdata; | |
235 } SDL_AudioSpec; | |
236 </code> | |
237 </ul> | |
238 </pre> | |
239 <img src="./images/sqrWave.png" width="50%" height=""> | |
240 </div> | |
241 | |
242 --> | |
243 | |
244 </div> <!-- presentation --> | |
245 </body> | |
246 </html> |