<?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, 01 Sep 2010 20:11:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>St. Louis WordPress Users Group</title>
		<link>http://thejudens.com/eric/2010/06/st-louis-wordpress-users-group/</link>
		<comments>http://thejudens.com/eric/2010/06/st-louis-wordpress-users-group/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 13:09:25 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[missouri]]></category>
		<category><![CDATA[St. Louis]]></category>
		<category><![CDATA[St. Louis WordCamp]]></category>
		<category><![CDATA[St. Louis Wordpress Users Group]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=305</guid>
		<description><![CDATA[Lately I&#8217;ve been thinking it would be good to start a St. Louis WordPress users group. I&#8217;d love to attend some of these and meet some other WordPress people in the St. Louis area. The idea of having a St. Louis WordCamp is also appealing, but I think it would be beneficial to find out [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been thinking it would be good to start a St. Louis WordPress users group. I&#8217;d love to attend some of these and meet some other WordPress people in the St. Louis area. The idea of having a St. Louis WordCamp is also appealing, but I think it would be beneficial to find out how many people are interested in WordPress before investing the time for a WordCamp.</p>
<p>So who out there has a place to host such an event and would want to put it on? I&#8217;d be happy to help, but I&#8217;m not sure I&#8217;d be able to make it to every meeting. I wouldn&#8217;t want to be the point person, I&#8217;m just trying to get the ball rolling.</p>
<p><strong>EDIT:</strong> I did come across a group on Facebook, the <a title="St. Louis and St. Charles WordPress Users Group" href="http://www.facebook.com/group.php?gid=130114540348136" target="_blank">St. Louis and St. Charles WordPress Users Group</a>. I signed up, but it doesn&#8217;t seem very active.</p>
<p><strong>EDIT x2:</strong> I just found a meetup group for STL WordPress: <a title="The St. Louis WordPress Meetup" href="http://www.meetup.com/stlwordpress/" target="_blank">http://www.meetup.com/stlwordpress/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2010/06/st-louis-wordpress-users-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 and Menu Dropdown Box</title>
		<link>http://thejudens.com/eric/2010/05/wordpress-3-0-and-menu-dropdown-box/</link>
		<comments>http://thejudens.com/eric/2010/05/wordpress-3-0-and-menu-dropdown-box/#comments</comments>
		<pubDate>Tue, 25 May 2010 16:07:13 +0000</pubDate>
		<dc:creator>Eric Juden</dc:creator>
				<category><![CDATA[In the Trenches]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[wordpress 3.0]]></category>
		<category><![CDATA[wp_dropdown_categories]]></category>
		<category><![CDATA[wp_dropdown_nav_menus]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://thejudens.com/eric/?p=290</guid>
		<description><![CDATA[I&#8217;ve started to play around with WordPress 3.0 Beta 2 and the new menu system it has. While playing around with it, I thought it might be nice to include a dropdown box of menu choices on a settings page for a theme. So I made a function similar to that of the dropdown box [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started to play around with WordPress 3.0 Beta 2 and the new menu system it has. While playing around with it, I thought it might be nice to include a dropdown box of menu choices on a settings page for a theme. So I made a function similar to that of the dropdown box for categories (wp_dropdown_categories). I called this one wp_dropdown_nav_menus.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wp_dropdown_nav_menus<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'echo'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 1,
</span>		<span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; '',
</span>		<span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 'name', 
</span>		<span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 'ASC',
</span>		<span style="color: #0000ff;">'hide_empty'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 1,
</span>		<span style="color: #0000ff;">'selected'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 0,
</span>		<span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 'postform',
</span>		<span style="color: #0000ff;">'tab_index'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; 0,
</span>		<span style="color: #0000ff;">'show_option_all'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; '', 
</span>		<span style="color: #0000ff;">'show_option_none'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; '',
</span>	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$r</span> <span style="color: #339933;">=</span> wp_parse_args<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #000088;">$defaults</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$r</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$tab_index_attribute</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span> <span style="color: #000088;">$tab_index</span> <span style="color: #666666; font-style: italic;">&gt; 0 )
</span>		<span style="color: #000088;">$tab_index_attribute</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot; tabindex=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$tab_index</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$terms</span> <span style="color: #339933;">=</span> get_terms<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'nav_menu'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hide_empty'</span> <span style="color: #339933;">=</span><span style="color: #666666; font-style: italic;">&gt; $r['hide_if_empty'], 'orderby' =&gt; $r['orderby'], 'order' =&gt; $r['order'] ));
</span>	
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$terms</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;select name='<span style="color: #006699; font-weight: bold;">$name</span>' id='<span style="color: #006699; font-weight: bold;">$id</span>' class='<span style="color: #006699; font-weight: bold;">$class</span>' <span style="color: #006699; font-weight: bold;">$tab_index_attribute</span>&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$show_option_none</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'-1'</span> <span style="color: #339933;">===</span> <span style="color: #990000;">strval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selected'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">&quot; selected='selected'&quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;option value='-1'<span style="color: #006699; font-weight: bold;">$selected</span>&gt;<span style="color: #006699; font-weight: bold;">$show_option_none</span>&lt;/option&gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$show_option_all</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'0'</span> <span style="color: #339933;">===</span> <span style="color: #990000;">strval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'selected'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">&quot; selected='selected'&quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&lt;option value='0'<span style="color: #006699; font-weight: bold;">$selected</span>&gt;<span style="color: #006699; font-weight: bold;">$show_option_all</span>&lt;/option&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$terms</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$menu</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$menu</span><span style="color: #339933;">-</span><span style="color: #666666; font-style: italic;">&gt;term_id === strval($r['selected']) ) ? &quot; selected='selected'&quot; : '';
</span>			<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;option value='<span style="color: #006699; font-weight: bold;">$menu</span>-&gt;term_id'<span style="color: #006699; font-weight: bold;">$selected</span>&gt;<span style="color: #006699; font-weight: bold;">$menu</span>-&gt;name&lt;/option&gt;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;/select&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$echo</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>If you want to use this in your code, please change the prefix of the function from wp_ to something more useful for your purpose. Just in case WordPress comes out with a function similar to this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejudens.com/eric/2010/05/wordpress-3-0-and-menu-dropdown-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>1</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 [...]]]></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 archived != '1' AND deleted != [...]]]></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 href=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$blog_details</span><span style="color: #339933;">-</span><span style="color: #666666; font-style: italic;">&gt;siteurl .'&quot;&gt;' . $blog_details-&gt;blogname .'&lt;/a&gt;&lt;/li&gt;';
</span>    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">?&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>18</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>1</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 &#8216;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>33</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>
	</channel>
</rss>
