<?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>SilentGap &#187; Web Development</title>
	<atom:link href="http://www.silentgap.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silentgap.com</link>
	<description>tj's playground</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:01:08 +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>Rotating clouds in the background</title>
		<link>http://www.silentgap.com/development/2010/rotating-clouds-in-the-background/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rotating-clouds-in-the-background</link>
		<comments>http://www.silentgap.com/development/2010/rotating-clouds-in-the-background/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 20:01:08 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/development/2010/rotating-clouds-in-the-background/</guid>
		<description><![CDATA[This is from a piece of code I hacked up about 9 months ago. It was pretty fun, but kind of a time waster.  Luckily, my employer also got a kick out of it when they saw it. We didn&#8217;t use it in production, until the site was at the end of it&#8217;s lifespan &#38; [...]]]></description>
			<content:encoded><![CDATA[<p>This is from a piece of code I hacked up about 9 months ago. It was pretty fun, but kind of a time waster.  Luckily, my employer also got a kick out of it when they saw it. We didn&#8217;t use it in production, until the site was at the end of it&#8217;s lifespan &amp; even then, you could only see it through an easter egg in the site.</p>
<pre>&lt;script type="text/javascript"&gt;
$(document).ready(function(){

  $('body').css('background-position', '0px 0px');
  $('body').animate({
    backgroundPosition: '-100% 0'
  }, 100000, 'linear', function() {
    animateClouds();
  });

  function animateClouds(self){
    $('body').css('background-position', '0px 0px');
    $('body').animate({
      backgroundPosition: '-100% 0'
    }, 100000, 'linear', function() {
    animateClouds(self);
    });
  }</pre>
<pre>});
&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/development/2010/rotating-clouds-in-the-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I appreciate exceptions</title>
		<link>http://www.silentgap.com/development/2010/how-i-appreciate-exceptions/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-i-appreciate-exceptions</link>
		<comments>http://www.silentgap.com/development/2010/how-i-appreciate-exceptions/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:13:43 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/development/2010/how-i-appreciate-exceptions/</guid>
		<description><![CDATA[Especially, when it comes to software or services online. For example, a few weeks ago, I found out Google App&#8217;s allows our church to upgrade our account from standard to educational since we are a non-profit 5o1c(3) organization. And as our churches Creative Director / System&#8217;s Administrator, it makes my job easier; knowing I just [...]]]></description>
			<content:encoded><![CDATA[<p>Especially, when it comes to software or services online. For example, a few weeks ago, I found out Google App&#8217;s allows our church to upgrade our account from standard to educational since we are a non-profit 5o1c(3) organization. And as our churches Creative Director / System&#8217;s Administrator, it makes my job easier; knowing I just got more support, larger storage size for email &amp; tools to help our church collaborate with each other (which the standard version did a really good job at this too).<span id="more-743"></span></p>
<p>I used to be all open source minded when it came to development tools, frameworks and systems. I loathed Windows and more specifically, the price associated with it, but the longer I stay in the field, the more I start to understand the benefits in certain occasions, with using closed source app&#8217;s &amp; services.</p>
<p>It seems the more software and services make an exception for me &amp;/or the people/organizations I support, the more I start to make an exception within myself to use software and services you should pay for. Below is a list of examples of these app&#8217;s or services I have or am currently considering paying for:</p>
<ul>
<li>Coda</li>
<li>Navicat</li>
<li>TextMate</li>
<li>Pandora</li>
<li>Araxis Merge</li>
<li>VM Ware</li>
<li>Versions</li>
<li>Amazon s3</li>
<li>MediaTemple</li>
<li>Windows Home/Media Server (which as I typed this every hair on my body cringed)</li>
<li>iWork</li>
<li>Adobe Web Developer Suite</li>
</ul>
<p>There&#8217;s probably a few others I&#8217;m leaving out, but for me, these all would be worth having a paid version / account for.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/development/2010/how-i-appreciate-exceptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copying a file from a remote *nix computer to my local machine</title>
		<link>http://www.silentgap.com/development/2010/copying-a-file-from-a-remote-nix-computer-to-my-local-machine/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=copying-a-file-from-a-remote-nix-computer-to-my-local-machine</link>
		<comments>http://www.silentgap.com/development/2010/copying-a-file-from-a-remote-nix-computer-to-my-local-machine/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:25:37 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=739</guid>
		<description><![CDATA[Secure File Copy or &#8220;scp&#8221; is one of those handy tool&#8217;s I use from time to time when ssh&#8217;d into another server or computer. It&#8217;s also one of those I don&#8217;t use enough to remember and always have to look up. So, I figured I might as well put it out there in a location [...]]]></description>
			<content:encoded><![CDATA[<p>Secure File Copy or &#8220;scp&#8221; is one of those handy tool&#8217;s I use from time to time when ssh&#8217;d into another server or computer. It&#8217;s also one of those I don&#8217;t use enough to remember and always have to look up. So, I figured I might as well put it out there in a location I know I can remember (besides Google).</p>
<p>Ok, so on my &#8220;terminal&#8221; window (I&#8217;m on a mac, but pretty sure it&#8217;s the same for any other *nix machine, with maybe just a few variances in syntax), I type the following:</p>
<p><span id="more-739"></span></p>
<pre class="brush: bash">
scp username@remote.server.net:archives/somefile_012710.tar.bz2 ~/Desktop/
</pre>
<p>Also, I&#8217;ve never tried it yet, but supposedly, if I ssh into the remote server with the -A flag (??? correct me if I&#8217;m wrong, please), it will copy my private secure key on my machine into my session. This would be useful, so that if i want to skip my local machine &amp; copy a file directly to a second remote server, it would let me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/development/2010/copying-a-file-from-a-remote-nix-computer-to-my-local-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing out Database Table Names</title>
		<link>http://www.silentgap.com/development/2009/listing-out-database-table-names/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=listing-out-database-table-names</link>
		<comments>http://www.silentgap.com/development/2009/listing-out-database-table-names/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 21:01:20 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=732</guid>
		<description><![CDATA[Ok, for WordPress &#38; WPMU, let me preface this post with saying standard WordPress tables can be found by using the $wpdb object (paste the below code and you might be surprised on what&#8217;s available to you).
echo "&#60;pre&#62;"; print_r($wpdb); echo "&#60;/pre&#62;";
But, let&#8217;s say the plugin you&#8217;re working with in WordPress isn&#8217;t in the $wpdb object [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, for WordPress &amp; WPMU, let me preface this post with saying standard WordPress tables can be found by using the $wpdb object (paste the below code and you might be surprised on what&#8217;s available to you).</p>
<pre>echo "&lt;pre&gt;"; print_r($wpdb); echo "&lt;/pre&gt;";</pre>
<p>But, let&#8217;s say the plugin you&#8217;re working with in WordPress isn&#8217;t in the $wpdb object &amp; you still need to grab a list of non-standard tables, I&#8217;ve been using the below code to grab the information I need.<span id="more-732"></span></p>
<pre>class BlogTables {
	function selectNames() {
		global $wpdb;

		$prefix	        = "qdf_"; // other non $table_prefix prefixes
		$sql		= "SHOW TABLES LIKE '".$prefix."%'";
		$avail_tables 	= $wpdb-&gt;get_results($sql);

		foreach ($avail_tables as $tables) {
			foreach($tables as $key =&gt; $table){
				$blog_tables[] = $table;
			}
		}
		return $blog_tables;
	}
}
</pre>
<p>You can grab the dirty output from the above code with</p>
<pre>$tables_avail = new BlogTables;
$tables_avail-&gt;selectNames();
</pre>
<p>From there, you should be able to use it for whatever it is you need to use it for. If you have a better way of doing things, I&#8217;d be interested in knowing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/development/2009/listing-out-database-table-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plugin: WP-CMS Post Control</title>
		<link>http://www.silentgap.com/development/2009/plugin-wp-cms-post-control/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=plugin-wp-cms-post-control</link>
		<comments>http://www.silentgap.com/development/2009/plugin-wp-cms-post-control/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 19:22:40 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Pages]]></category>
		<category><![CDATA[Posts]]></category>
		<category><![CDATA[WordPress Settings]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=713</guid>
		<description><![CDATA[One plugin that comes in real handy for a lot of the campaigns we work on is called WP-CMS Post Control. It&#8217;s not a power house plugin that changes a core functionality of WordPress, but one that makes working with WordPress defaults a little less annoying.
For us, the two most common settings we change are [...]]]></description>
			<content:encoded><![CDATA[<p>One plugin that comes in real handy for a lot of the campaigns we work on is called <a title="WP-CMS Post Control" href="http://wordpress.org/extend/plugins/wp-cms-post-control/" target="_blank">WP-CMS Post Control</a>. It&#8217;s not a power house plugin that changes a core functionality of WordPress, but one that makes working with WordPress defaults a little less annoying.</p>
<p>For us, the two most common settings we change are found right under the General Settings sub-heading; uploader type and post/page autosave. For many of you that work with WordPress day in &amp; day out, you can imagine how handy this may be, but for others who don&#8217;t know, I&#8217;ll explain a little further.<span id="more-713"></span></p>
<p><img class="size-full wp-image-716 alignnone" title="WP-CMS Post Control Settings Page" src="http://www.silentgap.com/wp-content/uploads/2009/12/wpcms_post_control.jpg" alt="WP-CMS Post Control Settings Page" width="472" height="157" /></p>
<p>The first one, Uploader type, will allow you to change from a flash uploader (for items such as images, pdf&#8217;s, etc) to the default browser uploader. Now, for many, this would actually be a step backwards, but in our case, where our server config is just specialized enough so that the flash uploader doesn&#8217;t work correctly, it&#8217;s a very nice feature. One that&#8217;s solved a lot of headaches for us &amp; has simplified image uploading.</p>
<p>The second one, Post/Page autosave, is also a very handy feature. Often times, when working with multiple authors, editors and admins (esp. in WordPress MU systems), users will click on the wrong post, but stay on the edit page/post page long enough for the autosave to engage. This causes a red banner across the top of the page to alert the next user that they&#8217;re working in an auto-save version &amp; often times results in a post/page version conflict, often times being escalated to a top level admin to resolve (meaning me).</p>
<p>Now, both of these cases come in handy for our situation, but isn&#8217;t necessarily for every one or every development shop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/development/2009/plugin-wp-cms-post-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling, Disabling the WordPress debug setting</title>
		<link>http://www.silentgap.com/silentgap/2009/enabling-disabling-the-wordpress-debug-setting/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=enabling-disabling-the-wordpress-debug-setting</link>
		<comments>http://www.silentgap.com/silentgap/2009/enabling-disabling-the-wordpress-debug-setting/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 15:49:38 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[SilentGap]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Disable Debugging]]></category>
		<category><![CDATA[Enable Debugging]]></category>
		<category><![CDATA[PHP Error's]]></category>
		<category><![CDATA[Turn on php error debugging]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WordPress PHP Error]]></category>
		<category><![CDATA[wp-config.php]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=677</guid>
		<description><![CDATA[This is a handy feature that took a little while to figure out, but&#8217;s nice when WordPress is throwing you a blank page and you can&#8217;t figure out why.
To enable WordPress debugging on either MU or the standard version open up the wp-config.php file.
Add the code around line 100 (actually, this part doesn&#8217;t matter, but [...]]]></description>
			<content:encoded><![CDATA[<p>This is a handy feature that took a little while to figure out, but&#8217;s nice when WordPress is throwing you a blank page and you can&#8217;t figure out why.</p>
<p>To enable WordPress debugging on either MU or the standard version open up the wp-config.php file.<span id="more-677"></span></p>
<p>Add the code around line 100 (actually, this part doesn&#8217;t matter, but just a suggestion to keep wp-config.php organized):</p>
<pre>// Turn Debugging On
define('WP_DEBUG',true);</pre>
<p>To turn off debugging, just comment out the define line or change it to false (should work, never tried changing it to false yet).</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Keywords: WordPress, WordPress MU, Enable Debugging, Disable Debugging, Debug, WordPress PHP Error, PHP Error&#8217;s, PHP Errors, Turn on php error debugging</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/silentgap/2009/enabling-disabling-the-wordpress-debug-setting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Whaaaatt, that made it through QA ?!?!?!?!?!?!</title>
		<link>http://www.silentgap.com/silentgap/2009/whaaaatt-that-made-it-through-qa/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=whaaaatt-that-made-it-through-qa</link>
		<comments>http://www.silentgap.com/silentgap/2009/whaaaatt-that-made-it-through-qa/#comments</comments>
		<pubDate>Thu, 07 May 2009 07:47:45 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[SilentGap]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[life cycle]]></category>
		<category><![CDATA[QA]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=553</guid>
		<description><![CDATA[This last month has seemed to be themed &#8220;Whaaaatt, that made it through QA?!?!?!?!&#8221; And by QA I mean Quality Assurance. Currently at work, I&#8217;m writing up a bunch of verbal QA scripts, later to be ran through either by a QA tester and/or handled automatically through some scripts.
As much as it hasn&#8217;t been fun [...]]]></description>
			<content:encoded><![CDATA[<p>This last month has seemed to be themed &#8220;Whaaaatt, that made it through QA?!?!?!?!&#8221; And by QA I mean Quality Assurance. Currently at work, I&#8217;m writing up a bunch of verbal QA scripts, later to be ran through either by a QA tester and/or handled automatically through some scripts.<span id="more-553"></span></p>
<p>As much as it hasn&#8217;t been fun to go through this process, it has taught me the importance of making sure all your &#8220;T&#8217;s&#8221; are crossed and &#8220;i&#8217;s&#8221; are dotted. I&#8217;ve heard from multiple developers at various firms that say &#8220;Develop in Firefox, and when the site is completed, debug your IE(6)&#8221;. The problem is, as true as that is for CSS and formatting your site, it&#8217;s becoming increasingly difficult (and will continue to be as the web develops and IE6 stays the same) to hold that philosophy when it comes to functionality (and I believe a lot of the developers that made that statement would or will start to agree in the next few years, if not already).</p>
<p>What we&#8217;re finding as an overall trend is that a lot of data is being pulled through the web through client side scripting, as opposed to server side. While libraries like jquery and mootools have done a tremendous job at making IE6 (Internet Explorer 6) work, I still find a lot of quirky things I have to work around in development. And although, most of it still comes back to CSS preferences, I still waste a tremendous amount of time at the end of the project going through and trying to figure out why IE6 doesn&#8217;t like a particular div, span or more recently &lt;body&gt; tag (dealing w/ graybox &#8211; which could be it&#8217;s own post in bashing how they decided to structure their iframes), than I would had I just debugged IE along the way.</p>
<p>The other benifit would be as a particular site enters into our clients QA process and the client is chomping at the bit to get their hands on the site, we&#8217;ve had and have taken time to make sure IE (and really, all the major browsers) have going through multipule QA tests, over a period of time. The payoff is that if you&#8217;ve only been given 10 days for developement, by doing QA along the way, you also have 10 days of QA. Now we can&#8217;t really fit 20 days of work into 10 days (although at Blend we seem to do this on a regular basis), but knowing when and how a particular issue arrose is extremely valuable when it comes to debugging, esp when it comes to IE (which doesn&#8217;t have firebug (it does have a development tool bar, but I find many times it is less helpful than just adding a 1px solid red border to the &lt;div&gt;&#8217;s of a particular section I&#8217;m working on.</p>
<p>All in all, QA is and has been knocking on my door, and I cannot strees how important it is for those developers out there to go through some sort of QA process. It&#8217;s ok to do your QA at the end (and I still recommend for some projects, esp larger, longer deadline ones), but if you&#8217;re in the type of business where your deadline typically doesn&#8217;t allow for the nessesary QA time, doing QA all throughout the development life cycle may prove benifical to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/silentgap/2009/whaaaatt-that-made-it-through-qa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing your WordPress feed to show 2 (two) or more categories</title>
		<link>http://www.silentgap.com/development/2009/changing-your-wordpress-feed-to-show-2-two-or-more-categories/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=changing-your-wordpress-feed-to-show-2-two-or-more-categories</link>
		<comments>http://www.silentgap.com/development/2009/changing-your-wordpress-feed-to-show-2-two-or-more-categories/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 16:52:21 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=540</guid>
		<description><![CDATA[Ok, I&#8217;ve run into this problem a few times and keep forgetting what the solution is, so here&#8217;s a good reference post for myself and the rest of you wondering.
Let&#8217;s say you have in your WordPress install 5 or more categories, but to the general public, there&#8217;s only two categories you want to show (such [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I&#8217;ve run into this problem a few times and keep forgetting what the solution is, so here&#8217;s a good reference post for myself and the rest of you wondering.</p>
<p>Let&#8217;s say you have in your WordPress install 5 or more categories, but to the general public, there&#8217;s only two categories you want to show (such as the case with http://www.midmarketinnovators.com/). In this blog there&#8217;s multipule categories, some of them for a public post / Q&amp;A section and the other for the author blog posts and still, some more for the sidebar featured products section. Well, to the general public, they don&#8217;t need to see the Featured Products or the Q&amp;A section in the general feed, but rather just the blog posts, from the various authors partisipating. So let&#8217;s say they post to the category ID&#8217;s 22 &amp; 23, well in your link tag in the header place the following tag.</p>
<pre>&lt;link rel="alternate" type="application/rss+xml"</pre>
<pre>title="&lt;?php bloginfo('name'); ?&gt; RSS Feed"</pre>
<pre>href="&lt;?php bloginfo('rss2_url'); ?&gt;?cat=22,23" /&gt;</pre>
<p>Which outputs in html as</p>
<pre>&lt;link rel="alternate" type="application/rss+xml"</pre>
<pre>title="Mid Market Innovators RSS Feed"</pre>
<pre>href="http://www.midmarketinnovators.com/feed/?cat=22,23" /&gt;</pre>
<p>In the case of Mid Market Innovators, the feed was placed into a feedburner plugin, which redirects the http://www.midmarketinnovators.com/feed to the feedburner link. But, this should still work if you&#8217;re not using feedburner. If you run into any troubles, post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/development/2009/changing-your-wordpress-feed-to-show-2-two-or-more-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display only One Single View Post in WordPress</title>
		<link>http://www.silentgap.com/silentgap/2009/display-only-one-single-view-post-in-wordpress/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=display-only-one-single-view-post-in-wordpress</link>
		<comments>http://www.silentgap.com/silentgap/2009/display-only-one-single-view-post-in-wordpress/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 23:55:32 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[SilentGap]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp_query]]></category>

		<guid isPermaLink="false">http://www.silentgap.com/?p=511</guid>
		<description><![CDATA[Hey everyone,
I&#8217;ve come across a problem when building out a template where we need to display one post one the home page, but it needs to be a single view (so that it displays comments on that post) but cannot impact the query that shows a list of blog posts below. So, here&#8217;s a solution:
&#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone,</p>
<p>I&#8217;ve come across a problem when building out a template where we need to display one post one the home page, but it needs to be a single view (so that it displays comments on that post) but cannot impact the query that shows a list of blog posts below. So, here&#8217;s a solution:<span id="more-511"></span></p>
<pre>&lt;?php $wp_query-&gt;is_single = true; ?&gt;

    &lt;?php $post_count = 0; ?&gt;

    &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;    

        &lt;?php if ($post_count == 0) : ?&gt;

            &lt;?php the_content(''); ?&gt;

        &lt;?php $post_count++; ?&gt;

    &lt;?php endif; ?&gt;

&lt;?php endwhile; endif; ?&gt;</pre>
<p>Below is a wireframe pic</p>
<p><img class="alignnone" title="Post Wireframe - Display only One Single View Post in WordPress" src="http://www.silentgap.com/images/post_wireframe.gif" alt="" width="543" height="440" /></p>
<p>Hope that helps &#8211; let me know if you have any questions.</p>
<p>Amendment:</p>
<p>I left something out, in order to display the rest of the posts I had to output an additional query. Something like the below code should work:</p>
<pre>&lt;?php $additional_posts - new WP_Query('cat=1'); ?&gt;</pre>
<pre>&lt;?php if ($additional_posts-&gt;posts) : ?&gt;</pre>
<pre>&lt;?php while ($additional_posts-&gt;have_posts()) : $additional_posts-&gt;the_post();  ?&gt;</pre>
<pre>&lt;?php the_content(); ?&gt;</pre>
<pre>&lt;?php endwhile; endif; ?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/silentgap/2009/display-only-one-single-view-post-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Virus for Mac</title>
		<link>http://www.silentgap.com/silentgap/2008/windows-virus-for-mac/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=windows-virus-for-mac</link>
		<comments>http://www.silentgap.com/silentgap/2008/windows-virus-for-mac/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 20:56:00 +0000</pubDate>
		<dc:creator>Tim of SilentGap</dc:creator>
				<category><![CDATA[SilentGap]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[actions]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[FYI]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://sg.silentgap.org/2008/12/windows-virus-for-mac/</guid>
		<description><![CDATA[Ok, for all of you that like to laugh, here&#8217;s a new scam (or an old one, repackaged). As many of you know, I&#8217;m all mac now, at home and at work. I also set up Google Alerts for my work and church (and a few other things too). Well, spammers (or a new breed) [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, for all of you that like to laugh, here&#8217;s a new scam (or an old one, repackaged). As many of you know, I&#8217;m all mac now, at home and at work. I also set up Google Alerts for my work and church (and a few other things too). Well, spammers (or a new breed) are now setting up plain sites that have business names in it, there&#8217;s no text, just a really long title, with all of the business names.<span id="more-56"></span></p>
<p>What happens is that Google, will crawl through the web, looking for the key words that you set up. Well these spammers sites have these same key words, so when Google crawls the spammers site, Google flags it as an alert and sends the spammers website url/address to your email, saying it&#8217;s found a site that&#8217;s met your criteria.</p>
<p>Well, when you click on the link, it brings you to the spammers site, which then will do anything from collect stats to redirect you to another site that looks like it&#8217;s scanning your harddrive. Below are a few screen shots of what happens when it scans your harddrive (even though it&#8217;s not really scanning).</p>
<p><a href="http://3.bp.blogspot.com/_hlwJzRpwaKQ/SVFSSQ1CvEI/AAAAAAAABIc/2HEpKRZtwVI/s1600-h/windows_virus_mac.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5283094311590870082" style="cursor: pointer; width: 400px; height: 319px;" src="http://3.bp.blogspot.com/_hlwJzRpwaKQ/SVFSSQ1CvEI/AAAAAAAABIc/2HEpKRZtwVI/s400/windows_virus_mac.jpg" border="0" alt="" /></a></p>
<p>The below pic is what happens after you click on the window. It asks you to install this virus scan (even though it&#8217;s a virus) &#8211; It&#8217;s an exe file, so on a mac (which doesn&#8217;t know what to do with an exe file), it doesn&#8217;t do anything. Notice my little Mac symbol in the upper left corner.</p>
<p><a href="http://1.bp.blogspot.com/_hlwJzRpwaKQ/SVFSSXnEKkI/AAAAAAAABIk/WwoRcgKd46U/s1600-h/widows_virus_mac2.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5283094313411291714" style="cursor: pointer; width: 400px; height: 320px;" src="http://1.bp.blogspot.com/_hlwJzRpwaKQ/SVFSSXnEKkI/AAAAAAAABIk/WwoRcgKd46U/s400/widows_virus_mac2.jpg" border="0" alt="" /></a></p>
<p>The sad this is that many fall for this &#8211; don&#8217;t you be one of them!</p>
<p>Tim Schoffelman of <a href="http://silentgap.com/">SilentGap</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silentgap.com/silentgap/2008/windows-virus-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
