<?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>The Gippy Pages</title>
	<atom:link href="http://top-frog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://top-frog.com</link>
	<description>Polluting the internet since 2004</description>
	<lastBuildDate>Fri, 27 Jan 2012 05:23:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress TextMate Bundle: Better late than never edition (aka: 3.3)</title>
		<link>http://top-frog.com/2012/01/26/wordpress-textmate-bundle-better-late-than-never-edition-aka-3-3/</link>
		<comments>http://top-frog.com/2012/01/26/wordpress-textmate-bundle-better-late-than-never-edition-aka-3-3/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 05:23:59 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[3.3]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2135</guid>
		<description><![CDATA[FINALLY! WordPress 3.3 support is up for the TextMate Bundle. This is pretty much an update to the function definitions to add in new functions that were added in WordPress 3.3. I&#8217;ve been out of the WordPress loop for a little while now and I&#8217;m not up to speed to what some of the new [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://top-frog.com/wp-content/uploads/2012/01/late.png" alt="late" title="Google tells me that this is the Japanese character meaning &#039;Late&#039;" width="151" height="151" class="alignright size-full wp-image-2139" />FINALLY! WordPress 3.3 support is up for the <a href="http://top-frog.com/projects/wordpress-textmate-bundle/">TextMate Bundle</a>. This is pretty much an update to the function definitions to add in new functions that were added in WordPress 3.3. </p>
<p>I&#8217;ve been out of the WordPress loop for a little while now and I&#8217;m not up to speed to what some of the new developer oriented hotness is that could be added to the bundle so if you&#8217;re looking for something in particular drop a comment here or open an <a href="https://github.com/Gipetto/wordpress.tmbundle/issues">issue on GitHub</a>.</p>
<p>If you&#8217;re so inclined go ahead and Fork it, update what you need and submit a pull request. Since I don&#8217;t work with WordPress on a regular basis there are going to be those of you out there that have a better grasp than I on what should be added, or even what should be removed, from the Bundle.</p>
<p>So, my apologies for the delay with the update. I&#8217;ll try not to let it happen again.</p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2012/01/26/wordpress-textmate-bundle-better-late-than-never-edition-aka-3-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Religion in Politics</title>
		<link>http://top-frog.com/2012/01/23/religion-in-politics/</link>
		<comments>http://top-frog.com/2012/01/23/religion-in-politics/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 05:42:08 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[bullshit]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[religion]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2127</guid>
		<description><![CDATA[&#8220;And I frankly would be very worried if somebody assured me that nothing in their faiths would affect their judgments because then I wonder, how can you have judgment if you have no faith, and how can I trust you with power if you don’t pray? The notion that you are endowed by your Creator [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;And I frankly would be very worried if somebody assured me that nothing in their faiths would affect their judgments because then I wonder, how can you have judgment if you have no faith, and how can I trust you with power if you don’t pray? The notion that you are endowed by your Creator sets a certain boundary on what we mean by &#8216;America,&#8217;&#8221;</p></blockquote>
<p>That quote is from Newt Gingrich.</p>
<p>And, according to Newt, the adulterer, I can&#8217;t be trusted and he can, and that somehow I&#8217;m not American? This is everything that is wrong with religion in politics and this is exactly why I don&#8217;t want religion driving the decisions of my legislators. Despite religions teachings (any religion) its turned on its ear by anyone on a stump, contorted to drive a wedge between those who don&#8217;t follow the same version of God.</p>
<p>Its not that freedom of religion is under attack in America. Its just that we&#8217;re sick of it being used as a tool to gain power. No matter who you pray to you need to open your eyes and question any time someone uses God as a means of convincing you of anything, because more often than not the outcome is not in your best interest. Only theirs.</p>
<p>Its election season. Which means that its also snake oil season. Be careful in what others want you to believe.</p>
<p>This was <i><a href="http://www.facebook.com/wookieeboy/posts/3166986139673">cross posted from my Facebook account</a>.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2012/01/23/religion-in-politics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USS Iowa</title>
		<link>http://top-frog.com/2012/01/07/uss-iowa/</link>
		<comments>http://top-frog.com/2012/01/07/uss-iowa/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 06:31:38 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[battleship]]></category>
		<category><![CDATA[gun]]></category>
		<category><![CDATA[navy]]></category>
		<category><![CDATA[ship]]></category>
		<category><![CDATA[turret]]></category>
		<category><![CDATA[USS Iowa]]></category>
		<category><![CDATA[WWII]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2116</guid>
		<description><![CDATA[The USS Iowa was brought down to Richmond, CA to be renovated before heading down to its permanent home and exhibition spot near Los Angeles, CA. Though not much was open to the public because its very early on in the restoration process it was still a wonderful visit. Just looking at the ship you [...]]]></description>
			<content:encoded><![CDATA[<p><a class="thickbox frame" href="http://www.flickr.com/photos/tehgipster/6657518921/" title="USS Iowa by tehgipster, on Flickr"><img src="http://farm8.staticflickr.com/7029/6657518921_736b8360c4.jpg" width="500" height="326" alt="USS Iowa" rel="http://farm8.staticflickr.com/7029/6657518921_736b8360c4_b.jpg"></a></p>
<p>The USS Iowa was brought down to Richmond, CA to be renovated before heading down to its permanent home and exhibition spot near Los Angeles, CA. Though not much was open to the public because its very early on in the restoration process it was still a wonderful visit. </p>
<p><a class="thickbox frame" href="http://www.flickr.com/photos/tehgipster/6657573381/" title="5&quot; Gun on the USS Iowa by tehgipster, on Flickr"><img src="http://farm8.staticflickr.com/7004/6657573381_c1c1b40b65.jpg" width="500" height="313" alt="5&quot; Gun on the USS Iowa" rel="http://farm8.staticflickr.com/7004/6657573381_c1c1b40b65_b.jpg"></a></p>
<p>Just looking at the ship you can tell that its spent the last 21 years tied up and neglected. If you can believe it from these photos (and I can&#8217;t) the Iowa has been considered &#8220;in reserve&#8221; for the majority of its decommissioned time. Congress deemed that at least 2 Iowa class battleships be kept available in case the need arises but this ship has obviously been mothballed.</p>
<p><a class="thickbox frame" href="http://www.flickr.com/photos/tehgipster/6657613025/" title="Watertight Door on the USS Iowa by tehgipster, on Flickr"><img src="http://farm8.staticflickr.com/7148/6657613025_3a811081a9.jpg" width="500" height="317" alt="Watertight Door on the USS Iowa" rel="http://farm8.staticflickr.com/7148/6657613025_3a811081a9_b.jpg"></a></p>
<p>From what I understand the Iowa will be in Richmond until March or April of 2012. A lot about its departure date depends on the weather and how much work they can get done before sending it down to LA for a July exhibit opening (I presume they&#8217;re aiming for a July 4 opening).</p>
<p>If you live within driving distance of Richmond I highly recommend heading out to take a look. It requires a $10 per person &#8220;donation&#8221; to visit but its well worth it. Even though we only got to walk around the fore deck a bit we got to listen to knowledgeable folks share stories about the ship. The stories and history is absolutely fascinating and worth the trip alone.</p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2012/01/07/uss-iowa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Bundle now works with The TextMate 2 Alpha</title>
		<link>http://top-frog.com/2012/01/06/wordpress-bundle-now-works-with-the-textmate-2-alpha/</link>
		<comments>http://top-frog.com/2012/01/06/wordpress-bundle-now-works-with-the-textmate-2-alpha/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 06:47:12 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[TextMate]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[textmate2]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2104</guid>
		<description><![CDATA[The WordPress TextMate bundle now works just fine with the TextMate 2 Alpha. It was easier than I thought it would be. It boiled down to some environment variables changing a little bit. No biggie. So, there it is. TextMate 2 Alpha support. If you notice anything weird please open a Support Ticket on GitHub. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://top-frog.com/wp-content/uploads/2012/01/TextMate2.png" alt="TextMate 2 Icon" title="I love this icon!" width="128" height="128" class="alignright size-full wp-image-2106" />The WordPress TextMate bundle now works just fine with the TextMate 2 Alpha. It was easier than I thought it would be. It boiled down to some environment variables changing a little bit. No biggie.</p>
<p>So, there it is. TextMate 2 Alpha support. If you notice anything weird please open a <a href="https://github.com/Gipetto/wordpress.tmbundle/issues">Support Ticket on GitHub</a>. Please include the full text of the error that you receive as that&#8217;ll most likely be what I need to fix the problem.</p>
<p>WordPress 3.3 support is hot on its heels. Really!</p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2012/01/06/wordpress-bundle-now-works-with-the-textmate-2-alpha/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building a web</title>
		<link>http://top-frog.com/2011/12/18/building-a-web/</link>
		<comments>http://top-frog.com/2011/12/18/building-a-web/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 21:02:16 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[heebie-jeebie]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[spider]]></category>
		<category><![CDATA[wildlife]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2098</guid>
		<description><![CDATA[Noticed this little guy building a web outside our front window. I figured I&#8217;d see if I could handle a spider up close if there was a pane of glass between us. I had a much harder time editing this than I did shooting it. Editing it, dealing with it up close and full screen [...]]]></description>
			<content:encoded><![CDATA[<p>Noticed this little guy building a web outside our front window. I figured I&#8217;d see if I could handle a spider up close if there was a pane of glass between us.</p>
<p>I had a much harder time editing this than I did shooting it. Editing it, dealing with it up close and full screen on a large monitor, gave me a bad case of the heebie-jeebies.</p>
<p><a class="thickbox frame" href="http://www.flickr.com/photos/tehgipster/6533370811/" title="Building a web by tehgipster, on Flickr"><img src="http://farm8.staticflickr.com/7017/6533370811_3f2f2cf2d4.jpg" width="500" height="332" alt="Building a web" rel="http://farm8.staticflickr.com/7017/6533370811_3f2f2cf2d4_b.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2011/12/18/building-a-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate 2 and the WordPress Bundle</title>
		<link>http://top-frog.com/2011/12/13/textmate-2-and-the-wordpress-bundle/</link>
		<comments>http://top-frog.com/2011/12/13/textmate-2-and-the-wordpress-bundle/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 05:17:27 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[awesomesauce]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[textmate 2]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2094</guid>
		<description><![CDATA[We&#8217;re all excited to see that TextMate 2 Alpha has been released. It was a long wait but by the looks of the Alpha it appears that the wait wasn&#8217;t wasted. There&#8217;s plenty to be happy about with the Alpha. I&#8217;ve been doing some cursory testing with the WordPress Bundle and so far it appears [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re all excited to see that <a href="http://blog.macromates.com/2011/textmate-2-0-alpha/">TextMate 2 Alpha has been released</a>. It was a long wait but by the looks of the Alpha it appears that the wait wasn&#8217;t wasted. There&#8217;s plenty to be happy about with the Alpha.</p>
<p>I&#8217;ve been doing some cursory testing with the WordPress Bundle and so far it appears that only a few minor modifications might be needed to be compatible. </p>
<p>Better yet, though I haven&#8217;t fully tested this yet, the changes should be backwards compatible with TextMate 1.5. For the time being it doesn&#8217;t appear as thought I&#8217;ll have to create a branch just for TextMate 2.</p>
<p>So, keeping in mind that TM2 is Alpha, I&#8217;m pleased with how things are panning out. I&#8217;m eager to get in to the guts the new bundles and figure out what more I can do to make the WordPress bundle even better (suggestions are welcome!).</p>
<p>Congratulations to Mr. Odgaard on his release. I hope he&#8217;s able to ignore the petty jerks who keep harassing him and finish up what already looks to be a kick-ass upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2011/12/13/textmate-2-and-the-wordpress-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First to Bloom</title>
		<link>http://top-frog.com/2011/10/16/first-to-bloom/</link>
		<comments>http://top-frog.com/2011/10/16/first-to-bloom/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 00:23:34 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[60mm]]></category>
		<category><![CDATA[bud]]></category>
		<category><![CDATA[flower]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[red]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2081</guid>
		<description><![CDATA[I&#8217;ve been meaning to capture this &#8216;lil guy since he started blooming. This bud is probably just about 2cm wide.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to capture this &#8216;lil guy since he started blooming. This bud is probably just about 2cm wide.</p>
<p><a class="thickbox frame" href="http://www.flickr.com/photos/tehgipster/6251585172/" title="First to Bloom by tehgipster, on Flickr"><img src="http://farm7.static.flickr.com/6231/6251585172_da859f0dbf.jpg" width="500" height="346" alt="First to Bloom" rel="http://farm7.static.flickr.com/6231/6251585172_da859f0dbf_b.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2011/10/16/first-to-bloom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steve Jobs, 1955-2011</title>
		<link>http://top-frog.com/2011/10/06/steve-jobs-1955-2011/</link>
		<comments>http://top-frog.com/2011/10/06/steve-jobs-1955-2011/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 14:56:05 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[relationship]]></category>
		<category><![CDATA[steve]]></category>
		<category><![CDATA[steve jobs]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2078</guid>
		<description><![CDATA[There&#8217;s plenty more folks out there that can be more poignant and eloquent towards eulogizing Steve Jobs so I&#8217;m going to leave that with them. Without an Apple computer company backed by Steve there&#8217;s a good chance that I wouldn&#8217;t be doing what I&#8217;m doing, where I&#8217;m doing it, and would have missed out on [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s plenty more folks out there that can be more poignant and eloquent towards eulogizing Steve Jobs so I&#8217;m going to leave that with them.</p>
<p>Without an Apple computer company backed by Steve there&#8217;s a good chance that I wouldn&#8217;t be doing what I&#8217;m doing, where I&#8217;m doing it, and would have missed out on some very influential relationships in my life. So I&#8217;ll keep this short.</p>
<p>Thank you, Steve.</p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2011/10/06/steve-jobs-1955-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few PHP Dev Helper functions</title>
		<link>http://top-frog.com/2011/09/27/a-few-php-dev-helper-functions/</link>
		<comments>http://top-frog.com/2011/09/27/a-few-php-dev-helper-functions/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 06:51:47 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Web Design & Development]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[error_log]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[print_r]]></category>
		<category><![CDATA[var_dump]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2059</guid>
		<description><![CDATA[I&#8217;ve come to be pretty reliant on a few little dev helper functions that I&#8217;ve written that help introspect data in a couple of different output methods. A lot of development, especially development with unfamiliar systems, involves looking at objects and their contents. These helpers are designed to help give consistently formatted output no matter [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come to be pretty reliant on a few little dev helper functions that I&#8217;ve written that help introspect data in a couple of different output methods. A lot of development, especially development with unfamiliar systems, involves looking at objects and their contents. </p>
<p>These helpers are designed to help give consistently formatted output no matter where they&#8217;re used. They output specific styling inline to override the current site&#8217;s style sheets and output readable, monospace formatted code in most scenarios.</p>
<p><span id="more-2059"></span></p>
<p>The <code>pp()</code> &#038; <code>dp()</code> functions output to screen and the <code>ep()</code> function outputs to the error log.</p>
<p><div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-inlinetags">&lt;?php</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">pp</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-var">$msg</span><span class="hl-code"> = </span><span class="hl-identifier">__v_build_message</span><span class="hl-brackets">(</span><span class="hl-identifier">func_get_args</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">&lt;pre style=&quot;white-space: pre-wrap; text-align: left; </span><span class="hl-quotes">'</span><span class="hl-code">.</span></li>
<li><span class="hl-code">&nbsp;        </span><span class="hl-quotes">'</span><span class="hl-string">font: normal normal 11px/1.4 menlo, monaco, monospaced; </span><span class="hl-quotes">'</span><span class="hl-code">.</span></li>
<li><span class="hl-code">&nbsp;        </span><span class="hl-quotes">'</span><span class="hl-string">background: white; color: black; padding: 5px;&quot;&gt;</span><span class="hl-quotes">'</span><span class="hl-code">.</span><span class="hl-var">$msg</span><span class="hl-code">.</span><span class="hl-quotes">'</span><span class="hl-string">&lt;/pre&gt;</span><span class="hl-quotes">'</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">dp</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-var">$msg</span><span class="hl-code"> = </span><span class="hl-identifier">__v_build_message</span><span class="hl-brackets">(</span><span class="hl-identifier">func_get_args</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">, </span><span class="hl-quotes">'</span><span class="hl-string">var_dump</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">&lt;pre style=&quot;white-space: pre-wrap; text-align: left; </span><span class="hl-quotes">'</span><span class="hl-code">.</span></li>
<li><span class="hl-code">&nbsp;        </span><span class="hl-quotes">'</span><span class="hl-string">font: normal normal 11px/1.4 menlo, monaco, monospaced; </span><span class="hl-quotes">'</span><span class="hl-code">.</span></li>
<li><span class="hl-code">&nbsp;        </span><span class="hl-quotes">'</span><span class="hl-string">background: white; color: black; padding: 5px;&quot;&gt;</span><span class="hl-quotes">'</span><span class="hl-code">.</span><span class="hl-var">$msg</span><span class="hl-code">.</span><span class="hl-quotes">'</span><span class="hl-string">&lt;/pre&gt;</span><span class="hl-quotes">'</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">ep</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-var">$msg</span><span class="hl-code"> = </span><span class="hl-identifier">__v_build_message</span><span class="hl-brackets">(</span><span class="hl-identifier">func_get_args</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-identifier">error_log</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">**: </span><span class="hl-quotes">'</span><span class="hl-code">.</span><span class="hl-var">$msg</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">__v_build_message</span><span class="hl-brackets">(</span><span class="hl-var">$vars</span><span class="hl-code">, </span><span class="hl-var">$func</span><span class="hl-code"> = </span><span class="hl-quotes">'</span><span class="hl-string">print_r</span><span class="hl-quotes">'</span><span class="hl-code">, </span><span class="hl-var">$sep</span><span class="hl-code"> = </span><span class="hl-quotes">'</span><span class="hl-string">, </span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-var">$msgs</span><span class="hl-code"> = </span><span class="hl-reserved">array</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-reserved">if</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-code">!</span><span class="hl-reserved">empty</span><span class="hl-brackets">(</span><span class="hl-var">$vars</span><span class="hl-brackets">)</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;        </span><span class="hl-reserved">foreach</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-var">$vars</span><span class="hl-code"> </span><span class="hl-reserved">as</span><span class="hl-code"> </span><span class="hl-var">$var</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;            </span><span class="hl-reserved">if</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-identifier">is_bool</span><span class="hl-brackets">(</span><span class="hl-var">$var</span><span class="hl-brackets">)</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;                </span><span class="hl-var">$msgs</span><span class="hl-brackets">[</span><span class="hl-brackets">]</span><span class="hl-code"> = </span><span class="hl-brackets">(</span><span class="hl-var">$var</span><span class="hl-code"> ? </span><span class="hl-quotes">'</span><span class="hl-string">true</span><span class="hl-quotes">'</span><span class="hl-code"> : </span><span class="hl-quotes">'</span><span class="hl-string">false</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;            </span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;            </span><span class="hl-reserved">elseif</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-identifier">is_scalar</span><span class="hl-brackets">(</span><span class="hl-var">$var</span><span class="hl-brackets">)</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;                </span><span class="hl-var">$msgs</span><span class="hl-brackets">[</span><span class="hl-brackets">]</span><span class="hl-code"> = </span><span class="hl-var">$var</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;            </span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;            </span><span class="hl-reserved">else</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;                </span><span class="hl-reserved">switch</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-var">$func</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;                    </span><span class="hl-reserved">case</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">print_r</span><span class="hl-quotes">'</span><span class="hl-code">:</span></li>
<li><span class="hl-code">&nbsp;                    </span><span class="hl-reserved">case</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">var_export</span><span class="hl-quotes">'</span><span class="hl-code">:</span></li>
<li><span class="hl-code">&nbsp;                        </span><span class="hl-var">$msgs</span><span class="hl-brackets">[</span><span class="hl-brackets">]</span><span class="hl-code"> = </span><span class="hl-var">$func</span><span class="hl-brackets">(</span><span class="hl-var">$var</span><span class="hl-code">, </span><span class="hl-reserved">true</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;                        </span><span class="hl-reserved">break</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;                    </span><span class="hl-reserved">case</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">var_dump</span><span class="hl-quotes">'</span><span class="hl-code">:</span></li>
<li><span class="hl-code">&nbsp;                        </span><span class="hl-identifier">ob_start</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;                        </span><span class="hl-identifier">var_dump</span><span class="hl-brackets">(</span><span class="hl-var">$var</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;                        </span><span class="hl-var">$msgs</span><span class="hl-brackets">[</span><span class="hl-brackets">]</span><span class="hl-code"> = </span><span class="hl-identifier">ob_get_clean</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;                        </span><span class="hl-reserved">break</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;                </span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;            </span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;        </span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;    </span><span class="hl-reserved">return</span><span class="hl-code"> </span><span class="hl-identifier">implode</span><span class="hl-brackets">(</span><span class="hl-var">$sep</span><span class="hl-code">, </span><span class="hl-var">$msgs</span><span class="hl-brackets">)</span><span class="hl-code">;</span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-brackets">}</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-inlinetags">?&gt;</span></li></ol></div></div></p>
<h2>Install</h2>
<p>Copy the code above, or copy from <a href="https://gist.github.com/1244452">the Gist File</a>. Paste the contents in to a file that is accessible to your web-server software. Next, edit your <code>php.ini</code> file and edit the line with the <code>auto_prepend_file</code> setting with the full path to your helper file. Now restart apache to reload the <code>php.ini</code>.</p>
<h2>Usage</h3>
<p>All methods will output simple scalar values in their normal format and will translate boolean values to their string values instead of their numerical values. Object and arrays are then run through either <code>print_r()</code> or <code>var_dump()</code> depending upon which method you use.</p>
<p>In general <code>pp()</code> will give you the most readable output as it uses <code>print_r()</code> to output. But one drawback of <code>print_r()</code> is that it doesn&#8217;t tell you what type the variable is. This can be a drawback if you&#8217;re working specifically against boolean or null types. In that case you can use the <code>dp()</code> method which uses <code>var_dump()</code> to output. <code>var_dump()</code>&#8216;s output is less easy to read, but it does output the variable types which is very handy.</p>
<p>The <code>ep()</code> method outputs to the PHP error log. Handy for inspecting data in ajax or api calls or when outputting data is either inconvenient or hard to access.</p>
<p>All functions can be overloaded to take as many arguments as required. Each parameter is parsed separately and output comma separated.</p>
<h2>Caveat</h2>
<p>There&#8217;s only one: make sure that you don&#8217;t commit code that contains these function calls &#8211; others likely won&#8217;t have the same helper methods and your production server most assuredly doesn&#8217;t. There&#8217;s nothing like committing these methods and not realizing it until someone asks you why &#8216;dp() is undefined&#8217;. I&#8217;m actually pretty close to putting pre-commit hooks in to my version control repositories that reject any commit that has these methods in it. Its very easy to forget to strip them out first.</p>
<p>So, there it is. Nothing special, but I find these lil&#8217; guys super handy. I hope you do too.</p>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2011/09/27/a-few-php-dev-helper-functions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Funny little toad</title>
		<link>http://top-frog.com/2011/09/18/funny-little-toad/</link>
		<comments>http://top-frog.com/2011/09/18/funny-little-toad/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 04:38:56 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[bear]]></category>
		<category><![CDATA[chair]]></category>
		<category><![CDATA[dog]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[pest]]></category>
		<category><![CDATA[stand]]></category>
		<category><![CDATA[stare]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://top-frog.com/?p=2053</guid>
		<description><![CDATA[That funny little toad loves to watch the critter activity in front of the house. Rats, cats, skunks and racoons, all torturing him by lingering on his property.]]></description>
			<content:encoded><![CDATA[<p>That funny little toad loves to watch the critter activity in front of the house. Rats, cats, skunks and racoons, all torturing him by lingering on his property.</p>
<div style="text-align: center"><a class="thickbox" href="http://www.flickr.com/photos/tehgipster/6161169845/" title="Funny little toad by tehgipster, on Flickr"><img src="http://farm7.static.flickr.com/6068/6161169845_79b8f05614_z.jpg" rel="http://farm7.static.flickr.com/6068/6161169845_79b8f05614_b.jpg" width="426" height="640" alt="Funny little toad"></a></div>
]]></content:encoded>
			<wfw:commentRss>http://top-frog.com/2011/09/18/funny-little-toad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: top-frog.com @ 2012-02-04 15:21:44 by W3 Total Cache -->
