<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>chadsaunders.com</title>
	<link>http://www.chadsaunders.com/blog</link>
	<description>All My Adventures</description>
	<pubDate>Mon, 25 Feb 2008 01:36:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Skiing &#8220;The Beav&#8221;</title>
		<link>http://www.chadsaunders.com/blog/2008/02/24/skiing-the-beav/</link>
		<comments>http://www.chadsaunders.com/blog/2008/02/24/skiing-the-beav/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 01:36:10 +0000</pubDate>
		<dc:creator>Chad Saunders</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.chadsaunders.com/blog/2008/02/24/skiing-the-beav/</guid>
		<description><![CDATA[
Chris and Katie came up this Saturday and we had a great time skiing Beaver Mountain.  The weather was great with sun, some snow, and was a little hot at times.  I rented some skis and got to try out some nice, short, parabolic skis and they were really fun.  Beaver Mountain [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;"><a href="http://www.flickr.com/photos/chaddycakes/2289394237/" title="DSCN1092 by Chaddycakes, on Flickr" onclick="javascript:urchinTracker ('/outbound/article/www.flickr.com');"><img src="http://farm4.static.flickr.com/3071/2289394237_48b3556aa3_m.jpg" width="180" height="240" alt="DSCN1092"  /></a></div>
<p>Chris and Katie came up this Saturday and we had a great time skiing Beaver Mountain.  The weather was great with sun, some snow, and was a little hot at times.  I rented some skis and got to try out some nice, short, parabolic skis and they were really fun.  Beaver Mountain had a nice, new triple that went all the way to the top.  This was a great upgrade for the mountain with finally some padded seating.  Now I just have to fight off the &#8220;Spring Fever&#8221; for another month or two until we can go catch some fish.</p>
<div style="text-align: center"><a href="http://www.flickr.com/photos/chaddycakes/2290186290/" title="DSCN1090 by Chaddycakes, on Flickr" onclick="javascript:urchinTracker ('/outbound/article/www.flickr.com');"><img src="http://farm3.static.flickr.com/2196/2290186290_f2eca94f9b_m.jpg" width="240" height="180" alt="DSCN1090" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.chadsaunders.com/blog/2008/02/24/skiing-the-beav/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Valentine&#8217;s Day</title>
		<link>http://www.chadsaunders.com/blog/2008/02/20/valentines-day/</link>
		<comments>http://www.chadsaunders.com/blog/2008/02/20/valentines-day/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 07:06:40 +0000</pubDate>
		<dc:creator>Chad Saunders</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.chadsaunders.com/blog/2008/02/20/valentines-day/</guid>
		<description><![CDATA[Laura and I had a nice Valentine&#8217;s Day.  Rather than fighting crowds we decided we&#8217;d enjoy having a nice dinner and relaxing.  Last year for Valentine&#8217;s Day we cooked up some lobster tail and crab legs.  We loved that so much that we thought we&#8217;d do it again except this time we [...]]]></description>
			<content:encoded><![CDATA[<p>Laura and I had a nice Valentine&#8217;s Day.  Rather than fighting crowds we decided we&#8217;d enjoy having a nice dinner and relaxing.  Last year for Valentine&#8217;s Day we cooked up some lobster tail and crab legs.  We loved that so much that we thought we&#8217;d do it again except this time we had steak &#038; seafood (King crab legs).  Even though it was all really delicious we both thought the legs were better than the claws.  Easier to handle and tastes better too.</p>
<p align="center"><img src='http://www.chadsaunders.com/blog/wp-content/uploads/2008/02/steak.jpg' alt='Steak' /></p>
<hr />
<p align="center"><img src='http://www.chadsaunders.com/blog/wp-content/uploads/2008/02/crab_legs.jpg' alt='&#038; Seafood' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadsaunders.com/blog/2008/02/20/valentines-day/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Free PHP Flash Charts</title>
		<link>http://www.chadsaunders.com/blog/2007/12/10/free-php-flash-charts/</link>
		<comments>http://www.chadsaunders.com/blog/2007/12/10/free-php-flash-charts/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 02:42:43 +0000</pubDate>
		<dc:creator>Chad Saunders</dc:creator>
		
		<category><![CDATA[Web Developing]]></category>

		<guid isPermaLink="false">http://www.chadsaunders.com/blog/2007/12/10/free-php-flash-charts/</guid>
		<description><![CDATA[
I was looking for some good flash charts to use and found one that is free, customizable, sleek, and works with PHP!  Open Flash Charts are great even though the examples on their site don&#8217;t do it total justice.  With a couple customization options you can make your own flash charts look really [...]]]></description>
			<content:encoded><![CDATA[<div style="margin-top: 5px; text-align: center"><img src='http://www.chadsaunders.com/blog/wp-content/uploads/2007/12/chart.jpg' alt='A Chart' /></div>
<p>I was looking for some good flash charts to use and found one that is free, customizable, sleek, and works with PHP!  <a href="http://teethgrinder.co.uk/open-flash-chart/" onclick="javascript:urchinTracker ('/outbound/article/teethgrinder.co.uk');">Open Flash Charts</a> are great even though the examples on their site don&#8217;t do it total justice.  With a couple customization options you can make your own flash charts look really close to Google Analytics flash charts.  Now, I&#8217;m not saying they&#8217;re both the same, because they&#8217;re not.  But Open Flash Charts are pretty close.  They also have an active community so they are always adding new features and graphs.  They also support not only PHP, but ASP, Ruby, Python, etc.  </p>
<p>To install, just download the files and upload them somewhere where your website pages can include them.  The only hard part of the installation is just figuring out the right path name to include the file open flash chart file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadsaunders.com/blog/2007/12/10/free-php-flash-charts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Calculating Floating Holidays in PHP</title>
		<link>http://www.chadsaunders.com/blog/2007/11/14/calculating-floating-holidays-in-php/</link>
		<comments>http://www.chadsaunders.com/blog/2007/11/14/calculating-floating-holidays-in-php/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 03:20:18 +0000</pubDate>
		<dc:creator>Chad Saunders</dc:creator>
		
		<category><![CDATA[Web Developing]]></category>

		<guid isPermaLink="false">http://www.chadsaunders.com/blog/2007/11/14/calculating-floating-holidays-in-php/</guid>
		<description><![CDATA[Since I&#8217;ve spent so much time figuring out the best method for calculating floating holidays in PHP, I&#8217;ve decided to share this little function with everyone.  I found the best calculation method and mixed it in with what I thought was a little more useful.  Just feed in the needed parameters and you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve spent so much time figuring out the best method for calculating floating holidays in PHP, I&#8217;ve decided to share this little function with everyone.  I found the <a href="http://michaelthompson.org/technikos/holidays.php" onclick="javascript:urchinTracker ('/outbound/article/michaelthompson.org');">best calculation method</a> and mixed it in with what I thought was a little more useful.  Just feed in the needed parameters and you&#8217;re good to go!</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">function</span> ordinal_day<span class="br0">&#40;</span><span class="re0">$ord</span>, <span class="re0">$day</span>, <span class="re0">$month</span>, <span class="re0">$year</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$targetDay</span> = <a href="http://www.php.net/date" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;w&quot;</span>, <a href="http://www.php.net/strtotime" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="st0">&quot;next $day&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$earliestDate</span> = <span class="nu0">1</span> + <span class="nu0">7</span> * <span class="br0">&#40;</span><span class="re0">$ord</span> - <span class="nu0">1</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$weekday</span> = <a href="http://www.php.net/date" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;w&quot;</span>, <a href="http://www.php.net/mktime" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span class="kw3">mktime</span></a><span class="br0">&#40;</span><span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">0</span>, <span class="re0">$month</span>, <span class="re0">$earliestDate</span>, <span class="re0">$year</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$targetDay</span> == <span class="re0">$weekday</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$offset</span> = <span class="nu0">0</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$targetDay</span> &lt; <span class="re0">$weekday</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$offset</span> = <span class="re0">$targetDay</span> + <span class="br0">&#40;</span><span class="nu0">7</span> - <span class="re0">$weekday</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$offset</span> = <span class="br0">&#40;</span><span class="re0">$targetDay</span> + <span class="br0">&#40;</span><span class="nu0">7</span> - <span class="re0">$weekday</span><span class="br0">&#41;</span><span class="br0">&#41;</span> - <span class="nu0">7</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="co1">// Calculate the actual date of the holiday</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">$holidayDate</span> = <a href="http://www.php.net/mktime" onclick="javascript:urchinTracker ('/outbound/article/www.php.net');"><span class="kw3">mktime</span></a><span class="br0">&#40;</span><span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">0</span>, <span class="re0">$month</span>, <span class="re0">$earliestDate</span> + <span class="re0">$offset</span>, <span class="re0">$year</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$holidayDate</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>The parameters:</p>
<ul>
<li>$ord - The number of days. Ex. &#8220;The fourth Thursday in November&#8221; (Thanksgiving)</li>
<li>$day - The short abbreviation of the day of the week. Ex. &#8220;Thu&#8221;</li>
<li>$month - The month in number form. Ex. &#8220;11&#8243;</li>
<li>$year - The year in four-digit form. Ex. 2007</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.chadsaunders.com/blog/2007/11/14/calculating-floating-holidays-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Weekend in Ephraim</title>
		<link>http://www.chadsaunders.com/blog/2007/11/09/weekend-in-ephraim/</link>
		<comments>http://www.chadsaunders.com/blog/2007/11/09/weekend-in-ephraim/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 23:33:06 +0000</pubDate>
		<dc:creator>Chad Saunders</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.chadsaunders.com/blog/2007/11/09/weekend-in-ephraim/</guid>
		<description><![CDATA[
Laura and I sitting on the &#8220;dock&#8221; at her parents house
]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.chadsaunders.com/blog/wp-content/uploads/2007/11/cl_10_07.jpg' title='Weekend in Ephraim'><img src='http://www.chadsaunders.com/blog/wp-content/uploads/2007/11/cl_10_07.jpg' alt='Weekend in Ephraim' /></a></p>
<p align="center">Laura and I sitting on the &#8220;dock&#8221; at her parents house</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadsaunders.com/blog/2007/11/09/weekend-in-ephraim/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
