<?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>stormyfrog studios</title>
	<atom:link href="http://www.stormyfrog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stormyfrog.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 17 Apr 2011 18:04:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Cupcake Tower: New Product Catalog Page</title>
		<link>http://www.stormyfrog.com/the-cupcake-tower-new-product-catalog-page/</link>
		<comments>http://www.stormyfrog.com/the-cupcake-tower-new-product-catalog-page/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 11:00:08 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=271</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/the-cupcake-tower-new-product-catalog-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using wpdb, the WordPress database, outside of WordPress</title>
		<link>http://www.stormyfrog.com/using-wpdb-outside-wordpress/</link>
		<comments>http://www.stormyfrog.com/using-wpdb-outside-wordpress/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 16:29:27 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[standalone]]></category>
		<category><![CDATA[w3tc]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wpdb]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=236</guid>
		<description><![CDATA[Occasionally it may be useful to have a dynamic page outside of WordPress that can still access the $wpdb object. If you search around the internet, you&#8217;ll eventually find that loading the wp-load script (example below) will make the database object available to you. Old Way require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' ); One problem with that [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally it may be useful to have a dynamic page outside of WordPress that can still access the $wpdb object.  If you search around the internet, you&#8217;ll eventually find that loading the wp-load script (example below) will make the database object available to you.</p>
<h3>Old Way</h3>
<p><code>require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );</code></p>
<p>One problem with that solution is that it loads ALL the overhead of WordPress, which may be what you want if you need to use &#8220;The Loop&#8221; in your page, but usually isn&#8217;t what I&#8217;m looking for.  If you&#8217;re using a caching plugin like W3TC to speed up your site, you&#8217;ll notice that including wp-load triggers W3TC to take over your page, which can give unexpected results.  To work around this, I now set up the database using the few lines below.</p>
<h3>New Way</h3>
<p><code>define( 'BLOCK_LOAD', true );<br />
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-config.php' );<br />
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/wp-db.php' );<br />
$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);</code></p>
<p>This does require one small change to the wp-config file to add support for blocking it from loading the rest of WordPress.  You&#8217;ll need to find the line in the file that includes wp-settings and change it to look like the line below.  In normal WordPress usage it will continue to include the wp-settings file as before, but in our special case, it will stop and only load the database settings.</p>
<p><code>if ( !( defined('BLOCK_LOAD') &#038;&#038; BLOCK_LOAD ) ) require_once(ABSPATH . 'wp-settings.php');</code></p>
<p><em><strong>NOTE:</strong> You may have to edit the paths above to reference the proper location of your WordPress install.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/using-wpdb-outside-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Registration System for Marathon Fundraiser</title>
		<link>http://www.stormyfrog.com/registration-system-for-marathon-fundraiser/</link>
		<comments>http://www.stormyfrog.com/registration-system-for-marathon-fundraiser/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 22:35:05 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[authorize.net]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[integration]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=276</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/registration-system-for-marathon-fundraiser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Cupcake Tower: Spare Parts</title>
		<link>http://www.stormyfrog.com/the-cupcake-tower-spare-parts/</link>
		<comments>http://www.stormyfrog.com/the-cupcake-tower-spare-parts/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 11:00:45 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ecommerce]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=268</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/the-cupcake-tower-spare-parts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are your subdomains in order?</title>
		<link>http://www.stormyfrog.com/are-your-subdomains-in-order/</link>
		<comments>http://www.stormyfrog.com/are-your-subdomains-in-order/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 14:00:41 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=185</guid>
		<description><![CDATA[I was recently trying to recall a subdomain (for example: http://subdomain.stormyfrog.com/) I had set up for a client, and tried guessing at what I thought it was. While I guessed wrong, it highlighted an important issue to address. Wildcard DNS The subdomain I tried was not an actual site for the client, but a wildcard [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently trying to recall a subdomain (for example: http://subdomain.stormyfrog.com/) I had set up for a client, and tried guessing at what I thought it was.  While I guessed wrong, it highlighted an important issue to address.  </p>
<h3>Wildcard DNS</h3>
<p>The subdomain I tried was not an actual site for the client, but a wildcard DNS entry was sending it to the IP of the server anyways.  If you have a wildcard entry set up for your domain(s) you should take care to see what your web server is serving up for subdomains you aren&#8217;t actually using.  In most cases, it will serve up the default site for that IP address, but under whatever URL you used.<span id="more-185"></span></p>
<h3>Fixing the issue</h3>
<p>Once you know what site the server is serving up for your invalid subdomains, add or <strong>edit the .htaccess file</strong> for that site to include a redirect for any URLs not matching the correct domain.  This way you&#8217;ll avoid any potential duplicate content issues and possible SEO penalties.</p>
<h3>Option 1: Redirect any page requests to main website homepage</h3>
<p>This option would send any visitors from http://subdomain.stormyfrog.com/awesome-page/ back to the homepage at http://www.stormyfrog.com/.</p>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !www\.stormyfrog\.com [NC]<br />
RewriteRule .* http://www.stormyfrog.com/ [R=301,L]</code></p>
<h3>Option 2: Redirect page requests to equivalent page on correct domain</h3>
<p>This option would send any visitors from http://subdomain.stormyfrog.com/awesome-page/ to http://www.stormyfrog.com/awesome-page/.</p>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !www\.stormyfrog\.com [NC]<br />
RewriteRule ^(.*)$ http://www.stormyfrog.com/$1 [R=301,L]</code></p>
<h3>Option 3: Combined approach</h3>
<p>This is the approach I personally use.  Anyone entering the site with wwww (four w, a common mistake) or no www is redirected in a manner like Option 2 sending them to the right page.  Anyone else making up subdomains or even using other domain names I may have pointing at the same IP but am not using would be sent to the homepage.</p>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^(wwww\.)?stormyfrog\.com [NC]<br />
RewriteRule ^(.*)$ http://www.stormyfrog.com/$1 [R=301,L]<br />
RewriteCond %{HTTP_HOST} !www\.stormyfrog\.com [NC]<br />
RewriteRule .* http://www.stormyfrog.com/ [R=301,L]</code></p>
<h3>Do you prefer no www for your site?</h3>
<p>If you prefer your site running as http://stormyfrog.com/ rather than http://www.stormyfrog.com, use the variations below instead.</p>
<h4>Option 1 for no-www</h4>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^stormyfrog\.com [NC]<br />
RewriteRule .* http://stormyfrog.com/ [R=301,L]</code></p>
<h4>Option 2 for no-www</h4>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^stormyfrog\.com [NC]<br />
RewriteRule ^(.*)$ http://stormyfrog.com/$1 [R=301,L]</code></p>
<h4>Option 3 for no-www</h4>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^wwww?\.stormyfrog\.com [NC]<br />
RewriteRule ^(.*)$ http://stormyfrog.com/$1 [R=301,L]<br />
RewriteCond %{HTTP_HOST} !^stormyfrog\.com [NC]<br />
RewriteRule .* http://stormyfrog.com/ [R=301,L]</code></p>
<h3>Notes</h3>
<p>This will only work on Apache-based web servers with security settings that permit you to override FileInfo settings in your htaccess file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/are-your-subdomains-in-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Golden State Fire: Facebook Welcome Tab</title>
		<link>http://www.stormyfrog.com/golden-state-fire/</link>
		<comments>http://www.stormyfrog.com/golden-state-fire/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 17:15:01 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=148</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/golden-state-fire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Communicators Workshops</title>
		<link>http://www.stormyfrog.com/dynamic-communicators-workshops/</link>
		<comments>http://www.stormyfrog.com/dynamic-communicators-workshops/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 08:42:59 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=134</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/dynamic-communicators-workshops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Professional Communicators Summit</title>
		<link>http://www.stormyfrog.com/professional-communicators-summit/</link>
		<comments>http://www.stormyfrog.com/professional-communicators-summit/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 08:42:58 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=140</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/professional-communicators-summit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Cupcake Tower: New Product Photography</title>
		<link>http://www.stormyfrog.com/the-cupcake-tower-new-product-photography/</link>
		<comments>http://www.stormyfrog.com/the-cupcake-tower-new-product-photography/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 00:20:00 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=99</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/the-cupcake-tower-new-product-photography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tri-County Gymnastics: New Staff Photos</title>
		<link>http://www.stormyfrog.com/tri-county-gymnastics-new-staff-photos/</link>
		<comments>http://www.stormyfrog.com/tri-county-gymnastics-new-staff-photos/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 00:10:01 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.stormyfrog.com/?p=106</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.stormyfrog.com/tri-county-gymnastics-new-staff-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

