<?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>Schadenfreude &#187; site5</title>
	<atom:link href="http://www.ralree.com/tag/site5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Implementing Mozilla&#8217;s Content Security Policy</title>
		<link>http://www.ralree.com/2009/06/30/implementing-mozillas-content-security-policy/</link>
		<comments>http://www.ralree.com/2009/06/30/implementing-mozillas-content-security-policy/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 14:00:38 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.ralree.com/?p=22601</guid>
		<description><![CDATA[I recently discovered this page, which describes Mozilla&#8217;s solution for prevention of XSS (Cross-Site Scripting) available as a Firefox Extension.  Here&#8217;s the HTTP response from my site:
hank@tardis:~$ wget -S http://www.ralree.com
--2009-06-30 09:52:13--  http://www.ralree.com/
Resolving www.ralree.com... 74.54.115.108
Connecting to www.ralree.com&#124;74.54.115.108&#124;:80... connected.
HTTP request sent, awaiting response...
 HTTP/1.1 200 OK
 Date: Tue, 30 Jun 2009 13:49:54 GMT
 Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently discovered <a href="http://people.mozilla.org/~bsterne/content-security-policy/index.html">this page</a>, which describes Mozilla&#8217;s solution for prevention of XSS (Cross-Site Scripting) available as a Firefox Extension.  Here&#8217;s the HTTP response from my site:</p>
<pre>hank@tardis:~$ wget -S http://www.ralree.com
--2009-06-30 09:52:13--  http://www.ralree.com/
Resolving www.ralree.com... 74.54.115.108
Connecting to www.ralree.com|74.54.115.108|:80... connected.
HTTP request sent, awaiting response...
 HTTP/1.1 200 OK
 Date: Tue, 30 Jun 2009 13:49:54 GMT
 Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a Phusion_Passenger/2.1.3
   mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
 X-Powered-By: PHP/5.2.8
 X-Pingback: http://www.ralree.com/newblog/xmlrpc.php
 Last-Modified: Tue, 30 Jun 2009 13:49:21 GMT
 <span style="color: #ff0000;">X-Content-Security-Policy: allow self; img-src *; object-src *.ralree.com
  *.ralree.info; script-src *.ralree.com *.ralree.info pagead2.googlesyndication.com
  friendfeed.com; style-src *.ralree.com *.ralree.info</span>
 Content-Length: 57457
 Keep-Alive: timeout=5, max=100
 Connection: Keep-Alive
 Content-Type: text/html; charset=UTF-8</pre>
<p>As you can see, my content security policy is sent as an HTTP header on all HTTP responses from my site.  I basically stole an example from <a href="http://people.mozilla.org/~bsterne/content-security-policy/details.html#examples">this page</a>.  I&#8217;ve attached it in the .htaccess file in my site&#8217;s root, before everything else in there, like so:</p>
<pre>&lt;IfModule mod_headers.c&gt;
Header set X-Content-Security-Policy "allow self; img-src *; object-src *.ralree.com *.ralree.info; script-src *.ralree.com *.ralree.info pagead2.googlesyndication.com friendfeed.com; style-src *.ralree.com *.ralree.info"
&lt;/IfModule&gt;</pre>
<p>I highly recommend everyone with commenting activated on their blog enable this, since XSS is a serious pain.  This seems to work very well on Site5, where mod_headers was simply enabled out of the box.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2009/06/30/implementing-mozillas-content-security-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site5 1.5TB/15TB Plan for $3.50/mo!</title>
		<link>http://www.ralree.com/2008/03/22/site5-1-5tb-15tb-plan-for-3-50-mo/</link>
		<comments>http://www.ralree.com/2008/03/22/site5-1-5tb-15tb-plan-for-3-50-mo/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 17:12:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/03/22/site5-1-5tb-15tb-plan-for-3-50-mo</guid>
		<description><![CDATA[OMG &#8211; this plan is ridiculously good.  I personally use Site5&#8217;s $5 deal, and I am completely and utterly happy with it.  It&#8217;s fast, never down, allows SSH access, has easy to install applications, and Ruby on Rails works perfectly (this blog is using Rails).  If you are in the market for [...]]]></description>
			<content:encoded><![CDATA[<p>OMG &#8211; this plan is ridiculously good.  I personally use Site5&#8217;s $5 deal, and I am completely and utterly happy with it.  It&#8217;s fast, never down, allows SSH access, has easy to install applications, and Ruby on Rails works perfectly (this blog is using Rails).  If you are in the market for web hosting, and even if you currently have a host that charges over $3.50 per month, you should seriously consider switching to Site5 for this deal.</p>
<p><a href="http://www.site5.com/in.php?id=28350-16"><img src="http://ralree.com/assets/2008/3/22/juggernautnew_medium.png" alt="The Deal Detauls"/></a></p>
<p>They might put you on a nice new server for this deal, but this is what I was put on over a year ago:</p>
<ul>
<li>Quad processor Xeon 5150 2.00GHz, 4MB cache per processor</li>
<li>4GB RAM and 8GB of swap</li>
<li>load average: 3.54, 4.64, 3.90</li>
</ul>
<p><a href="http://royal.pingdom.com/?p=263">Pingdom</a> has analyzed Site5 and some other hosting companies recently.  Here is a graph of its growth compared to other hosts:</p>
<p><img src="http://ralree.com/assets/2008/3/22/2332487351_ff11f35dc9_o.png" alt=""/></p>
<p>As you can see, Site5 is a very slowly growing company that offers a great quaiity of service for a wonderful price.  </p>
<p>Also, their domains are only $8.88/year, which isn&#8217;t too bad really.  You can find $6 other places, but it&#8217;s pretty tough and those places can be shady&#8230;  The plan also comes with unlimited subdomains, which is a feature I&#8217;ve really enjoyed (I have over 20).  They take very little time to set up.  I currently have 5 domains names hosted on my plan with Site5, 3 of which I registered through them.  I&#8217;ve done <a href="http://ralree.com/2007/9/2/site5-s-5-dollar-hosting-deal-gets-better-again">speed testing</a> in the past.</p>
<p>The best part is there is no risk, and I know that sounds like bull, but I&#8217;m telling the truth.  You just cancel within 60 days, and they refund your money.  If you want any kind of shared hosting, these are the guys to get it from.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/03/22/site5-1-5tb-15tb-plan-for-3-50-mo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site5 New Year&#8217;s Special!</title>
		<link>http://www.ralree.com/2008/01/01/site5-new-year-s-special/</link>
		<comments>http://www.ralree.com/2008/01/01/site5-new-year-s-special/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 04:58:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/01/01/site5-new-year-s-special</guid>
		<description><![CDATA[Site5 does it again
$5 = 750GB Space, 7.5TB per month transfer

This is unbeatable &#8211; some of the best hosting ever
I use it for this site.  If you need hosting, look no further.
]]></description>
			<content:encoded><![CDATA[<h1>Site5 does it again</h1>
<h2>$5 = 750GB Space, 7.5TB per month transfer</h2>
<p><a href="http://www.site5.com/in.php?id=28350-15"><img src="http://ralree.com/assets/2008/1/1/08main_medium.png" alt=""/></a></p>
<h2>This is unbeatable &#8211; some of the best hosting ever</h2>
<p>I use it for this site.  If you need hosting, look no further.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/01/01/site5-new-year-s-special/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosting for the Holidays</title>
		<link>http://www.ralree.com/2007/12/01/hosting-for-the-holidays/</link>
		<comments>http://www.ralree.com/2007/12/01/hosting-for-the-holidays/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 04:56:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[christmas]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/12/01/hosting-for-the-holidays</guid>
		<description><![CDATA[If you can&#8217;t figure out what to get that geek in your life this Christmas, consider a Hosting account with Site5.  For just $7.95 per month, you can get them the best hosting package on the market.  This package is the same one this site currently uses, and I have been extremely happy [...]]]></description>
			<content:encoded><![CDATA[<p>If you can&#8217;t figure out what to get that geek in your life this Christmas, consider a <a href="http://www.site5.com/in.php?id=28350-15">Hosting account with Site5</a>.  For just $7.95 per month, you can get them the best hosting package on the market.  This package is the same one this site currently uses, and I have been extremely happy with it.  You can host your own blog or wiki using great free software like Wordpress, Mephisto, Movable Type, Mediawiki, and much more.  Get them their own domain name (like ralree.com) for just a few dollars more per year.</p>
<p><a href="http://www.site5.com/in.php?id=28350-15"><img alt="Banner,468x60px" border="0" src="http://www.site5.com/creative/2db/banner1.gif" /></a></p>
<p>For more technical information, read some of my other posts on Site5 hosting:</p>
<p><a href="http://ralree.com/2007/10/20/site5-promo-code-for-october">Site5 promo code for October</a></p>
<p><a href="http://ralree.com/2007/10/7/site5-s-limited-time-750gb-7-5tb-offer">Site5&#8217;s Limited-Time 750GB/7.5TB offer!</a></p>
<p><a href="http://ralree.com/2007/9/2/site5-s-5-dollar-hosting-deal-gets-better-again">Site5&#8217;s 5 dollar hosting deal gets better again</a></p>
<p><a href="http://ralree.com/2007/5/16/site5-doubles-5-deal">Site5 Doubles $5 Deal!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/12/01/hosting-for-the-holidays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site5&#8217;s Limited-Time 750GB/7.5TB offer!</title>
		<link>http://www.ralree.com/2007/10/07/site5-s-limited-time-750gb-7-5tb-offer/</link>
		<comments>http://www.ralree.com/2007/10/07/site5-s-limited-time-750gb-7-5tb-offer/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 15:47:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/site5-s-limited-time-750gb-7-5tb-offer</guid>
		<description><![CDATA[
The Site5 deal just got better.  Join now!
Site5 has been great hosting.  The site you&#8217;re browsing now uses it.  I bought this deal when it was 55GB of storage, 5TB of bandwidth, and 55 domain pointers.  Now it&#8217;s 750GB, 7.5TB, and Unlimited domain pointers.  It&#8217;s great Linux-based hosting that is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570"><img src="http://ralree.info/assets/2007/10/7/endall_1.png" alt=""/></a></p>
<h2>The Site5 deal just got better.  <a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570">Join now!</a></h2>
<p>Site5 has been great hosting.  The site you&#8217;re browsing now uses it.  I bought this deal when it was 55GB of storage, 5TB of bandwidth, and 55 domain pointers.  Now it&#8217;s <strong>750GB, 7.5TB, and Unlimited domain pointers</strong>.  It&#8217;s great Linux-based hosting that is Ruby and Rails friendly.  They have support for every PHP application out there, as well as a <a href="http://forums.site5.com/index.php">great forum</a> and <a href="http://wiki.site5.com/Main_Page">wiki</a> that can help you with just about any issue you have.  </p>
<p>Here are some other posts I&#8217;ve made about it:</p>
<p><a href="http://ralree.info/2007/9/2/site5-s-5-dollar-hosting-deal-gets-better-again">This one</a> is from when they tripled their deal about a month ago.  There is a bandwidth test in there that shows me getting <strong>1.86 MEGABYTES</strong> per second transfer from them.  They are <strong>not</strong> a slow host.</p>
<p><a href="http://ralree.info/2007/5/16/site5-doubles-5-deal">This one</a> is from when they doubled the deal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/10/07/site5-s-limited-time-750gb-7-5tb-offer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site5&#8217;s 5 dollar hosting deal gets better again</title>
		<link>http://www.ralree.com/2007/09/02/site5-s-5-dollar-hosting-deal-gets-better-again/</link>
		<comments>http://www.ralree.com/2007/09/02/site5-s-5-dollar-hosting-deal-gets-better-again/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 05:02:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/site5-s-5-dollar-hosting-deal-gets-better-again</guid>
		<description><![CDATA[
OK &#8211; I&#8217;m usually pretty critical in general, but this is the best hosting I&#8217;ve ever found, and it&#8217;s 3 times better than when I bought it, and it&#8217;s still the same price!  So, you should click the image above and go sign up.  These guys give you great support &#8211; I&#8217;ve contacted [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570"><img src="http://ralree.info/assets/2007/9/2/fivedollar-X3-blue.png" alt="5 Dollar Deal X3!"/></a></p>
<p>OK &#8211; I&#8217;m usually pretty critical in general, but this is the best hosting I&#8217;ve ever found, and it&#8217;s 3 times better than when I bought it, and it&#8217;s <strong>still the same price!</strong>  So, you should click the image above and go sign up.  These guys give you great support &#8211; I&#8217;ve contacted them numerous times and always had my problem solved within just a few minutes.  I&#8217;ve noticed my site down once, and as soon as I emailed them, it was back up again.  This blog is running Mephisto, a Ruby on Rails application, and it&#8217;s FAST!  I barely ever see the kind of quick response from websites like I see from mine.</p>
<h2>Features</h2>
<ul>
<li>Full Ruby on Rails support.  They have updated gems for you to use, but also allow you to keep your own gem repository in your home directory.</li>
<li>Ready-to-go web applications with one-click installs</li>
<li>Awesome tech support</li>
<li><strong>Very</strong> extensive wiki and forum where you can find out how to do <strong><em>anything</strong></em> you want with your account</li>
<li><strong>165GB of storage!</strong></li>
<li><strong>5TB of bandwidth per month</strong> &#8211; which is great for transferring large files.  I&#8217;ve never had a problem with the transfer speed, either.</li>
<li><strong>165 domain pointers</strong> &#8211; This allows me to host all my domains with them.  They have a great system for buying domains that I&#8217;ve used quite a bit too.  </li>
<li>Shell access</li>
<li>Free setup!</li>
<li>60-day money back guarantee &#8211; If you don&#8217;t like it, you get all your bones back.  How cool is that?</li>
</ul>
<h2>Benchmark</h2>
<p>I have 16Mbit internet at home, and I decided just now to test the bandwidth of my site.  Here are the results:</p>
<pre><code>
hank@rofl:/tmp$ wget -O /dev/null http://ralree.info/videos/grad.mp4
--00:50:57--  http://ralree.info/videos/grad.mp4
           =&gt; `/dev/null'
Resolving ralree.info... 70.47.124.108
Connecting to ralree.info|70.47.124.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 63,744,460 (61M) [audio/mp4]

100%[====================================&gt;] 63,744,460     1.92M/s    ETA 00:00

00:51:30 (1.86 MB/s) - `/dev/null' saved [63744460/63744460]
</code></pre>
<h2>Yes, folks, thats <strong><em>1.86 MEGABYTES</strong></em> per second.</h2>
<h3>My Maximum at 16Mbit is <strong>2 Megabytes/second</strong>, meaning this completely maxed out my connection.</h3>
<p></p>
<p>I used to be a Dreamhost customer, and it sucked.  It sucked really bad.  I&#8217;m so glad I switched.  Compare the features to any other plan you can find for $5/month.  This is as good as it gets.</p>
<p><center><span style="font-size: 50px;"><a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570"><strong>Sign up now!</strong></a></span></center><br />
<br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/09/02/site5-s-5-dollar-hosting-deal-gets-better-again/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Site5 Doubles $5 Deal!</title>
		<link>http://www.ralree.com/2007/05/16/site5-doubles-5-deal/</link>
		<comments>http://www.ralree.com/2007/05/16/site5-doubles-5-deal/#comments</comments>
		<pubDate>Wed, 16 May 2007 05:44:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/site5-doubles-5-deal</guid>
		<description><![CDATA[I noticed today that Site5 has doubled their $5 deal!  Now you get the following for only $5/month:
110 GB Storage
5 TB of bandwidth allowance per month
110 Domain Pointers
Free Setup
Ruby on Rails Friendly
I am currently using this plan for this blog, and am extremely happy with it after coming over from Dreamhost.
Sign up now!
]]></description>
			<content:encoded><![CDATA[<p>I noticed today that <a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570">Site5</a> has doubled their $5 deal!  Now you get the following for only $5/month:</p>
<h1>110 GB Storage</h1>
<h1>5 TB of bandwidth allowance per month</h1>
<h1>110 Domain Pointers</h1>
<h1>Free Setup</h1>
<h1>Ruby on Rails Friendly</h1>
<p>I am currently using this plan for this blog, and am <em>extremely happy</em> with it after coming over from Dreamhost.</p>
<h1><a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570">Sign up now!</a></h1>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/05/16/site5-doubles-5-deal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How I converted Typo to Mephisto</title>
		<link>http://www.ralree.com/2007/02/22/how-i-converted-typo-to-mephisto/</link>
		<comments>http://www.ralree.com/2007/02/22/how-i-converted-typo-to-mephisto/#comments</comments>
		<pubDate>Thu, 22 Feb 2007 04:13:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[mephisto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/how-i-converted-typo-to-mephisto</guid>
		<description><![CDATA[I had some difficulty along the way, and I have some fixes for those of you who are having trouble converting.  I found that Mephisto is actually very friendly to the ./script/console hacker.  Also, though it took a while to actually get a response, I ended up getting direct help from technoweenie in [...]]]></description>
			<content:encoded><![CDATA[<p>I had some difficulty along the way, and I have some fixes for those of you who are having trouble converting.  I found that Mephisto is actually very friendly to the <strong>./script/console</strong> hacker.  Also, though it took a while to actually get a response, I ended up getting direct help from technoweenie in <strong>#mephisto@irc.freenode.net</strong>, which was a big help.  So, here&#8217;s the situation:</p>
<p>My current host is <a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570">Site5</a>.  I have gems set up in my home directory, and I have rails 1.2.2 installed as a gem.  I tried using it, but just ended up freezing edge rails because I ran into some trouble.  I created a db, subdomain, and .htaccess entry for the site.  Then, I actually checked it out:</p>
<pre><code>
svn co http://svn.techno-weenie.net/projects/mephisto/trunk mephisto
</code></pre>
<p>Then, I created <strong>config/database.yml</strong>.  Here&#8217;s a template you can use:</p>
<pre><code>
development:
  adapter: mysql
  database: mephisto
  username: meph
  password: &lt;new-pw&gt;
  host: localhost

production:
  adapter: mysql
  database: mephisto
  username: meph
  password: &lt;new-pw&gt;
  host: localhost

typo:
  adapter: mysql
  database: typo
  username: typo
  password: &lt;typo-pass&gt;
  host: localhost
</code></pre>
<p>Next, I installed tzinfo as a gem to my home directory, and froze it in the project root:</p>
<pre><code>
gem install tzinfo
cd mephisto
rake gems:freeze GEM=tzinfo
</code></pre>
<p>Finally, it&#8217;s time to fill the database with stuff:</p>
<pre><code>
rake db:bootstrap
</code></pre>
<p>Now that that&#8217;s done, for CGI and FastCGI to work, we need a <strong>.htaccess</strong> file in <strong>public</strong>:</p>
<pre><code>
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

RewriteEngine On

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

ErrorDocument 500 "&lt;h2&gt;Application error&lt;/h2&gt;Rails application failed to start properly"
</code></pre>
<p>Notice I left it as <strong>dispatch.cgi</strong>.  It&#8217;s up to you, but while I was still converting I left it like this since it didn&#8217;t want to run with FastCGI.</p>
<p>Let&#8217;s make sure log and public can be read and, if need be, written to:</p>
<pre><code>
chmod -R 755 public log
</code></pre>
<p>And finally, the moment we&#8217;ve all be waiting for:</p>
<pre><code>
script/runner "Mephisto.convert_from :typo" -e production
</code></pre>
<p>This connects to the Typo database and runs a converter script in Mephisto&#8217;s <strong>vendor/plugins/</strong> directory.  It takes all the attributes Typo articles and users and comments had and converts them to Mephisto form.  Rockin&#8217;.</p>
<h2>Old Typo Woes</h2>
<p>I did this with Typo trunk <strong>v1246</strong> with migration level <strong>55.</strong>  If you are at a similar Typo state, then you may definitely want to continue reading as the next steps I took will be necessary for you as well.</p>
<p>First of all, I saw that my Markdown with SmartyPants formatting was not being interpreted at all!  This was, of course, easy to fix because Mephisto is awesome:</p>
<pre><code>
./script/console
# Don't do this unless you ALWAYS used Markdown with SmartyPants
# Refer to vendor/plugins/filtered_column if you use Textile or straight up Markdown
# It's just a different a.filter= line below.
Article.find(:all).each {|a|a.filter='smartypants_filter';a.save};1
</code></pre>
<p>What this does is find all the Mephisto articles and set their filter to Markdown with SmartyPants.  The 1 on the end just prevents it from spewing every article to the console.</p>
<p>Now here&#8217;s where I ran into some trouble.  Typo has changed its Tag storage technique at least twice, and the way my tags happened to be stored is as follows:</p>
<pre><code>
articles
 - id
articles_tags
 - article_id
 - tag_id
tags
 - id
 - name
</code></pre>
<p>Someone else had posted a small loop to cure another type of Typo tagging scheme, where there was just one tag grouping string per article.  I ran that.  <strong>Don&#8217;t do that.</strong></p>
<p>I noticed that each one of my articles only had one tag, which made me a sad monkey.  To remedy this, I wrote a small loop to find all the tags of a Typo article and set them up for the same article in Mephisto.  Now, since the id&#8217;s on articles and tags are not kept constant in the conversion scripts, this was a bit tricky.  Luckily, I never have duplicate permalinks (I guess that means I&#8217;m creative&#8230;).</p>
<p>First, you have to enable the Typo converter in the console.  I did this by adding these 2 lines to the bottom of <strong>vendor/plugins/mephisto_converters/init.rb</strong>:</p>
<pre><code>
require "converters/base"
require "converters/typo"
</code></pre>
<p>Then, it&#8217;s simply a case of the following:</p>
<pre><code>
./script/console
# Remove All Mephisto Taggings as to not make dupes
Tagging.find(:all).each{|t|t.destroy}
# Loop through every Typo article
#    Find the associated Mephisto article
#    Loop through all the Typo Tags
#      Append each tag to the Mephisto tag array
Typo::Article.find(:all).each do |ta|
  a = Article.find_by_permalink(ta.permalink)
  ta.tags(true).collect{|b|b.name}.each do |tag|
    a.tags(true) &lt;&lt; Tag.find_by_name(tag)
  end
end
</code></pre>
<p>Don&#8217;t forget to remove the <strong>requires</strong> you put into <strong>init.rb</strong> above.  Once you do that, you should have a nicely running Typo -> Mephisto conversion.  <strong><em>Congratulations!</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/02/22/how-i-converted-typo-to-mephisto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.402 seconds -->
