<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eric Juden</title>
	<atom:link href="http://thejudens.com/eric/feed/" rel="self" type="application/rss+xml" />
	<link>http://thejudens.com/eric</link>
	<description>Web Application Developer, Husband and Father</description>
	<lastBuildDate>Wed, 24 Feb 2010 22:11:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fun at Monkey Joe&#8217;s</title>
		<link>http://thejudens.com/eric/2010/02/fun-at-monkey-joes/</link>
		<comments>http://thejudens.com/eric/2010/02/fun-at-monkey-joes/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 22:10:48 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[Life on the Homefront]]></category>
		<category><![CDATA[alan]]></category>
		<category><![CDATA[anne]]></category>
		<category><![CDATA[landon]]></category>
		<category><![CDATA[maura]]></category>
		<category><![CDATA[monkey joe's]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=273</guid>
		<description><![CDATA[Recently for my nephew&#8217;s (Landon) birthday, Anne and Maura joined them at a place called Monkey Joe&#8217;s with all of the fun, inflatable toys to jump on. Here&#8217;s a few videos and pictures of some of the fun they had&#8230;I was busy working.
   
]]></description>
			<content:encoded><![CDATA[<p>Recently for my nephew&#8217;s (Landon) birthday, Anne and Maura joined them at a place called Monkey Joe&#8217;s with all of the fun, inflatable toys to jump on. Here&#8217;s a few videos and pictures of some of the fun they had&#8230;I was busy working.</p>
<p style="text-align: left"><object width="400" height="300"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Feric_juden%2Fsets%2F72157623483430062%2Fshow%2F&page_show_back_url=%2Fphotos%2Feric_juden%2Fsets%2F72157623483430062%2F&set_id=72157623483430062&jump_to="></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Feric_juden%2Fsets%2F72157623483430062%2Fshow%2F&page_show_back_url=%2Fphotos%2Feric_juden%2Fsets%2F72157623483430062%2F&set_id=72157623483430062&jump_to=" width="400" height="300"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2010/02/fun-at-monkey-joes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Baby is Growing Up</title>
		<link>http://thejudens.com/eric/2009/12/my-baby-is-growing-up/</link>
		<comments>http://thejudens.com/eric/2009/12/my-baby-is-growing-up/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:39:29 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[Life on the Homefront]]></category>
		<category><![CDATA[1]]></category>
		<category><![CDATA[birthday]]></category>
		<category><![CDATA[maura]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=261</guid>
		<description><![CDATA[Maura is officially 1 year old, as of December 2. It doesn&#8217;t seem possible; seems like just a few months ago when we were bringing her home from the hospital. Now she&#8217;s walking around, taking 7 or 8 steps. Man does time fly. Anyway, here&#8217;s a photo from her first birthday.
]]></description>
			<content:encoded><![CDATA[<p>Maura is officially 1 year old, as of December 2. It doesn&#8217;t seem possible; seems like just a few months ago when we were bringing her home from the hospital. Now she&#8217;s walking around, taking 7 or 8 steps. Man does time fly. Anyway, here&#8217;s a photo from her first birthday.</p>
<div class="wp-caption alignnone" style="width: 510px"><img title="Little Princess" src="http://farm3.static.flickr.com/2667/4157467284_dfa290de09.jpg" alt="Little Princess" width="500" height="375" /><p class="wp-caption-text">Little Princess</p></div>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/12/my-baby-is-growing-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone 3G Dropping Calls</title>
		<link>http://thejudens.com/eric/2009/12/iphone-3g-dropping-calls/</link>
		<comments>http://thejudens.com/eric/2009/12/iphone-3g-dropping-calls/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 04:34:27 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[General Nonsense]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[dropped call]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=258</guid>
		<description><![CDATA[Dear AT&#38;T,
Enough is enough. You know there is a problem with the iPhone 3G dropping calls. Please fix it. I finally went through and did as the forums suggested, and disabled 3G. I shouldn&#8217;t have to do that though. I&#8217;ve been growing tired of your company and my family will probably be switching to Verizon [...]]]></description>
			<content:encoded><![CDATA[<p>Dear AT&amp;T,</p>
<p>Enough is enough. You know there is a problem with the iPhone 3G dropping calls. Please fix it. I finally went through and did as the <a href="http://forums.wireless.att.com/cng/board/message?board.id=apple&amp;thread.id=44675">forums</a> suggested, and disabled 3G. I shouldn&#8217;t have to do that though. I&#8217;ve been growing tired of your company and my family will probably be switching to Verizon once our contract is up.</p>
<p>Your loyal customer since 2001,</p>
<p>Eric</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/12/iphone-3g-dropping-calls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piwik Analytics</title>
		<link>http://thejudens.com/eric/2009/10/piwik-analytics/</link>
		<comments>http://thejudens.com/eric/2009/10/piwik-analytics/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 03:20:37 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[piwik]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=255</guid>
		<description><![CDATA[Has anyone messed with Piwik Analytics? I just got it setup on thejudens.com yesterday, and so far it seems pretty slick. The one thing I like most about it is that the data is mine! I don&#8217;t have to share it with google! Right now we have both google analytics and piwik running on the [...]]]></description>
			<content:encoded><![CDATA[<p>Has anyone messed with <a href="http://piwik.org/" target="_blank">Piwik Analytics</a>? I just got it setup on <a href="http://thejudens.com">thejudens.com</a> yesterday, and so far it seems pretty slick. The one thing I like most about it is that the data is mine! I don&#8217;t have to share it with google! Right now we have both google analytics and piwik running on the server. I&#8217;m going to let them run and see how they compare with each other. I&#8217;m just kind of curious how close the results will be with the other. I&#8217;ll report back later and let everyone know.</p>
<p>In the meantime, you better go check out <a href="http://piwik.org/" target="_blank">Piwik</a>. It runs on php/mysql and you can most likely install it on your hosting account.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/10/piwik-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress MU List Blogs</title>
		<link>http://thejudens.com/eric/2009/08/wordpress-mu-list-blogs/</link>
		<comments>http://thejudens.com/eric/2009/08/wordpress-mu-list-blogs/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 21:22:37 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[list blogs]]></category>
		<category><![CDATA[wordpress mu]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=233</guid>
		<description><![CDATA[I recently had to make a list of all the active blogs for the university&#8217;s blog site running Wordpress MU. Here&#8217;s the code to do so:

&#60;?php if(is_front_page()){?&#62;
    &#60;h1&#62;Blog Directory&#60;/h1&#62;
&#160;
&#60;?php
    global $wpdb;
    $query = &#34;SELECT blog_id FROM &#34; . $wpdb-&#62;base_prefix . &#34;blogs WHERE spam != '1' AND [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to make a list of all the active blogs for the university&#8217;s blog site running <a href="http://mu.wordpress.org" target="_blank">Wordpress MU</a>. Here&#8217;s the code to do so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">&lt;?php if(is_front_page()){?&gt;
</span>    <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Blog Directory<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">&lt;?php
</span>    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT blog_id FROM &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-</span><span style="color: #666666; font-style: italic;">&gt;base_prefix . &quot;blogs WHERE spam != '1' AND archived != '1' AND deleted != '1' AND public = '1' AND blog_id != '1' ORDER BY path&quot;;
</span>    
    <span style="color: #000088;">$blogs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-</span><span style="color: #666666; font-style: italic;">&gt;get_results($query);
</span>    
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;ul&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$blogs</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$blog</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$blog_details</span> <span style="color: #339933;">=</span> get_blog_details<span style="color: #009900;">&#40;</span><span style="color: #000088;">$blog</span><span style="color: #339933;">-</span><span style="color: #666666; font-style: italic;">&gt;blog_id);
</span>        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;a&gt;siteurl .'</span><span style="color: #0000ff;">&quot;&gt;' . <span style="color: #006699; font-weight: bold;">$blog_details</span>-&gt;blogname .'&lt;/a&gt;&lt;/li&gt;';
    }
    echo '&lt;/ul&gt;';
}
?&gt;</span></pre></div></div>

<p>You&#8217;ll notice the query is set to filter out blogs that are marked as archived, spam, private. Also, it hides the main blog from the list.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/08/wordpress-mu-list-blogs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Newsletter Converter 1.0.6 Released</title>
		<link>http://thejudens.com/eric/2009/08/newsletter-converter-1-0-6-released/</link>
		<comments>http://thejudens.com/eric/2009/08/newsletter-converter-1-0-6-released/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 21:28:01 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[newsletter-converter]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=227</guid>
		<description><![CDATA[Not sure if anyone has noticed, but the Newsletter Converter for Wordpress has been updated to version 1.0.6. Hopefully this release fixes a lot of the timeout issues people were experiencing. You also have the ability to use cURL instead of php&#8217;s file_get_contents() function, which is apparently not enabled on a lot of web hosts&#8230;go [...]]]></description>
			<content:encoded><![CDATA[<p>Not sure if anyone has noticed, but the <a title="Newsletter Converter for Wordpress" href="http://thejudens.com/eric/projects/newsletter-converter-for-wordpress/">Newsletter Converter for Wordpress</a> has been updated to version 1.0.6. Hopefully this release fixes a lot of the timeout issues people were experiencing. You also have the ability to use cURL instead of php&#8217;s file_get_contents() function, which is apparently not enabled on a lot of web hosts&#8230;go figure.</p>
<p>If you are happy with it, feel free to buy me a beer (in the sidebar).</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/08/newsletter-converter-1-0-6-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Image Resize</title>
		<link>http://thejudens.com/eric/2009/07/jquery-image-resize/</link>
		<comments>http://thejudens.com/eric/2009/07/jquery-image-resize/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:44:06 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[aspectratio]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=160</guid>
		<description><![CDATA[Let me start off by saying, I LOVE jQuery! It&#8217;s the greatest thing since sliced bread! Now that I have that out of the way, I&#8217;ve been working on developing some Wordpress themes for work. We are going to be launching a blogs site (using Wordpress MU) fairly soon for faculty, staff, and eventually students. [...]]]></description>
			<content:encoded><![CDATA[<p>Let me start off by saying, I <em>LOVE</em> <a href="http://www.jquery.com" target="_blank">jQuery</a>! It&#8217;s the greatest thing since sliced bread! Now that I have that out of the way, I&#8217;ve been working on developing some Wordpress themes for work. We are going to be launching a blogs site (using <a href="http://mu.wordpress.org" target="_blank">Wordpress MU</a>) fairly soon for faculty, staff, and eventually students. So, in the process we are building a blog that will be used as an online newsletter. On the blog page, they want the top story to take precedence, and for the image to be larger. So to accomplish this, I wanted to scale down the other images and keep the aspect ratio. Enter jQuery&#8230;</p>
<p>I was looking out there at some of the solutions already completed. I didn&#8217;t see anything that quite did what I was looking for. So I made my own function:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.story-small img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> maxWidth <span style="color: #339933;">=</span> <span style="color: #CC0000;">100</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Max width for the image</span>
        <span style="color: #003366; font-weight: bold;">var</span> maxHeight <span style="color: #339933;">=</span> <span style="color: #CC0000;">100</span><span style="color: #339933;">;</span>    <span style="color: #006600; font-style: italic;">// Max height for the image</span>
        <span style="color: #003366; font-weight: bold;">var</span> ratio <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">// Used for aspect ratio</span>
        <span style="color: #003366; font-weight: bold;">var</span> width <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    <span style="color: #006600; font-style: italic;">// Current image width</span>
        <span style="color: #003366; font-weight: bold;">var</span> height <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">// Current image height</span>
&nbsp;
        <span style="color: #006600; font-style: italic;">// Check if the current width is larger than the max</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>width &gt; maxWidth<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            ratio <span style="color: #339933;">=</span> maxWidth <span style="color: #339933;">/</span> width<span style="color: #339933;">;</span>   <span style="color: #006600; font-style: italic;">// get ratio for scaling image</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;width&quot;</span><span style="color: #339933;">,</span> maxWidth<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Set new width</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;height&quot;</span><span style="color: #339933;">,</span> height <span style="color: #339933;">*</span> ratio<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">// Scale height based on ratio</span>
            height <span style="color: #339933;">=</span> height <span style="color: #339933;">*</span> ratio<span style="color: #339933;">;</span>    <span style="color: #006600; font-style: italic;">// Reset height to match scaled image</span>
            width <span style="color: #339933;">=</span> width <span style="color: #339933;">*</span> ratio<span style="color: #339933;">;</span>    <span style="color: #006600; font-style: italic;">// Reset width to match scaled image</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #006600; font-style: italic;">// Check if current height is larger than max</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>height &gt; maxHeight<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            ratio <span style="color: #339933;">=</span> maxHeight <span style="color: #339933;">/</span> height<span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// get ratio for scaling image</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;height&quot;</span><span style="color: #339933;">,</span> maxHeight<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #006600; font-style: italic;">// Set new height</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;width&quot;</span><span style="color: #339933;">,</span> width <span style="color: #339933;">*</span> ratio<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    <span style="color: #006600; font-style: italic;">// Scale width based on ratio</span>
            width <span style="color: #339933;">=</span> width <span style="color: #339933;">*</span> ratio<span style="color: #339933;">;</span>    <span style="color: #006600; font-style: italic;">// Reset width to match scaled image</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The 2nd line of code says to grab every image with a class of &#8217;story-small&#8217;. The block for the height is just a safety net. I have it there in case the height is still larger than the max. There are a hundred ways to skin a cat, so I&#8217;m sure there are plenty of other ways to do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/07/jquery-image-resize/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>HttpWebRequest and Multiple Files</title>
		<link>http://thejudens.com/eric/2009/06/httpwebrequest-and-multiple-files/</link>
		<comments>http://thejudens.com/eric/2009/06/httpwebrequest-and-multiple-files/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 14:53:56 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[exists]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[http web request]]></category>
		<category><![CDATA[httpwebrequest]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[response]]></category>
		<category><![CDATA[time out]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=144</guid>
		<description><![CDATA[I&#8217;m working on a project at work right now to pull inventory data from the bookstore&#8217;s point-of-sale system into the e-commerce site I&#8217;m setting up for them. One of the parts in the process is to check the web server for any new/updated images for the items on the website. I am doing a web [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a project at work right now to pull inventory data from the bookstore&#8217;s point-of-sale system into the e-commerce site I&#8217;m setting up for them. One of the parts in the process is to check the web server for any new/updated images for the items on the website. I am doing a web request for each image on the server to see if I really does exist. After doing so many, I noticed that all of the files kept coming back saying they weren&#8217;t there, when I know darn well they are! So after a little research online, I noticed that you need to close your Response object when you are finished with it.</p>
<p>Here&#8217;s my code:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">private</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">bool</span> _FileExists<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> filename<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">try</span> <span style="color: #000000;">&#123;</span>
        HttpWebRequest req <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>HttpWebRequest<span style="color: #000000;">&#41;</span>WebRequest.<span style="color: #0000FF;">Create</span><span style="color: #000000;">&#40;</span>filename<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        req.<span style="color: #0000FF;">Timeout</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">5000</span><span style="color: #008000;">;</span>
        req.<span style="color: #0000FF;">Method</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;HEAD&quot;</span><span style="color: #008000;">;</span>
        HttpWebResponse response <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>HttpWebResponse<span style="color: #000000;">&#41;</span>req.<span style="color: #0000FF;">GetResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>response.<span style="color: #0000FF;">StatusCode</span> <span style="color: #008000;">==</span> HttpStatusCode.<span style="color: #0000FF;">OK</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            response.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>    <span style="color: #008080; font-style: italic;">// IMPORTANT</span>
            <span style="color: #0600FF;">return</span> true<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span> <span style="color: #0600FF;">else</span> <span style="color: #000000;">&#123;</span>
            response.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>    <span style="color: #008080; font-style: italic;">// IMPORTANT</span>
            <span style="color: #0600FF;">return</span> false<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span> <span style="color: #0600FF;">catch</span><span style="color: #000000;">&#40;</span>Exception ex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">return</span> false<span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>The big thing to note here is when I&#8217;m calling response.Close(), as that closes out the connection. So if you are experiencing issues where you keep getting time out errors, give this a try. Here&#8217;s the <a href="http://www.velocityreviews.com/forums/t112367-httpwebrequest-the-operation-has-timedout.html" target="_blank">original article</a> that helped me.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/06/httpwebrequest-and-multiple-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Core Values</title>
		<link>http://thejudens.com/eric/2009/06/core-values/</link>
		<comments>http://thejudens.com/eric/2009/06/core-values/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 03:47:02 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[values]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=109</guid>
		<description><![CDATA[So I&#8217;ve been doing some reflecting recently. A blog that I frequently visit, The Art of Manliness, has started a 30 day challenge to becoming a better man. For the first day&#8217;s post, they talked about building a list of core values to keep yourself from drifting through life. So, I&#8217;ve decided to share my [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been doing some reflecting recently. A blog that I frequently visit, <a href="http://artofmanliness.com" target="_blank">The Art of Manliness</a>, has started a 30 day challenge to becoming a better man. For the first day&#8217;s post, they talked about building a list of <a href="http://artofmanliness.com/2009/05/31/30-days-to-a-better-man-day-1-define-your-core-values/" target="_blank">core values</a> to keep yourself from drifting through life. So, I&#8217;ve decided to share my 5 core values with the world (in alphabetical order):</p>
<blockquote><h3>Confidence</h3>
<p>This is definitely one of the values that I need to work on. I feel confident in my current work abilities, but there is always room for improvement and the web is always changing. I think I could have more confidence in my role as a father&#8230;sometimes I wonder if I&#8217;m doing the right things. I would like to have more confidence toward my understanding of church and religion. Also, I would like to have more confidence in my decision making. If I decide on something, stick with it; I obviously chose it for a reason.</p>
<h3>Family</h3>
<p>Family comes first, what else can I really say on this. I&#8217;m sure almost everyone feels the same way I do on this subject.</p>
<h3>Honesty</h3>
<p>If you are getting an answer from me or seeking my opinion, it will be the honest truth. This is one thing that really bothers me. If you are responsible for something and it is your fault that it fails, own up to it. Rest assured, I always will, no matter the consequences.</p>
<h3>Humor</h3>
<p>Life can&#8217;t always be serious, you&#8217;ve got to inject some fun and humor into it.</p>
<h3>Trustworthy</h3>
<p>I think this one kind of dove-tails into honesty. I am, and always will be a person you can trust.
</p></blockquote>
<p>So, did you think about it? What are your core values?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/06/core-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Achieving Your Childhood Dreams</title>
		<link>http://thejudens.com/eric/2009/06/achieving-your-childhood-dreams/</link>
		<comments>http://thejudens.com/eric/2009/06/achieving-your-childhood-dreams/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 15:35:37 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[dreams]]></category>
		<category><![CDATA[goals]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=106</guid>
		<description><![CDATA[This is an excellent video that everyone should watch on achieving your childhood dreams. It is very inspirational and makes you think about how you are using your life. Grab some popcorn, because it&#8217;s about an hour and 15 minutes long.
]]></description>
			<content:encoded><![CDATA[<p>This is an excellent video that everyone should watch on achieving your childhood dreams. It is very inspirational and makes you think about how you are using your life. Grab some popcorn, because it&#8217;s about an hour and 15 minutes long.</p>
<p><a href="http://thejudens.com/eric/2009/06/achieving-your-childhood-dreams/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2009/06/achieving-your-childhood-dreams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
