<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Improve the Weather with PHP</title> <atom:link href="http://www.mikeindustries.com/blog/archive/2004/08/php-weather/feed" rel="self" type="application/rss+xml" /><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP</link> <description>A running commentary of occasionally interesting things.</description> <lastBuildDate>Tue, 31 Jan 2012 16:22:19 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Wired</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-555</link> <dc:creator>Wired</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-555</guid> <description>... you REALLY have too much time on your hands ...Then again, I AM reading this at 3 AM right after a friend IM&#039;d me about it right after his Bloglines Notifier notified him (I don&#039;t use the Notifier).... (looks around) oookkkay, you&#039;re not the only one :) ...... time to invent a web based notifier for whilst I&#039;m at work me thinks ... :)</description> <content:encoded><![CDATA[<p>&#8230; you REALLY have too much time on your hands &#8230;</p><p>Then again, I AM reading this at 3 AM right after a friend IM&#8217;d me about it right after his Bloglines Notifier notified him (I don&#8217;t use the Notifier).</p><p>&#8230; (looks around) oookkkay, you&#8217;re not the only one :) &#8230;</p><p>&#8230; time to invent a web based notifier for whilst I&#8217;m at work me thinks &#8230; :)</p> ]]></content:encoded> </item> <item><title>By: Gabriel Mihalache</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-556</link> <dc:creator>Gabriel Mihalache</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-556</guid> <description>Using crond to access a php? That sound somehow dangerous. What if, and it&#039;s only a big if, someone malicious hits that php 100 times a second. Not only will your server go to 100% CPU but you&#039;ll also flood the guys offering the weather service.If I remember correctly, you can call a php script by running php path_to_file so you don&#039;t have to have the php in a public location, but that was &quot;back in the day&quot;. I suppose this would be a perfect job for Perl, on the other hand.</description> <content:encoded><![CDATA[<p>Using crond to access a php? That sound somehow dangerous. What if, and it&#8217;s only a big if, someone malicious hits that php 100 times a second. Not only will your server go to 100% CPU but you&#8217;ll also flood the guys offering the weather service.</p><p>If I remember correctly, you can call a php script by running php path_to_file so you don&#8217;t have to have the php in a public location, but that was &#8220;back in the day&#8221;. I suppose this would be a perfect job for Perl, on the other hand.</p> ]]></content:encoded> </item> <item><title>By: Mike D.</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-557</link> <dc:creator>Mike D.</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-557</guid> <description>Gabriel,I&#039;m definitely interested in hearing about any better ways to do this, including the path_to_file thing you mentioned, but consider:1.  What&#039;s the difference between someone hitting this PHP script 100 times a second and someone hitting any other PHP page on my site 100 times a second?  That said, it&#039;s probably a good idea to rename weather.php anyway.2.  If you want to take down poor NOAA, can&#039;t you just bang on their rss feeds yourself?</description> <content:encoded><![CDATA[<p>Gabriel,</p><p>I&#8217;m definitely interested in hearing about any better ways to do this, including the path_to_file thing you mentioned, but consider:</p><p>1.  What&#8217;s the difference between someone hitting this PHP script 100 times a second and someone hitting any other PHP page on my site 100 times a second?  That said, it&#8217;s probably a good idea to rename weather.php anyway.</p><p>2.  If you want to take down poor NOAA, can&#8217;t you just bang on their rss feeds yourself?</p> ]]></content:encoded> </item> <item><title>By: Jon Hicks</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-558</link> <dc:creator>Jon Hicks</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-558</guid> <description>Hey, I&#039;m English, so this suits us weather-obsessed types! Nice, I might have a go at this myself (cron jobs are a distant speck on the horizon to me...)</description> <content:encoded><![CDATA[<p>Hey, I&#8217;m English, so this suits us weather-obsessed types! Nice, I might have a go at this myself (cron jobs are a distant speck on the horizon to me&#8230;)</p> ]]></content:encoded> </item> <item><title>By: Russell James Smith</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-559</link> <dc:creator>Russell James Smith</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-559</guid> <description>Really like the Live theme, any chance of centigrade for us Europeans? (or Kelvins would be cool maybe)&lt;em&gt;(Editor&#039;s Note: You got it.  I just added centigrade in there. Kelvins would be cool, yes, but that&#039;s entering a level of geekness that I&#039;m not ready to accept yet.)&lt;/em&gt;</description> <content:encoded><![CDATA[<p>Really like the Live theme, any chance of centigrade for us Europeans? (or Kelvins would be cool maybe)</p><p><em>(Editor&#8217;s Note: You got it.  I just added centigrade in there. Kelvins would be cool, yes, but that&#8217;s entering a level of geekness that I&#8217;m not ready to accept yet.)</em></p> ]]></content:encoded> </item> <item><title>By: M</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-560</link> <dc:creator>M</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-560</guid> <description>I&#039;m so impressed I don&#039;t know what to say! Haha!Thanks for continuously dishing out new things to inspire the rest of us.</description> <content:encoded><![CDATA[<p>I&#8217;m so impressed I don&#8217;t know what to say! Haha!</p><p>Thanks for continuously dishing out new things to inspire the rest of us.</p> ]]></content:encoded> </item> <item><title>By: Sam Ryan</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-561</link> <dc:creator>Sam Ryan</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-561</guid> <description>Wow. This is really cool. Too bad I can&#039;t afford a webcam to go with it.
Speaking of which, I just looked at the LIVE theme for the first time. Do you by chance live in Magnolia?</description> <content:encoded><![CDATA[<p>Wow. This is really cool. Too bad I can&#8217;t afford a webcam to go with it.<br
/> Speaking of which, I just looked at the LIVE theme for the first time. Do you by chance live in Magnolia?</p> ]]></content:encoded> </item> <item><title>By: Trent</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-562</link> <dc:creator>Trent</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-562</guid> <description>Suggestion: if you are distributing someone else&#039;s work (viz. the &lt;a href=&quot;http://www.drbeat.li/php/source.php?src=php/sunrise.inc.php&quot; rel=&quot;nofollow&quot;&gt;Astro_Sunrise&lt;/a&gt; class), give them credit by including their commented &quot;header&quot; in your distributed source code.&lt;em&gt;(Editor&#039;s Note: Done. Need to get over this impulse to save bandwidth... :)  )&lt;/em&gt;</description> <content:encoded><![CDATA[<p>Suggestion: if you are distributing someone else&#8217;s work (viz. the <a
href="http://www.drbeat.li/php/source.php?src=php/sunrise.inc.php" rel="nofollow">Astro_Sunrise</a> class), give them credit by including their commented &#8220;header&#8221; in your distributed source code.</p><p><em>(Editor&#8217;s Note: Done. Need to get over this impulse to save bandwidth&#8230; :)  )</em></p> ]]></content:encoded> </item> <item><title>By: Jonah Cosley</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-563</link> <dc:creator>Jonah Cosley</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-563</guid> <description>rssweather.com&#039;s &lt;a href=&quot;http://www.rssweather.com/dir/&quot; rel=&quot;nofollow&quot;&gt;weather directory&lt;/a&gt; looks promising for finding locations that are hard to find good airport feeds for.For instance, the airport nearest Nevada City, CA was way off since the elevation is way different (this is in the Sierra Nevadas) -- but this site has a feed just for Nevada City.They have a couple of stipulations for using their feeds which you may not like: only one check per hour, and you must link to them. Are there RSS weather directory sites that let you use their feeds for &quot;free&quot;?</description> <content:encoded><![CDATA[<p>rssweather.com&#8217;s <a
href="http://www.rssweather.com/dir/" rel="nofollow">weather directory</a> looks promising for finding locations that are hard to find good airport feeds for.</p><p>For instance, the airport nearest Nevada City, CA was way off since the elevation is way different (this is in the Sierra Nevadas) &#8212; but this site has a feed just for Nevada City.</p><p>They have a couple of stipulations for using their feeds which you may not like: only one check per hour, and you must link to them. Are there RSS weather directory sites that let you use their feeds for &#8220;free&#8221;?</p> ]]></content:encoded> </item> <item><title>By: Bill</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-564</link> <dc:creator>Bill</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-564</guid> <description>Nice!  But can&#039;t you make the image a little less grainy?  What&#039;s with all the lines through it?</description> <content:encoded><![CDATA[<p>Nice!  But can&#8217;t you make the image a little less grainy?  What&#8217;s with all the lines through it?</p> ]]></content:encoded> </item> <item><title>By: Jina</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-565</link> <dc:creator>Jina</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-565</guid> <description>Impressive.  :)</description> <content:encoded><![CDATA[<p>Impressive.  :)</p> ]]></content:encoded> </item> <item><title>By: dave metcalf</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-566</link> <dc:creator>dave metcalf</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-566</guid> <description>thanks to the handy people at &lt;a href=&quot;http://www.xoapweather.com&quot; rel=&quot;nofollow&quot;&gt;xoapweather&lt;/a&gt;, the weather channel is accessible to the weather hardcore.&lt;a href=&quot;http://xoap.weather.com/weather/local/08343?dayf=1&quot; rel=&quot;nofollow&quot;&gt;&lt;a href=&quot;http://xoap.weather.com/weather/local/08343?dayf=1&quot; rel=&quot;nofollow&quot;&gt;http://xoap.weather.com/weather/local/08343?dayf=1&lt;/a&gt;&lt;/a&gt; is an xml feed with which to play.
(subsitute your zip, then view the source or change the dayf value for a forecast)i went through a weather kick a while back. (un)fortunately work picked up and i never got a chance to finish my &lt;a href=&quot;http://davemetcalf.com/portal/modules/weather.html&quot; rel=&quot;nofollow&quot;&gt;weather module&lt;/a&gt;.</description> <content:encoded><![CDATA[<p>thanks to the handy people at <a
href="http://www.xoapweather.com" rel="nofollow">xoapweather</a>, the weather channel is accessible to the weather hardcore.</p><p><a
href="http://xoap.weather.com/weather/local/08343?dayf=1" rel="nofollow"></a><a
href="http://xoap.weather.com/weather/local/08343?dayf=1" rel="nofollow">http://xoap.weather.com/weather/local/08343?dayf=1</a> is an xml feed with which to play.<br
/> (subsitute your zip, then view the source or change the dayf value for a forecast)</p><p>i went through a weather kick a while back. (un)fortunately work picked up and i never got a chance to finish my <a
href="http://davemetcalf.com/portal/modules/weather.html" rel="nofollow">weather module</a>.</p> ]]></content:encoded> </item> <item><title>By: Mike D.</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-567</link> <dc:creator>Mike D.</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-567</guid> <description>Jon:  C&#039;mon, crons are cake!  It&#039;s one line of code:10 * * * * /yourlocalfilepath/weather.php &gt; /dev/nullThat&#039;s it.  That will hit the file once an hour on the tens.Sam:  Nope, I live in Queen Anne, but the view is similar to the one you&#039;d get in Magnolia (west facing towards Alki).Bill:  Find me a webcam which produces high resolution snaps and I can improve the picture quality.  All webcams basically produce shit snapshots so I&#039;m not even using one.  I&#039;m using a full-on Sony DV Cam.  As for the artificial scanlines, I put those in there because they actually give the illusion that the picture is sharper (a la a television set).</description> <content:encoded><![CDATA[<p>Jon:  C&#8217;mon, crons are cake!  It&#8217;s one line of code:</p><p>10 * * * * /yourlocalfilepath/weather.php > /dev/null</p><p>That&#8217;s it.  That will hit the file once an hour on the tens.</p><p>Sam:  Nope, I live in Queen Anne, but the view is similar to the one you&#8217;d get in Magnolia (west facing towards Alki).</p><p>Bill:  Find me a webcam which produces high resolution snaps and I can improve the picture quality.  All webcams basically produce shit snapshots so I&#8217;m not even using one.  I&#8217;m using a full-on Sony DV Cam.  As for the artificial scanlines, I put those in there because they actually give the illusion that the picture is sharper (a la a television set).</p> ]]></content:encoded> </item> <item><title>By: David Schontzler</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-568</link> <dc:creator>David Schontzler</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-568</guid> <description>Nice move, Mike. I was just in Seattle for the past few days and it really was spectacular, not &quot;fair&quot; or &quot;partly cloudy&quot; in the least.</description> <content:encoded><![CDATA[<p>Nice move, Mike. I was just in Seattle for the past few days and it really was spectacular, not &#8220;fair&#8221; or &#8220;partly cloudy&#8221; in the least.</p> ]]></content:encoded> </item> <item><title>By: Sean Sperte</title><link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fphp-weather&#038;seed_title=Improve+the+Weather+with+PHP/comment-page-1#comment-569</link> <dc:creator>Sean Sperte</dc:creator> <pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate> <guid
isPermaLink="false">#comment-569</guid> <description>Can PHP &lt;a href=&quot;http://www.seansperte.com/share/mike_weather.jpg&quot; rel=&quot;nofollow&quot;&gt;wipe off the window too&lt;/a&gt;?</description> <content:encoded><![CDATA[<p>Can PHP <a
href="http://www.seansperte.com/share/mike_weather.jpg" rel="nofollow">wipe off the window too</a>?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 65/74 queries in 0.177 seconds using disk: basic
Object Caching 570/625 objects using disk: basic

Served from: www.mikeindustries.com @ 2012-02-08 16:24:28 -->
