<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><title type="text">WeirdLooking.com: Michael Barton's Blog</title><rights>Copyright 2006</rights><author><name>Michael Barton</name><email>palrich@gmail.com</email></author><updated>2010-09-10T21:01:27Z</updated><generator>WeirdLooking.com</generator><logo>http://www.weirdlooking.com/images/feed.png</logo><link rel="alternate" type="text/html" href="http://www.weirdlooking.com/" /><link rel="self" type="application/xml+atom" href="http://www.weirdlooking.com/atom/tag/syndication" /><id>http://www.weirdlooking.com/</id><entry><title type="text">broken gmail feeds</title><author><name>Michael Barton</name></author><link rel="alternate" type="text/html" href="http://www.weirdlooking.com/blog/broken-gmail-feeds" /><id>http://www.weirdlooking.com/blog/broken-gmail-feeds</id><published>2006-09-04T18:53:29Z</published><updated>2006-09-04T18:53:29Z</updated><content type="html">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;</content><category term="computers and internet" /><category term="syndication" /><link rel="comments" type="application/atom+xml" href="http://www.weirdlooking.com/atom/comments/65" /><wfw:commentRss>http://www.weirdlooking.com/atom/comments/65</wfw:commentRss><slash:comments>0</slash:comments></entry><entry><title type="text">hurricane season's a-comin'...</title><author><name>Michael Barton</name></author><link rel="alternate" type="text/html" href="http://www.weirdlooking.com/blog/hurricane-seasons-a-comin" /><id>http://www.weirdlooking.com/blog/hurricane-seasons-a-comin</id><published>2006-05-11T12:42:24Z</published><updated>2006-05-11T12:42:24Z</updated><content type="html">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;.</content><category term="syndication" /><category term="hurricane" /><link rel="comments" type="application/atom+xml" href="http://www.weirdlooking.com/atom/comments/56" /><wfw:commentRss>http://www.weirdlooking.com/atom/comments/56</wfw:commentRss><slash:comments>5</slash:comments></entry><entry><title type="text">atom enabled-ing</title><author><name>Michael Barton</name></author><link rel="alternate" type="text/html" href="http://www.weirdlooking.com/blog/atom-enabled-ing" /><id>http://www.weirdlooking.com/blog/atom-enabled-ing</id><published>2005-12-19T07:38:12Z</published><updated>2005-12-19T07:38:12Z</updated><content type="html">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;</content><category term="computers" /><category term="website" /><category term="syndication" /><link rel="comments" type="application/atom+xml" href="http://www.weirdlooking.com/atom/comments/43" /><wfw:commentRss>http://www.weirdlooking.com/atom/comments/43</wfw:commentRss><slash:comments>6</slash:comments></entry></feed>