<?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>mindeater.com - web builder</title>
	<atom:link href="http://www.mindeater.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindeater.com</link>
	<description>on the web since 1998</description>
	<lastBuildDate>Wed, 13 Jul 2011 02:43:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Filter WordPress menu</title>
		<link>http://www.mindeater.com/filter-wordpress-menu/</link>
		<comments>http://www.mindeater.com/filter-wordpress-menu/#comments</comments>
		<pubDate>Thu, 05 May 2011 11:03:13 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=113</guid>
		<description><![CDATA[// Filter wp_nav_menu() to add additional links and other output function new_nav_menu_items($items) { // gets passed a string of &#60;li&#62;&#8217;s $homelink = &#8216;&#60;li&#62;&#60;a href=&#8221;&#8216; . home_url( &#8216;/&#8217; ) . &#8216;&#8221;&#62;&#8217; . __(&#8216;Home&#8217;) . &#8216;&#60;/a&#62;&#60;/li&#62;&#8217;; $items = $homelink . $items; return &#8230; <a href="http://www.mindeater.com/filter-wordpress-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>// Filter wp_nav_menu() to add additional links and other output<br />
function new_nav_menu_items($items) {<br />
// gets passed a string of &lt;li&gt;&#8217;s<br />
$homelink = &#8216;&lt;li&gt;&lt;a href=&#8221;&#8216; . home_url( &#8216;/&#8217; ) . &#8216;&#8221;&gt;&#8217; . __(&#8216;Home&#8217;) . &#8216;&lt;/a&gt;&lt;/li&gt;&#8217;;<br />
$items = $homelink . $items;<br />
return $items;<br />
}</p>
<p>add_filter( &#8216;wp_nav_menu_items&#8217;, &#8216;new_nav_menu_items&#8217; );</p>
<p>Another Example</p>
<p>function new_nav_menu_items($items) {<br />
$cat_menu_list = wp_list_categories( &#8216;echo=0&amp;title_li=&amp;child_of=124&#8242; );<br />
$items = $items . $cat_menu_list;<br />
return $items;<br />
}<br />
add_filter( &#8216;wp_nav_menu_items&#8217;, &#8216;new_nav_menu_items&#8217; );</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/filter-wordpress-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MYSql copy tables</title>
		<link>http://www.mindeater.com/mysql-copy-tables/</link>
		<comments>http://www.mindeater.com/mysql-copy-tables/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 02:51:14 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=108</guid>
		<description><![CDATA[create table tablename_new like tablename; -&#62; this will copy the structure&#8230; insert into tablename_new select * from tablename; -&#62; this would copy all the data]]></description>
			<content:encoded><![CDATA[<p>create table tablename_new like tablename; -&gt; this will copy the structure&#8230;</p>
<p>insert into tablename_new select * from tablename; -&gt; this would copy all the data</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/mysql-copy-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and replace in MYSQL</title>
		<link>http://www.mindeater.com/find-and-replace-in-mysql/</link>
		<comments>http://www.mindeater.com/find-and-replace-in-mysql/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 01:36:03 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[data manipulation]]></category>
		<category><![CDATA[data transfer]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=104</guid>
		<description><![CDATA[Updating Data in MYSql update [table_name] set [field_name] = replace([field_name],&#8217;[string_to_find]&#8216;,&#8217;[string_to_replace]&#8216;); For moving wordpress installs to repair the guid UPDATE wp_posts SET guid = replace( guid, 'web/', '' ) ;]]></description>
			<content:encoded><![CDATA[<p>Updating Data in MYSql</p>
<p>update [table_name] set [field_name] = replace([field_name],&#8217;[string_to_find]&#8216;,&#8217;[string_to_replace]&#8216;);</p>
<p>For moving wordpress installs to repair the guid</p>
<p><code>UPDATE wp_posts SET guid = replace( guid,  'web/',  ''  ) ;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/find-and-replace-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Super Loop</title>
		<link>http://www.mindeater.com/wordpress-super-loop/</link>
		<comments>http://www.mindeater.com/wordpress-super-loop/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 01:09:26 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=100</guid>
		<description><![CDATA[// if everything is in place and ready, let&#8217;s start the loop &#60;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&#62; // to display &#8216;n&#8217; number of posts, we need to execute the loop &#8216;n&#8217; number &#8230; <a href="http://www.mindeater.com/wordpress-super-loop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>// if everything is in place and ready, let&#8217;s start the loop</p>
<p>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;</p>
<p>// to display &#8216;n&#8217; number of posts, we need to execute the loop &#8216;n&#8217; number of times<br />
// so we define a numerical variable called &#8216;$count&#8217; and set its value to zero<br />
// with each iteration of the loop, the value of &#8216;$count&#8217; will increase by one<br />
// after the value of &#8216;$count&#8217; reaches the specified number, the loop will stop<br />
// *USER: change the &#8216;n&#8217; to the number of posts that you would like to display</p>
<p>&lt;?php static $count = 0;<br />
if ($count == &#8220;n&#8221;) { break; }<br />
else { ?&gt;</p>
<p>// to exclude all posts from categories &#8216;x&#8217;, &#8216;y&#8217;, &#8216;z&#8217; unless in single-post view<br />
// create an &#8216;if&#8217; statement for each of the three specified categories as follows:<br />
// if the post is in category &#8216;x&#8217; and this is not a single-post view, exit the loop<br />
// if the post is in category &#8216;y&#8217; and this is not a single-post view, exit the loop<br />
// if the post is in category &#8216;z&#8217; and this is not a single-post view, exit the loop<br />
// if no conditions are met, continue the loop; otherwise restart loop with next post<br />
// if none of these conditions are met, run the loop; otherwise restart at the next post<br />
// *USER: change the &#8216;x&#8217;, &#8216;y&#8217;, &#8216;z&#8217; to the numbers of the categories you want to exclude</p>
<p>&lt;?php if ( in_category(&#8216;x&#8217;) &amp;&amp; !is_single() ) continue; ?&gt;<br />
&lt;?php if ( in_category(&#8216;y&#8217;) &amp;&amp; !is_single() ) continue; ?&gt;<br />
&lt;?php if ( in_category(&#8216;z&#8217;) &amp;&amp; !is_single() ) continue; ?&gt;</p>
<p>// use this to display posts from category &#8216;x&#8217; in single and archive views only<br />
&lt;?php if ( in_category(&#8216;x&#8217;) &amp;&amp; !is_single() &amp;&amp; !is_archive() ) continue; ?&gt;</p>
<p>// use this to display posts from category &#8216;x&#8217; in single and category views only<br />
&lt;?php if ( in_category(&#8216;x&#8217;) &amp;&amp; !is_single() &amp;&amp; !is_category() ) continue; ?&gt;</p>
<p>// use this to display posts from category &#8216;x&#8217; in single, category, and archive views only<br />
&lt;?php if ( in_category(&#8216;x&#8217;) &amp;&amp; !is_single() &amp;&amp; !is_category() &amp;&amp; !is_archive() ) continue; ?&gt;</p>
<p>// now, if all conditions have been satisfied, the post is displayed<br />
// for CSS styling and layout purposes, we wrap the post content in a div<br />
// we then display the entire post content via the &#8216;the_content()&#8217; function<br />
// *USER: change to &#8216;&lt;?php the_excerpt(); ?&gt;&#8217; to display post excerpts instead</p>
<p>&lt;div&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;/div&gt;</p>
<p>// here, we continue with the limiting of the number of displayed posts<br />
// each iteration of the loop increases the value of &#8216;$count&#8217; by one<br />
// the final two lines complete the loop and close the if statement</p>
<p>&lt;?php $count++; } ?&gt;<br />
&lt;?php endwhile; ?&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>from http://perishablepress.com/press/2007/08/06/super-loop-exclude-specific-categories-and-display-any-number-of-posts/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/wordpress-super-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Virtuemart</title>
		<link>http://www.mindeater.com/moving-virtuemart/</link>
		<comments>http://www.mindeater.com/moving-virtuemart/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 01:19:02 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[virtuemart]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=98</guid>
		<description><![CDATA[When moving virtuemart from a build directory Edit administrator\components\com_virtuemart\virtuemart.cfg.php define( &#8216;URL&#8217;, str_replace(&#8220;/administrator/&#8221;,&#8221;/&#8221;,JURI::base())); define( &#8216;SECUREURL&#8217;, str_replace(&#8220;/administrator/&#8221;,&#8221;/&#8221;,JURI::base()));]]></description>
			<content:encoded><![CDATA[<p>When moving virtuemart from a build directory</p>
<p>Edit administrator\components\com_virtuemart\virtuemart.cfg.php<br />
define( &#8216;URL&#8217;, str_replace(&#8220;/administrator/&#8221;,&#8221;/&#8221;,JURI::base()));<br />
define( &#8216;SECUREURL&#8217;, str_replace(&#8220;/administrator/&#8221;,&#8221;/&#8221;,JURI::base()));</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/moving-virtuemart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chmod Web directories from the command line</title>
		<link>http://www.mindeater.com/chmod-web-directories-from-the-command-line/</link>
		<comments>http://www.mindeater.com/chmod-web-directories-from-the-command-line/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 05:18:10 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=91</guid>
		<description><![CDATA[find /path/to/base/dir -type d -print0 &#124; xargs -0 chmod 755 find /path/to/base/dir -type f -print0 &#124; xargs -0 chmod 755 these guys rock http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively]]></description>
			<content:encoded><![CDATA[<p>find /path/to/base/dir -type d -print0 | xargs -0 chmod 755<br />
find /path/to/base/dir -type f -print0 | xargs -0 chmod 755</p>
<p>these guys rock</p>
<p>http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/chmod-web-directories-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Background Image to the bottom of a page</title>
		<link>http://www.mindeater.com/background-image-to-the-bottom-of-a-page/</link>
		<comments>http://www.mindeater.com/background-image-to-the-bottom-of-a-page/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 02:44:07 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css layout]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=87</guid>
		<description><![CDATA[html { min-height: 100%; height: auto; } body { background:url(/images/bg-image.jpg) right bottom no-repeat; }]]></description>
			<content:encoded><![CDATA[<p>html {<br />
min-height: 100%;<br />
height: auto;<br />
}</p>
<p>body {<br />
background:url(/images/bg-image.jpg) right bottom no-repeat;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/background-image-to-the-bottom-of-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsers View for Sites</title>
		<link>http://www.mindeater.com/browsers-view-for-sites/</link>
		<comments>http://www.mindeater.com/browsers-view-for-sites/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 01:44:13 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[css layout]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=84</guid>
		<description><![CDATA[http://browsersize.googlelabs.com/]]></description>
			<content:encoded><![CDATA[<p>http://browsersize.googlelabs.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/browsers-view-for-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css pipe seperated menu</title>
		<link>http://www.mindeater.com/css-pipe-seperated-menu/</link>
		<comments>http://www.mindeater.com/css-pipe-seperated-menu/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 23:05:17 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css layout]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[pipe]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=81</guid>
		<description><![CDATA[&#60;ul id=&#8221;footer-navigation&#8221;&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Top&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Valid XHTML&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Valid CSS&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Get Firefox&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; #footer-navigation { margin-left: 0; padding-left: 0; list-style-type: none; } #footer-navigation li { display: inline; } #footer-navigation li:after { content: &#8221; &#124; &#8220;; } #footer-navigation li:last-child:after { &#8230; <a href="http://www.mindeater.com/css-pipe-seperated-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&lt;ul id=&#8221;footer-navigation&#8221;&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Top&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Valid XHTML&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Valid CSS&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Get Firefox&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>#footer-navigation {<br />
margin-left: 0;<br />
padding-left: 0;<br />
list-style-type: none;<br />
}</p>
<p>#footer-navigation li {<br />
display: inline;<br />
}</p>
<p>#footer-navigation li:after {<br />
content: &#8221; | &#8220;;<br />
}</p>
<p>#footer-navigation li:last-child:after {<br />
content: &#8220;&#8221;;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/css-pipe-seperated-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML over POST with php</title>
		<link>http://www.mindeater.com/xml-over-post-with-php/</link>
		<comments>http://www.mindeater.com/xml-over-post-with-php/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 10:25:07 +0000</pubDate>
		<dc:creator>mindeater</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[POST]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.mindeater.com/?p=73</guid>
		<description><![CDATA[$ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_URL, &#8220;http://websiteURL&#8221;); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, &#8220;XML=&#8221;.$xmlcontent.&#8221;&#38;password=&#8221;.$password.&#8221;&#38;etc=etc&#8221;); $content=curl_exec($ch);]]></description>
			<content:encoded><![CDATA[<p>$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_HEADER, 0);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);<br />
curl_setopt($ch, CURLOPT_URL, &#8220;http://websiteURL&#8221;);<br />
curl_setopt($ch, CURLOPT_POST, 1);<br />
curl_setopt($ch, CURLOPT_POSTFIELDS, &#8220;XML=&#8221;.$xmlcontent.&#8221;&amp;password=&#8221;.$password.&#8221;&amp;etc=etc&#8221;);<br />
$content=curl_exec($ch);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindeater.com/xml-over-post-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

