<?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>Kapusta Brothers</title>
	<atom:link href="http://www.kapustabrothers.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kapustabrothers.com</link>
	<description>Come and read the thoughts about everything and anything from politics to web development.  Shaun Farrell has been the founder and creator of kapustabrothers.com since it was registered some time ago.  As a web developer, and programmer Shaun brings thought to his posts had takes a stance on a lot of issues.  Come and read his thoughts and comments of others.</description>
	<lastBuildDate>Sat, 19 Dec 2009 00:45:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gravatar Zend Framework View Helper</title>
		<link>http://www.kapustabrothers.com/2009/12/18/gravatar-zend-framework-view-helper/</link>
		<comments>http://www.kapustabrothers.com/2009/12/18/gravatar-zend-framework-view-helper/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 00:42:19 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Web Development & Programming]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Automattic]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1172</guid>
		<description><![CDATA[I have worked on a Zend Framework these past couple of days and needed the ability to display a users avatar.  This is easy by using Automattic&#8217;s gravatar project.  The easiest way to add a users avatar is to use a (this) view helper.  Basically in your view you just pass the [...]]]></description>
			<content:encoded><![CDATA[<p>I have worked on a <a href="http://framework.zend.com/">Zend Framework</a> these past couple of days and needed the ability to display a users avatar.  This is easy by using <a href="http://www.automattic.com/">Automattic&#8217;s</a> <a href="http://en.gravatar.com/">gravatar project</a>.  The easiest way to add a users avatar is to use a (this) view helper.  Basically in your view you just pass the user&#8217;s email address and a desired size and your all set.  Make sure in the view helper you specify the default image if the user doesn&#8217;t have an avatar to display.</p>
<p><a href="http://kapustabrothers.com/code/Gravatar.php.txt">You can download the source here.</a>  Comments and improvements are always welcome.</p>
<pre class="brush: php;">
&lt;?php
/**
 *
 * @author Shaun Farrell
 * @version 1.0
 */
require_once 'Zend/View/Interface.php';

/**
 * Gravatar helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Zend_View_Helper_Gravatar {

	/**
	 * @var Zend_View_Interface
	 */
	public $view;
	/**
	 *
	 * @var unknown_type
	 */
	protected $_gravatarUrl = &quot;http://www.gravatar.com/avatar.php?&quot;;
	/**
	 *
	 * @var unknown_type
	 */
	protected $_defaultImage = &quot;http://everquest.allakhazam.com/pgfx/item_576.png&quot;;

	/**
	 *
	 * @param $emailAddress
	 * @param $size
	 * @param $imgAlt
	 */
	public function gravatar($emailAddress, $size = &quot;40&quot;, $imgAlt = &quot;&quot;)
	{
		$gravatarId = &quot;gravatar_id=&quot; . md5(strtolower(trim($emailAddress)));
		$url = $this-&gt;_gravatarUrl . $gravatarId . &quot;&amp;default=&quot; . urlencode($this-&gt;_defaultImage) .
			&quot;&amp;size=&quot; . $size;

		echo &quot;&lt;img src=\&quot;$url\&quot; alt=\&quot;$imgAlt\&quot; /&gt;&quot;;
		return null;
	}

	/**
	 * Sets the view field
	 * @param $view Zend_View_Interface
	 */
	public function setView(Zend_View_Interface $view) {
		$this-&gt;view = $view;
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/12/18/gravatar-zend-framework-view-helper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>After the Deadline (AtD)</title>
		<link>http://www.kapustabrothers.com/2009/12/10/after-the-deadline-atd/</link>
		<comments>http://www.kapustabrothers.com/2009/12/10/after-the-deadline-atd/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:59:16 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web & Tech]]></category>
		<category><![CDATA[Web Development & Programming]]></category>
		<category><![CDATA[After the Deadline]]></category>
		<category><![CDATA[AtD]]></category>
		<category><![CDATA[Automattic]]></category>
		<category><![CDATA[DCPHP]]></category>
		<category><![CDATA[Raffi]]></category>
		<category><![CDATA[Spell Checker]]></category>
		<category><![CDATA[Washington]]></category>
		<category><![CDATA[Washington, DC]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1169</guid>
		<description><![CDATA[Yesterday I had the great opportunity to here Raphael Mudge the creator of AtD present After the Deadline at DC PHP.  Below is a recording of the talk.  I hope to write some more about AtD after I play around with it more.
]]></description>
			<content:encoded><![CDATA[<p>Yesterday I had the great opportunity to here <a title="Raffi" href="http://www.hick.org/~raffi/">Raphael Mudge</a> the creator of AtD present <a title="AtD" href="http://www.afterthedeadline.com/">After the Deadline</a> at <a title="DC PHP" href="http://dcphp.net/">DC PHP</a>.  Below is a recording of the talk.  I hope to write some more about AtD after I play around with it more.</p>
<p><a href="http://www.kapustabrothers.com/2009/12/10/after-the-deadline-atd/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/12/10/after-the-deadline-atd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Wedding</title>
		<link>http://www.kapustabrothers.com/2009/11/10/the-wedding/</link>
		<comments>http://www.kapustabrothers.com/2009/11/10/the-wedding/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:22:07 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Life & Family]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Belhurst]]></category>
		<category><![CDATA[Jen]]></category>
		<category><![CDATA[Married]]></category>
		<category><![CDATA[Shaun]]></category>
		<category><![CDATA[Wedding]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1162</guid>
		<description><![CDATA[More Photos at http://www.flickr.com/photos/farrelley/sets/72157622771069328/



]]></description>
			<content:encoded><![CDATA[<p>More Photos at <a title="Flickr" href="http://www.flickr.com/photos/farrelley/sets/72157622771069328/">http://www.flickr.com/photos/farrelley/sets/72157622771069328/</a></p>
<p><a title="Wedding by farrelley, on Flickr" href="http://www.flickr.com/photos/farrelley/4091028434/"><img src="http://farm3.static.flickr.com/2670/4091028434_6bfa4cb79b.jpg" alt="Wedding" width="500" height="333" /></a></p>
<p><a title="Wedding by farrelley, on Flickr" href="http://www.flickr.com/photos/farrelley/4090237821/"><img src="http://farm3.static.flickr.com/2663/4090237821_a9a60897e7.jpg" alt="Wedding" width="500" height="333" /></a></p>
<p><a title="Wedding by farrelley, on Flickr" href="http://www.flickr.com/photos/farrelley/4090289801/"><img src="http://farm3.static.flickr.com/2616/4090289801_aebaa09028.jpg" alt="Wedding" width="500" height="333" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/11/10/the-wedding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CBS Sunday Morning &#8211; Do they know US Geography?</title>
		<link>http://www.kapustabrothers.com/2009/09/21/cbs-sunday-morning-do-they-know-us-geography/</link>
		<comments>http://www.kapustabrothers.com/2009/09/21/cbs-sunday-morning-do-they-know-us-geography/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 11:54:15 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Odds & Ends]]></category>
		<category><![CDATA[CBS]]></category>
		<category><![CDATA[Charles Osgood]]></category>
		<category><![CDATA[Documentary]]></category>
		<category><![CDATA[Early Morning]]></category>
		<category><![CDATA[Filmmaker]]></category>
		<category><![CDATA[Geography]]></category>
		<category><![CDATA[History]]></category>
		<category><![CDATA[Ken Burns]]></category>
		<category><![CDATA[Montana]]></category>
		<category><![CDATA[National Park]]></category>
		<category><![CDATA[National Parks]]></category>
		<category><![CDATA[Sunday Morning]]></category>
		<category><![CDATA[US Geography]]></category>
		<category><![CDATA[USA]]></category>
		<category><![CDATA[Wyoming]]></category>
		<category><![CDATA[Yellowstone]]></category>
		<category><![CDATA[Yellowstone National Park]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1159</guid>
		<description><![CDATA[Every Sunday morning I like to watch the CBS &#8220;Sunday Morning&#8221; Show.  It&#8217;s more relaxing news that makes you feel good especially on a Sunday Morning.  They have some really good segments that they do and it looks really good in HD.  Oh yea, and who can forget the awesome bow-ties worn [...]]]></description>
			<content:encoded><![CDATA[<p>Every Sunday morning I like to watch the CBS &#8220;<a title="Sunday Morning" href="http://www.cbsnews.com/sections/sunday/main3445.shtml?tag=hdr">Sunday Morning</a>&#8221; Show.  It&#8217;s more relaxing news that makes you feel good especially on a Sunday Morning.  They have some really good segments that they do and it looks really good in HD.  Oh yea, and who can forget the awesome bow-ties worn by <a href="http://www.cbsnews.com/stories/1998/07/09/sunday/bios/main13584.shtml">Charles Osgood</a>.</p>
<p>Well this Sunday they did a segment on <a href="http://www.cbsnews.com/stories/2009/09/20/sunday/main5324219.shtml?tag=contentBody;featuredPost-PE">Reveling in &#8216;America&#8217;s Best Idea&#8217;, Filmmaker Ken Burns Talks About His Latest Documentary, a History of Our National Parks</a>.  It was a great segment however, one lower third caught our eye.</p>
<p><a title="Early Show by farrelley, on Flickr" href="http://www.flickr.com/photos/farrelley/3940917254/"><img src="http://farm3.static.flickr.com/2544/3940917254_51c6652306.jpg" alt="Early Show" width="500" height="375" /></a></p>
<p>Anyone see it?  Look at the map.  Wyoming is on top of Montana!  It should be the other way around!  Pretty crazy that no one caught that including the <strong>producer</strong>!</p>
<p>It should look like this.<br />
<img src="http://www.yellowstone-natl-park.com/images/gethere.gif" alt="Yellowstone" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/09/21/cbs-sunday-morning-do-they-know-us-geography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>September 14, 2001</title>
		<link>http://www.kapustabrothers.com/2009/09/14/september-14-2001/</link>
		<comments>http://www.kapustabrothers.com/2009/09/14/september-14-2001/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 04:01:44 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Daily]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1157</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/f4BkzuV0LYE&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/f4BkzuV0LYE&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/09/14/september-14-2001/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ted Kennedy Funeral Procession in Washington, DC</title>
		<link>http://www.kapustabrothers.com/2009/08/30/ted-kennedy-funeral-procession-in-washington-dc/</link>
		<comments>http://www.kapustabrothers.com/2009/08/30/ted-kennedy-funeral-procession-in-washington-dc/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 15:35:11 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[Washington, DC]]></category>
		<category><![CDATA[Funeral]]></category>
		<category><![CDATA[Kennedy]]></category>
		<category><![CDATA[Motorcade]]></category>
		<category><![CDATA[Procession]]></category>
		<category><![CDATA[Senate]]></category>
		<category><![CDATA[Senator Ted Kennedy]]></category>
		<category><![CDATA[Ted Kennedy]]></category>
		<category><![CDATA[Teddy]]></category>
		<category><![CDATA[US Capitol]]></category>
		<category><![CDATA[Washington DC]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1153</guid>
		<description><![CDATA[Jen and I went to the Funeral Procession for Ted Kennedy yesterday.  We were located at the exit of the U.S Capitol where the motorcade exited after stopping at the Senate steps.


]]></description>
			<content:encoded><![CDATA[<p>Jen and I went to the Funeral Procession for Ted Kennedy yesterday.  We were located at the exit of the U.S Capitol where the motorcade exited after stopping at the Senate steps.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/qrUhh2aBtUI&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qrUhh2aBtUI&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p><object width="500" height="375"><param name="flashvars" value="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Ffarrelley%2Fsets%2F72157622180356476%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Ffarrelley%2Fsets%2F72157622180356476%2F&#038;set_id=72157622180356476&#038;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&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Ffarrelley%2Fsets%2F72157622180356476%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Ffarrelley%2Fsets%2F72157622180356476%2F&#038;set_id=72157622180356476&#038;jump_to=" width="500" height="375"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/08/30/ted-kennedy-funeral-procession-in-washington-dc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zune HD, Will you Buy One?</title>
		<link>http://www.kapustabrothers.com/2009/08/14/zune-hd-will-you-buy-one/</link>
		<comments>http://www.kapustabrothers.com/2009/08/14/zune-hd-will-you-buy-one/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 11:37:19 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Daily]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1151</guid>
		<description><![CDATA[The Zune HD is a pretty neat little device from Microsoft. Pricing and Storage sizes have not yet been announced but check out the video to see the amazing OLED screen and the new interface.  It looks promising but will probably be priced out of my realm.
]]></description>
			<content:encoded><![CDATA[<p>The Zune HD is a pretty neat little device from Microsoft. Pricing and Storage sizes have not yet been announced but check out the video to see the amazing OLED screen and the new interface.  It looks promising but will probably be priced out of my realm.</p>
<p><a href="http://www.kapustabrothers.com/2009/08/14/zune-hd-will-you-buy-one/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/08/14/zune-hd-will-you-buy-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recovery.gov &#124; SharePoint, Blogging, and Photo Uploads!</title>
		<link>http://www.kapustabrothers.com/2009/08/04/recovery-gov-sharepoint-blogging-and-photo-uploads/</link>
		<comments>http://www.kapustabrothers.com/2009/08/04/recovery-gov-sharepoint-blogging-and-photo-uploads/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 12:09:14 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Washington, DC]]></category>
		<category><![CDATA[Web & Tech]]></category>
		<category><![CDATA[Government]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[recovery.gov]]></category>
		<category><![CDATA[smartronix]]></category>
		<category><![CDATA[Synteractive]]></category>
		<category><![CDATA[Transparency]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web2.0]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1147</guid>
		<description><![CDATA[This will never happen with recovery.gov but it&#8217;s in the second contract modification document from Smartronix.
Synteractive is a strategy and business solutions consulting firm specializing in
leveraging the power of information to radically improve the efficiency and effectiveness
of complex organizations. Synteractive has a proven record of using Microsoft Office
SharePoint Server (MOSS) technology to aid in business [...]]]></description>
			<content:encoded><![CDATA[<p>This will never happen with <a href="http://www.recovery.gov/">recovery.gov</a> but it&#8217;s in the second contract modification document from <a href="http://www.smartronix.com/">Smartronix</a>.</p>
<blockquote><p><a href="http://www.synteractive.com/">Synteractive</a> is a strategy and business solutions consulting firm specializing in<br />
leveraging the power of information to radically improve the efficiency and effectiveness<br />
of complex organizations. Synteractive has a proven record of using Microsoft Office<br />
SharePoint Server (MOSS) technology to aid in business transformation efforts of both<br />
federal government agencies and private companies. They will leverage their unrivaled<br />
expertise in Web 2.0 technology implementation to transform Recovery.gov from a mere<br />
information dissemination website into an interactive platform where Americans can<br />
swap stories about stimulus projects in their areas, upload pictures illustrating the<br />
effects of the projects, blog about their experiences, and ultimately engaged as a<br />
meaningful member of the Recovery community.</p></blockquote>
<p>First off, why build a transparent application in Sharepoint! Secondly, have you seen any government sites that allow users to blog and upload pictures? Can&#8217;t wait to see this in action!</p>
<p>Oh yeah, hopefully <a href="http://www.smartronix.com/">Smartronix</a> isn&#8217;t letting <a href="http://www.synteractive.com/">Syneractive</a> design the website, <a href="http://www.synteractive.com/Pages/WelcomePage.aspx">it looks really bad</a>!</p>
<p>Contract Documents for Recovery.gov can be found at <a href="http://www.recovery.gov/?q=node/765">http://www.recovery.gov/?q=node/765</a> &lt;&#8211; where are the pretty urls?<br />
PDF that shows above quote Page 5 Section 2.2 on this document <a href="http://www.recovery.gov/sites/default/files/508%20Second%20Modification%20Managment%20Proposal.pdf">http://www.recovery.gov/sites/default/files/508%20Second%20Modification%20Managment%20Proposal.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/08/04/recovery-gov-sharepoint-blogging-and-photo-uploads/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Zend_Db Firebug Profiler via .ini File</title>
		<link>http://www.kapustabrothers.com/2009/08/03/zend_db-firebug-profiler-via-ini-file/</link>
		<comments>http://www.kapustabrothers.com/2009/08/03/zend_db-firebug-profiler-via-ini-file/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 16:59:48 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[FirePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Profiler]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[Zend_DB]]></category>
		<category><![CDATA[ZF]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1145</guid>
		<description><![CDATA[So a couple of days ago I posted a way to get the DB profiler working via your bootstrap but an easier way to get things working is via your configuration .ini file.
Once again you need Firefox, FireBug, and FirePHP.  Then in your .ini file add the following lines;

resources.db.isdefaulttableadapter = true
resources.db.params.profiler.enabled = true
resources.db.params.profiler.class = [...]]]></description>
			<content:encoded><![CDATA[<p>So a couple of days ago I <a href="http://www.kapustabrothers.com/2009/07/31/getting-zend_db-firebug-profiler-working-with-zend_application/">posted a way to get the DB profiler working via your bootstrap</a> but an easier way to get things working is via your configuration .ini file.</p>
<p>Once again you need Firefox, FireBug, and FirePHP.  Then in your .ini file add the following lines;</p>
<pre class="brush: php;">
resources.db.isdefaulttableadapter = true
resources.db.params.profiler.enabled = true
resources.db.params.profiler.class = Zend_Db_Profiler_Firebug
</pre>
<p>The best part about this is that you can add this code only to load based on the environment set in your .htaccess or index.php file in your public folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/08/03/zend_db-firebug-profiler-via-ini-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Zend_Db Firebug Profiler Working with Zend_Application</title>
		<link>http://www.kapustabrothers.com/2009/07/31/getting-zend_db-firebug-profiler-working-with-zend_application/</link>
		<comments>http://www.kapustabrothers.com/2009/07/31/getting-zend_db-firebug-profiler-working-with-zend_application/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 19:14:56 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=1134</guid>
		<description><![CDATA[When developing web applications I normally run into some SQL problems and want to see what the SQL code is doing on the backend.  To do this one would normally just print the SQL statement to the screen during execution.  However, if you use Zend Framework you are in luck.  You can [...]]]></description>
			<content:encoded><![CDATA[<p>When developing web applications I normally run into some SQL problems and want to see what the SQL code is doing on the backend.  To do this one would normally just print the SQL statement to the screen during execution.  However, if you use <a href="http://framework.zend.com/">Zend Framework</a> you are in luck.  You can profile your database calls with Firebug and it&#8217;s really easy.  Here is what you will need to start.</p>
<ol>
<li>Running Zend Framework (1.8.4 or above using Zend_Application)</li>
<li>Mozilla Firefox Browser &#8211; You should be using this anyways!</li>
<li>The latest version of Firebug &#8211; <a href="http://getfirebug.com/">http://getfirebug.com/</a></li>
<li>The lastest version of FirePHP &#8211; <a href="http://www.firephp.org/">http://www.firephp.org/</a></li>
</ol>
<p>Once those firefox add-ons have been installed your ready to add in some code.</p>
<p>In your bootstrap.php file add</p>
<pre class="brush: php;">
    /**
     * Setup the database profiling
     */
    protected function _initDbProfiler()
    {
        $this-&gt;bootstrap('db');
        $profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
        $profiler-&gt;setEnabled(true);
        $this-&gt;getPluginResource('db')-&gt;getDbAdapter()
             -&gt;setProfiler($profiler);
    }
</pre>
<p>With this code added all your SQL statements that are executed will show up in the console window of FireBug.  <strong>If it&#8217;s not working make sure that you have the net console enabled!</strong>  profiling will not work if net is not enabled.</p>
<p>More information about Zend_Db_Profiler can be found at <a href="http://framework.zend.com/manual/en/zend.db.profiler.html">http://framework.zend.com/manual/en/zend.db.profiler.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2009/07/31/getting-zend_db-firebug-profiler-working-with-zend_application/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
