<?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>Slash Dot Dash &#187; Typo</title> <atom:link href="http://www.slashdotdash.net/category/typo/feed/" rel="self" type="application/rss+xml" /><link>http://www.slashdotdash.net</link> <description>Rolling on Rails</description> <lastBuildDate>Tue, 28 Sep 2010 15:49:37 +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>Migrating this blog from Typo to WordPress</title><link>http://www.slashdotdash.net/2009/01/02/migrating-this-blog-from-typo-to-wordpress/</link> <comments>http://www.slashdotdash.net/2009/01/02/migrating-this-blog-from-typo-to-wordpress/#comments</comments> <pubDate>Fri, 02 Jan 2009 14:50:39 +0000</pubDate> <dc:creator>Ben</dc:creator> <category><![CDATA[Blog]]></category> <category><![CDATA[Typo]]></category> <guid
isPermaLink="false">http://www.slashdotdash.net/?p=1171</guid> <description><![CDATA[After recently installing Phusion Passenger under Apache 2 to host my Rails apps I wanted to give Ruby Enterprise Edition a go. However as I was running an old version of Typo (version 4.x) which didn&#8217;t seem to like running under REE I decided to migrate to WordPress; upgrading Typo would be just as much [...]]]></description> <content:encoded><![CDATA[<p>After recently installing <a
href="http://www.modrails.com/">Phusion Passenger</a> under Apache 2 to host my Rails apps I wanted to give <a
href="http://www.rubyenterpriseedition.com/">Ruby Enterprise Edition</a> a go. However as I was running an old version of Typo (version 4.x) which didn&#8217;t seem to like running under REE I decided to migrate to WordPress; upgrading Typo would be just as much work. </p><p>There&#8217;s already a <a
href="http://snippets.dzone.com/posts/show/4326">Ruby upgrade script </a>to create a WordPress compatible WXR file for importing which includes all posts, comments and categories from Typo. I needed to <a
href="http://pastie.org/350548">modify the Ruby script</a> slightly to get working with the version of Typo I had installed.</p><h2>Exporting Typo blog content to WordPress WXR</h2><p>The Ruby script needs to be placed into the script directory of the Typo application root and then run under the production Rails environment:</p><pre><code>RAILS_ENV=production ruby script/wp_export.rb &gt; blog.wxr</code></pre><h2>Installing WordPress</h2><p>Simply <a
href="http://codex.wordpress.org/Installing_WordPress">follow the basic WordPress install guide</a> after <a
href="http://wordpress.org/latest.zip">downloading the latest software</a> (version 2.7 at the time of writing). The pre-requisites for WordPress are PHP 4.3 or newer and MySQL 4.0 or greater.</p><h2>Import existing content</h2><p>Once WordPress is installed, log in to the admin section and select <strong>Import</strong> from the <strong>Tools</strong> menu. Choose the <strong>WordPress</strong> option from the list  (<em>Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file</em>). You&#8217;ll need to select the blog.wxr file created by the Ruby script and then click <strong>Upload file and import</strong>. That should recreate your existing Typo blog content (and comments), you may be asked to map the Typo user(s) to WordPress accounts.</p><p>With the content installed, the final change required is to setup the <strong>Permalink Settings</strong> from <strong>Settings</strong> &gt; <strong>Permalinks</strong>.  Select the <strong>Day and name</strong> option (giving URLs such as http://www.slashdotdash.net/2009/01/02/sample-post/).  You may need to manually edit or create the .htaccess file to get the rewrite rules working.</p><pre><code># .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule></code></pre><p>With this working you should find that the standard Typo permalinks (such as http://www.slashdotdash.net/articles/2009/01/02/sample-post/) will now redirect to the corresponding WordPress blog entry, ensuring no broken links when switching from Typo to WordPress.</p><h2>Known Issues</h2><p>You&#8217;ll probably have a problem with RSS feed readers creating duplicates of the last 10 posts (depending upon your &#8220;Syndication feeds show the most recent&#8221; settings) since the post URLs and GUIDs will have changed.</p> ]]></content:encoded> <wfw:commentRss>http://www.slashdotdash.net/2009/01/02/migrating-this-blog-from-typo-to-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Typo and Rails / MySql problems</title><link>http://www.slashdotdash.net/2006/11/09/typo-and-rails-mysql-problems/</link> <comments>http://www.slashdotdash.net/2006/11/09/typo-and-rails-mysql-problems/#comments</comments> <pubDate>Thu, 09 Nov 2006 08:18:44 +0000</pubDate> <dc:creator>Ben</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Ruby on Rails]]></category> <category><![CDATA[Typo]]></category> <guid
isPermaLink="false"></guid> <description><![CDATA[The blog is back up again (also moved to the root of the domain) &#8211; and hopefully running quicker now thanks to a quick change of hosting setup (Apache and fcgi to pound proxying to mongrel_cluster). One quick note to anyone experiencing the following problem with Typo running on Debian Linux: Lost connection to MySQL [...]]]></description> <content:encoded><![CDATA[<p>The blog is back up again (also moved to the root of the domain) &#8211; and hopefully running quicker now thanks to a quick change of hosting setup (Apache and fcgi to pound proxying to mongrel_cluster).</p><p>One quick note to anyone experiencing the following problem with Typo running on Debian Linux:</p><pre>Lost connection to MySQL server during query</pre><p>The recommended &#8216;fix&#8217; is to <code>gem install mysql</code>. Doing that on a Debian machine will result in numerous errors unless you also do the following:</p><pre>
$ apt-get install libmysqlclient10-dev
$ gem install mysql
</pre><p>(Thanks to the owner of <a
href="http://spew.whalespine.org/?p=110">this blog</a> for the pointer, found via google).</p> ]]></content:encoded> <wfw:commentRss>http://www.slashdotdash.net/2006/11/09/typo-and-rails-mysql-problems/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Typo 4 Upgrade</title><link>http://www.slashdotdash.net/2006/08/03/typo-4-upgrade/</link> <comments>http://www.slashdotdash.net/2006/08/03/typo-4-upgrade/#comments</comments> <pubDate>Thu, 03 Aug 2006 23:13:32 +0000</pubDate> <dc:creator>Ben</dc:creator> <category><![CDATA[Blog]]></category> <category><![CDATA[Typo]]></category> <guid
isPermaLink="false"></guid> <description><![CDATA[Finally got round to upgrading to Typo 4 (you may have noticed the theme changed again). Initially I had a problem with the new Typo gem (installing on a Debian server). This was caused by the sqlite3 gem dependency and was resolved quite simply. Building native extensions. This could take a while... *** extconf.rb failed [...]]]></description> <content:encoded><![CDATA[<p>Finally got round to upgrading to <a
href="http://scottstuff.net/blog/articles/2006/07/22/typo-4-0-0">Typo 4</a> (you may have noticed the theme changed again).</p><p>Initially I had a problem with the new Typo gem (installing on a Debian server). This was caused by the sqlite3 gem dependency and was resolved quite simply.</p><pre>
Building native extensions.  This could take a while...
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
</pre><p>Requires the sqlite3 development headers, which were an <code>apt-get</code> command away.</p><pre>
apt-get install sqlite3 sqlite3-ruby libsqlite3-dev
gem install sqlite3-ruby
</pre><h3>Install Typo 4</h3><pre>
gem install typo
mysqldump &lt;typo_db_name&gt; -uusername -p &gt; backup.sql
mv /old/blog/location /old/blog_bak
typo install /your/path
</pre><p>Copy over database.yml to new location (and also .htaccess file), then update the database.</p><pre>
rake migrate
</pre><p>Restart the webserver and voila.</p> ]]></content:encoded> <wfw:commentRss>http://www.slashdotdash.net/2006/08/03/typo-4-upgrade/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Typo &#8216;Production&#8217; Page Caching Gotcha</title><link>http://www.slashdotdash.net/2006/02/15/typo-production-page-caching-gotcha/</link> <comments>http://www.slashdotdash.net/2006/02/15/typo-production-page-caching-gotcha/#comments</comments> <pubDate>Wed, 15 Feb 2006 23:52:00 +0000</pubDate> <dc:creator>Ben</dc:creator> <category><![CDATA[Ruby on Rails]]></category> <category><![CDATA[Typo]]></category> <guid
isPermaLink="false"></guid> <description><![CDATA[Here is a small gotcha and something to watch out for when you are attempting to get the Typo weblog software up and running. In Production mode the default Typo cache setup is to write out static .html files for pages, categories and archive views. This is invaluable when running a live system as Rails [...]]]></description> <content:encoded><![CDATA[<p>Here is a small <em>gotcha</em> and something to watch out for when you are attempting to get the <a
href="http://www.typosphere.org/">Typo</a> weblog software up and running.</p><p>In <strong>Production</strong> mode the default Typo cache setup is to write out static <code>.html</code> files for pages, categories and archive views.</p><p>This is invaluable when running a live system as Rails is not even invoked allowing Apache to respond to the request very efficiently, but quite annoying if you haven&#8217;t yet realised this is happening! It certainly caught me out, even when running through <code>ruby script/server -e development</code> the &#8220;old&#8221; page was being served since the <code>.html</code> file was still present.</p><pre>
ls -l public/articles/2006/02/11/another-weblog.html
-rw-r--r--  1 www-data www-data 6901 Feb 16 00:03 public/articles/2006/02/11/another-weblog.html
</pre><p>Behind the scenes Typo will deal with refreshing the cached pages for us, but this refresh will only be triggered when changes are made.</p><p><em>Hope this helps someone.</em></p> ]]></content:encoded> <wfw:commentRss>http://www.slashdotdash.net/2006/02/15/typo-production-page-caching-gotcha/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
