<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><language>en-us</language><copyright>Copyright 2006</copyright><managingEditor>palrich@gmail.com</managingEditor><webMaster>palrich@gmail.com</webMaster><lastBuildDate>Sun, 05 Feb 2012 08:16:38 +0000</lastBuildDate><pubDate>Sun, 05 Feb 2012 08:16:38 +0000</pubDate><ttl>60</ttl><generator>WeirdLooking.com</generator><link>http://www.weirdlooking.com/</link><description>WeirdLooking.com: Michael Barton's Blog</description><title>WeirdLooking.com: Michael Barton's Blog</title><image><url>http://www.weirdlooking.com/images/feed.png</url><title>WeirdLooking.com: Michael Barton's Blog</title><link>http://www.weirdlooking.com/</link></image><item><title>broken gmail feeds</title><dc:creator>Michael Barton</dc:creator><link>http://www.weirdlooking.com/blog/broken-gmail-feeds</link><guid>http://www.weirdlooking.com/blog/broken-gmail-feeds</guid><pubDate>Mon, 04 Sep 2006 18:53:29 +0000</pubDate><description>Gmail provides Atom feeds of your inbox, but they come at a price.&amp;nbsp; And the price is the possibility of having to deal with them.&amp;nbsp; Mine kept causing an error in &lt;a href=&quot;http://www.rssbandit.org/&quot; style=&quot;position: relative; padding-left: 8px; zoom: 1;&quot;&gt;&lt;span style=&quot;position: absolute; top: -5px; left: 0px; width: 16px; height: 16px; background: URL(http://www.weirdlooking.com/exticon?http%3A%2F%2Fwww.rssbandit.org%2F) no-repeat center center; -moz-opacity: 0.3; opacity: 0.3; filter:alpha(opacity=30);&quot;&gt;&lt;/span&gt;RSS Bandit&lt;/a&gt;.&amp;nbsp; At first I tried to blame the aggregator, but then I took a closer look at the feed itself&amp;#8230;&lt;br /&gt;&lt;br /&gt;&lt;code style=&quot;display: block;&quot; class=&quot;blockocode&quot;&gt;&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;entry&lt;/span&gt;&amp;gt;&lt;br/&gt; &amp;nbsp;...&lt;br/&gt; &amp;nbsp;&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;modified&lt;/span&gt;&amp;gt;2006-09-03T24:56:06Z&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;/modified&lt;/span&gt;&amp;gt;&lt;br/&gt; &amp;nbsp;&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;issued&lt;/span&gt;&amp;gt;2006-09-03T24:56:06Z&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;/issued&lt;/span&gt;&amp;gt;&lt;br/&gt; &amp;nbsp;...&lt;br/&gt;&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;/entry&lt;/span&gt;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;That email was received at nearly 25 o&amp;rsquo;clock, eh?&amp;nbsp; The interesting part is, it came in at 1am on the third (GMT).&amp;nbsp; &amp;nbsp; So not only is it an invalid date, it&amp;rsquo;s off by 24 hours.&amp;nbsp; I guess they just forgot to mod the hour by 24 or something.&lt;br /&gt;&lt;br /&gt;I submitted a bug to Google, and they promptly replied with an automated message!&amp;nbsp; It seems they aren&amp;rsquo;t able to respond directly to my report, but they are working on these issues.&amp;nbsp; I know I feel better about it ever getting fixed.&lt;br /&gt;&lt;br /&gt;So what I did was, I built myself a little proxy script that fixes the time.&amp;nbsp; I still need to make it pass through the cache headers, but I&amp;rsquo;m a bit lazy for that right now.&amp;nbsp; See, they&amp;rsquo;re &lt;span style=&quot;font-style: italic;&quot;&gt;forcing&lt;/span&gt; me to waste their bandwidth.&lt;br /&gt;&lt;br /&gt;&lt;code style=&quot;display: block;&quot; class=&quot;blockocode&quot;&gt;&amp;lt;?php&lt;br/&gt; &amp;nbsp;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;if&lt;/span&gt; (!isset($_SERVER[&lt;span style=&quot;color: #00B000&quot;&gt;'PHP_AUTH_USER'&lt;/span&gt;]))&lt;br/&gt; &amp;nbsp;{&lt;br/&gt; &amp;nbsp; &amp;nbsp;header(&lt;span style=&quot;color: #00B000&quot;&gt;'WWW-Authenticate: Basic realm=&quot;My Realm&quot;'&lt;/span&gt;);&lt;br/&gt; &amp;nbsp; &amp;nbsp;header(&lt;span style=&quot;color: #00B000&quot;&gt;'HTTP/1.0 401 Unauthorized'&lt;/span&gt;);&lt;br/&gt; &amp;nbsp; &amp;nbsp;echo &lt;span style=&quot;color: #00B000&quot;&gt;'You are NOT authorized.'&lt;/span&gt;;&lt;br/&gt; &amp;nbsp;}&lt;br/&gt; &amp;nbsp;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;br/&gt; &amp;nbsp;{&lt;br/&gt; &amp;nbsp; &amp;nbsp;header(&lt;span style=&quot;color: #00B000&quot;&gt;'Content-type: text/xml'&lt;/span&gt;);&lt;br/&gt; &amp;nbsp; &amp;nbsp;$ch = curl_init(&lt;span style=&quot;color: #00B000&quot;&gt;&quot;https://mail.google.com/mail/feed/atom&quot;&lt;/span&gt;);&lt;br/&gt; &amp;nbsp; &amp;nbsp;curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, &lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;true&lt;/span&gt;);&lt;br/&gt; &amp;nbsp; &amp;nbsp;curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);&lt;br/&gt; &amp;nbsp; &amp;nbsp;curl_setopt($ch, CURLOPT_USERPWD, $_SERVER[&lt;span style=&quot;color: #00B000&quot;&gt;'PHP_AUTH_USER'&lt;/span&gt;].&lt;span style=&quot;color: #00B000&quot;&gt;':'&lt;/span&gt;.$_SERVER[&lt;span style=&quot;color: #00B000&quot;&gt;'PHP_AUTH_PW'&lt;/span&gt;]);&lt;br/&gt; &amp;nbsp; &amp;nbsp;curl_setopt($ch, CURLOPT_RETURNTRANSFER, &lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;true&lt;/span&gt;);&lt;br/&gt; &amp;nbsp; &amp;nbsp;echo preg_replace(&lt;span style=&quot;color: #00B000&quot;&gt;'/(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z)/e'&lt;/span&gt;,&lt;br/&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #00B000&quot;&gt;'str_replace(\'T24:\', \'T01:\', \'$1\')'&lt;/span&gt;, curl_exec($ch));&lt;br/&gt; &amp;nbsp;}&lt;br/&gt;?&gt;&lt;/code&gt;</description><category>computers and internet</category><category>syndication</category><comments>http://www.weirdlooking.com/blog/broken-gmail-feeds#comments</comments><wfw:comment>http://www.weirdlooking.com/comments/65</wfw:comment><wfw:commentRss>http://www.weirdlooking.com/rss/comments/65</wfw:commentRss><slash:comments>0</slash:comments></item><item><title>hurricane season's a-comin'...</title><dc:creator>Michael Barton</dc:creator><link>http://www.weirdlooking.com/blog/hurricane-seasons-a-comin</link><guid>http://www.weirdlooking.com/blog/hurricane-seasons-a-comin</guid><pubDate>Thu, 11 May 2006 12:42:24 +0000</pubDate><description>And I&amp;rsquo;d rather not be surprised &lt;em&gt;again&lt;/em&gt;.&amp;nbsp; Since I rarely watch the news, I tend to hear about hurricanes when it&amp;rsquo;s time to evacuate.&amp;nbsp; Last year, I tried watching the &lt;a href=&quot;http://www.nhc.noaa.gov/aboutrss.shtml&quot; style=&quot;position: relative; padding-left: 8px; zoom: 1;&quot;&gt;&lt;span style=&quot;position: absolute; top: -5px; left: 0px; width: 16px; height: 16px; background: URL(http://www.weirdlooking.com/exticon?http%3A%2F%2Fwww.nhc.noaa.gov%2Faboutrss.shtml) no-repeat center center; -moz-opacity: 0.3; opacity: 0.3; filter:alpha(opacity=30);&quot;&gt;&lt;/span&gt;National Hurricane Center's RSS feed&lt;/a&gt;.&amp;nbsp; Is &lt;a href=&quot;http://inkblots.markwoodman.com/2005/09/22/hurricane-rss-feeds/&quot; style=&quot;position: relative; padding-left: 8px; zoom: 1;&quot;&gt;&lt;span style=&quot;position: absolute; top: -5px; left: 0px; width: 16px; height: 16px; background: URL(http://www.weirdlooking.com/exticon?http%3A%2F%2Finkblots.markwoodman.com%2F2005%2F09%2F22%2Fhurricane-rss-feeds%2F) no-repeat center center; -moz-opacity: 0.3; opacity: 0.3; filter:alpha(opacity=30);&quot;&gt;&lt;/span&gt;anyone&lt;/a&gt; actually subscribed to this thing?&amp;nbsp; The NHC posts about 86,000 items per day, and they look like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;ABNT20 KNHC 010315&lt;br /&gt;TWOAT&lt;br /&gt;TROPICAL WEATHER OUTLOOK&lt;br /&gt;NWS TPC/NATIONAL HURRICANE CENTER MIAMI FL&lt;br /&gt;1030 PM EST WED NOV 30 2005&lt;br /&gt;FOR THE NORTH ATLANTIC&amp;#8230;CARIBBEAN SEA AND THE GULF OF MEXICO&amp;#8230;&lt;br /&gt;THE NATIONAL HURRICANE CENTER IS ISSUING ADVISORIES ON TROPICAL&lt;br /&gt;STORM EPSILON&amp;#8230; LOCATED OVER THE CENTRAL ATLANTIC ABOUT 700 MILES&lt;br /&gt;&amp;#8230;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&amp;#8230;I&amp;rsquo;d rather be hit by a hurricane.&amp;nbsp; What I&amp;rsquo;d like is a feed of the headlines: new storms and major changes in landfall predictions, nothing else.&amp;nbsp; I&amp;rsquo;ve searched a lot and can&amp;rsquo;t really find anything along those lines.&lt;br /&gt;&lt;br /&gt;Maybe some news site will emerge with optimal hurricane story density after we get our first storm.&amp;nbsp; Or maybe I can scrape the important bits out of NHC alerts.&amp;nbsp; I don&amp;rsquo;t know.&lt;br /&gt;&lt;br /&gt;But I&amp;rsquo;m looking forward to another &lt;a href=&quot;http://www.weirdlooking.com/blog/33&quot; style=&quot;position: relative; padding-left: 8px; zoom: 1;&quot;&gt;&lt;span style=&quot;position: absolute; top: -5px; left: 0px; width: 16px; height: 16px; background: URL(http://www.weirdlooking.com/exticon?http%3A%2F%2Fwww.weirdlooking.com%2Fblog%2F33) no-repeat center center; -moz-opacity: 0.3; opacity: 0.3; filter:alpha(opacity=30);&quot;&gt;&lt;/span&gt;evacuation&lt;/a&gt;.</description><category>syndication</category><category>hurricane</category><comments>http://www.weirdlooking.com/blog/hurricane-seasons-a-comin#comments</comments><wfw:comment>http://www.weirdlooking.com/comments/56</wfw:comment><wfw:commentRss>http://www.weirdlooking.com/rss/comments/56</wfw:commentRss><slash:comments>5</slash:comments></item><item><title>atom enabled-ing</title><dc:creator>Michael Barton</dc:creator><link>http://www.weirdlooking.com/blog/atom-enabled-ing</link><guid>http://www.weirdlooking.com/blog/atom-enabled-ing</guid><pubDate>Mon, 19 Dec 2005 07:38:12 +0000</pubDate><description>Does anyone know of an Atom equivalent to &amp;lt;wfw:commentRss&amp;gt; and/or &amp;lt;slash:comments&amp;gt;?&lt;br /&gt;&lt;br /&gt;I have read that this should work for comment threads, but no luck (at least not in &lt;a href=&quot;http://www.rssbandit.org/&quot; style=&quot;position: relative; padding-left: 8px; zoom: 1;&quot;&gt;&lt;span style=&quot;position: absolute; top: -5px; left: 0px; width: 16px; height: 16px; background: URL(http://www.weirdlooking.com/exticon?http%3A%2F%2Fwww.rssbandit.org%2F) no-repeat center center; -moz-opacity: 0.3; opacity: 0.3; filter:alpha(opacity=30);&quot;&gt;&lt;/span&gt;my reader&lt;/a&gt;):&lt;br /&gt;&lt;code style=&quot;display: block;&quot; class=&quot;blockocode&quot;&gt;&amp;lt;&lt;span style=&quot;color: #0000B0; font-weight: bold;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #B00000&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #00B000&quot;&gt;&quot;replies&quot;&lt;/span&gt; &lt;span style=&quot;color: #B00000&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #00B000&quot;&gt;&quot;application/atom+xml&quot;&lt;/span&gt; &lt;span style=&quot;color: #B00000&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #00B000&quot;&gt;&quot;&quot;&lt;/span&gt; /&amp;gt;&lt;/code&gt;</description><category>computers</category><category>website</category><category>syndication</category><comments>http://www.weirdlooking.com/blog/atom-enabled-ing#comments</comments><wfw:comment>http://www.weirdlooking.com/comments/43</wfw:comment><wfw:commentRss>http://www.weirdlooking.com/rss/comments/43</wfw:commentRss><slash:comments>6</slash:comments></item></channel></rss>
