<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Bringing Google Calendar to My Desktop</title>
	<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/</link>
	<description></description>
	<pubDate>Wed, 23 Jul 2008 19:24:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: devan</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-4684</link>
		<author>devan</author>
		<pubDate>Fri, 29 Feb 2008 14:22:04 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-4684</guid>
		<description>You're quite right—Lingon has undergone a significant change since my post. See my update above, near the discussion of the XML.</description>
		<content:encoded><![CDATA[<p>You&#8217;re quite right—Lingon has undergone a significant change since my post. See my update above, near the discussion of the XML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-4683</link>
		<author>jan</author>
		<pubDate>Fri, 29 Feb 2008 03:16:06 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-4683</guid>
		<description>I'm using 10.5.2 with Lingon 2.0.2 and I don't see the "Expert" tab anywhere - what am I doing wrong? 

Any help is greatly appreciated.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using 10.5.2 with Lingon 2.0.2 and I don&#8217;t see the &#8220;Expert&#8221; tab anywhere - what am I doing wrong? </p>
<p>Any help is greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-3369</link>
		<author>chris</author>
		<pubDate>Fri, 28 Dec 2007 21:01:26 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-3369</guid>
		<description>go away completely? ugh :( also, the google-apps hosted calendars don't seem to be functional with this method... you don't get a 'private xml url' the url's they pass out are only 'public' versions which will only work if your calendar is shared to all the world.

I do hope that they don't deprecate cron...</description>
		<content:encoded><![CDATA[<p>go away completely? ugh <img src='http://www.devangoldstein.com/dblog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> also, the google-apps hosted calendars don&#8217;t seem to be functional with this method&#8230; you don&#8217;t get a &#8216;private xml url&#8217; the url&#8217;s they pass out are only &#8216;public&#8217; versions which will only work if your calendar is shared to all the world.</p>
<p>I do hope that they don&#8217;t deprecate cron&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devan</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-67</link>
		<author>devan</author>
		<pubDate>Sun, 16 Sep 2007 12:29:12 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-67</guid>
		<description>Hi, Dennis,

I think the error you're getting is caused by my failure to account for repeated events. See  pizen's comment above, where he adds parameters to the query string. Should work like a charm.

As for rolling curl into the script, I've tried both ways, and I still prefer to have curl run as a launchd agent.

When I have curl in the perl script, two things happen:

1. If the script fails (e.g., because I'm offline), my agenda doesn't show up. This should not happen, as Byron points out above, but it does.

2. While the script is running, I can't see any events. So, for about 10 seconds every 5 minutes, I'm in the dark. No big deal, but I like it the other way better.

All that said, getting curl in the script could look like this:
&lt;code&gt;
my @curlargs = ("/usr/bin/curl", "-s", "-f",
"[URL string]", "-o", "/path/to/.gcalfeed.xml");&lt;/code&gt;

&lt;code&gt;system(@curlargs) == 0
 or die "system @curlargs failed: $?";
&lt;/code&gt;

As usual, I've broken one of these lines artificially; there's a line break between &lt;code&gt;"-f",&lt;/code&gt; and &lt;code&gt;"[URL string]"&lt;/code&gt; that you should remove.</description>
		<content:encoded><![CDATA[<p>Hi, Dennis,</p>
<p>I think the error you&#8217;re getting is caused by my failure to account for repeated events. See  pizen&#8217;s comment above, where he adds parameters to the query string. Should work like a charm.</p>
<p>As for rolling curl into the script, I&#8217;ve tried both ways, and I still prefer to have curl run as a launchd agent.</p>
<p>When I have curl in the perl script, two things happen:</p>
<p>1. If the script fails (e.g., because I&#8217;m offline), my agenda doesn&#8217;t show up. This should not happen, as Byron points out above, but it does.</p>
<p>2. While the script is running, I can&#8217;t see any events. So, for about 10 seconds every 5 minutes, I&#8217;m in the dark. No big deal, but I like it the other way better.</p>
<p>All that said, getting curl in the script could look like this:<br />
<code><br />
my @curlargs = ("/usr/bin/curl", "-s", "-f",<br />
"[URL string]", "-o", "/path/to/.gcalfeed.xml");</code></p>
<p><code>system(@curlargs) == 0<br />
 or die "system @curlargs failed: $?";<br />
</code></p>
<p>As usual, I&#8217;ve broken one of these lines artificially; there&#8217;s a line break between <code>"-f",</code> and <code>"[URL string]"</code> that you should remove.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Walker</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-66</link>
		<author>Dennis Walker</author>
		<pubDate>Sun, 16 Sep 2007 06:33:50 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-66</guid>
		<description>Wow, this is not easy.  Would it be possible to see a version of someone's pl script that has the curl and Date::Format rolled in?  It seems that putting the System curl call is definitely the way to go.  It also seems that everything after "system" is supposed to in quotes.  Currently I'm hung up on this error, "Use of uninitialized value in numeric le (</description>
		<content:encoded><![CDATA[<p>Wow, this is not easy.  Would it be possible to see a version of someone&#8217;s pl script that has the curl and Date::Format rolled in?  It seems that putting the System curl call is definitely the way to go.  It also seems that everything after &#8220;system&#8221; is supposed to in quotes.  Currently I&#8217;m hung up on this error, &#8220;Use of uninitialized value in numeric le (</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desktop and Laptop Computers</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-58</link>
		<author>Desktop and Laptop Computers</author>
		<pubDate>Wed, 12 Sep 2007 02:04:07 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-58</guid>
		<description>&lt;strong&gt;Desktop and Laptop Computers...&lt;/strong&gt;

I couldn't understand some parts of this article, but it sounds interesting...</description>
		<content:encoded><![CDATA[<p><strong>Desktop and Laptop Computers&#8230;</strong></p>
<p>I couldn&#8217;t understand some parts of this article, but it sounds interesting&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ltj</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-37</link>
		<author>ltj</author>
		<pubDate>Wed, 05 Sep 2007 15:12:50 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-37</guid>
		<description>it works, thanks a lot</description>
		<content:encoded><![CDATA[<p>it works, thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devan</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-34</link>
		<author>devan</author>
		<pubDate>Wed, 05 Sep 2007 11:46:25 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-34</guid>
		<description>Great work, pizen. I'll try this later today. ltj, pizen's solution should work for you... May take some tinkering with the script.</description>
		<content:encoded><![CDATA[<p>Great work, pizen. I&#8217;ll try this later today. ltj, pizen&#8217;s solution should work for you&#8230; May take some tinkering with the script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pizen</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-33</link>
		<author>pizen</author>
		<pubDate>Wed, 05 Sep 2007 01:00:21 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-33</guid>
		<description>I added the following to the perl script
&lt;code&gt;
use Date::Format;

my $startmin = time2str("%Y-%m-%d", time);
my $startmax = time2str("%Y-%m-%d", time+345600);
&lt;/code&gt;
then I appended &lt;code&gt;?singleevents=true&#38;start-min=$startmin&#38;start-max=$startmax&#38;orderby=starttime&#38;sortorder=a&lt;/code&gt; to the GCal XML url.

There's more detailed info at the &lt;a href="http://code.google.com/apis/calendar/reference.html#Parameters" rel="nofollow"&gt;Google Calendar Data API Reference&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I added the following to the perl script<br />
<code><br />
use Date::Format;</p>
<p>my $startmin = time2str("%Y-%m-%d", time);<br />
my $startmax = time2str("%Y-%m-%d", time+345600);<br />
</code><br />
then I appended <code>?singleevents=true&amp;start-min=$startmin&amp;start-max=$startmax&amp;orderby=starttime&amp;sortorder=a</code> to the GCal XML url.</p>
<p>There&#8217;s more detailed info at the <a href="http://code.google.com/apis/calendar/reference.html#Parameters" rel="nofollow">Google Calendar Data API Reference</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devan</title>
		<link>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-32</link>
		<author>devan</author>
		<pubDate>Tue, 04 Sep 2007 11:48:37 +0000</pubDate>
		<guid>http://www.devangoldstein.com/87/bringing-google-calendar-to-my-desktop/#comment-32</guid>
		<description>Hi again, Jeff,

I think this is caused by repeated events. They have no &lt;gd:when&gt; element, so the script is breaking on them. I'm looking into repeat handling now, but it may be a while... Sorry.

Devan</description>
		<content:encoded><![CDATA[<p>Hi again, Jeff,</p>
<p>I think this is caused by repeated events. They have no <gd :when> element, so the script is breaking on them. I&#8217;m looking into repeat handling now, but it may be a while&#8230; Sorry.</p>
<p>Devan</gd></p>
]]></content:encoded>
	</item>
</channel>
</rss>
