<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>duckland.org news (calendar)</title><link>http://www.duckland.org/</link><description></description><atom:link href="http://www.duckland.org/categories/calendar.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 10 Jun 2015 05:13:30 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Google’s Calendar on the Command Line!</title><link>http://www.duckland.org/posts/200812googles-calendar-on-the-command-line.html</link><dc:creator>Don Harper</dc:creator><description>&lt;h1&gt;Google’s Calendar on the Command Line!&lt;/h1&gt;

&lt;p&gt;You love your comfortable command line, but all the cool kids are playing in the Web 2.0 web space, and you want to stay true to your roots?  Want a Web 2.0 calendar, but still love (or need) command line access?&lt;/p&gt;

&lt;p&gt;I just found the answer: &lt;a href="http://code.google.com/p/gcalcli/"&gt;gcalcli&lt;/a&gt;. This little tool will let you list your appointments, get an list your events, get an agenda, print ascii rendering of your calendar for the week or month.  You can even add events to the calendar.&lt;/p&gt;

&lt;p&gt;I like the fact that I can easly get at my gcalendar from anywhere (even my cell phone), and now I can do it from my shell.&lt;/p&gt;

&lt;p&gt;The only downsides so far?  The code has not been updated since October of 2007, and the speed can be a little slow sometimes. I am going to play with it for a while to see if I like it enough to replace remind.&lt;/p&gt;</description><category>calendar</category><category>cli</category><category>software</category><guid>http://www.duckland.org/posts/200812googles-calendar-on-the-command-line.html</guid><pubDate>Mon, 08 Dec 2008 23:12:00 GMT</pubDate></item><item><title>Alerting with Remind</title><link>http://www.duckland.org/posts/200811alerting-with-remind.html</link><dc:creator>Don Harper</dc:creator><description>&lt;h1&gt;Alerting with Remind&lt;/h1&gt;

&lt;p&gt;Back in my &lt;a href="http://www.duckland.org/archives/2008/08/05/so-you-need-a-calendar/"&gt;article on Remind&lt;/a&gt;, I talked about the simple power of remind to power your scheduling needs.  That is all fine and good, but how to you get it to tell you when you have an event?&lt;/p&gt;

&lt;p&gt;In its simplest form, when you run _remind _ from the command line, it will not only display the current day’s reminders, but it will run in the background and wake up to tell you about other reminders on the screen while you work.&lt;/p&gt;

&lt;p&gt;This is fine, but what happens if you do not have that termial open in front of you?  Well, I have two ways I approach that issue.&lt;/p&gt;

&lt;p&gt;First, when I run under X (&lt;a href="http://www.duckland.org/archives/2006/12/31/what-do-i-use/"&gt;yeah, yeah, I know, but I use cli tools under X&lt;/a&gt;), I have this added to my .xinitrc:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;remind -z -k’xmessage -buttons okay:0 -default okay %s&amp;amp;’ ~/.reminders &amp;amp;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Let’s look at the command line:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;-z&lt;/strong&gt; tells remind to wake up every 5 minutes and reread the .reminders file.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;-k&lt;/strong&gt; tells remind to run a command instead of simply printing the reminder to the screen&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;xmessage -buttons okay:0 -default okay %s&amp;amp;&lt;/strong&gt; is the secret sauce of this.  This is the command run when there is an alarm.  This command line calls xmessage (which is on pretty much any box with X) to display the alert.  You could use zenity or kmessage, or winpopup, or whatever.  This is what puts the alert in your face when you are not looking at the screen.  The &lt;strong&gt;&amp;amp;&lt;/strong&gt; is needed to make this command non-blocking by putting it in the background.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That all good if you are setting at your computer.  But, what do you do when &lt;em&gt;gasp&lt;/em&gt; you leave to computer?  This is a little tricker.  For this, my solution needs two things: 1) a computer which is always on and 2) a way to send messages to your cell phone/pager (sms or email).  I have a cron job which checks to make sure remind is running, and restarts it if it is not (I use a hosting provider which does not like long running processes).  The command line is similar to the one for X, but with a difference:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;TZ=CDT6CST ~/bin/remind -z -k”echo %s&lt;/p&gt;
&lt;/blockquote&gt;</description><category>calendar</category><category>cli</category><category>remind</category><category>software</category><guid>http://www.duckland.org/posts/200811alerting-with-remind.html</guid><pubDate>Wed, 19 Nov 2008 23:11:00 GMT</pubDate></item><item><title>So you need a calendar?</title><link>http://www.duckland.org/posts/200808so-you-need-a-calendar.html</link><dc:creator>Don Harper</dc:creator><description>&lt;h1&gt;So you need a calendar?&lt;/h1&gt;

&lt;p&gt;So, one of the things we have been using computers for is to keep track of our lives.  And this means a scheduling or calendaring tool.  Some tools out there do this fine, and some do it very well.&lt;/p&gt;

&lt;p&gt;I have to keep track of a lot of appointments. From conference calls for work, to each member of the family’s schedules, to random, but highly important reminders.  Most calendaring programs out there will let you set up a reoccurring event by day of the month, or the date.  But, what if you need to do something two days before the end of the month, every month?  Or, you need to do something every full moon, but not on &lt;a href="http://en.wikipedia.org/wiki/Blue_moon"&gt;the blue moon&lt;/a&gt;?  Or, you have a standing meeting with your boss every other Monday morning, execpt when Monday is a holiday, then the meeting shifts to Tuesday?  Oh, and you want something that you can run over an ssh session, while on your smart phone, or you friend’s smart phone?&lt;/p&gt;

&lt;p&gt;The answer is simple: &lt;a href="http://www.roaringpenguin.com/products/remind/"&gt;remind&lt;/a&gt;.  remind can do this, and more.  Need to set something up by the Hebrew Calendar?  Check.  Want your calendar to run a shell command for you on a holiday, specific day of the month, or phase of the moon? Check.&lt;/p&gt;

&lt;p&gt;Most modern Linux distrobutions include remind nowdays, as it is so darn usefull.  In addition, it runs just fine under Solaris, and the BSDs, including MacOS X.  If fact, over at &lt;a href="http://www.43Folders.com"&gt;43Folders&lt;/a&gt;, they have a whole section their wiki for &lt;a href="http://wiki.43folders.com/index.php/Remind"&gt;remind&lt;/a&gt;.  The wiki has many tips and tricks on how to use remind to its fullest.&lt;/p&gt;

&lt;p&gt;In my next post, I will share some tips on how I get remind to remind me of events.&lt;/p&gt;</description><category>calendar</category><category>cli</category><category>software</category><guid>http://www.duckland.org/posts/200808so-you-need-a-calendar.html</guid><pubDate>Mon, 04 Aug 2008 23:08:00 GMT</pubDate></item></channel></rss>