<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SWAT&#039;s blog &#187; Training</title>
	<atom:link href="http://blog.schauenburg.nl/category/training/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.schauenburg.nl</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 19:38:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Convert date to days since 01-01-1970</title>
		<link>http://blog.schauenburg.nl/2010/04/14/convert-date-to-days-since-01-01-1970/</link>
		<comments>http://blog.schauenburg.nl/2010/04/14/convert-date-to-days-since-01-01-1970/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 20:50:48 +0000</pubDate>
		<dc:creator>SWAT</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Ictivity]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu-NL]]></category>
		<category><![CDATA[Ubuntu.com]]></category>

		<guid isPermaLink="false">http://blog.schauenburg.nl/?p=503</guid>
		<description><![CDATA[This week I am teaching the LPI 101 course again and we covered the shadow file today (amongst other topics). I gave the students the exercise to manually edit the shadowfile and let an account expire on 01-01-2011. The manpage of shadow(5) stipulates that the account expiration date has to be &#8220;expressed as the number [...]]]></description>
			<content:encoded><![CDATA[<p>This week I am teaching the LPI 101 course again and we covered the shadow file today (amongst other topics). I gave the students the exercise to manually edit the shadowfile and let an account expire on 01-01-2011. The manpage of shadow(5) stipulates that the account expiration date has to be &#8220;expressed as the number of days since Jan 1, 1970&#8243;. One of my students asked me how to calcuate this. I did not immediately know the answer and I did not want to use rely on any online date/time converter, so I went looking for a satisfactory solution.</p>
<p>1. Find the UNIX time / Epoch of the date in question</p>
<blockquote><p>date -d &#8216;2011-01-01&#8242; +%s</p></blockquote>
<p><em>Remember that these are seconds since 01-01-1970.</em></p>
<p>2. Calculate the number of days since 01-01-1970.</p>
<blockquote><p>echo `date -d &#8216;2011-01-01&#8242; +%s` / 86400 | bc</p></blockquote>
<p><em>A day is 60 * 60 * 24 = 86400 seconds. Notice how &#8216;bc&#8217; will always be rounding down the number of days.</em></p>
<p>3. Perform a &#8216;normal&#8217;  round up or down for the number of days</p>
<blockquote><p>UNIXTIME=`date -d &#8216;2011-01-01&#8242; +%s` ; printf &#8220;%.0f\n&#8221; `echo &#8220;scale=1; $UNIXTIME / 86400&#8243; | bc`</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.schauenburg.nl/2010/04/14/convert-date-to-days-since-01-01-1970/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux lessen geven</title>
		<link>http://blog.schauenburg.nl/2006/11/07/linux-lessen-geven/</link>
		<comments>http://blog.schauenburg.nl/2006/11/07/linux-lessen-geven/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 19:52:21 +0000</pubDate>
		<dc:creator>SWAT</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[Ubuntu-NL]]></category>

		<guid isPermaLink="false">http://b.schauenburg.nl/?p=6</guid>
		<description><![CDATA[Vandaag heb ik het voor het eerst ervaren hoe het is om les te geven. Gelukkig had ik mijzelf goed voorbereid en dit zorgde voor een goede eerste workshop. Verbazingwekkend genoeg waren de studenten zeer gemotiveerd en geinteresseerd in linux. Het leukste moment blijft als ze erachter komen dat het daadwerkelijk makkelijk in gebruik is [...]]]></description>
			<content:encoded><![CDATA[<p>Vandaag heb ik het voor het eerst ervaren hoe het is om les te geven. Gelukkig had ik mijzelf goed voorbereid en dit zorgde voor een goede eerste workshop. Verbazingwekkend genoeg waren de studenten zeer gemotiveerd en geinteresseerd in linux. Het leukste moment blijft als ze erachter komen dat het daadwerkelijk makkelijk in gebruik is en dat zodoende een bepaalde scepsis weggehaald wordt.<br />
Wat eventjes voor wat drukte zorgde was dat in het begin toch veel vragen gesteld werden en ik dus van hot naar her mocht huppelen. Dit was ook snel weer voorbij en kon ik nog wat zaken controleren en de sheets van de presentatie online zetten. Al met al een geslaagde dag!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schauenburg.nl/2006/11/07/linux-lessen-geven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
