<?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>webhank &#187; How-To</title>
	<atom:link href="http://www.webhank.com/tag/how-to/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webhank.com</link>
	<description>my two cents - by Hank Pantier</description>
	<lastBuildDate>Wed, 04 Aug 2010 19:42:50 +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>Online Guitar Resources</title>
		<link>http://www.webhank.com/music/online-guitar-resources?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=online-guitar-resources</link>
		<comments>http://www.webhank.com/music/online-guitar-resources#comments</comments>
		<pubDate>Thu, 03 Dec 2009 21:32:12 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[guitar]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=329</guid>
		<description><![CDATA[I&#8217;ve spent a lot of time on the &#8216;net over the past month or so reading, watching, and listening to tutorials on how to play the guitar.  I though that I&#8217;d post these &#8220;How to play the guitar&#8221; links for others out there that may be searching.  Let me know what you think. Videos Marty [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent a lot of time on the &#8216;net over the past month or so reading, watching, and listening to tutorials on how to play the guitar.  I though that I&#8217;d post these &#8220;How to play the guitar&#8221; links for others out there that may be searching.  Let me know what you think.</p>
<h3>Videos</h3>
<p>Marty Schwartz from Guitarjams.com has a great channel on Youtube.  He goes over how to play songs of all levels and he updates frequently.  <a href="http://www.youtube.com/user/guitarjamzdotcom">Check him out here</a>.</p>
<p>Aaron Gallagher is almost entirely self taught (and he&#8217;s not even been playing all that long) he runs a great site called <a href="http://freeandeasyguitar.com">Free and Easy Guitar</a> that has a HUGE how to video library.  Pick a song from the drop down list, and Aaron will teach you how to play it.</p>
<p>Justin Sandercoe is a London based guitarist who runs the site <a href="http://justinguitar.com">justinguitar.com</a>.  His site differs from the others in that he has highly structured lessons that you can follow along with.  The site is donation based.  I&#8217;ve been spending a good bit of time making my way through his <a href="http://justinguitar.com/en/BC-000-BeginnersCourse.php">Basics Course</a>.</p>
<p>I also just stumbled upon a site called <a href="http://www.guitarnoise.com/">Guitar Noise</a>.  I&#8217;ve not used it too much yet, but it has many tutorials as well as guitar related news.</p>
<h3>Tabs</h3>
<p>The best site i have found for guitar tabs is hands down <a href="http://www.ultimate-guitar.com/">Ultimate Guitar</a> their index seems to be near bottomless, so much so that I feel no need to reference any other.</p>
<h3>Other Resources</h3>
<ul>
<li><a href="http://www.metronomeonline.com/">Online metronome</a></li>
<li><a href="http://www.chordbook.com/guitarscales.php">Guitar Scales</a> &amp; <a href="http://www.guitarists.net/scales/">More Scales</a></li>
<li><a href="http://www.chordbook.com/guitarchords.php">Guitar chords</a> &amp; <a href="http://www.jguitar.com/chordsearch?chordsearch=E&amp;jguitarbtn=Go">More Chords</a></li>
<li><a href="http://www.zentao.com/guitar/theory/notes.html">All about the fret board</a></li>
</ul>
<p>And just to humble everyone out there &#8211; remember kids &#8211; John Mayer plays better than you with only one hand.<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/mXpkQPTfYuQ&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mXpkQPTfYuQ&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/music/online-guitar-resources/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sys Admin Stuff</title>
		<link>http://www.webhank.com/various-ramblings/sys-admin-stuff?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sys-admin-stuff</link>
		<comments>http://www.webhank.com/various-ramblings/sys-admin-stuff#comments</comments>
		<pubDate>Wed, 28 Jan 2009 21:05:43 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/uncategorized/sys-admin-stuff</guid>
		<description><![CDATA[things i&#8217;ve used recently: tar -zxvf file.tar.gz mysql -u username -p password database_name &#60; filename.sql http://kb.mediatemple.net/questions/129/How+can+I+Backup+and+Restore+a+MySQL+database%3F]]></description>
			<content:encoded><![CDATA[<p>things i&#8217;ve used recently: tar -zxvf file.tar.gz</p>
<p>mysql -u username -p password database_name &lt; filename.sql</p>
<p>http://kb.mediatemple.net/questions/129/How+can+I+Backup+and+Restore+a+MySQL+database%3F</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/various-ramblings/sys-admin-stuff/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacBook Pro Hard Drive Replacement</title>
		<link>http://www.webhank.com/mac/macbook-pro-hard-drive-replacement?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=macbook-pro-hard-drive-replacement</link>
		<comments>http://www.webhank.com/mac/macbook-pro-hard-drive-replacement#comments</comments>
		<pubDate>Wed, 17 Sep 2008 21:39:46 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Mac/Apple]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=102</guid>
		<description><![CDATA[So I accidentally let a TV fall on my MacBook Pro last night &#8211; and not a light, modern, flat-panel TV, but a heavy ass old-school CRT TV.  When I tried to boot it after gravity played her evil trick on me, all i got was a flashing folder icon with a question mark in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webhank.com/wp-content/uploads/img_0092.jpg"><img src="http://www.webhank.com/wp-content/uploads/img_0092-150x150.jpg" alt="img 0092 150x150 MacBook Pro Hard Drive Replacement" title="img_0092" width="150" height="150" class="alignleft size-thumbnail wp-image-106" /></a>So I accidentally let a TV fall on my MacBook Pro last night &#8211; and not a light, modern, flat-panel TV, but a heavy ass old-school CRT TV.  When I tried to boot it after gravity played her evil trick on me, all i got was a flashing folder icon with a question mark in it.  I tried some tricks to get the machine to recognize the hard drive, all to no avail.  I could hear the drive clicking but not spinning, and the TV did fall on the portion of the laptop where the hard drive lies, so I decided to try my hand at replacing the hard drive.  A trip to Best Buy and I had a 320GB hard drive in hand and a quick viewing of this video&#8230;and things seem to be on track.  Ignore the awful music selection.  If you&#8217;re crunched for time, watch this video instead&#8230;<a href="http://www.youtube.com/watch?v=rhNPchwhQoc&#038;NR=1">http://www.youtube.com/watch?v=rhNPchwhQoc&#038;NR=1</a></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/I_bgDRRN0_w&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/I_bgDRRN0_w&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Tomorrow I will try and re-install the OS, but the computer recognized the drive and allowed me to partition it, so I am not overly concerned.  I anticipate that the re-install will go fairly smoothly &#8211; but I will post updates.  This new drive will give me 200GB more space so maybe once this is all over with it will end up being a good thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/mac/macbook-pro-hard-drive-replacement/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Root ID from embeded pages</title>
		<link>http://www.webhank.com/web-development/getting-root-id-from-embeded-pages?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-root-id-from-embeded-pages</link>
		<comments>http://www.webhank.com/web-development/getting-root-id-from-embeded-pages#comments</comments>
		<pubDate>Thu, 17 Apr 2008 17:20:47 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[example code]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=64</guid>
		<description><![CDATA[For quite a while now I have been using the following script to show sub navigation on WordPress Sidebars. It utilizes the built in wp_list_pages function to show parent and child relationships on a sidebar (or where ever you choose to use it for that matter). &#60;?php if($post-&#62;post_parent) $children = wp_list_pages("title_li=&#38;child_of=".$post-&#62;post_parent."&#38;echo=0"); else $children = wp_list_pages("title_li=&#38;child_of=".$post-&#62;ID."&#38;echo=0"); [...]]]></description>
			<content:encoded><![CDATA[<pre>
<pre>
<pre><a href="http://www.webhank.com/wp-content/uploads/wordpressicon-hanttula2.gif"><img class="alignright size-full wp-image-61" style="float: right;" title="wordpressicon-hanttula2" src="http://www.webhank.com/wp-content/uploads/wordpressicon-hanttula2.gif" alt="wordpressicon hanttula2 Getting Root ID from embeded pages" width="80" height="80" /></a></pre>
</pre>
</pre>
<p>For quite a while now I have been using the following script to show sub navigation on <a title="Customizing Your WordPress Sidebar" href="http://codex.wordpress.org/Customizing_Your_Sidebar" target="_blank">WordPress Sidebars</a>.  It utilizes the built in <a title="Wp List Pages link to codex" href="http://codex.wordpress.org/Template_Tags/wp_list_pages" target="_blank">wp_list_pages</a> function to show parent and child relationships on a sidebar (or where ever you choose to use it for that matter).</p>
<p><tt> </tt>&lt;?php</p>
<pre><tt>if($post-&gt;post_parent)
$children = wp_list_pages("title_li=&amp;child_of=".$post-&gt;post_parent."&amp;echo=0");
else $children = wp_list_pages("title_li=&amp;child_of=".$post-&gt;ID."&amp;echo=0");</tt> <tt>if ($children) { ?&gt;</tt> <tt> &lt;ul&gt; &lt;?php echo $children; ?&gt; &lt;/ul&gt; &lt;?php } ?&gt;</tt></pre>
<p>I like that it is simple, and that it can be re-written to show items only if they are child pages of a specific parent, ie:</p>
<pre>&lt;?php
// find out what the top level page is

global $post;
if($post-&gt;post_parent) $parentPG = $post-&gt;post_parent; // page is a child
else $parentPG = $post-&gt;ID; // page has children
?&gt;

&lt;?php

// marketing

if($parentPG==7){

// show items if the parent id is 7
}elseif($parentPG==8){
// show items if the parent id is 8
}
?&gt;</pre>
<p>This works great when you only need to make it work with parent and child pages.  Recently, however, I had the need to utilize this type of functionality on a project that required pages 3 levels deep (grandchildren?).  After a bit of Googling, and searching through the <a title="Link to the WordPress Codex" href="http://codex.wordpress.org/Main_Page" target="_blank">WordPress Codex</a> I realized that I was going to have to &#8220;roll my own&#8221; on this one.  So here you go &#8211; there are probably better ways of doing this.  If you know of one please let me know, but maybe this will help someone else searching for &#8220;wordpress list grandchildren&#8221;</p>
<pre>&lt;?php
// find out what the top level page is
global $post;
if($post-&gt;post_parent){
$parentPG = $post-&gt;post_parent; // page is a child

// check for grand children
$sql = "SELECT * FROM `".$wpdb-&gt;prefix."posts` WHERE ID=$parentPG";
$data = $wpdb-&gt;get_results($sql,ARRAY_A);

if(!empty($data[0][post_parent])) $parentPG=$data[0][post_parent];
}
else $parentPG = $post-&gt;ID; // page has children
?&gt;

&lt;?php

// marketing
if($parentPG==7){
// show stuff for parent 7
}elseif($parentPG==8){
// show stuff for parent 8
}
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/web-development/getting-root-id-from-embeded-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifications to Media Temple DV default configurations</title>
		<link>http://www.webhank.com/web-development/modifications-to-media-temple-dv-default-configurations?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=modifications-to-media-temple-dv-default-configurations</link>
		<comments>http://www.webhank.com/web-development/modifications-to-media-temple-dv-default-configurations#comments</comments>
		<pubDate>Fri, 14 Mar 2008 18:04:43 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Media Temple]]></category>

		<guid isPermaLink="false">http://www.webhank.com/web-development/modifications-to-media-temple-dv-default-configurations</guid>
		<description><![CDATA[At Invisible Window we have been hosting our client sites in addition to our own with Media Temple for quite some time. Media Temple&#8217;s service and support has been top-notch. There are a few things that we&#8217;ve had to figure out along the way and I hope that these links help someone else out there. [...]]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://www.invisiblewindow.com" title="Web development with Invisible Window" target="_blank">Invisible Window</a> we have been hosting our client sites in addition to our own with <a href="http://mediatemple.net/" title="Media Temple Hosting" target="_blank">Media Temple</a> for quite some time.  Media Temple&#8217;s service and support has been top-notch.  There are a few things that we&#8217;ve had to figure out along the way and I hope that these links help someone else out there.</p>
<ol>
<li><strong>Disable root ssh access: </strong>instructions for disabling the root user and allowing another user to assume the root users permissions. This adds a layer of security requiring an additional username and password to be entered before gaining root user privileges.<br />
<a href="http://kb.mediatemple.net/article.php?id=713" title="Media Temple Knowledge Base Article on removing root ssh access" target="_blank">Media Temple Knowledge Base Article</a></li>
<li><strong>Performance Tuning: </strong>This article summarizes ways to optimize your (dv) to run with less memory / resources, increase stability, and to ensure higher availability under heavier loads.<br />
<a href="http://kb.mediatemple.net/article.php?id=771" title="Performance tuning a Media Temple DV server" target="_blank"> Media Temple Knowledge Base Article</a></li>
<li><strong>Raise Courier-IMAP Connections: </strong>Seeing this message when accessing your email? &#8220;Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server.&#8221;By default, Plesk and the Courier-IMAP e-mail server drastically limit the number of inbound connections to prevent users from opening up too many concurrent sessions. Unfortunately, this restriction can impact legitimate users who have multiple computers connecting to the Courier-IMAP server.<br />
<a href="http://kb.mediatemple.net/article.php?id=259" title="change coruier-IMAP connections on a Media Temple Dedicated Virtual server" target="_blank"> Media Temple Knowledge Base Article</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/web-development/modifications-to-media-temple-dv-default-configurations/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

