<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>jameshd - web ramblings</title>
	<atom:link href="http://jameshd.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jameshd.wordpress.com</link>
	<description>just a place for me to remember the things I write down.</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:04:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jameshd.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>jameshd - web ramblings</title>
		<link>http://jameshd.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jameshd.wordpress.com/osd.xml" title="jameshd - web ramblings" />
	<atom:link rel='hub' href='http://jameshd.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Little Calendar Icon in CSS3</title>
		<link>http://jameshd.wordpress.com/2012/01/06/little-calendar-icon-in-css3/</link>
		<comments>http://jameshd.wordpress.com/2012/01/06/little-calendar-icon-in-css3/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 13:49:14 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=88</guid>
		<description><![CDATA[Nothing amazing by any stretch&#8230; but I built this using CSS3 in about 30 mins. It uses Blueprint CSS mainly for the width control&#8230; but you can take that out&#8230; combined with this HTML gives you Big thanks to the &#8230; <a href="http://jameshd.wordpress.com/2012/01/06/little-calendar-icon-in-css3/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=88&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nothing amazing by any stretch&#8230; but I built this using CSS3 in about 30 mins. It uses Blueprint CSS mainly for the width control&#8230; but you can take that out&#8230;</p>
<p><pre class="brush: css;">

.calendar-sheet {
font-family: Arial, sans-serif;
font-size:1.2em;
}

.calendar-top {
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
-moz-border-radius-topleft: 8px;
-moz-border-radius-topright: 8px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background-color: #8B0E0E;
color: #fff;
height:30px;
line-height:30px;
font-size:1em;
text-align:center;
font-family:inherit;
background: #f44949; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y0NDk0OSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjU2JSIgc3RvcC1jb2xvcj0iIzhmMDIyMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2ZDAwMTkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,  #f44949 0%, #8f0222 56%, #6d0019 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f44949), color-stop(56%,#8f0222), color-stop(100%,#6d0019)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #f44949 0%,#8f0222 56%,#6d0019 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #f44949 0%,#8f0222 56%,#6d0019 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #f44949 0%,#8f0222 56%,#6d0019 100%); /* IE10+ */
background: linear-gradient(top,  #f44949 0%,#8f0222 56%,#6d0019 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f44949', endColorstr='#6d0019',GradientType=0 ); /* IE6-8 */

}

.calendar-body {
text-align:center;
-webkit-border-bottom-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px;
-moz-border-radius-bottomright: 8px;
-moz-border-radius-bottomleft: 8px;
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
border-left: 1px #f7f7f7 solid;
border-right: 1px #f7f7f7 solid;
border-bottom: 1px #f7f7f7 solid;
font-size: 1.6em;
font-family:inherit;

-moz-box-shadow: -10px 0px 5px #888;
-webkit-box-shadow: -10px 0px 5px #888;
box-shadow: -10px 0px 5px #888;
}

</pre></p>
<p>combined with this HTML</p>
<p><pre class="brush: xml;">

&lt;div id=&quot;container&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span&gt;April&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
26th
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

</pre></p>
<p>gives you</p>
<div id="attachment_97" class="wp-caption alignnone" style="width: 118px"><a href="http://jameshd.files.wordpress.com/2012/01/screen-shot-2012-01-06-at-14-03-041.png"><img class="size-full wp-image-97" title="Screen shot 2012-01-06 at 14.03.04" src="http://jameshd.files.wordpress.com/2012/01/screen-shot-2012-01-06-at-14-03-041.png?w=500" alt=""   /></a><p class="wp-caption-text">Pure CSS Baby</p></div>
<p>Big thanks to the <a title="CSS Gradient Generator" href="http://www.colorzilla.com/gradient-editor/" target="_blank">CSS Gradient Generator</a> and <a href="http://border-radius.com/" target="_blank">Border Radius</a> for saving my typing</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=88&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2012/01/06/little-calendar-icon-in-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>

		<media:content url="http://jameshd.files.wordpress.com/2012/01/screen-shot-2012-01-06-at-14-03-041.png" medium="image">
			<media:title type="html">Screen shot 2012-01-06 at 14.03.04</media:title>
		</media:content>
	</item>
		<item>
		<title>Jquery Text box default value</title>
		<link>http://jameshd.wordpress.com/2011/10/21/jquery-text-box-default-value/</link>
		<comments>http://jameshd.wordpress.com/2011/10/21/jquery-text-box-default-value/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 10:19:10 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=82</guid>
		<description><![CDATA[.find(&#8216;.closure-notes input&#8217;) .val(closureMsg) .focus(function(){ if(! $(this).data(&#8216;hasChanged&#8217;) ) { $(this).val(&#8221;); } }) .keyup(function(){ $(this).data(&#8216;hasChanged&#8217;, true); }) .blur(function(){ if(! $(this).data(&#8216;hasChanged&#8217;)) { $(this).val(&#8216;Closed&#8217;); } })<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=82&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>			.find(&#8216;.closure-notes input&#8217;)<br />
				.val(closureMsg)<br />
				.focus(function(){</p>
<p>					if(! $(this).data(&#8216;hasChanged&#8217;) ) {<br />
						$(this).val(&#8221;);<br />
					}<br />
				})<br />
				.keyup(function(){<br />
					$(this).data(&#8216;hasChanged&#8217;, true);<br />
				})<br />
				.blur(function(){<br />
					if(! $(this).data(&#8216;hasChanged&#8217;)) {<br />
						$(this).val(&#8216;Closed&#8217;);<br />
					}<br />
				})</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=82&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2011/10/21/jquery-text-box-default-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>Install OAuth for PHP with PECL</title>
		<link>http://jameshd.wordpress.com/2011/09/06/install-oauth-for-php-with-pecl/</link>
		<comments>http://jameshd.wordpress.com/2011/09/06/install-oauth-for-php-with-pecl/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 09:19:57 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=80</guid>
		<description><![CDATA[Bit of a ball ache to get this installed&#8230; still not sure mine is right. But here&#8217;s what I did anyway. mount -o remount,exec /tmp pecl install oauth mount -o remount /tmp You might need to set up autoconf and &#8230; <a href="http://jameshd.wordpress.com/2011/09/06/install-oauth-for-php-with-pecl/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=80&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bit of a ball ache to get this installed&#8230; still not sure mine is right. But here&#8217;s what I did anyway.</p>
<p>mount -o remount,exec /tmp<br />
pecl install oauth<br />
mount -o remount /tmp</p>
<p>You might need to set up autoconf and autoheader. Do the following<br />
yum install autoconf</p>
<p>after installing, find where it went.<br />
which autoconf<br />
export PHP_AUTOCONF=/usr/bin/autoconf<br />
export PHP_AUTOHEADER=/usr/bin/autoheader</p>
<p>echo &#8220;extension=oauth.so&#8221; &gt; /etc/php.d/oauth.ini</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=80&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2011/09/06/install-oauth-for-php-with-pecl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>Parse email addresses from text file to a csv in 4 lines</title>
		<link>http://jameshd.wordpress.com/2011/02/14/parse-email-addresses-from-text-file-to-a-csv-in-4-lines/</link>
		<comments>http://jameshd.wordpress.com/2011/02/14/parse-email-addresses-from-text-file-to-a-csv-in-4-lines/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 12:49:27 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[4 lines]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=71</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=71&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: php;">
$matches = array();
$log = file_get_contents('your-text-file');
$match = preg_match_all(&quot;/[a-z0-9!_{|}~-]+(?:\.[a-z0-9?^_{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/&quot;, $log, $matches, PREG_PATTERN_ORDER);
file_put_contents('out.csv', implode(PHP_EOL, array_unique($matches[0])));
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=71&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2011/02/14/parse-email-addresses-from-text-file-to-a-csv-in-4-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>Developer Interview Questions</title>
		<link>http://jameshd.wordpress.com/2011/01/21/developer-interview-questions/</link>
		<comments>http://jameshd.wordpress.com/2011/01/21/developer-interview-questions/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 09:30:49 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=72</guid>
		<description><![CDATA[I had to interview a couple of developers yesteday for the first time in my career.  Having had plently of interviews myself I thought i&#8217;d share with my handful of readers what I asked the candidates. Our company is looking &#8230; <a href="http://jameshd.wordpress.com/2011/01/21/developer-interview-questions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=72&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had to interview a couple of developers yesteday for the first time in my career.  Having had plently of interviews myself I thought i&#8217;d share with my handful of readers what I asked the candidates.</p>
<p>Our company is looking for a PHP / Frontend developer if you&#8217;re interested and can answer the majority of the questions on here, leave your name and address <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Server side</strong></p>
<ol>
<li>What      version of PHP / MySQL are you most familiar with?</li>
</ol>
<p>&nbsp;</p>
<ol>
<li>What      frameworks have you worked on and for how long?
<ol>
<li>Did       you write your own at any point?</li>
<li>Template       engines used</li>
<li>WordPress       experience</li>
</ol>
</li>
</ol>
<ol>
<li> i.      Themes / Plugins?</li>
<li>OOP/Patterns:
<ol>
<li> i.      Consuming which formats</li>
<li> i.      What approach did you take? SOAP / REST etc.</li>
<li> i.      Nulls.</li>
<li>What’s your CL editor of choice?</li>
</ol>
</li>
</ol>
<ol>
<li>
<ol>
<li>Zend       Framework experience?</li>
</ol>
</li>
<li>What’s      your setup?
<ol>
<li>Dev       environment / clients.</li>
<li>Server       set up</li>
<li>Browser</li>
<li>OS</li>
<li>General       – happier with a GUI or hardcore CL? Working alone or in a team?</li>
</ol>
</li>
<li>What’s      the largest database you’ve worked with? #records.
<ol>
<li>Performance       issues and how they were handled.</li>
<li>Slow       queries / tweaking the DB – how would he go about solving these.</li>
</ol>
</li>
<li>What’s      the highest volume of traffic any of the projects you’ve worked on has      received?
<ol>
<li>1       million unique per month – benchmark.</li>
</ol>
</li>
<li>What      you’re approach to caching.
<ol>
<li>How       would you serve dynamic content in a high trafficked environment? e.g.       School Closures feeds / Now playing info</li>
<li>Ever       used Memcached?</li>
</ol>
</li>
</ol>
<ol>
<li>
<ol>
<li>Give       a couple of examples of the last time he used a design pattern and what       for.</li>
<li>Favourite       / Most over used pattern?</li>
</ol>
</li>
<li>Dirty      hacks!
<ol>
<li>Give       an example of when you’ve thrown something together you’re not proud of       and what could you have done better?</li>
</ol>
</li>
<li>Web      Services
<ol>
<li>Give       a couple examples of when you’ve worked with web services or API’s</li>
</ol>
</li>
</ol>
<ol>
<li>
<ol>
<li>Are       you happy working with XML and JSON?</li>
<li>JSONP       – what is it?</li>
<li>Have       you ever written any API’s?</li>
</ol>
</li>
</ol>
<ol>
<li>SQL      Skills
<ol>
<li>Happy       writing SQL by hand?</li>
<li>Use       a GUI? PhpMyAdmin?</li>
<li>Difference       between a PK and a unique?</li>
</ol>
</li>
</ol>
<ol>
<li>Sys      admin skills
<ol>
<li>Happy       copying / navigating files around on the command line?</li>
<li>Ever       deleted anything you shouldn’t have?</li>
<li>Tailing       logs? Do you know how?</li>
</ol>
</li>
</ol>
<ol>
<li>Version      control
<ol>
<li>Preferred       client?</li>
<li>Happy       with command line access or prefer a GUI</li>
</ol>
</li>
<li>Regular      expressions
<ol>
<li>Love       em or Hate em?</li>
</ol>
</li>
</ol>
<p><strong>Client Side </strong></p>
<ol>
<li>HTML      skills
<ol>
<li>Are       you working with HTML 4 or 5</li>
</ol>
</li>
</ol>
<ol>
<li> i.      If HTML 5, give examples of the things you’ve done.</li>
<li> i.      What other libraries have you used?
<ol>
<li>YUI / jQuery / Ext / Prototype / Scriptaculous / Moo</li>
</ol>
</li>
<li> i.      Who are Douglas Crockford and John Resig?</li>
<li> i.      Ever used sprites?</li>
</ol>
<ol>
<li>
<ol>
<li>Do       you code by hand?</li>
</ol>
</li>
<li>Javascript
<ol>
<li>How       would you rate your core (without a framework JS) skills.</li>
<li>What’s       your preferred JS library?</li>
</ol>
</li>
</ol>
<ol>
<li>
<ol>
<li>Are       you happy writing OO JavaScript code?</li>
</ol>
</li>
</ol>
<ol>
<li>CSS      / Design
<ol>
<li>Happy       to write CSS by hand?</li>
</ol>
</li>
</ol>
<ol>
<li>
<ol>
<li>Photoshop       / Design experience?</li>
<li>CSS       frameworks</li>
</ol>
</li>
</ol>
<p>&nbsp;</p>
<p><strong>General</strong></p>
<ol>
<li>Name      your favourite tech sites / blogs you regularly read.</li>
<li>Development      goals for this year
<ol>
<li>Learn       HTML 5, Cross Domain AJAX       – Intelligent apps.</li>
</ol>
</li>
<li>Any      side projects on the go?</li>
<li>Have      you ever built any intelligent applications?
<ol>
<li>Recommendations       / Classifiers etc?</li>
</ol>
</li>
<li>Basic      aims/techniques of SEO?</li>
<li>Cloud      sites?
<ol>
<li>Ever       built any?</li>
</ol>
</li>
<li>Mobile      development experience
<ol>
<li>Ever       written any iPhone or Android Apps?</li>
</ol>
</li>
<li>Facebook      apps?</li>
<li>Magento      Experience?</li>
<li>Facebook      / Twitter / MySpace?</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=72&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2011/01/21/developer-interview-questions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://jameshd.wordpress.com/2011/01/04/2010-in-review/</link>
		<comments>http://jameshd.wordpress.com/2011/01/04/2010-in-review/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 13:49:34 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=69</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter&#8482; reads Minty-Fresh&#8482;. Crunchy numbers A helper monkey made this abstract painting, inspired by &#8230; <a href="http://jameshd.wordpress.com/2011/01/04/2010-in-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=69&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p align="center"><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy.gif" width="250" height="183" alt="Healthy blog!"></p>
<p align="center">The <em>Blog-Health-o-Meter&trade;</em> reads Minty-Fresh&trade;.</p>
<h2>Crunchy numbers</h2>
<div style="width:288px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;">
<p>				<img src="http://s0.wp.com/i/annual-recap/abstract-stats-2.png" alt="Featured image" /><br />
				<br /><em>A helper monkey made this abstract painting, inspired by your stats.</em></p></div>
<p>A Boeing 747-400 passenger jet can hold 416 passengers.  This blog was viewed about <strong>1,300</strong> times in 2010.  That&#8217;s about 3 full 747s.</p>
<p>
<p>In 2010, there were <strong>19</strong> new posts, not bad for the first year! There was <strong>1</strong> picture uploaded, taking a total of 21kb. </p>
<p>The busiest day of the year was June 17th with <strong>36</strong> views. The most popular post that day was <a style="color:#08c;" href="http://jameshd.wordpress.com/2010/03/10/almost-perfect-rackspace-cloud-htaccess-for-php/">Almost Perfect Rackspace Cloud .htaccess for PHP</a>.</p>
<p></p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>stumbleupon.com</strong>, <strong>news.zf-info.de</strong>, <strong>twitter.com</strong>, <strong>stackoverflow.com</strong>, and <strong>ajaxray.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>jquery page turner</strong>, <strong>page turner jquery</strong>, <strong>rackspace htaccess</strong>, <strong>zend multidb</strong>, and <strong>zend_route</strong>.</p>
<div style="clear:both;"></div>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p>					<a style="margin-right:10px;" href="http://jameshd.wordpress.com/2010/03/10/almost-perfect-rackspace-cloud-htaccess-for-php/">Almost Perfect Rackspace Cloud .htaccess for PHP</a> <span style="color:#999;font-size:8pt;">March 2010</span><br />3 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p>					<a style="margin-right:10px;" href="http://jameshd.wordpress.com/2010/09/27/zend-multi-db/">Zend Multi Db </a> <span style="color:#999;font-size:8pt;">September 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p>					<a style="margin-right:10px;" href="http://jameshd.wordpress.com/2010/02/16/jquery-page-turner/">jQuery Page Turner</a> <span style="color:#999;font-size:8pt;">February 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p>					<a style="margin-right:10px;" href="http://jameshd.wordpress.com/2010/03/09/zend_route-via-zend_config_ini/">Zend_Route via Zend_Config_Ini</a> <span style="color:#999;font-size:8pt;">March 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p>					<a style="margin-right:10px;" href="http://jameshd.wordpress.com/2010/02/10/dynamically-append-script-tags-with-parameters-to-bust-cache/">Dynamically append script tags with parameters to bust cache</a> <span style="color:#999;font-size:8pt;">February 2010</span>											</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=69&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2011/01/04/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/abstract-stats-2.png" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend_Db_Table_Row and Zend_Cache</title>
		<link>http://jameshd.wordpress.com/2010/09/27/zend_db_table_row-and-zend_cache/</link>
		<comments>http://jameshd.wordpress.com/2010/09/27/zend_db_table_row-and-zend_cache/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 10:25:46 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=59</guid>
		<description><![CDATA[Ever had the message that the Row you&#8217;ve retrived from Zend_Cache is not connected? Yet performing a var_dump on the row object shows it&#8217;s fully populated. The problem lies whe nthe row is unserialised from Zend_Cache. You must override the &#8230; <a href="http://jameshd.wordpress.com/2010/09/27/zend_db_table_row-and-zend_cache/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=59&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever had the message that the Row you&#8217;ve retrived from Zend_Cache is not connected? Yet performing a var_dump on the row object shows it&#8217;s fully populated. The problem lies whe nthe row is unserialised from Zend_Cache. You must override the __wakeup() function in your row class and then set the table class. </p>
<p>THis is a breeze if you have an interim class extending Zend_Db_Table_Row whcih all your model row classes extend. But you could end up repeating yourself a lot if you&#8217;ve not.</p>
<p>Here&#8217;s the code: </p>
<p><pre class="brush: php;">
&lt;?php
class App_Db_AbstractRow extends Zend_Db_Table_Row
{
	public function __wakeup(){
		// tbl comes back as a string
		$tbl = $this-&gt;getTableClass();
		
		// dynamically instantiate an instance of the table
		$this-&gt;setTable( new $tbl);
	}
}
</pre></p>
<p>Zend Fw assumes unserialised data objects should not have access to live database data as stated in the <a href="http://framework.zend.com/apidoc/core/Zend_Db/Table/Zend_Db_Table_Row_Abstract.html#__wakeup">documentation</a>. Credit also <a href="http://gustavostraube.wordpress.com/2010/05/11/zend-framework-cannot-save-a-row-unless-it-is-connected/">Gustavo</a> he also has a simlar solution.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=59&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2010/09/27/zend_db_table_row-and-zend_cache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend Multi Db</title>
		<link>http://jameshd.wordpress.com/2010/09/27/zend-multi-db/</link>
		<comments>http://jameshd.wordpress.com/2010/09/27/zend-multi-db/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 09:59:32 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rackspace]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=55</guid>
		<description><![CDATA[OK So i&#8217;ve been writing an app that make heavy use of Zend_Db, across multiple databases using the MultiDb plugin. Here&#8217;s a rough guide of how to set it up. Now 1st rule I have in any MVC project is &#8230; <a href="http://jameshd.wordpress.com/2010/09/27/zend-multi-db/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=55&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OK So i&#8217;ve been writing an app that make heavy use of Zend_Db, across multiple databases using the MultiDb plugin.<br />
Here&#8217;s a rough guide of how to set it up.</p>
<p>Now 1st rule I have in any MVC project is to always extend Zend_Db_Table with some form of Abstract class which you then further extend. This gives you a space to provide common functionality across all of your models. So I&#8217;ve created 2 extra classes inside the library/App/Db folder and called them App_Db_AbstractTable and App_Db_AbstractRow respoectively. This way I can override any of the initiation logic from Zend for all model classes and provide common methods to all my models. Without these classes this code would need to be duplicated across all my models.</p>
<p>I created two separate connection strings in my config, which looks like this:</p>
<pre>
; database connection 1
resources.multidb.name1.adapter = PDO_MYSQL
resources.multidb.name1.dbname = 12312423_mydb
resources.multidb.name1.username = 12312423_user
resources.multidb.name1.password = "password"
resources.multidb.name1.host = "mysql50-xx.wc2.dfw1.stabletransit.com"
resources.multidb.name1.default = true

resources.multidb.name2.adapter = PDO_MYSQL
resources.multidb.name2.dbname = 444444_db2
resources.multidb.name2.username = 444444_dbuser2
resources.multidb.name2.password = "7213d8TShkd478"
resources.multidb.name2.host = "mysql50-xx.wc2.dfw1.stabletransit.com" - different cloud machine
</pre>
<p>In my bootstrap for the entire application I initialise the MultiDb plugin to store these adapters in the registry thus:</p>
<p><pre class="brush: php;">
	protected function _initDbAdaptersToRegistry()
	{
		$this-&amp;amp;gt;bootstrap('multidb');
		$resource = $this-&amp;amp;gt;getPluginResource('multidb');
		$resource-&amp;amp;gt;init();
				
		$Adapter1 = $resource-&amp;amp;gt;getDb('name1');
		$Adapter2 = $resource-&amp;amp;gt;getDb('name2');		
		Zend_Registry::set('Adapter1RegKey', $Adapter1);
		Zend_Registry::set('Adapter2RegKey',$Adapter2);
		
	}

</pre></p>
<p>In that method you can also stuff in some profiller initialisation code too if you use it etc etc.</p>
<p>Then in the App_Db_Abstract I setup the database adapter.</p>
<p><pre class="brush: php;">
class Model_User extends App_Db_AbstractTable
{
	protected $_rowClass = 'User';
	
	protected $_name = 'table_name';
	
	protected $_schema = '';
	
	protected $_adapter = 'Adapter1RegKey';
</pre></p>
<p>I override the _setupDatabaseAdapter() method in the App_Db_AbstractTable to set the adapter as an object direct from the registry.</p>
<p><pre class="brush: php;">
	protected function _setupDatabaseAdapter() 
	{
		$this-&amp;amp;gt;_db = Zend_Registry::get($this-&amp;amp;gt;_adapter);
	}
</pre><br />
There&#8217;s MultiDb set up and working.  Hope that helps.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=55&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2010/09/27/zend-multi-db/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>iTunes Categories as a PHP array</title>
		<link>http://jameshd.wordpress.com/2010/05/28/itunes-categories-as-a-php-array/</link>
		<comments>http://jameshd.wordpress.com/2010/05/28/itunes-categories-as-a-php-array/#comments</comments>
		<pubDate>Fri, 28 May 2010 15:36:13 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=52</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=52&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: php;">
$cats = array('Arts'=&gt; array(
			'Design',
           'Fashion &amp; Beauty',
           'Food',
           'Literature',
           'Performing Arts',
           'Visual Arts'
	  ),
		  
     'Business'=&gt;array(
          'Business News',
          'Careers',
          'Investing',
          'Management &amp; Marketing',
          'Shopping'
	 ),
     'Comedy'=&gt;array(),
	 
     'Education' =&gt; array(
          'Education Technology',
          'Higher Education',
          'K-12',
          'Language Courses',
          'Training'
	),
    'Games &amp; Hobbies' =&gt; array(
          'Automotive',
          'Aviation',
          'Hobbies',
          'Other Games',
          'Video Games'
	),
    'Government &amp; Organizations' =&gt; array(
           'Local',
           'National',
           'Non-Profit',
           'Regional'
	),
    'Health' =&gt; array(
          'Alternative Health',
          'Fitness &amp; Nutrition',
          'Self-Help',
          'Sexuality'
	),
	'Kids &amp; Family'=&gt;array(),
    'Music'=&gt;array(),
    'News &amp; Politics'=&gt;array(),
    'Religion &amp; Spirituality'=&gt;array(
          'Buddhism',
          'Christianity',
          'Hinduism',
		  'Islam',
          'Judaism',
          'Other',
          'Spirituality'
	 ),
     'Science &amp; Medicine'=&gt;array(
          'Medicine',
          'Natural Sciences',
          'Social Sciences'
	 ),
     'Society &amp; Culture'=&gt;array(
          'History',
          'Personal Journals',
          'Philosophy',
          'Places &amp; Travel'
	),
    'Sports &amp; Recreation'=&gt;array(
          'Amateur',
          'College &amp; High School',
          'Outdoor',
          'Professional',
     ),
	 'Technology'=&gt;array(
	      'Gadgets',
          'Tech News',
          'Podcasting',
          'Software How-To'
	),
    'TV &amp; Film'=&gt;array()
);

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=52&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2010/05/28/itunes-categories-as-a-php-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript video resources</title>
		<link>http://jameshd.wordpress.com/2010/04/27/javascript-video-resources/</link>
		<comments>http://jameshd.wordpress.com/2010/04/27/javascript-video-resources/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:34:40 +0000</pubDate>
		<dc:creator>jameshd</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://jameshd.wordpress.com/?p=49</guid>
		<description><![CDATA[Adobe TV Ajax Experience 17 Hours from the Masters<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=49&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://tv.adobe.com/show/ajax-experience-2008/">Adobe TV Ajax Experience</a></p>
<p><a href="http://net.tutsplus.com/articles/web-roundups/17-hours-of-javascript-from-the-masters/">17 Hours from the Masters</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshd.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshd.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshd.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshd.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshd.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshd.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshd.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshd.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshd.wordpress.com&amp;blog=11920399&amp;post=49&amp;subd=jameshd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshd.wordpress.com/2010/04/27/javascript-video-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3aa55f3630a95c40399846476afaa07a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jameshd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
