<?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>Heres How I...</title>
	<atom:link href="http://hereshowi.com/feed" rel="self" type="application/rss+xml" />
	<link>http://hereshowi.com</link>
	<description></description>
	<lastBuildDate>Wed, 17 Mar 2010 02:19:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress: Custom Category Navigation</title>
		<link>http://hereshowi.com/wordpress/wordpress-custom-category-navigation</link>
		<comments>http://hereshowi.com/wordpress/wordpress-custom-category-navigation#comments</comments>
		<pubDate>Thu, 07 May 2009 18:22:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://hereshowi.com/?p=50</guid>
		<description><![CDATA[&#60;pre&#62;
&#60;div id="primary-nav" class="&#60;?php echo $primary_nav_class ?&#62;"&#62;
    &#60;ul class="nav"&#62;
    	&#60;?php
		  $categories = get_categories();
		  foreach ($categories as $cat) {
		  	if ($current_category-&#62;slug == $cat-&#62;slug) { $li_class = '&#60;li class="active"&#62;'; } else { $li_class = '&#60;li&#62;'; }
		  	echo $li_class.'&#60;div class="tab"&#62; &#60;a href="'.get_option('home').'/'.get_option('category_base').'/'.$cat-&#62;category_nicename.'/'.'"&#62;&#60;span&#62;'.$cat-&#62;cat_name.'&#60;/span&#62;&#60;/a&#62;&#60;/div&#62;&#60;/li&#62;';
		  }
		?&#62;
    &#60;/ul&#62;
&#60;/div&#62;

&#60;?php if ...]]></description>
			<content:encoded><![CDATA[<pre>&lt;pre&gt;
&lt;div id="primary-nav" class="&lt;?php echo $primary_nav_class ?&gt;"&gt;
    &lt;ul class="nav"&gt;
    	&lt;?php
		  $categories = get_categories();
		  foreach ($categories as $cat) {
		  	if ($current_category-&gt;slug == $cat-&gt;slug) { $li_class = '&lt;li class="active"&gt;'; } else { $li_class = '&lt;li&gt;'; }
		  	echo $li_class.'&lt;div class="tab"&gt; &lt;a href="'.get_option('home').'/'.get_option('category_base').'/'.$cat-&gt;category_nicename.'/'.'"&gt;&lt;span&gt;'.$cat-&gt;cat_name.'&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;';
		  }
		?&gt;
    &lt;/ul&gt;
&lt;/div&gt;

&lt;?php if ( $primary_nav_class == "page" ): ?&gt;
	&lt;div id="secondary-nav"&gt;
	    &lt;ul class="secondary-nav"&gt;
	    	&lt;?php
  				$categories =  get_categories('child_of='.$current_category-&gt;cat_ID);
  				foreach ($categories as $cat) {
			  		$option = '&lt;li class="cat-item cat-item-'.$cat-&gt;cat_ID.' current-cat"&gt;';
			  		$option .= '&lt;a href="' . get_category_link($cat-&gt;cat_ID) . '" title="' . category_description($cat-&gt;cat_ID) . '"&gt;' . $cat-&gt;cat_name . '&lt;/a&gt;';
					$option .= '&lt;/li&gt;';
					echo $option;
				}
  			?&gt;
	    &lt;/ul&gt;
	&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/pre&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://hereshowi.com/wordpress/wordpress-custom-category-navigation/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Side By Side Divs</title>
		<link>http://hereshowi.com/css/side-by-side-divs</link>
		<comments>http://hereshowi.com/css/side-by-side-divs#comments</comments>
		<pubDate>Wed, 29 Apr 2009 22:42:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://hereshowi.com/?p=48</guid>
		<description><![CDATA[
#container{width: 600px}
#content_left, #content_right{float: left;}
#content_left{width: 400px;}
#content_right{width: 200px;}
.clear{clear: both;}


&#60;div id=&#34;container&#34;&#62;
    &#60;div id=&#34;content_left&#34;&#62;
    &#60;/div&#62;
    &#60;div id=&#34;content_right&#34;&#62;
    &#60;/div&#62;
    &#60;div class=&#34;clear&#34;&#62;&#60;/div&#62;
&#60;/div&#62;


#container{overflow:hidden;}  ??????

Source
]]></description>
			<content:encoded><![CDATA[<pre class="brush: css;">
#container{width: 600px}
#content_left, #content_right{float: left;}
#content_left{width: 400px;}
#content_right{width: 200px;}
.clear{clear: both;}
</pre>
<pre class="brush: xml;">
&lt;div id=&quot;container&quot;&gt;
    &lt;div id=&quot;content_left&quot;&gt;
    &lt;/div&gt;
    &lt;div id=&quot;content_right&quot;&gt;
    &lt;/div&gt;
    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<pre class="brush: css;">
#container{overflow:hidden;}  ??????
</pre>
<p><a href="http://www.sitepoint.com/forums/showthread.php?t=612514">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hereshowi.com/css/side-by-side-divs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Variables In CSS</title>
		<link>http://hereshowi.com/css/use-variables-in-css</link>
		<comments>http://hereshowi.com/css/use-variables-in-css#comments</comments>
		<pubDate>Thu, 23 Apr 2009 02:57:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hereshowi.com/?p=42</guid>
		<description><![CDATA[First: Add this to your main index&#8217;s styles.

&#60;style type=&#34;text/css&#34;&#62;@import 'style.php?c=css/styles.css';&#60;/style&#62;

Next, create a file named style.php with the following content.

&#60;?PHP
/*
	$foo='bar';
*/
header('content-type:text/css');
header(&#34;Expires: &#34;.gmdate(&#34;D, d M Y H:i:s&#34;, (time()+900)) . &#34; GMT&#34;);
$c=$_GET['c'];
if(preg_match('/\//',$c) or !preg_match('/.css/',$c))
{
	die('only local CSS files allowed!');
}
$css=load($c);
if($css=='')
{
	die('File not Found, sorry!');
}
preg_match_all(&#34;/\\$(\w+).*=.*\'(.*)\'/&#34;,$css,$constants);
for($i=0;$i&#60;sizeof($constants[1]);$i++)
{
	$css=preg_replace('/\\$'.$constants[1][$i].'/',$constants[2][$i],$css);
}
$css=preg_replace(&#34;/\\#.*=.*?;\s+/s&#34;,'',$css);

echo $css;
/*
	Function load($file)
	reads the content of the file that you send and returns it
*/
function load($filelocation)
{
	if (file_exists($filelocation))
	{
		$newfile = fopen($filelocation,&#34;r&#34;);
		$file_content = ...]]></description>
			<content:encoded><![CDATA[<p>First: Add this to your main index&#8217;s styles.</p>
<pre class="brush: php;">
&lt;style type=&quot;text/css&quot;&gt;@import 'style.php?c=css/styles.css';&lt;/style&gt;
</pre>
<p>Next, create a file named style.php with the following content.</p>
<pre class="brush: php;">
&lt;?PHP
/*
	$foo='bar';
*/
header('content-type:text/css');
header(&quot;Expires: &quot;.gmdate(&quot;D, d M Y H:i:s&quot;, (time()+900)) . &quot; GMT&quot;);
$c=$_GET['c'];
if(preg_match('/\//',$c) or !preg_match('/.css/',$c))
{
	die('only local CSS files allowed!');
}
$css=load($c);
if($css=='')
{
	die('File not Found, sorry!');
}
preg_match_all(&quot;/\\$(\w+).*=.*\'(.*)\'/&quot;,$css,$constants);
for($i=0;$i&lt;sizeof($constants[1]);$i++)
{
	$css=preg_replace('/\\$'.$constants[1][$i].'/',$constants[2][$i],$css);
}
$css=preg_replace(&quot;/\\#.*=.*?;\s+/s&quot;,'',$css);

echo $css;
/*
	Function load($file)
	reads the content of the file that you send and returns it
*/
function load($filelocation)
{
	if (file_exists($filelocation))
	{
		$newfile = fopen($filelocation,&quot;r&quot;);
		$file_content = fread($newfile, filesize($filelocation));
		fclose($newfile);
		return $file_content;
	}
}
?&gt;
</pre>
<p>Now in your css file, you can use variables just like this.</p>
<pre class="brush: css;">
/*	Variables
	$fonts = '&quot;MS Trebuchet&quot;, Arial, Sans-Serif';
	$color1 = '#999';
	$H1_size = '36px';
	$color2 = '#363';
	$color3 = '#cfc';
*/
body{
	text-align:center;
	background:#333;
	font-family:$fonts;
}
h1 {
	font-size: $H1_size;
	margin:1em auto;
	text-align:left;
	position:relative;
	width:40em;
	background:$color2;
	color: $color3;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hereshowi.com/css/use-variables-in-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Wordpress Permissions on MediaTemple DV Server&#8230;</title>
		<link>http://hereshowi.com/wordpress/fix-wordpress-permissions-on-mediatemple-dv-server</link>
		<comments>http://hereshowi.com/wordpress/fix-wordpress-permissions-on-mediatemple-dv-server#comments</comments>
		<pubDate>Tue, 14 Apr 2009 07:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dv]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[mediatemple]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[psacln]]></category>

		<guid isPermaLink="false">http://hereshowi.com/?p=9</guid>
		<description><![CDATA[Heres a simple way to fix the permissions across all sites on a MediaTemple DV Server&#8230;
First, To stop wordpress from asking you for FTP information on plugins, add the following code at the beginning of your wp-config.php file.

 define('FTP_BASE', '/httpdocs/');
define('FTP_CONTENT_DIR', '/httpdocs/wp-content/');
define('FTP_PLUGIN_DIR ', '/httpdocs/wp-content/plugins/');
define('FTP_USER', '&#60;FTP_Username&#62;');
define('FTP_PASS', '&#60;FTP_Password&#62;');
define('FTP_HOST', 'ftp.example.com:21');

If you dont want to add this, you can install ...]]></description>
			<content:encoded><![CDATA[<p>Heres a simple way to fix the permissions across all sites on a MediaTemple DV Server&#8230;</p>
<p>First, To stop wordpress from asking you for FTP information on plugins, add the following code at the beginning of your wp-config.php file.</p>
<pre class="brush: php;">
 define('FTP_BASE', '/httpdocs/');
define('FTP_CONTENT_DIR', '/httpdocs/wp-content/');
define('FTP_PLUGIN_DIR ', '/httpdocs/wp-content/plugins/');
define('FTP_USER', '&lt;FTP_Username&gt;');
define('FTP_PASS', '&lt;FTP_Password&gt;');
define('FTP_HOST', 'ftp.example.com:21');
</pre>
<p>If you dont want to add this, you can install <a href="http://yoast.com/wp-content/uploads/2009/02/fix-plugin-update.zip">Fix Plugin Update</a>. However, using this method will set the permissions of apache:apache on any plugin you install or upgrade, so you wont be able to edit your plugins from FTP without changing the owner/group.</p>
<p></br></br></br></p>
<p>Next, to solve the permissions issues on .htaccess and uploads, were going to add the ‘apache’ user to the ‘psacln’ group by editing ‘/etc/group’ with your favorite text editor. Most advanced users use vi but I used nano.</p>
<pre class="brush: bash; toolbar: false;">
nano /etc/group
</pre>
<p>Change:</p>
<pre class="brush: plain; toolbar: false;">
psacln:x:2524:
</pre>
<p>to:</p>
<pre class="brush: plain; toolbar: false;">
psacln:x:2524:apache
</pre>
<p>For my server I also added psaftp,psaadm:</p>
<pre class="brush: plain; toolbar: false;">
psacln:x:2524:apache,psaftp,psaadm
</pre>
<p>Now, for any file/folder you want writable by wordpress, just make it writable by the group.</p>
<pre class="brush: bash;">
cd httpdocs
chmod g+w .htaccess
chmod -R g+w wp-content/uploads
</pre>
<p>Thats It!</p>
]]></content:encoded>
			<wfw:commentRss>http://hereshowi.com/wordpress/fix-wordpress-permissions-on-mediatemple-dv-server/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
