<?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>Coding and Server Syntax Examples</title>
	<atom:link href="http://code.curiouscatnetwork.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.curiouscatnetwork.com</link>
	<description>Simple cut and paste code and cli syntax</description>
	<lastBuildDate>Wed, 09 May 2012 04:54:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Very Simple Process to Claim Authorship of Pages with Google</title>
		<link>http://code.curiouscatnetwork.com/2012/05/09/very-simple-process-to-claim-authorship-of-pages-with-google/</link>
		<comments>http://code.curiouscatnetwork.com/2012/05/09/very-simple-process-to-claim-authorship-of-pages-with-google/#comments</comments>
		<pubDate>Wed, 09 May 2012 02:39:16 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=127</guid>
		<description><![CDATA[There are lots of posts explaining how to claim authorship of pages with Google. I find them very complex, by and large. I was able to use this simple process. Include by author text with a link to the author &#8230; <a href="http://code.curiouscatnetwork.com/2012/05/09/very-simple-process-to-claim-authorship-of-pages-with-google/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are lots of posts explaining how to claim authorship of pages with Google.  I find them very complex, by and large.</p>
<p>I was able to use this simple process.</p>
<ol>
<li>Include by author text with a <strong>link to the author page using rel=&#8221;author&#8221;</strong>  In WordPress you can just edit the theme page to have the author link include the rel=&#8221;author&#8221; tag.</li>
<pre class="brush: xml; title: ; notranslate">&lt;a rel=&quot;author&quot; href=&quot;http://johnhunter.com/&quot;&gt;John Hunter&lt;/a&gt;</pre>
<p>For WordPress blog with multiple authors here is the syntax to use (this pulls the author url from their profile.  The author can update their web site url when logged into the blog.</p>
<pre class="brush: php; title: ; notranslate">&lt;a rel=&quot;author&quot; href=&quot;&lt;?php the_author_meta('user_url'); ?&gt;&quot;&gt;&lt;?php the_author() ?&gt;&lt;/a&gt;</pre>
<li>Then <strong>connect author page to Google+ profile</strong>.  You can make this most any page (Google may exclude some free sites).  Most people use the about page or author pages on the same blog they are trying to claim authorship of.  But all that really matters is linking this page to your Google+ profile (obviously substitute your url), I have many sites with my material so <a href="http://johnhunter.com/">my home page</a> is what I used, I just added the following to that page.
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;https://plus.google.com/u/0/123&quot; rel=&quot;me&quot;&gt;Google+&lt;/a&gt;</pre>
</li>
<li>Then <strong>link your Google+ profile to the authorship page</strong> you want to use.  You can add it under Other profiles or contributor to.  This is the trickest part do to very bad UI of Google+ you have to go into edit mode and then click on the areas (there is no indication they are editable until you click &#8211; extremely bad UI, Google seems to very much like this hard to understand hidden UI elements lately, hopefully that will end soon).  Likely Google will fix this at some point so this part will no longer matter.  All you do is at the page you want, for me </li>
</ol>
<p>To test out whether things are working you can go into Google webmaster tools to the <a href="http://www.google.com/webmasters/tools/richsnippets">rich snippets</a> area.  Test out a url you claimed authorship of and you should see something like:</p>
<div id="attachment_128" class="wp-caption aligncenter" style="width: 636px"><a href="http://management.curiouscatblog.net/2012/03/06/keys-to-the-effective-use-of-the-pdsa-improvement-cycle/"><img src="http://code.curiouscatnetwork.com/files/2012/05/Screen-shot-2012-05-09-at-10.07.32-AM.png" alt="search result with photo" title="enhance search result example" width="626" height="84" class="size-full wp-image-128" /></a><p class="wp-caption-text">Google can now use your Google+ profile to include a photo (from your Google+ profile) next to search results</p></div>
<p>With those simple changes over 1,000 posts on my blog were updated.  It took far longer to search for and read a bunch more complex ways of accomplishing this than actually doing this once I was able to see what little had to be done.  Writing this post took way longer.  Now I just have to do step one for other sites and blogs and they will all be updated to show my authorship (for those I already had on my Google+ profile, if they were not listed there yet they have to be added).</p>
<p>There are many benefits to establishing authorship through Google.</p>
<ul>
<li>Google can include your photo next to search results.  Especially until people get tired of this, it will likely increase clicks on your links.  And even after people are tired of it, if they notice your photo (and respect you) that may well increase clicks.</li>
<li>Builds your personal brand</li>
<li>Google can use authorship as an additional factor in calculating the worth of a page for a specific search.</li>
<li>Google can get a feel for what areas you are an expert in.  First by just analyzing what your write about.  But more importantly they will be able to use this extra layer of information to determine AuthorRank (similar idea to PageRank) by seeing links to your authored material.</li>
<li>Hopefully this can allow for RSS feeds by author (no matter where the content is published) eventually, if it doesn&#8217;t already.</li>
</ul>
<p>Knowing authorship will allow Google to improve search result quality, so I can understand why they are pushing for it.  It is a bit annoying how they keep pushing Google+ but this implementation seems tolerable.  Some posts make it sound like you have to make your &#8220;authorship page&#8221; the Google+ profile, but really you can decide the authorship home page (for me johnhunter.com). They do pull your profile photo from Google+ to use, which is less than ideal.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/05/09/very-simple-process-to-claim-authorship-of-pages-with-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MySQL on Snow Leopard</title>
		<link>http://code.curiouscatnetwork.com/2012/04/29/installing-mysql-on-snow-leopard/</link>
		<comments>http://code.curiouscatnetwork.com/2012/04/29/installing-mysql-on-snow-leopard/#comments</comments>
		<pubDate>Sun, 29 Apr 2012 02:04:57 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=119</guid>
		<description><![CDATA[I had all sorts of trouble installing MySQL on Snow Leopard. I never had any trouble installing mysql on Ubuntu. Installing it normally on Snow Leopard would give me a success screen saying it had been installed but it seemed &#8230; <a href="http://code.curiouscatnetwork.com/2012/04/29/installing-mysql-on-snow-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had all sorts of trouble installing MySQL on Snow Leopard.  I never had any trouble installing mysql on Ubuntu.</p>
<p>Installing it normally on Snow Leopard would give me a success screen saying it had been installed but it seemed to have completely failed to install.</p>
<p>I then installed and used <a href="http://www.macports.org/">macports</a> and that was the start of the solution.  If I was trying to install MySQL on Lion or Mountain Lion I think I would try macports first.</p>
<p>You need to get xcode (to use macports) if you didn&#8217;t have it already you are going to have some challenges because I couldn&#8217;t find it in the Apple developer center (they removed it since I guess you shouldn&#8217;t be still using Snow Leopard in their opinion).  Luckily I already had xcode installed.</p>
<p>To install mysql using macports</p>
<pre class="brush: bash; title: ; notranslate">sudo port install mysql5</pre>
<p>Then you will <a href="http://engineering.curiouscatblog.net/2008/03/07/programmers/">avoid a bunch of frustrating errors (though you may enjoy that process)</a> if you realize you need the server msql also.</p>
<pre class="brush: bash; title: ; notranslate">sudo port install mysql5-server</pre>
<p>Pay attention to the messaging when you do that and you will see, suggestion to</p>
<pre class="brush: bash; title: ; notranslate">sudo -u _mysql mysql_install_db5</pre>
<p>See the instructions that show for lots more on how to deal with that failing, as it did for me.  Or celebrate if it worked.</p>
<p>Go ahead and add mysql to the default path open your .bash_profile or .profile</p>
<pre class="brush: bash; title: ; notranslate">vim ~/.profile</pre>
<p>Then I tried   sudo /opt/local/share/mysql5/mysql/mysql.server start  but that failed.  At which point I found that macports has its own version</p>
<pre class="brush: bash; title: ; notranslate">sudo port load mysql5</pre>
<p>Which worked.</p>
<p>To login to MySQL you can use (root is created with no password on install).</p>
<pre class="brush: bash; title: ; notranslate">mysql5 -uroot -p</pre>
<p>Go ahead and change the root password as the first thing you do.</p>
<p>Related: <a href="http://paulsturgess.co.uk/articles/65-getting-ruby-on-rails-mysql-setup-on-a-mac-osx-leopard-clean-install">Getting Ruby on Rails &#038; mysql setup on a Mac OSX Leopard clean install</a> &#8211; <a href="http://stackoverflow.com/questions/1081231/macports-doesnt-install-org-macports-mysql5-plist-with-mysql5-server">MacPorts doesn&#8217;t install org.macports.mysql5.plist with mysql5 +server</a> &#8211; <a href="http://code.curiouscatnetwork.com/2010/11/15/mysql-performance-tuning-tips/">MySQL Performance Tuning Tips</a> &#8211; <a href="http://code.curiouscatnetwork.com/2010/09/04/mysql-cli-syntax/">MySQL cli Syntax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/04/29/installing-mysql-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set the Web Server to Use the Domain Without www</title>
		<link>http://code.curiouscatnetwork.com/2012/04/26/set-the-web-server-to-use-the-domain-without-www/</link>
		<comments>http://code.curiouscatnetwork.com/2012/04/26/set-the-web-server-to-use-the-domain-without-www/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 06:09:02 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[cut and paste code]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=76</guid>
		<description><![CDATA[The main reason to bother with this is to help search rankings. Sub-domains (for example, www.curiouscat.com and curiouscat.com) are treated as separate websites even if you have entirely the same content displayed for both. If 20% of the links to &#8230; <a href="http://code.curiouscatnetwork.com/2012/04/26/set-the-web-server-to-use-the-domain-without-www/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The main reason to bother with this is to help search rankings.  Sub-domains (for example, www.curiouscat.com and curiouscat.com) are treated as separate websites even if you have entirely the same content displayed for both.  If 20% of the links to your site use the www and 80% don&#8217;t then your sites ranking by search engines is less than it would be if it was just treated as one site.</p>
<p>You can set the domain to use in Google webmaster tools.  But that doesn&#8217;t do anything for all the other search engines.  Also if you have both, some reports some will keep statistics separately for the non-www and www domain (Google Adsense does this, for example).</p>
<h3>Using virtual hosts file (sites-enabled)</h3>
<p>For Apache you can place the following code in your virtual hosts file (in the sites-available directory under Apache).  </p>
<p>Replace curiouscat.com with your domain name.</p>
<pre class="brush: bash; title: ; notranslate">&lt;Directory /srv/www/curiouscat.com/public_html/&gt;
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www.curiouscat.com$ [NC]
  RewriteRule ^(.*)$ http://curiouscat.com/$1 [R=301,L]
&lt;/Directory&gt;</pre>
<p>Then you need to capture the update and reload Apache.</p>
<p>Disable the site (in order to enable it with the updates)</p>
<pre class="brush: bash; title: ; notranslate">sudo a2dissite curiouscat.com</pre>
<p>Enable the site</p>
<pre class="brush: bash; title: ; notranslate">sudo a2enssite curiouscat.com</pre>
<p>Reload Apache</p>
<pre class="brush: bash; title: ; notranslate">sudo /etc/init.d/apache2 reload</pre>
<p>If when you try to reload you get this error message:</p>
<p>&#8220;Invalid command &#8216;RewriteEngine&#8217;, perhaps misspelled or defined by a module not included in the server configuration&#8221; then enable modrewrite on apache:</p>
<pre class="brush: bash; title: ; notranslate">sudo a2enmod rewrite</pre>
<p>You should then be told to restart apache</p>
<pre class="brush: bash; title: ; notranslate">udo /etc/init.d/apache2 restart</pre>
<h3>Using .htaccess</h3>
<p>Or you can include the following in your .htaccess file</p>
<pre class="brush: bash; title: ; notranslate">  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www.curiouscat.com$ [NC]
  RewriteRule ^(.*)$ http://curiouscat.com/$1 [R=301,L]</pre>
<p>Related: <a href="http://code.curiouscatnetwork.com/2011/05/05/checklist-setting-up-a-new-domain-on-vps/">Checklist for Setting Up a New Domain on VPS</a> &#8211; <a href="http://code.curiouscatnetwork.com/2010/10/23/phusion-passenger-tips-and-troubleshooting-ideas/">Phusion Passenger Tips and Troubleshooting Ideas</a></p>
<p>If you wanted to force www to be used instead just flip the regular expression around:</p>
<pre class="brush: bash; title: ; notranslate">&lt;Directory /srv/www/curiouscat.com/public_html/&gt;
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^curiouscat.com$ [NC]
  RewriteRule ^(.*)$ http://www.curiouscat.com/$1 [R=301,L]
&lt;/Directory&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/04/26/set-the-web-server-to-use-the-domain-without-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing the Command Prompt for Terminal in Ubuntu</title>
		<link>http://code.curiouscatnetwork.com/2012/04/21/customizing-the-command-prompt-for-terminal-in-ubuntu/</link>
		<comments>http://code.curiouscatnetwork.com/2012/04/21/customizing-the-command-prompt-for-terminal-in-ubuntu/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 09:17:33 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=110</guid>
		<description><![CDATA[To customize the look of the command prompt for Terminal in Ubuntu you can insert code into .bashrc (if you are having trouble with updates in .bashrc not working you may want to see if it is set in .profile &#8230; <a href="http://code.curiouscatnetwork.com/2012/04/21/customizing-the-command-prompt-for-terminal-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To customize the look of the command prompt for Terminal in Ubuntu you can insert code into .bashrc (if you are having trouble with updates in .bashrc not working you may want to see if it is set in .profile &#8211; thus overriding your .bashrc).  Those files are found in your user directory  /home/[username]</p>
<pre class="brush: bash; title: ; notranslate">echo $PS1</pre>
<p>will show you the current settings.  You can make a change directly from the command line but it will only work for that session.  For example:</p>
<pre class="brush: bash; title: ; notranslate">PS1=&quot;\d\w $ &quot;</pre>
<p>This is the code I have in my .bashrc related to the terminal prompt</p>
<pre class="brush: bash; title: ; notranslate"># set variable identifying the chroot you work in (used in the prompt below)
if [ -z &quot;$debian_chroot&quot; ] &amp;&amp; [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we &quot;want&quot; color)
case &quot;$TERM&quot; in
    xterm-color) color_prompt=yes;;
esac

if [ -n &quot;$force_color_prompt&quot; ]; then
    if [ -x /usr/bin/tput ] &amp;&amp; tput setaf 1 &gt;&amp;/dev/null; then
        color_prompt=yes
    else
        color_prompt=
    fi
fi

if [ &quot;$color_prompt&quot; = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[&#92;&#48;33[01;32m\]\u@\h\[&#92;&#48;33[00m\]:\[&#92;&#48;33[01;34m\]\w\[&#92;&#48;33[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/04/21/customizing-the-command-prompt-for-terminal-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing Email Using The Ubuntu CLI</title>
		<link>http://code.curiouscatnetwork.com/2012/04/17/testing-email-using-the-ubuntu-cli/</link>
		<comments>http://code.curiouscatnetwork.com/2012/04/17/testing-email-using-the-ubuntu-cli/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 00:22:55 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=108</guid>
		<description><![CDATA[For a Virtual Private Server (VPS) or any other web or other server you should have alerts sent by email for various things. So for example if you automate security updates for an Ubuntu web server you want to be &#8230; <a href="http://code.curiouscatnetwork.com/2012/04/17/testing-email-using-the-ubuntu-cli/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For a Virtual Private Server (VPS) or any other web or other server you should have alerts sent by email for various things.  So for example if you <a href="http://code.curiouscatnetwork.com/2012/04/16/keeping-your-hosted-ubuntu-web-server-software-up-to-date/">automate security updates for an Ubuntu web server</a> you want to be notified if there is some issue with the automatic update.</p>
<p>In order to check and be sure email is setup and working on the sever there is simple command line code to use:</p>
<pre class="brush: bash; title: ; notranslate">mail -s Test</pre>
<p>you then get a prompt to enter</p>
<p>To:   [enter the email and press return]</p>
<p>Cc: [press return]</p>
<p>then a blank where you can type in any text you want in the body of the message.</p>
<p>Then you send the message with by pressing CTRL-d</p>
<pre class="brush: bash; title: ; notranslate">CTRL-d</pre>
<p>If you don&#8217;t receive the email then you can troubleshoot what is going wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/04/17/testing-email-using-the-ubuntu-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping Your Hosted Ubuntu Web Server Software Up to Date</title>
		<link>http://code.curiouscatnetwork.com/2012/04/16/keeping-your-hosted-ubuntu-web-server-software-up-to-date/</link>
		<comments>http://code.curiouscatnetwork.com/2012/04/16/keeping-your-hosted-ubuntu-web-server-software-up-to-date/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 02:40:33 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=104</guid>
		<description><![CDATA[To setup automatic security updates follow the instructions from Ubuntu. A full update of all packages can be done using the follow, remember this may create some issues is one update makes something else you have no longer work properly&#8230; &#8230; <a href="http://code.curiouscatnetwork.com/2012/04/16/keeping-your-hosted-ubuntu-web-server-software-up-to-date/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To setup <a href="https://help.ubuntu.com/community/AutomaticSecurityUpdates">automatic security updates</a> follow the instructions from Ubuntu.</p>
<p>A full update of all packages can be done using the follow, remember this may create some issues is one update makes something else you have no longer work properly&#8230;</p>
<p>First update the local package index (to find what needs to be upgraded).</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get update</pre>
<p>Then upgrade the software.</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get upgrade</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/04/16/keeping-your-hosted-ubuntu-web-server-software-up-to-date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding a Key to Your Server for SSH Login</title>
		<link>http://code.curiouscatnetwork.com/2012/04/05/adding-a-key-to-your-server-for-ssh-login/</link>
		<comments>http://code.curiouscatnetwork.com/2012/04/05/adding-a-key-to-your-server-for-ssh-login/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 12:40:17 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=97</guid>
		<description><![CDATA[Using Ubuntu An authentication key allows your server to authenticate the computer you are using has the right key and should be granted access. This lets you use the key instead of a username and password when using ssh. If &#8230; <a href="http://code.curiouscatnetwork.com/2012/04/05/adding-a-key-to-your-server-for-ssh-login/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Using Ubuntu</b></p>
<p>An authentication key allows your server to authenticate the computer you are using has the right key and should be granted access.  This lets you use the key instead of a username and password when using ssh.</p>
<p>If you don&#8217;t already have a key on your local machine (look for a file named id_rsa.pub in your user home directory under the .ssh folder </p>
<pre class="brush: bash; title: ; notranslate">cd /.ssh</pre>
<p>will get you to the right directory) then you need to generate the key pair.  On your desktop machine use: </p>
<pre class="brush: bash; title: ; notranslate">ssh-keygen</pre>
<p>Next you copy the file to your server.  scp ~/.ssh/id_dsa.pub [user]@[server]:.ssh/</p>
<pre class="brush: bash; title: ; notranslate">scp ~/.ssh/id_dsa.pub username@servername:.ssh/</pre>
<p>Rename the file on the server to authorized_keys2</p>
<pre class="brush: bash; title: ; notranslate">mv id_rsa.pub authorized_keys2</pre>
<p>The key is for to authenticate your computer.  But on the ssh login Ubuntu will look in the user folder.  So if you also had user2 access to the server and tried to ssh into the server you would not be authenticated because it would look in user2/.ssh for the authorized key file and not find it.  You can put the same key in any user folder on your server to have that user also be automatically authenticated.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/04/05/adding-a-key-to-your-server-for-ssh-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Multiple Blog Network on One Server &#8211; Overcoming Conflicts</title>
		<link>http://code.curiouscatnetwork.com/2012/03/05/wordpress-multiple-blog-network-on-one-server-overcoming-conflicts/</link>
		<comments>http://code.curiouscatnetwork.com/2012/03/05/wordpress-multiple-blog-network-on-one-server-overcoming-conflicts/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 13:27:36 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=83</guid>
		<description><![CDATA[I ran into a problem when I added a second WordPress blog network to my server. I had the Curious Cat Blog Network up and running for quite some time with sub-domains for each individual blog in the network. WordPress &#8230; <a href="http://code.curiouscatnetwork.com/2012/03/05/wordpress-multiple-blog-network-on-one-server-overcoming-conflicts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I ran into a problem when I added a second WordPress blog network to my server.  I had the <a href="http://curiouscatnetwork.com/">Curious Cat Blog Network</a> up and running for quite some time with sub-domains for each individual blog in the network.  WordPress automatically dealt with routing the sub-domains and having urls work.  It really is very nice how easy it is to create a new blog and have everything up and running &#8211; just add it in WordPress, no need to touch the server directly.  Blog networks are a new feature in WordPress 3.0 (I think) which are very nice.  I would imagine it builds on effort with Wordpres MU but it is just part of regular WordPress now.</p>
<p>When I added the second blog network however the new faux-sub-domain that should be used <a href="http://affordable-funeral.moneyite.com/">affordable-funeral.moneyite.com</a> would instead be redirected to curiouscatnetwork.com and since no such domain existed on curiouscatnetwork.com it gave the standard error message WordPress generates for the case where a sub-domain url is not recognized.</p>
<p>The main domain for the new site was working: <a href="http://moneyite.com/">moneyite.com</a>.  I tried searching around for some solutions to this problem online but couldn&#8217;t find any.  I am not sure if multiple wordpress blog networks should work on the same server without any special needs.  But it wouldn&#8217;t for me.  I found a solution that did work so I will share what worked for me.</p>
<p>I created <a href="http://code.curiouscatnetwork.com/2011/05/05/checklist-setting-up-a-new-domain-on-vps/">new sites-available records for each of the sub-domains and once you reload Apache</a> everything seems to work.  I am not sure their isn&#8217;t some problem with doing things this way that I haven&#8217;t uncovered yet.  But it is working for me so I wanted to share this in case it can help anyone else trying to use multiple wordpress blog networks on one server.</p>
<p>Related: <a href="http://code.curiouscatnetwork.com/2010/09/06/checklist-moving-wordpress-site-to-a-new-host/">Checklist for moving an existing WordPress site to a new web host</a> &#8211; <a href="http://code.curiouscatnetwork.com/2010/12/11/wordpress-error-image-could-not-be-processed-please-go-back-and-try-again/">WordPress error: Image could not be processed. Please go back and try again</a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2012/03/05/wordpress-multiple-blog-network-on-one-server-overcoming-conflicts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning the Screen of Your Mac Air or Mac Powerbook</title>
		<link>http://code.curiouscatnetwork.com/2011/12/21/cleaning-the-screen-of-your-mac-air-or-mac-powerbook/</link>
		<comments>http://code.curiouscatnetwork.com/2011/12/21/cleaning-the-screen-of-your-mac-air-or-mac-powerbook/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 09:32:30 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=78</guid>
		<description><![CDATA[My Mac Air screen can get dirty and I am a bit worried about cleaning it due to the warnings that using various cleaning products of methods can damage your screen. From what I have been able to determine the &#8230; <a href="http://code.curiouscatnetwork.com/2011/12/21/cleaning-the-screen-of-your-mac-air-or-mac-powerbook/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My Mac Air screen can get dirty and I am a bit worried about cleaning it due to the warnings that using various cleaning products of methods can damage your screen.  From what I have been able to determine the best strategy is just using water and a <a href="http://www.amazon.com/exec/obidos/ISBN=076855710104/worldwidedemingw">microfiber fabric</a>.  I use one microfiber which I get wet with water and clean the screen.  Then I dry it off with another microfiber.  Using chemicals can damage the screen.  And using even paper towels can result in scratches on the screen.</p>
<p>I have had very good success with just water and the microfiber cloth.  I imagine <a href="http://engineering.curiouscatblog.net/2010/04/16/friday-fun-cats-and-kids-with-ipads/">water and microfiber cloth is the best way to clean an iPad</a> (when kids and cats play with it) but I haven&#8217;t tried it myself.</p>
<p>From Apple&#8217;s web site:</p>
<p>The materials used to make Apple products vary; in some cases each product may have specific cleaning requirements, which may vary by the part you are cleaning. Here are some tips that apply to all products to get you started:</p>
<ul>
<li>Use only a soft, lint-free cloth. Abrasive cloths, towels, paper towels, and similar items may cause damage to the item.</li>
<li>Disconnect your Apple product from any external power sources.</li>
<li>Disconnect any external devices and other cabling from the product.</li>
<li>Keep liquids away from the product.</li>
<li>Don’t get moisture into any openings, and don&#8217;t use aerosol sprays, solvents, or abrasives.</li>
<li>Do not spray cleaners directly onto the item.</li>
</ul>
<p>Disconnect the display from power, from its connection to a computer, and from any external devices. Next use the cloth that came with your display or another soft, dry cloth to wipe dust from the screen. If additional cleaning of the display panel or case is required use a soft, slightly damp, lint-free cloth. Avoid getting moisture in openings. Don’t use window cleaners, household cleaners, aerosol sprays, solvents, alcohol, ammonia, or abrasives to clean the display.</p>
<p>Warning: Don&#8217;t clean the screen with a cleaner containing alcohol or acetone. Use a cleaner intended for use with a screen or display. Never spray cleaner directly on the screen. It may drip inside the display and cause damage.</p>
<p>When cleaning the outside of your Mac mini, first shut down your Mac mini and unplug the power cord along with other connected devices. Then use a damp, soft, lint-free cloth to clean the computer’s exterior. Avoid getting moisture in any openings. Do not spray liquid directly on the computer. Do not use aerosol sprays, solvents, or abrasives that might damage the finish.</p>
<p>Related: <a href="http://gadgets.curiouscatnetwork.com/">Curious Cat Gadgets Blog</a> &#8211; <a href="http://gadgets.curiouscatnetwork.com/2011/09/05/the-newest-kindle-dx-with-new-e-ink-technology/">Amazon Kindle DX (the big one)</a> &#8211; <a href="http://gadgets.curiouscatnetwork.com/2011/09/28/amazons-android-tablet-kindle-fire-is-very-attractively-priced/">Amazon’s Android Tablet, Kindle Fire, is Very Attractively Priced</a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2011/12/21/cleaning-the-screen-of-your-mac-air-or-mac-powerbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checklist: Setting Up a New Domain on VPS</title>
		<link>http://code.curiouscatnetwork.com/2011/05/05/checklist-setting-up-a-new-domain-on-vps/</link>
		<comments>http://code.curiouscatnetwork.com/2011/05/05/checklist-setting-up-a-new-domain-on-vps/#comments</comments>
		<pubDate>Thu, 05 May 2011 12:46:01 +0000</pubDate>
		<dc:creator>curiouscat</dc:creator>
				<category><![CDATA[checklist]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://code.curiouscatnetwork.com/?p=99</guid>
		<description><![CDATA[Two great hosts for Ruby on Rails are Slicehost and Linode. With these hosts you fully manager your virtual private server, installing the operating system, modifying apache (on Ning&#8230;), etc.. I use Ubuntu as the operating system and Apache as &#8230; <a href="http://code.curiouscatnetwork.com/2011/05/05/checklist-setting-up-a-new-domain-on-vps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Two great hosts for Ruby on Rails are Slicehost and <a href="http://www.linode.com/">Linode</a>.  With these hosts you fully manager your virtual private server, installing the operating system, modifying apache (on Ning&#8230;), etc..  I use Ubuntu as the operating system and Apache as the web server.</p>
<p>If you are moving a domain from elsewhere it can be wise to reduce the TTL time to say 5 minutes a few days before you make the switch.  This is make the change propagate across the internet more quickly.</p>
<ol>
<li> And DNS entry on your profile (login to your, for example, Linode account)</li>
<li> Add a new file for /etc/apache2/sites-available/your_site_name.com </li>
<pre class="brush: bash; title: ; notranslate">sudo nano /etc/apache2/sites-available/example.com</pre>
<p>The file would look something like this: with your ip in place of 8.8.8.8</li>
<p><textarea cols="54" rows="7"><VirtualHost 8.8.8.8:80><br />
  ServerName example.com<br />
  ServerAlias www.example.com<br />
  ServerAdmin  your_gmail+example.com@gmail.com<br />
  DocumentRoot /u/apps/example.com<br />
  ErrorLog /u/apps/example.com/error.log<br />
</VirtualHost></textarea></p>
<p>ServerAdmin is the address Apache will use to send error messages to.  Using gmail and the <b>+</b> option lets you use one gmail account and just use rules to filter all your sites.</p>
<li> create the directories needed on your server</li>
<li> enable the site (for apache)
<pre class="brush: bash; title: ; notranslate">sudo a2ensite example.com</pre>
</li>
<p>You should see the file you created /etc/apache2/sites-available/example.com now also at /etc/apache2/sites-enabled/example.com</p>
<li> Test the site out to make sure the setup is working properly.  Create a index.html page and just verify the page is displayed.  <a href="http://curiouscatblog.com/news/2010/10/15/using-the-host-file-in-ubuntu/">Change your local hosts file to point to your server IP address</a> for the new domain you created.  If not, take steps to get this to work, before continuing with the rest of the checklist.</li>
<li> copy over the site &#8211; if you are moving the site from elsewhere</li>
<li> remember to move the database over, if the site relies on a database</li>
<li> restart apache
<pre class="brush: bash; title: ; notranslate">sudo /etc/init.d/apache2 restart</pre>
</li>
</ul>
<p>You can test the site out, before updating the DNS, by changing your local hosts file to point to your server IP address for the new domain you created.</p>
<p>Resources: <a href="http://library.linode.com/web-servers/apache/installation/ubuntu-10.04-lucid">Install the Apache 2 Web Server on Ubuntu 10.04 LTS (Lucid)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.curiouscatnetwork.com/2011/05/05/checklist-setting-up-a-new-domain-on-vps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

