<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Selmys' Weblog &#187; opensource</title>
	<atom:link href="http://selmys.wordpress.com/category/opensource/feed/" rel="self" type="application/rss+xml" />
	<link>http://selmys.wordpress.com</link>
	<description>Using Linux at Seneca College in Toronto</description>
	<lastBuildDate>Tue, 10 Jan 2012 01:40:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='selmys.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Selmys' Weblog &#187; opensource</title>
		<link>http://selmys.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://selmys.wordpress.com/osd.xml" title="Selmys&#039; Weblog" />
	<atom:link rel='hub' href='http://selmys.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tackling the Android</title>
		<link>http://selmys.wordpress.com/2011/09/20/tackling-the-android/</link>
		<comments>http://selmys.wordpress.com/2011/09/20/tackling-the-android/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 11:20:42 +0000</pubDate>
		<dc:creator>selmys</dc:creator>
				<category><![CDATA[opensource]]></category>
		<category><![CDATA[Seneca]]></category>

		<guid isPermaLink="false">http://selmys.wordpress.com/?p=162</guid>
		<description><![CDATA[This past summer I overcame the inertia of the couch and plowed my way into programming on Android. I wrote a little app, called &#8220;The Devil&#8217;s Dictionary&#8221;, which I published on the Android market last Friday. You can download the Android package and source code from my home server at lotuspond.ca or you can install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=162&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This past summer I overcame the inertia of the couch and plowed my way into programming on Android. I wrote a little app, called &#8220;The Devil&#8217;s Dictionary&#8221;, which I published on the Android market last Friday. You can download the Android package and source code from my home server at <a title="my home server" href="http://lotuspond.ca">lotuspond.ca</a> or you can install it onto your Android phone or tablet directly from the Android market; just do a search for my name.</p>
<p>Google&#8217;s <a title="Package Index" href="http://developer.android.com/reference/packages.html">Android API</a> is not difficult to learn if you already know some Java and there are lots of examples on their <a title="Examples" href="http://developer.android.com/resources/browser.html?tag=sample">developer</a> web site. I developed my app using <a title="eclipse.org" href="http://eclipse.org">Eclipse</a> so that&#8217;s another hurdle you need to overcome but persistence will pay off if you work at it a little each day.</p>
<p>Last week I started the Android Programmers Klub (<a title="Android Programmers Klub" href="http://zenit.senecac.on.ca/wiki/index.php/APK">APK</a>) for Seneca students and staff. We meet every Wednesday (fall 2011) starting at 5:10pm in room S2149. I also set up an email list, android@senecac.on.ca. Email me if you want your name added to the list or better still come to our next meeting on Wednesday.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/selmys.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/selmys.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/selmys.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/selmys.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/selmys.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/selmys.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/selmys.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/selmys.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=162&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://selmys.wordpress.com/2011/09/20/tackling-the-android/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/501d91ddb74503fe77b5ddc11f439f9a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">selmys</media:title>
		</media:content>
	</item>
		<item>
		<title>Remembrance Day</title>
		<link>http://selmys.wordpress.com/2010/11/11/remembrance-day/</link>
		<comments>http://selmys.wordpress.com/2010/11/11/remembrance-day/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 11:43:03 +0000</pubDate>
		<dc:creator>selmys</dc:creator>
				<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://selmys.wordpress.com/?p=153</guid>
		<description><![CDATA[Today is Remembrance Day in Canada, a day to remember the sacrifices made by our citizens in current and past wars. Here at Seneca we&#8217;ll all be observing two minutes of silence at 11am. A very somber day indeed. But this day is special in another sense and I don&#8217;t mean to be frivolous &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=153&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today is <a title="Remembrance Day" href="http://en.wikipedia.org/wiki/Remembrance_Day" target="_blank">Remembrance Day</a> in Canada, a day to remember the sacrifices made by our citizens in current and past wars. Here at Seneca we&#8217;ll all be observing two minutes of silence at 11am. A very somber day indeed.</p>
<p>But this day is special in another sense and I don&#8217;t mean to be frivolous &#8211; it&#8217;s just that by nature I&#8217;m a curious fellow and often get sidetracked by sometimes very trivial ideas. Case in point, today is Remembrance Day but it&#8217;s also Seneca&#8217;s employee pay day. So why is this special? Well, it turns out that banks in Canada are closed on Remembrance Day so Seneca deposited our pay into our bank accounts yesterday &#8211; one day early. Ok, so big deal. Well for me it is a big deal because I couldn&#8217;t remember this happening in the past &#8211; and I&#8217;ve been here a long time. So I started thinking. When was the last time Remembrance Day fell on Seneca&#8217;s pay day? And when will it happen again?</p>
<p>It turns out that these questions can be answered with a simple BASH script. For example, to find out when this collision of dates happened in the past I wrote this script:</p>
<pre>#!/bin/bash
echo Hit CTRL-C to quit
x=2
while :
do
 d=$(date -d"$x weeks ago")
 echo $d | grep "Thu Nov 11"
 ((x+=2))
done 
</pre>
<p>Now, when I ran this script, here&#8217;s what I got:</p>
<pre>Hit CTRL-C to quit
Thu Nov 11 05:47:25 EST 1999
Thu Nov 11 05:47:27 EST 1976
Thu Nov 11 05:47:27 EST 1965
Thu Nov 11 05:47:28 EST 1954
Thu Nov 11 06:47:29 EWT 1943
Thu Nov 11 05:47:30 EST 1920
Thu Nov 11 05:47:31 EST 1909
Thu Nov 11 05:47:32 EST 1897
Thu Nov 11 05:47:32 LMT 1886
Thu Nov 11 05:47:33 LMT 1875
^C</pre>
<p>So, it seems the last time our pay day fell on Remembrance Day was in 1999. Before that it happened in 1976.</p>
<p>Looking into the future, I ran this script:</p>
<pre>#!/bin/bash
echo Hit CTRL-C to quit
x=2
while :
do
 d=$(date -d"$x week")
 echo $d | grep "Thu Nov 11"
 ((x+=2))
done</pre>
<p>And the output I got was</p>
<pre>Hit CTRL-C to quit
Thu Nov 11 06:24:00 EST 2021
Thu Nov 11 06:24:00 EST 2032
Thu Nov 11 06:24:02 EST 2055
Thu Nov 11 06:24:03 EST 2066
Thu Nov 11 06:24:03 EST 2077
Thu Nov 11 06:24:04 EST 2088
Thu Nov 11 06:24:05 EST 2100
Thu Nov 11 06:24:07 EST 2123
Thu Nov 11 06:24:07 EST 2134
^C</pre>
<p>So the next time Remembrance Day will collide with Seneca&#8217;s pay day will be in the year 2021. Of course I&#8217;ll be retired by then &#8230; I hope.</p>
<p>Anyway, take some time today to reflect on the fact that the freedom we enjoy in Canada today is due in no small measure to the sacrifices of those who came before us, and when you go home tonight &#8211; practice your shell programming.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/selmys.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/selmys.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/selmys.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/selmys.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/selmys.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/selmys.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/selmys.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/selmys.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=153&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://selmys.wordpress.com/2010/11/11/remembrance-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/501d91ddb74503fe77b5ddc11f439f9a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">selmys</media:title>
		</media:content>
	</item>
		<item>
		<title>Tick Toc, Tick Toc</title>
		<link>http://selmys.wordpress.com/2010/10/10/time-servers/</link>
		<comments>http://selmys.wordpress.com/2010/10/10/time-servers/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 15:16:35 +0000</pubDate>
		<dc:creator>selmys</dc:creator>
				<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://selmys.wordpress.com/?p=149</guid>
		<description><![CDATA[Ever try to solve a problem by looking at log file records with wrong time stamps? Ever submit a cron job only to find it crashed because it didn&#8217;t run when you expected it to? If you&#8217;re like me, and you have, then it&#8217;s time to set up your own stratum-1 time server. Here&#8217;s how.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=149&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever try to solve a problem by looking at log file records with wrong time stamps? Ever submit a cron job only to find it crashed because it didn&#8217;t run when you expected it to?</p>
<p>If you&#8217;re like me, and you have, then it&#8217;s time to set up your own stratum-1 time server.</p>
<p><a class="alignleft" title="Time Servers" href="http://cs.senecac.on.ca/~selmys/time/index.html" target="_blank">Here&#8217;s how.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/selmys.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/selmys.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/selmys.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/selmys.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/selmys.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/selmys.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/selmys.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/selmys.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=149&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://selmys.wordpress.com/2010/10/10/time-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/501d91ddb74503fe77b5ddc11f439f9a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">selmys</media:title>
		</media:content>
	</item>
		<item>
		<title>Anything C can do, BASH can do better!</title>
		<link>http://selmys.wordpress.com/2010/04/13/anything-c-can-do-bash-can-do-better/</link>
		<comments>http://selmys.wordpress.com/2010/04/13/anything-c-can-do-bash-can-do-better/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 14:18:09 +0000</pubDate>
		<dc:creator>selmys</dc:creator>
				<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://selmys.wordpress.com/?p=137</guid>
		<description><![CDATA[Every now and then I like to take a peek at what our first year C programming students are up to. This semester I discovered that one of their assignments is to code a Sudoku puzzle. Obviously this was too tempting to resist, so here&#8217;s my solution written in BASH 4.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=137&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every now and then I like to take a peek at what our first year C programming students are up to. This semester I discovered that one of their assignments is to code a Sudoku puzzle. Obviously this was too tempting to resist, so here&#8217;s my <a title="Sudoku BASH" href="https://scs.senecac.on.ca/~selmys/sudoku.bash" target="_blank">solution</a> written in BASH 4.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/selmys.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/selmys.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/selmys.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/selmys.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/selmys.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/selmys.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/selmys.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/selmys.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=selmys.wordpress.com&#038;blog=3672353&#038;post=137&#038;subd=selmys&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://selmys.wordpress.com/2010/04/13/anything-c-can-do-bash-can-do-better/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/501d91ddb74503fe77b5ddc11f439f9a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">selmys</media:title>
		</media:content>
	</item>
	</channel>
</rss>
