<?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>rezzz &#187; development</title>
	<atom:link href="http://www.rezzz.com/tag/development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rezzz.com</link>
	<description>a developers playground</description>
	<lastBuildDate>Fri, 06 Jan 2012 13:56:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Page of Posts in WordPress &#8211; Let the Slug Handle It</title>
		<link>http://www.rezzz.com/code/page-of-posts-in-wordpress-let-the-slug-handle-it</link>
		<comments>http://www.rezzz.com/code/page-of-posts-in-wordpress-let-the-slug-handle-it#comments</comments>
		<pubDate>Fri, 06 Jan 2012 13:56:04 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.rezzz.com/?p=399</guid>
		<description><![CDATA[Ever want to have a page of posts, but use custom fields, a specific template, or any other page attributes in WordPress. Well, I recently had a project where there was a need for great flexibility on each page and &#8230; <a href="http://www.rezzz.com/code/page-of-posts-in-wordpress-let-the-slug-handle-it">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever want to have a page of posts, but use custom fields, a specific template, or any other page attributes in WordPress.  Well, I recently had a project where there was a need for great flexibility on each page and post of the site to manipulate the right and left sidebars.  So I was using the custom fields so the client can put links, text, pics, videos along each side.  As with most WordPress implementations, I use the Reading Settings to tag a static page for the home page and blog page.  But in knowing how the blog page uses the index.php file to render the index of posts, I didn&#8217;t want that since the blog page had custom fields that needed to be rendered.</p>
<p>Since the blog page was only going to show a specific category of posts, I thought that I could &#8220;confuse&#8221; WordPress.  I made the category slug and the page slug exactly the same.  Important to note, the slug is not the title.  The slug is usually lowercase, no spaces, and WordPress usually generates it based off of the title, which you can obviously modify.</p>
<p>So I created a News page, and then a News category.  Then I created a news template within the theme as well.  I applied the news template to the News page under the Page Attributes section on the Edit screen.  The News page previewed just like any other page.  Then after some thought and scripting, I came up with the code below which allowed me to pull in the posts based on the slug.</p>
<div class="codecolorer-container php railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$tmp_post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//Create a query for the category</span><br />
<span style="color: #000088;">$pageslug</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_name</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$paged</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'category_name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$pageslug</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'posts_per_page'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">'paged'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$paged</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
query_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
get_template_part<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'loop'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'index'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// bring control back</span><br />
<span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tmp_post</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Place the above code into the theme&#8217;s template file where you would like the list of posts to appear.  The part of this code that does the heavy lifting is that it reads the slug of the page and then builds the query to pull the posts of that category.  Obviously, that can spark some creative ideas with the page and post relationship.  I&#8217;d love to hear what other people have done for this type of situation and I hope that this helps others.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rezzz.com/code/page-of-posts-in-wordpress-let-the-slug-handle-it/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacVim and rails.vim command terminated</title>
		<link>http://www.rezzz.com/code/macvim-and-rails-vim-command-terminated</link>
		<comments>http://www.rezzz.com/code/macvim-and-rails-vim-command-terminated#comments</comments>
		<pubDate>Sun, 11 Dec 2011 13:48:05 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gemset]]></category>
		<category><![CDATA[macvim]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rvm]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://www.rezzz.com/?p=384</guid>
		<description><![CDATA[The other day I was working in a new rails app and for some reason the rails.vim plugin would not run any of the commands. The error went by so quick that I couldn&#8217;t see what it was. I dropped &#8230; <a href="http://www.rezzz.com/code/macvim-and-rails-vim-command-terminated">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The other day I was working in a new rails app and for some reason the rails.vim plugin would not run any of the commands.  The error went by so quick that I couldn&#8217;t see what it was.  I dropped to Terminal and ran the generator for the controller and it worked just fine.  I ran it again inside MacVim and got the &#8220;Command Terminated&#8221; result again and noticed that it was not respecting my rvm gemset.  </p>
<p>It was not picking up my rvm instances at all.  Because I was using zsh, when I launched MacVim from the command line in Terminal, it was not respecting my sourcing rvm in the .zshrc file.  After some looking around on Google, I found out that if I sourced it in .zshenv file that would work.  So I took</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[[ -s /.rvm/scripts/rvm ]] &amp;&amp; . /.rvm/scripts/rvm &nbsp;# This loads RVM into a shell session.</div></td></tr></tbody></table></div>
<p>and dropped it into .zshenv and it worked perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rezzz.com/code/macvim-and-rails-vim-command-terminated/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webdesign Goes to Hell: Freelancers Nightmare</title>
		<link>http://www.rezzz.com/posterous/webdesign-goes-to-hell-freelancers-nightmare</link>
		<comments>http://www.rezzz.com/posterous/webdesign-goes-to-hell-freelancers-nightmare#comments</comments>
		<pubDate>Fri, 04 Dec 2009 13:45:32 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Posterous]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[joke]]></category>

		<guid isPermaLink="false">http://rezzz.dev/posterous/webdesign-goes-to-hell-freelancers-nightmare</guid>
		<description><![CDATA[This is so true and I know it&#8217;s being put all over the web/twitter right now, but I can&#8217;t help but to spread the wealth to those that may not have seen this. http://theoatmeal.com/comics/design_hell Posted via email from Jason Resnick&#8217;s &#8230; <a href="http://www.rezzz.com/posterous/webdesign-goes-to-hell-freelancers-nightmare">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is so true and I know it&#8217;s being put all over the web/twitter right now, but I can&#8217;t help but to spread the wealth to those that may not have seen this.
<p /> <a href="http://theoatmeal.com/comics/design_hell">http://theoatmeal.com/comics/design_hell</a>
<p style="font-size: 10px;">  <a href="http://posterous.com">Posted via email</a>   from <a href="http://jasonresnick.posterous.com/webdesign-goes-to-hell-freelancers-nightmare">Jason Resnick&#8217;s posterous</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rezzz.com/posterous/webdesign-goes-to-hell-freelancers-nightmare/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>End of An Era</title>
		<link>http://www.rezzz.com/posterous/end-of-an-era</link>
		<comments>http://www.rezzz.com/posterous/end-of-an-era#comments</comments>
		<pubDate>Thu, 08 Oct 2009 16:19:45 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Posterous]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[entrepreneur]]></category>
		<category><![CDATA[geocities]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://rezzz.dev/portfolio/end-of-an-era</guid>
		<description><![CDATA[I guess there always comes a time when good things come to an end. Yahoo announced that Geocities will be turning the switch off permanently on October 26th. It&#8217;s been a long ride for the free web host. Starting back &#8230; <a href="http://www.rezzz.com/posterous/end-of-an-era">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://posterous.com/getfile/files.posterous.com/jasonresnick/YW7AqDJnWOBohy0lpYjOHoL0V7TuDrtrjSnrLthnGR15oCNbb6nofRjWxA5u/Screen_shot_2009-10-08_at_12.0.png" alt="" width="471" height="140" /></p>
<p>I guess there always comes a time when good things come to an end. Yahoo announced that Geocities will be turning the switch off permanently on October 26th. It&#8217;s been a long ride for the free web host. Starting back in the mid-90s, pretty much at the advent of the internet as we know it. My first site we a Geocities site, and from reading the article, it makes me wonder why I haven&#8217;t kept that first site. Oh yeah, I remember now, because it was horrible <img src='http://www.rezzz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; animated Simpsons characters, horizontal rules that were yellow and black construction type signs, an &#8220;LED&#8221; Welcome sign, all center aligned. At the time I loved it and spent a lot of time on it when I should&#8217;ve been in economics class, and was proud to have my little place on the web.</p>
<p>Anyway, thank you to Yahoo for keeping the &#8220;first apartment&#8221; alive and well these past several years. But we all need to move out and move on with our lives as you do as well. Goodbye and Farewell Geocities, it was great while it lasted.</p>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via email</a> from <a href="http://jasonresnick.posterous.com/end-of-an-era-15">Jason Resnick&#8217;s posterous</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rezzz.com/posterous/end-of-an-era/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a Good Idea?</title>
		<link>http://www.rezzz.com/projects/what-is-a-good-idea</link>
		<comments>http://www.rezzz.com/projects/what-is-a-good-idea#comments</comments>
		<pubDate>Wed, 30 Sep 2009 14:01:43 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[methodology]]></category>

		<guid isPermaLink="false">http://rezzz.dev/?p=88</guid>
		<description><![CDATA[Being a lead developer, I get asked this more times a day than I can count.  It may not be in that exact phrase, but that question will for certain pop up in my thinking along the way.  My thought &#8230; <a href="http://www.rezzz.com/projects/what-is-a-good-idea">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_97" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-97" title="What is a Good Idea?" src="http://rezzz.com/wp-content/uploads/2009/09/Screen-shot-2009-09-30-at-9.54.49-AM.png" alt="A question I ask so many times a day" width="600" height="86" /><p class="wp-caption-text">A question I ask so many times a day</p></div>
<p style="text-align: left;">Being a lead developer, I get asked this more times a day than I can count.  It may not be in that exact phrase, but that question will for certain pop up in my thinking along the way.  My thought process always flows in the same direction when I get asked &#8220;Is it possible to have &#8230;?&#8221; or &#8220;Can we set up this page for them to &#8230;?&#8221; or &#8220;We want our clients to &#8230;&#8221; or (and this is my favorite question prefix) &#8220;What would it take to&#8230;?&#8221;<span id="more-88"></span></p>
<p>What happens is that I usually listen, digest, and translate the question.  These are the steps that I go through in order to finally get to &#8220;What is a Good Idea?&#8221;</p>
<ol>
<li>After getting asked a question, I think about the technologies involved to fully answer the question.</li>
<li>Once I understand the technologies involved, I think about how those technologies will interact with the ones currently implemented.</li>
<li>If everything is still ok, then I think about the best way to provide a solution.</li>
<li>After I&#8217;ve thought my way through the solution, I ask myself &#8220;Is this a good idea?&#8221;</li>
<li>Based on my answer in number 4, I proceed to follow the original question up.</li>
</ol>
<p>This is a really simplified version of my thought process, but it pretty much breaks down how I go about fulfilling a proper answer to many of the questions I get asked daily.  Until I&#8217;m about 80% of the way through my thinking, &#8220;What is a Good Idea?&#8221; doesn&#8217;t even come into play.  Being the lead developer, a good idea means something different than to a project manager.  Being an entrepreneur and a forward thinker, that question poses something totally different than the other two.</p>
<p>So the next time someone comes to you and asks you &#8220;What is a Good Idea?&#8221;, take a step back (listen) and evaluate (digest/translate), and see if in the end the solution is a &#8220;Good Idea&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rezzz.com/projects/what-is-a-good-idea/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Everest Broadband Interlink</title>
		<link>http://www.rezzz.com/portfolio/everest-broadband-interlink</link>
		<comments>http://www.rezzz.com/portfolio/everest-broadband-interlink#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:29:00 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://rezzz.dev/?p=41</guid>
		<description><![CDATA[I was hired by them to design and develop their website.  They needed their clients to be able to log in and view their accounts.  Everest also wanted to have a CMS implemented so they can managed the website.  This &#8230; <a href="http://www.rezzz.com/portfolio/everest-broadband-interlink">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_43" class="wp-caption aligncenter" style="width: 600px"><img class="size-full wp-image-43" title="Everest Broadband Interlink" src="http://rezzz.dev/wp-content/uploads/2009/09/Screen-shot-2009-09-21-at-1.25.51-PM.png" alt="Everest Broadband Interlink" width="590" height="192" /><p class="wp-caption-text">Everest Broadband Interlink</p></div>
<p>I was hired by them to design and develop their website.  They needed their clients to be able to log in and view their accounts.  Everest also wanted to have a CMS implemented so they can managed the website.  This was all done in ASP with a SQL Server backend.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rezzz.com/portfolio/everest-broadband-interlink/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

