<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://phobos.martem.ee/index.php?action=history&amp;feed=atom&amp;title=Homework_2</id>
	<title>Homework 2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://phobos.martem.ee/index.php?action=history&amp;feed=atom&amp;title=Homework_2"/>
	<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;action=history"/>
	<updated>2026-04-28T15:45:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=2215&amp;oldid=prev</id>
		<title>Igor at 10:52, 4 June 2019</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=2215&amp;oldid=prev"/>
		<updated>2019-06-04T10:52:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:52, 4 June 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== C++ ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== C++ ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Parse log file for invalid time stamps ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Parse log file for invalid time stamps ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Write a program that parses the provided example log file, [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Meedia&lt;/del&gt;:Ex_log.gz]] and checks for anomalies in time stamps (if the newer log line has an older time stamp). The normal behavior is that the time increases with each line downwards as shown below&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Write a program that parses the provided example log file, [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Media&lt;/ins&gt;:Ex_log.gz]] and checks for anomalies in time stamps (if the newer log line has an older time stamp). The normal behavior is that the time increases with each line downwards as shown below&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Igor</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1951&amp;oldid=prev</id>
		<title>MarkTomm: /* Examples */</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1951&amp;oldid=prev"/>
		<updated>2015-07-15T13:10:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:10, 15 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l146&quot;&gt;Line 146:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 146:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;22&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;22&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Invalid time stamps at line(s):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Invalid time stamps at line(s):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;6&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;8-11&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;8-11&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;16-18&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;16-18&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l202&quot;&gt;Line 202:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 203:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kasutaja:MarkTomm|MarkTomm]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;veebruar &lt;/del&gt;2015, kell &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;14&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;18 &lt;/del&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EET&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kasutaja:MarkTomm|MarkTomm]] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;15&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;juuli &lt;/ins&gt;2015, kell &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;16&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10 &lt;/ins&gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EEST&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MarkTomm</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1617&amp;oldid=prev</id>
		<title>MarkTomm at 12:19, 20 February 2015</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1617&amp;oldid=prev"/>
		<updated>2015-02-20T12:19:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:19, 20 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l190&quot;&gt;Line 190:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 190:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no arguments a given, output an error message: &amp;#039;Input file missing&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no arguments a given, output an error message: &amp;#039;Input file missing&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no optional arguments are given, output is same as with stats argument.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no optional arguments are given, output is same as with stats argument.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MarkTomm</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1616&amp;oldid=prev</id>
		<title>MarkTomm at 12:18, 20 February 2015</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1616&amp;oldid=prev"/>
		<updated>2015-02-20T12:18:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:18, 20 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l95&quot;&gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./a.out --stats&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./a.out &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;filename &lt;/ins&gt;--stats&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./a.out  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./a.out &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;filename&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./a.out --all&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./a.out &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;filename &lt;/ins&gt;--all&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l142&quot;&gt;Line 142:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 142:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ ./a.out --stats&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ ./a.out &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;example_log &lt;/ins&gt;--stats&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Number of lines:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Number of lines:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;22&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;22&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l151&quot;&gt;Line 151:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 151:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ ./a.out --list&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ ./a.out &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;example_log &lt;/ins&gt;--list&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Lines with invalid time stamps:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Lines with invalid time stamps:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[7] 2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[7] 2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l168&quot;&gt;Line 168:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 168:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ ./a.out --all&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ ./a.out &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;example_log &lt;/ins&gt;--all&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Number of lines:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Number of lines:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;22&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;22&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l190&quot;&gt;Line 190:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 190:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no arguments are given, output is same as with stats argument.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;arguments a given, output an error message: &amp;#039;Input file missing&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If no optional &lt;/ins&gt;arguments are given, output is same as with stats argument.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that with list argument one line before and after the invalid time stamp is also output (look closer at the example outputs).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that with list argument one line before and after the invalid time stamp is also output (look closer at the example outputs).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l200&quot;&gt;Line 200:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 201:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kasutaja:MarkTomm|MarkTomm]] 20. veebruar 2015, kell 14:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;14 &lt;/del&gt;(EET)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kasutaja:MarkTomm|MarkTomm]] 20. veebruar 2015, kell 14:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;18 &lt;/ins&gt;(EET)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MarkTomm</name></author>
	</entry>
	<entry>
		<id>https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1615&amp;oldid=prev</id>
		<title>MarkTomm: Uus lehekülg: &#039;Elementary knowledge of GIT, BASH, C++ will be tested.  Task may be completed on any Linux distribution (recommended debian/ubuntu)  == GIT == * Save work progress in a repositor...&#039;</title>
		<link rel="alternate" type="text/html" href="https://phobos.martem.ee/w/index.php?title=Homework_2&amp;diff=1615&amp;oldid=prev"/>
		<updated>2015-02-20T12:14:35Z</updated>

		<summary type="html">&lt;p&gt;Uus lehekülg: &amp;#039;Elementary knowledge of GIT, BASH, C++ will be tested.  Task may be completed on any Linux distribution (recommended debian/ubuntu)  == GIT == * Save work progress in a repositor...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Elementary knowledge of GIT, BASH, C++ will be tested.&lt;br /&gt;
&lt;br /&gt;
Task may be completed on any Linux distribution (recommended debian/ubuntu)&lt;br /&gt;
&lt;br /&gt;
== GIT ==&lt;br /&gt;
* Save work progress in a repository&lt;br /&gt;
** For example [https://github.com/ github.com]&lt;br /&gt;
* Use branches ([http://nvie.com/posts/a-successful-git-branching-model/ help])&lt;br /&gt;
** One branch for implementing bash script and another branch for c++&lt;br /&gt;
** commit often, total number of commits should be 10+&lt;br /&gt;
** when checking out a random revision, it should compile.&lt;br /&gt;
** Branches start from master and must be merged back into master&lt;br /&gt;
&lt;br /&gt;
== BASH ==&lt;br /&gt;
=== Script 1 - Show memory usage ===&lt;br /&gt;
&lt;br /&gt;
Script has 1 optional argument, path to meminfo file (contains current memory status).&lt;br /&gt;
If it&amp;#039;s not provided use &amp;#039;&amp;#039;&amp;#039;/proc/meminfo&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Use standard unix tools like &amp;#039;&amp;#039;&amp;#039;awk&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;grep&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;sed&amp;#039;&amp;#039;&amp;#039; to parse the input file.&lt;br /&gt;
&lt;br /&gt;
Example of input file&lt;br /&gt;
&lt;br /&gt;
 cat /proc/meminfo &lt;br /&gt;
 MemTotal:        7969612 kB&lt;br /&gt;
 MemFree:         4582768 kB&lt;br /&gt;
 Buffers:          707368 kB&lt;br /&gt;
 Cached:          1122984 kB&lt;br /&gt;
 SwapCached:            0 kB&lt;br /&gt;
 Active:          1742408 kB&lt;br /&gt;
 Inactive:        1203472 kB&lt;br /&gt;
 [ ... ]&lt;br /&gt;
&lt;br /&gt;
output:&lt;br /&gt;
 ./script1.sh /proc/meminfo&lt;br /&gt;
 RAM: 4582 MB used / 7969 MB total ( 3387 MB free)&lt;br /&gt;
&lt;br /&gt;
=== Script 2 - compile c++ application ===&lt;br /&gt;
&lt;br /&gt;
Compiles the C++ application&lt;br /&gt;
Probably only has 1 useful line, g++ with some linker options.&lt;br /&gt;
&lt;br /&gt;
example:&lt;br /&gt;
 ./script2.sh&lt;br /&gt;
 Compilation started&lt;br /&gt;
 Compilation finished&lt;br /&gt;
&lt;br /&gt;
== C++ ==&lt;br /&gt;
=== Parse log file for invalid time stamps ===&lt;br /&gt;
Write a program that parses the provided example log file, [[Meedia:Ex_log.gz]] and checks for anomalies in time stamps (if the newer log line has an older time stamp). The normal behavior is that the time increases with each line downwards as shown below&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 17:33:08.584 [INFO] Gateway.port9.db -  (122) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.583703, received&lt;br /&gt;
2015-02-19 17:33:08.585 [INFO] Gateway.port6.db -  (41) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.585024, received&lt;br /&gt;
2015-02-19 17:33:08.586 [INFO] Gateway.port6.db -  (42) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.585943, received&lt;br /&gt;
2015-02-19 17:33:08.598 [INFO] Gateway.Port15.db -  (40) event: 1 flags: GwTime GI  time: 2015-Feb-19 17:33:08.551947, sent&lt;br /&gt;
2015-02-19 17:33:08.599 [INFO] Gateway.Port15.db -  (120) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.528113, sent&lt;br /&gt;
2015-02-19 17:33:08.604 [INFO] Gateway.port9.db -  (123) event: 1 flags: GwTime GI  time: 2015-Feb-19 17:33:08.603814, received&lt;br /&gt;
2015-02-19 17:33:08.606 [INFO] Gateway.port6.db -  (43) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.586459, received&lt;br /&gt;
2015-02-19 17:33:08.607 [INFO] Gateway.port6.db -  (44) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.606645, received&lt;br /&gt;
2015-02-19 17:33:08.607 [INFO] Gateway.port6.db -  (45) event: 2 flags: GwTime GI  time: 2015-Feb-19 17:33:08.607344, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An erroneous log would look like the next short example&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 17:33:08.790 [INFO] Gateway.port10.db -  (128) event: 1 time: 2015-Feb-19 17:31:58.520000, received&lt;br /&gt;
2015-02-19 17:33:08.792 [INFO] Gateway.WebServer.db -  (128) event: 1 time: 2015-Feb-19 17:31:58.520000, sent&lt;br /&gt;
2015-02-19 11:23:08.808 [INFO] Gateway.Port15.db -  (128) event: 1 time: 2015-Feb-19 17:31:58.520000, sent&lt;br /&gt;
2015-02-19 11:23:08.812 [INFO] Gateway.port10.db -  (129) event: 1 time: 2015-Feb-19 17:31:58.855000, received&lt;br /&gt;
2015-02-19 11:23:08.814 [INFO] Gateway.WebServer.db -  (129) event: 1 time: 2015-Feb-19 17:31:58.855000, sent&lt;br /&gt;
2015-02-19 11:23:08.815 [INFO] Gateway.port10.db -  (130) event: 1 time: 2015-Feb-19 17:31:58.176000, received&lt;br /&gt;
2015-02-19 11:23:08.817 [INFO] Gateway.WebServer.db -  (130) event: 1 time: 2015-Feb-19 17:31:58.176000, sent&lt;br /&gt;
2015-02-19 17:33:08.817 [INFO] Gateway.port10.db -  (131) event: 1 time: 2015-Feb-19 17:31:58.091000, received&lt;br /&gt;
2015-02-19 17:33:08.837 [INFO] Gateway.Port15.db -  (129) event: 1 time: 2015-Feb-19 17:31:58.855000, sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that year-month-day could also be &amp;#039;wrong&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 17:33:08.895 [INFO] Gateway.port7.db -  (54) event: -0.058075 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.895493, received&lt;br /&gt;
2015-02-19 17:33:08.897 [INFO] Gateway.port8.db -  (81) event: 0.771538 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.896834, received&lt;br /&gt;
2015-02-19 17:33:08.898 [INFO] Gateway.port8.db -  (82) event: 0.541642 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.897743, received&lt;br /&gt;
2012-01-15 17:33:08.898 [INFO] Gateway.port8.db -  (83) event: -0.523254 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.898286, received&lt;br /&gt;
2012-01-15 17:33:08.899 [INFO] Gateway.port8.db -  (84) event: -0.142151 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.898931, received&lt;br /&gt;
2012-01-15 17:33:08.899 [INFO] Gateway.port8.db -  (85) event: 0.0126041 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.899393, received&lt;br /&gt;
2015-02-19 17:33:08.900 [INFO] Gateway.port8.db -  (86) event: 0.0643635 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.899999, received&lt;br /&gt;
2015-02-19 17:33:08.900 [INFO] Gateway.port8.db -  (87) event: -0.507019 flags: GwTime GI Normalized  time: 2015-Feb-19 17:33:08.900444, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or both...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Program accepts one out of three &amp;#039;&amp;#039;&amp;#039;optional&amp;#039;&amp;#039;&amp;#039; arguments: stats, list or all. Examples&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./a.out --stats&lt;br /&gt;
./a.out &lt;br /&gt;
./a.out --all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--stats&lt;br /&gt;
    Outputs statistical information about time stamp anomalies.&lt;br /&gt;
&lt;br /&gt;
--list&lt;br /&gt;
    Outputs lines with erroneous time stamps along with line numbers.&lt;br /&gt;
&lt;br /&gt;
--all&lt;br /&gt;
    Outputs lines with erroneous time stamps along with line numbers &lt;br /&gt;
    and statistical information about time stamp anomalies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
A short example log file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2015-02-19 13:28:33.778 [INFO] Gateway.Port15.db -  (35) event: 2 time: 2015-Feb-19 17:32:02.013000, sent&lt;br /&gt;
2015-02-19 13:28:33.778 [INFO] Gateway.Port15.db -  (133) event: 2 time: 2015-Feb-19 17:31:52.336000, sent&lt;br /&gt;
2015-02-19 13:28:33.788 [INFO] Gateway.WebServer.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
2015-02-19 13:28:33.791 [INFO] Gateway.WebServer.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
2015-02-19 13:28:33.797 [INFO] Gateway.port10.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, received&lt;br /&gt;
2015-02-19 13:28:33.795 [INFO] Gateway.port6.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, received&lt;br /&gt;
2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
2015-02-19 11:28:33.805 [INFO] Gateway.port10.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, received&lt;br /&gt;
2015-02-19 11:28:33.806 [INFO] Gateway.WebServer.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
2015-02-19 13:28:33.808 [INFO] Gateway.Port15.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
2015-02-19 13:28:33.810 [INFO] Gateway.port6.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, received&lt;br /&gt;
2015-02-19 13:28:33.813 [INFO] Gateway.WebServer.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
2015-02-19 13:28:33.814 [INFO] Gateway.WebServer.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
2015-01-19 13:18:33.820 [INFO] Gateway.Port15.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
2015-02-19 13:28:33.821 [INFO] Gateway.port10.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, received&lt;br /&gt;
2015-02-19 13:28:33.823 [INFO] Gateway.WebServer.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, sent&lt;br /&gt;
2015-02-19 13:28:33.824 [INFO] Gateway.port6.db -  (39) event: 2 time: 2015-Feb-19 17:32:02.451000, received&lt;br /&gt;
2015-02-19 13:28:33.826 [INFO] Gateway.WebServer.db -  (39) event: 2 time: 2015-Feb-19 17:32:02.451000, sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./a.out --stats&lt;br /&gt;
Number of lines:&lt;br /&gt;
22&lt;br /&gt;
Invalid time stamps at line(s):&lt;br /&gt;
8-11&lt;br /&gt;
16-18&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./a.out --list&lt;br /&gt;
Lines with invalid time stamps:&lt;br /&gt;
[7] 2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
[8] 2015-02-19 11:28:33.805 [INFO] Gateway.port10.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, received&lt;br /&gt;
[9] 2015-02-19 11:28:33.806 [INFO] Gateway.WebServer.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[10] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
[11] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
[12] 2015-02-19 13:28:33.808 [INFO] Gateway.Port15.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
---&lt;br /&gt;
[15] 2015-02-19 13:28:33.814 [INFO] Gateway.WebServer.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[16] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[17] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
[18] 2015-01-19 13:18:33.820 [INFO] Gateway.Port15.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[19] 2015-02-19 13:28:33.821 [INFO] Gateway.port10.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./a.out --all&lt;br /&gt;
Number of lines:&lt;br /&gt;
22&lt;br /&gt;
Invalid time stamps at line(s):&lt;br /&gt;
8-11&lt;br /&gt;
16-18&lt;br /&gt;
&lt;br /&gt;
Lines with invalid time stamps:&lt;br /&gt;
[7] 2015-02-19 13:28:33.804 [INFO] Gateway.WebServer.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
[8] 2015-02-19 11:28:33.805 [INFO] Gateway.port10.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, received&lt;br /&gt;
[9] 2015-02-19 11:28:33.806 [INFO] Gateway.WebServer.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[10] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (36) event: 1 time: 2015-Feb-19 17:32:01.386000, sent&lt;br /&gt;
[11] 2015-02-19 11:28:33.807 [INFO] Gateway.Port15.db -  (134) event: 2 time: 2015-Feb-19 17:31:52.030000, sent&lt;br /&gt;
[12] 2015-02-19 13:28:33.808 [INFO] Gateway.Port15.db -  (135) event: 2 time: 2015-Feb-19 17:31:52.035000, sent&lt;br /&gt;
---&lt;br /&gt;
[15] 2015-02-19 13:28:33.814 [INFO] Gateway.WebServer.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[16] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (37) event: 2 time: 2015-Feb-19 17:32:01.157000, sent&lt;br /&gt;
[17] 2015-01-19 13:18:33.819 [INFO] Gateway.Port15.db -  (38) event: 2 time: 2015-Feb-19 17:32:01.744000, sent&lt;br /&gt;
[18] 2015-01-19 13:18:33.820 [INFO] Gateway.Port15.db -  (136) event: 1 time: 2015-Feb-19 17:31:52.090000, sent&lt;br /&gt;
[19] 2015-02-19 13:28:33.821 [INFO] Gateway.port10.db -  (137) event: 2 time: 2015-Feb-19 17:31:52.637000, received&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no arguments are given, output is same as with stats argument.&lt;br /&gt;
&lt;br /&gt;
Note that with list argument one line before and after the invalid time stamp is also output (look closer at the example outputs).&lt;br /&gt;
&lt;br /&gt;
Program is output to &amp;#039;standard output&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Use [http://www.boost.org/ boost] libraries: [http://www.boost.org/doc/libs/1_53_0/libs/format/doc/format.html format], [http://www.boost.org/doc/libs/1_53_0/doc/html/date_time.html date_time], [http://www.boost.org/doc/libs/1_53_0/libs/filesystem/doc/index.htm filesystem].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kasutaja:MarkTomm|MarkTomm]] 20. veebruar 2015, kell 14:14 (EET)&lt;/div&gt;</summary>
		<author><name>MarkTomm</name></author>
	</entry>
</feed>