-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpresent.en.html
440 lines (287 loc) · 20.8 KB
/
mpresent.en.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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
<?xml version="1.0" encoding="US-ASCII" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="author" content="imacat" />
<meta name="copyright" content="© 2010 imacat." />
<meta name="keywords" content="archive, Apache, Syslog, log files" />
<link rel="alternate" type="application/xhtml+xml" href="mpresent.zh-tw.html"
hreflang="zh-tw" title="正體中文" />
<link rel="alternate" type="application/xhtml+xml" href="mpresent.zh-cn.html"
hreflang="zh-cn" title="简体中文" />
<link rel="copyright" type="text/plain" href="fdl.txt" />
<link rel="author" href="mailto:imacat@mail.imacat.idv.tw" />
<style type="text/css">
h2, em {
text-transform: uppercase;
}
.accessguide {
font-size: 0.5em;
float: left;
width: 0.5em;
}
cite {
quotes: "\00AB" "\00BB";
}
</style>
<title>mpresent Version 0.01</title>
</head>
<body>
<div class="langs" title="Language Switching Area">
<span xml:lang="zh-tw"><a href="mpresent.zh-tw.html"
title="切換到本頁的正體中文版。"
hreflang="zh-tw">正體中文</a></span> |
<span xml:lang="zh-cn"><a href="mpresent.zh-cn.html"
title="切换到本页的简体中文版。"
hreflang="zh-cn">简体中文</a></span> |
<span>English</span>
</div>
<hr />
<div id="body" class="body" title="Page Content Area">
<div class="accessguide"><a accesskey="C"
href="#body" title="Page Content Area">:::</a></div>
<h1><samp>mpresent</samp> Version 0.01</h1>
<h2>What’s New?</h2>
<dl>
<dt>2010-08-15</dt>
<dd>
<p>Re-release <samp>mpresent</samp> version 0.01 with license information.</p>
</dd>
<dt>2010-08-14</dt>
<dd>
<p>SourceForge project was applied. Raw package <samp>mpresent</samp> version 0.01 was released, with only the program file, but not any documentation or license. Presented on the <cite>OpenOffice.org UNO Magic</cite> talk on <abbr title="Conference for Open Source Coders, Users and Promoters">COSCUP</abbr> 2010.</p>
</dd>
</dl>
<h2>Description</h2>
<p><dfn><samp>mpresent</samp></dfn> is the Mobile OpenOffice.org Presentation Controller. It is a mobile web office application that turns your smart phone into a presentation controller. The smart phone connects to the presentation host through the <abbr title="transmission control protocol">TCP</abbr>/<abbr title="internet protocol">IP</abbr> network. Mostly this is through <abbr title="Wireless Fidelity">Wi-Fi</abbr>.</p>
<p><dfn><samp>mpresent</samp></dfn> is written in <abbr title="JavaServer Pages">JSP</abbr>.</p>
<h2>Caution</h2>
<ul>
<li><p><samp>mpresent</samp> does not include any authentication or security mechanism. You have to protect it yourself.</p></li>
</ul>
<h2>System Requirement</h2>
<ol>
<li><p>Linux or Solaris/OpenSolaris. Theorically <abbr title="microsoft">MS</abbr>-Windows should work, too, but I have not tested it yet. Please tell me if you do. <samp>mpresent</samp> requires Java and OpenOffice.org. The only platforms they both run that I know are Linux, Solaris/OpenSolaris and <abbr title="microsoft">MS</abbr>-Windows. If you successfully run it on other platforms, please let me know.</p></li>
<li><p>OpenOffice.org, version 3.0 or above. <samp>mpresent</samp> uses the <samp><a href="http://api.openoffice.org/docs/common/ref/com/sun/star/presentation/Presentation2.html">com.sun.star.presentation.Presentation2</a></samp> service, which is only available since OpenOffice.org version 3.0. Most Linuxes come with OpenOffice.org 3 now. If you do not have it, or if your version is too old, you can download and install it from the <a href="http://www.openoffice.org/">OpenOffice.org website</a>.</p>
<p>Notice that the current version of Debian (Lenny) still comes with OpenOffice.org 2.4. If you are running this under Debian Lenny or earlier, you have to download and install OpenOffice.org from the OpenOffice.org website.</p>
</li>
<li><p>OpenOffice.org <abbr title="software development kit">SDK</abbr>, version 3.0 or above. <samp>mpresent</samp> uses the <samp><a href="http://api.openoffice.org/docs/common/ref/com/sun/star/presentation/Presentation2.html">com.sun.star.presentation.Presentation2</a></samp> service, which is only available since OpenOffice.org <abbr title="software development kit">SDK</abbr> version 3.0. Most Linuxes come with OpenOffice.org 3 <abbr title="software development kit">SDK</abbr> in their package repository now.</p>
<ul>
<li><p>If you are running Ubuntu Linux, you can install the <samp>openoffice.org-dev</samp> package.</p></li>
<li><p>If you are running Fedora Linux, you can install the <samp>openoffice.org-core</samp> and <samp>openoffice.org-ure</samp> packages.</p></li>
<li><p>If you are running OpenSUSE Linux, you can install the <samp>OpenOffice_org-ure</samp> package.</p></li>
<li><p>If you do not have it, or if your version is too old, you can download and install it from the <a href="http://download.openoffice.org/sdk/">OpenOffice.org website</a>.</p></li>
</ul>
</li>
<li><p><abbr title="Java standard edition development kit">JDK</abbr>, version 1.5.0 or above. <samp>mpresent</samp> is written with generic types, which is a new feature
since Java 1.5. Sun released the free <a href="http://openjdk.java.net/"><acronym title="Open Java Development Kit">OpenJDK</acronym></a> since 2006. Till now, most Linux operating systems includes <acronym title="Open Java Development Kit">OpenJDK</acronym> in their package repositories.</p>
<ul>
<li><p>If you are running Debian or Ubuntu Linux, you can install the <samp>openjdk-6-jdk</samp> package.</p></li>
<li><p>If you are running Fedora or OpenSUSE Linux, you can install the <samp>java-1.6.0-openjdk</samp> package.</p></li>
<li><p>If you do not have it, or if your version is too old, you can download and install the Sun version from the <a href="http://www.oracle.com/technetwork/java/javase/">Java website</a>.</p></li>
</ul>
</li>
<li><p>Apache web server, version 2 or above. <samp>mpresent</samp> is a web application that requires a web server to run. <abbr title="microsoft">MS</abbr>-<abbr title="Internet Information Services">IIS</abbr> web server on <abbr title="microsoft">MS</abbr>-Windows should work, but I have not tested it yet. Please tell me if you do.</p>
<ul>
<li><p>If you are running Debian or Ubuntu Linux, you can install the <samp>apache2</samp> package.</p></li>
<li><p>If you are running Fedora or OpenSUSE Linux, you can install the <samp>httpd</samp> package.</p></li>
<li><p>If you do not have it, or if your version is too old, you can download and install it from the <a href="http://httpd.apache.org/">Apache website</a>.</p></li>
</ul>
</li>
<li><p>Apache Tomcat, version 5.5 or above. <samp>mpresent</samp> is a <abbr title="Java Server Page">JSP</abbr> application that requires a servlet container to run.</p>
<ul>
<li><p>If you are running Debian Linux, you can install the <samp>tomcat5.5</samp> package.</p></li>
<li><p>If you are running Ubuntu Linux, you can install the <samp>tomcat6</samp> package.</p></li>
<li><p>If you are running Fedora or openSUSE Linux, you can install the <samp>tomcat6</samp> package.</p></li>
<li><p>If you do not have it, or if your version is too old, you can download and install it from the <a href="http://tomcat.apache.org/">Apache Tomcat website</a>.</p></li>
</ul>
</li>
<li><p></p></li>
</ol>
<h2>Download</h2>
<p><samp>arclog</samp>’s official websites is at…</p>
<ul>
<li><p><a href="http://arclog.sourceforge.net/"><samp>arclog</samp> web site at SourceForge</a></p></li>
<li><p><a href="https://sourceforge.net/projects/arclog/"><samp>arclog</samp> project page at SourceForge</a></p></li>
<li><p><a href="http://search.cpan.org/~imacat/arclog/"><samp>arclog</samp> project page at <abbr title="Comprehensive Perl Archive Network">CPAN</abbr></a></p></li>
<li><p><a href="http://www.imacat.idv.tw/tech/arclog.html"><samp>arclog</samp> page at Tavern IMACAT’s</a></p></li>
</ul>
<p>You can always download the newest version of <samp>arclog</samp> from…</p>
<ul>
<li><p><a href="https://sourceforge.net/project/showfiles.php?group_id=62499"><samp>arclog</samp> download page at SourceForge</a></p></li>
<li><p><a href="http://search.cpan.org/~imacat/arclog/"><samp>arclog</samp>’s project page at <abbr title="Comprehensive Perl Archive Network">CPAN</abbr></a></p></li>
<li><p><a href="ftp://ftp.imacat.idv.tw/pub/arclog/">Tavern IMACAT’s <abbr title="File Transfer Protocol">FTP</abbr> directory</a></p></li>
</ul>
<p>imacat’s <abbr title="Pretty Good Privacy">PGP</abbr> public key is at…</p>
<ul>
<li><p><a href="http://arclog.sourceforge.net/pgpkey.asc">imacat’s <abbr title="Pretty Good Privacy">PGP</abbr> key at <samp>arclog</samp> SourceForge web site</a></p></li>
<li><p><a href="http://www.imacat.idv.tw/me/pgpkey.asc">imacat’s <abbr title="Pretty Good Privacy">PGP</abbr> key at Tavern IMACAT’s</a></p></li>
</ul>
<h2>Install</h2>
<p>If you are upgrading from <samp>arclog.pl</samp> 2.1.1dev4 or earlier, please read <samp>UPGRADE</samp> for some upgrade instruction.</p>
<h3>Install with <a href="http://search.cpan.org/dist/ExtUtils-MakeMaker/"><samp>ExtUtils::MakeMaker</samp></a></h3>
<p><samp>arclog</samp> uses standard <acronym title="Practical Extraction and Reporting Language">Perl</acronym> installation with <a href="http://search.cpan.org/dist/ExtUtils-MakeMaker/"><samp>ExtUtils::MakeMaker</samp></a>. Follow these steps:</p>
<blockquote><pre>
% perl Makefile.PL
% make
% make test
% make install
</pre></blockquote>
<p>When running <q><samp>make install</samp></q>, make sure you have the priviledge to write to the installation location. This usually requires the <samp>root</samp> priviledge.</p>
<p>If you are using ActivePerl under <abbr title="Microsoft">MS</abbr>-Windows, you should use <samp>nmake</samp> instead of <samp>make</samp>. <a href="ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe" type="application/x-dosexec"><samp>nmake</samp> can be obtained from the Microsoft <abbr title="File Transfer Protocol">FTP</abbr> site.</a></p>
<p>If you want to install into another location, you can set the <samp>PREFIX</samp>. For example, to install into your home when you are not <samp>root</samp>:</p>
<blockquote><pre>
% perl Makefile.PL PREFIX=/home/jessica
</pre></blockquote>
<p>Refer to the docuemntation of <a href="http://search.cpan.org/dist/ExtUtils-MakeMaker/"><samp>ExtUtils::MakeMaker</samp></a> for more installation options (by running <q><samp>perldoc ExtUtils::MakeMaker</samp></q>).</p>
<h3>Install with <a href="http://search.cpan.org/dist/Module-Build/"><samp>Module::Build</samp></a></h3>
<p>You can install with <a href="http://search.cpan.org/dist/Module-Build/"><samp>Module::Build</samp></a> instead, if you prefer. Follow these steps:</p>
<blockquote><pre>
% perl Build.PL
% ./Build
% ./Build test
% ./Build install
</pre></blockquote>
<p>When running <q><samp>./Build install</samp></q>, make sure you have the priviledge to write to the installation location. This usually requires the <samp>root</samp> priviledge.</p>
<p>If you want to install into another location, you can set the <samp>--prefix</samp>. For example, to install into your home when you are not <samp>root</samp>:</p>
<blockquote><pre>
% perl Build.PL --prefix=/home/jessica
</pre></blockquote>
<p>Refer to the docuemntation of <a href="http://search.cpan.org/dist/Module-Build/"><samp>Module::Build</samp></a> for more installation options (by running <q><samp>perldoc Module::Build</samp></q>).</p>
<h2>Options</h2>
<pre>
./arclog [options] logfile… [output]
./arclog [-h|-v]
</pre>
<dl>
<dt><var>logfile</var></dt>
<dd>
<p>The log file to be archived. Specify <q><samp>-</samp></q> to read from <samp>STDIN</samp>. Multiple log files are supported. <samp>gzip</samp> or <samp>bzip2</samp> compressed files are supported, too.</p>
</dd>
<dt><var>output</var></dt>
<dd>
<p>The prefix of the output files. The output files will be named as <samp>output.<var>yyyymm</var></samp>, <abbr title="id est">i.e.</abbr>, <samp>output.200101</samp>, <samp>output.200102</samp>. If not specified, the default is the same as the log file. You must specify this if you want to read from <samp>STDIN</samp>. You cannot specify <q><samp>-</samp></q> (<samp>STDIN</samp>), since this is only a name prefix, not the output file.</p>
</dd>
<dt>-c, --compress <var>method</var></dt>
<dd>
<p>Specify the compression method for the archived files. Log files usually have large number of simular lines. Compress them saves you lots of disk spaces. (And this is why we want to <em>archive</em> them.) Currently the following compression methods are supported:</p>
<dl>
<dt>g, gzip</dt>
<dd>
<p>Compress with <samp>gzip</samp>. This is the default. <samp>arclog</samp> can use <a href="http://search.cpan.org/dist/Compress-Zlib/"><samp>Compress::Zlib</samp></a> to compress instead of calling <samp>gzip</samp>. This can be safer and faster for not calling foreign binaries. But if <a href="http://search.cpan.org/dist/Compress-Zlib/"><samp>Compress::Zlib</samp></a> is not installed, it will try to use <samp>gzip</samp> binary instead. If <samp>gzip</samp> binary is not available, either, but <samp>gzip</samp> compression is required, the program will fail.</p>
</dd>
<dt>b, bzip2</dt>
<dd>
<p>Compress with <samp>bzip2</samp>. <samp>arclog</samp> can use <a href="http://search.cpan.org/dist/Compress-Bzip2/"><samp>Compress::Bzip2</samp></a> to compress instead of calling <samp>bzip2</samp>. This can be safer and faster for not calling foreign binaries. But if <a href="http://search.cpan.org/dist/Compress-Bzip2/"><samp>Compress::Bzip2</samp></a> is not installed, it will try to use <samp>bzip2</samp> binary instead. If <samp>bzip2</samp> binary is not available, either, but <samp>bzip2</samp> compression is required, the program will fail.</p>
</dd>
<dt>n, none</dt>
<dd>
<p>No compression at all. (Why? :p)</p>
</dd>
</dl>
</dd>
<dt>--nocompress</dt>
<dd>
<p>Do not compress the archived files. This is equal to <q><samp>--compress none</samp></q>.</p>
</dd>
<dt>-s, --sort</dt>
<dd>
<p>Sort the records by time (and then the record order). Sorting eats huge memory and <abbr title="central processing unit">CPU</abbr>, so it is disabled by default. See the description above for a detailed illustration on sorting.</p>
</dd>
<dt>--nosort</dt>
<dd>
<p>Do not sort the records. This is the default.</p>
</dd>
<dt>-o, --override <var>mode</var></dt>
<dd>
<p>Whether we should overwrite the existing archived files. Currently the following modes are supported:</p>
<dl>
<dt>o, overwrite</dt>
<dd>
<p>Overwrite existing target files. You will lost these existing records. Use with care. This is helpful if you are sure the master log file has the most complete records.</p>
</dd>
<dt>a, append</dt>
<dd>
<p>Append the records to the existing target files. You may destroy the log file completely by putting irrelevant entries altogether accidently. Use with care. This is helpful if you append want to merge 2 or more log files, for <abbr title="example">ex.</abbr>, 2 log files of different periods.</p>
</dd>
<dt>i, ignore</dt>
<dd>
<p>Ignore any existing target file, and discard all the records of those months. You will lost these log records. Use with care. This is helpful if you are supplying log records for the missing months, or if you are merging the log records in a complex manner.</p>
</dd>
<dt>f, fail</dt>
<dd>
<p>Stop processing whenever a target file exists, to prevent destroying existing files by accident. This should be mostly wanted when run from some automatic mechanism, like <samp>crontab</samp>. So, this is the default if no terminal is found at <samp>STDIN</samp>.</p>
</dd>
<dt>ask</dt>
<dd>
<p>Ask you what to do when a target file exists. This should be most wanted if you are running <samp>arclog</samp> interactively. So, this is the default if a terminal is found at <samp>STDIN</samp>. The answers are read from <samp>STDIN</samp>. Since you have only one <samp>STDIN</samp>, you cannot specify this mode if you want read the log file from <samp>STDIN</samp>. In that case, it will fall back to the <samp>fail</samp> mode. Also, if <samp>arclog</samp> cannot get its answer from <samp>STDIN</samp>, for <abbr title="example">ex.</abbr>, on a closed <samp>STDIN</samp> like <samp>crontab</samp>, it will fall back to <samp>fail</samp> mode.</p>
</dd>
</dl>
</dd>
<dt>-k, --keep <var>mode</var></dt>
<dd>
<p>What to keep in the source file. Current the following modes are supported:</p>
<dl>
<dt>a, all</dt>
<dd>
<p>Keep the source file after records are archived.</p>
</dd>
<dt>r, restart</dt>
<dd>
<p>Restart the source log file after records are archived.</p>
</dd>
<dt>d, delete</dt>
<dd>
<p>Delete the source log file after records are archived.</p>
</dd>
<dt>t, this-month</dt>
<dd>
<p>Archive and strip records of previous months off from the log file. Keep the records of this month in the source log file, to be archived next month. This is designed to be run from <samp>crontab</samp> monthly, so this is the default.</p>
</dd>
</dl>
</dd>
<dt>-d, --debug</dt>
<dd>
<p>Show the detailed debugging messages.</p>
</dd>
<dt>-q, --quiet</dt>
<dd>
<p>Shihhhhhh. Only yell when errors.</p>
</dd>
<dt>-h, --help</dt>
<dd>
<p>Display the help message and exit.</p>
</dd>
<dt>-v, --version</dt>
<dd>
<p>Output version information and exit.</p>
</dd>
</dl>
<h2>Copyright</h2>
<p>Copyright © 2001-2007 imacat..</p>
<p>This program is free software: you can redistribute it and/or modify it under the terms of the <cite><acronym title="GNU’s Not UNIX">GNU</acronym> General Public License</cite> as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful, but <em>without any warranty</em>; without even the implied warranty of <em>merchantability</em> or <em>FITNESS FOR A PARTICULAR PURPOSE</em>. See the <cite><acronym title="GNU’s Not UNIX">GNU</acronym> General Public License</cite> for more details.</p>
<p>You should have received a copy of the <cite><acronym title="GNU’s Not UNIX">GNU</acronym> General Public License</cite> along with this program. If not, see <samp><<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>></samp>.</p>
<h2>Release Notes</h2>
<p>Please read the <samp>NEWS</samp> for the new functions and bug fixes.</p>
<h2>Support</h2>
<p><samp>arclog</samp> is hosted on <a href="https://sourceforge.net/">SourceForge</a>, <a href="http://www.cpan.org/"><acronym title="Comprehensive Perl Archive Network">CPAN</acronym></a> and <a href="http://www.imacat.idv.tw/">Tavern IMACAT’s</a>. For the latest infomation, see</p>
<ul>
<li><p><a href="http://arclog.sourceforge.net/"><samp>arclog</samp> web site at SourceForge</a>.</p></li>
<li><p><a href="http://sourceforge.net/projects/arclog/"><samp>arclog</samp> project page at SourceForge</a>.</p></li>
<li><p><a href="http://search.cpan.org/dist/arclog/"><samp>arclog</samp> project page at <abbr title="Comprehensive Perl Archive Network">CPAN</abbr></a>.</p></li>
<li><p><a href="http://www.imacat.idv.tw/tech/arclog.html"><samp>arclog</samp> page at Tavern IMACAT’s</a>.</p></li>
</ul>
<p>There is a <a href="mailto:arclog-users@lists.sourceforge.net"><samp>arclog</samp> mailing list</a> hosted at <a href="https://sourceforge.net/">SourceForge</a>. Please submit your questions, suggestions or bug reports there. It is a <a href="http://www.list.org/">Mailman</a> mailing list. For more information, see the <a href="https://lists.sourceforge.net/lists/listinfo/arclog-users"><samp>arclog</samp> mailing list page</a>. Alternatively, you can send a mail to the <a href="mailto:arclog-users-request@lists.sourceforge.net"><acronym title="electronic mail">e-mail</acronym> command mailbox</a> with the subject <samp>help</samp> for a list of available <acronym title="electronic mail">e-mail</acronym> commands.</p>
</div>
<hr />
<div id="footer" class="footer" title="Page Footer Area">
<address>By <a href="mailto:imacat@mail.imacat.idv.tw">imacat</a>, first version 2001-06-08, last updated 2008-11-18</address>
<address>Copyright © 2010 imacat. Please read the <a href="fdl.txt">copyright</a> before copying.</address>
</div>
</body>
</html>