<?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>HCoder.org &#187; upgrade</title>
	<atom:link href="http://hcoder.org/tag/upgrade/feed/" rel="self" type="application/rss+xml" />
	<link>http://hcoder.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 15 Apr 2012 21:43:44 +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>Goodbye Typo, Hello WordPress!</title>
		<link>http://hcoder.org/2010/01/24/goodbye-typo-hello-wordpress/</link>
		<comments>http://hcoder.org/2010/01/24/goodbye-typo-hello-wordpress/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 17:34:35 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[movable type]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hcoder.org/?p=266</guid>
		<description><![CDATA[As I had mentioned several times, I had been frustrated with Typo. Several bugs or misfeatures that really annoyed me, upgrades that had frustrated me, and sometimes the feeling that more or less visible things were broken from time to time in new releases. And while the upgrade problems were mostly because of the need [...]]]></description>
			<content:encoded><![CDATA[<p>As I had mentioned several times, I had <a href="http://hcoder.org/2010/01/03/typo-upgrade-2/">been</a> <a href="http://hcoder.org/2009/02/23/another-typo-upgrade/">frustrated</a> <a href="http://hcoder.org/2008/08/19/sucky-typo-update/">with</a> <a href="http://hcoder.org/2008/08/07/typo-upgrade/">Typo</a>. Several bugs or misfeatures that really annoyed me, upgrades that had frustrated me, and sometimes the feeling that more or less visible things were broken from time to time in new releases. And while the upgrade problems were mostly because of the need to upgrade Ruby gems, still it was something that was inevitable with Typo apparently, so sticking with Typo meant having to deal with Rubygems, which as you may know <a href="http://hcoder.org/2008/11/23/why-i-hate-rubygems/">I hate</a>.</p>
<p>So, after the last upgrade and the frustrations that came with it, I decided to ask around for good blogging software. The main contenders I had in mind were <a href="http://wordpress.org/">WordPress</a> and <a href="http://movabletype.org/">Movable Type</a>. Most of the people who replied talked wonders about WordPress, but I decided to try both. WordPress&#8217; installation was ridiculously easy (I&#8217;m talking about installing my own copy, not opening a blog in wordpress.com obviously) and I had a working blog pretty quickly. Also, at least the first impression of the UI is that it&#8217;s very slick and easy to use. It shows maturity. Movable Type was easy enough to install, although I did have some problems (mostly due to my own stupidity, but still). The first impression was that Movable Type was much &#8220;heavier&#8221; and maybe a bit too much for a single, personal blog. So I decided to go for WordPress, which was the one that I had been recommended by most people anyway.</p>
<p>So, the first thing I had to do was exporting the content from Typo&#8217;s HCoder so I could import into WordPress. I quickly found some <a href="http://snippets.dzone.com/posts/show/3264">script for Typo that would export in WordPress&#8217; format</a>, for easy import. It worked very well, although I did a problem with the tags: they were treated as normal categories, so I ended up with <strong>many</strong> categories and no tags (and a huge, horrible, impossible to navigate sidebar with dozens of categories). I started to look around, and I couldn&#8217;t find a spec for the <em>wxr</em> format. Maybe I was naive thinking that there would be one, but hey. In any case, eventually I figured out that I had to change the:</p>
<pre>&lt;category&gt;rants&lt;/category&gt;</pre>
<p>to</p>
<pre>&lt;category domain="tag"&gt;rants&lt;/category&gt;</pre>
<p>for the tags. The categories had to stay as they were, but luckily for me, all uppercase names were categories, and all lowercase names were tags, so I could do the trick with vim with:</p>
<pre>:%s/&lt;category&gt;\([a-z]\)/&lt;category domain="tag"&gt;\1/</pre>
<p>After that, I could import back all the content, but then I had the next hurdle: the style of the blog. I didn&#8217;t mind if the design wasn&#8217;t exactly the same, but I was used to the old one and didn&#8217;t want to change it too much, so I used the excellent <a href="http://www.opera.com/dragonfly/">Opera Dragonfly</a> to inspect the styles of the old blog, and I slowly copied the most interesting values (colours and font sizes mostly) to the equivalent CSS classes in the WordPress theme. I&#8217;m happy with the result, so I think I&#8217;ll leave it as it is for now.</p>
<p>Last, but not least, I wanted to try to keep the old URLs working. I did two things for this:</p>
<ol>
<li>I added some URL rewrites to keep Typo&#8217;s feed URLs working. However, the Atom ones also redirect to the RSS ones, I wonder if that&#8217;ll be a problem.</li>
<li>I changed the default permalink settings in WordPress so they matched what I had in Typo. Hopefully almost all blog posts will actually keep the URL and the migration to WordPress won&#8217;t be very traumatic. You tell me if I&#8217;ve broken anything ;-)</li>
</ol>
<p>One thing that I don&#8217;t like about WordPress&#8217; blog editor is that apparently it doesn&#8217;t allow you to write in some Wiki-like syntax, like <a href="http://daringfireball.net/projects/markdown/syntax">Markdown</a> or <a href="http://www.textism.com/tools/textile/">Textile</a>. I know Movable Type does have it, but several other things made me stick with WordPress and I&#8217;m happy overall. At least for now ;-)</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=266&amp;md5=3b44a41370a570e3adff54e8c2f83ee1" title="Flattr" target="_blank"><img src="http://hcoder.org/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://hcoder.org/2010/01/24/goodbye-typo-hello-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=30124&amp;popout=1&amp;url=http%3A%2F%2Fhcoder.org%2F2010%2F01%2F24%2Fgoodbye-typo-hello-wordpress%2F&amp;language=en_GB&amp;category=text&amp;title=Goodbye+Typo%2C+Hello+WordPress%21&amp;description=As+I+had+mentioned+several+times%2C+I+had+been+frustrated+with+Typo.+Several+bugs+or+misfeatures+that+really+annoyed+me%2C+upgrades+that+had+frustrated+me%2C+and+sometimes+the+feeling+that...&amp;tags=movable+type%2Crants%2Cupgrade%2Cwordpress%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Typo upgrade</title>
		<link>http://hcoder.org/2010/01/03/typo-upgrade-2/</link>
		<comments>http://hcoder.org/2010/01/03/typo-upgrade-2/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 20:29:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have upgraded to Typo 5.4.1. Partly because of security issues, partly because of new features and improvements. It took me a while, mostly because of stupid Ruby deployment nonsense that makes me even more tired of Ruby as a language for production usage, than I already was. Oh well. One of the most important [...]]]></description>
			<content:encoded><![CDATA[<p>
	I have upgraded to Typo 5.4.1. Partly because of security issues, partly because of new features and improvements.</p>
<p>
	It took me a while, mostly because of stupid Ruby deployment nonsense that makes me even more tired of Ruby as a language for production usage, than I already was. Oh well.</p>
<p>
	One of the most important new features for me in this release was the article preview, which doesn&#39;t seem to work. Or maybe it does, but then support for writing blog posts in Textile seems like it was dropped. Suggestions for other blogging platforms that aren&#39;t a pain to upgrade because of the language dependencies, supports writing in some wiki-like syntax (e.g. Textile or Markdown) and generally works well are <em>very</em> welcome.</p>
<p>
	It seems that everything is in place and working now, but if you see anything misbehaving, please give me a shout and I&#39;ll try to fix.</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=82&amp;md5=8273c1f4c688163cc8faace0e614b85c" title="Flattr" target="_blank"><img src="http://hcoder.org/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://hcoder.org/2010/01/03/typo-upgrade-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=30124&amp;popout=1&amp;url=http%3A%2F%2Fhcoder.org%2F2010%2F01%2F03%2Ftypo-upgrade-2%2F&amp;language=en_GB&amp;category=text&amp;title=Typo+upgrade&amp;description=I+have+upgraded+to+Typo+5.4.1.+Partly+because+of+security+issues%2C+partly+because+of+new+features+and+improvements.+It+took+me+a+while%2C+mostly+because+of+stupid+Ruby+deployment+nonsense...&amp;tags=rants%2CRuby%2Cupgrade%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Another Typo upgrade</title>
		<link>http://hcoder.org/2009/02/23/another-typo-upgrade/</link>
		<comments>http://hcoder.org/2009/02/23/another-typo-upgrade/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 19:06:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[5.2]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I just upgraded the blog to Typo 5.2. I had a couple of issues, but things worked reasonably ok. Just in case this helps anyone, these are the issues I ran into: I had to install a ridiculous amount of dependencies, sometimes to go from version 1.1.1 to 1.1.3 of some module. I really wonder [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded the blog to Typo 5.2. I had a couple of issues, but things worked reasonably ok. Just in case this helps anyone, these are the issues I ran into:</p>
<ul>
<li>I had to install a <strong>ridiculous</strong> amount of dependencies, sometimes to go from version 1.1.1 to 1.1.3 of some module. I really wonder if Typo 5.2 really needs those versions.</li>
<li>When trying to upgrade, it seemed to hang in this line: <code>Backing up to /var/www/virtual/hcoder.org/db/backup/backup-20090223-1843.yml</code>. It turns out, it didn&#8217;t really hang, it just takes a good while (and yeah, the file stays at 0 bytes for a long time too)</li>
<li>I had some permission issues that I had to fix (when upgrading, it tried to modify/copy some files, and it couldn&#8217;t)</li>
<li>When applying the migrations, it died with a really strange error message. It turns out, my version of Rubygems was too old ????</li>
</ul>
<p>While writing this first post, I see some improvements in the admin interface, although I still can&#8217;t see any kind of &#8220;preview&#8221;. I hope it helps me with my struggle with spam, at least :-/</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=58&amp;md5=817baa09ce76cc88fae3730ab49d2e01" title="Flattr" target="_blank"><img src="http://hcoder.org/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://hcoder.org/2009/02/23/another-typo-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=30124&amp;popout=1&amp;url=http%3A%2F%2Fhcoder.org%2F2009%2F02%2F23%2Fanother-typo-upgrade%2F&amp;language=en_GB&amp;category=text&amp;title=Another+Typo+upgrade&amp;description=I+just+upgraded+the+blog+to+Typo+5.2.+I+had+a+couple+of+issues%2C+but+things+worked+reasonably+ok.+Just+in+case+this+helps+anyone%2C+these+are+the+issues+I...&amp;tags=5.2%2Cissues%2Crubygems%2Ctypo%2Cupgrade%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Typo upgrade</title>
		<link>http://hcoder.org/2008/08/07/typo-upgrade/</link>
		<comments>http://hcoder.org/2008/08/07/typo-upgrade/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 21:05:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hey there! I have just upgraded Typo. It was slightly traumatic, because at first the blog broke horribly and I couldn&#8217;t see anything other than errors 500. To be fair, the change was quite big, because it included also an upgrade to Rails 2 (I was using some older Typo that used Rails 1.2.x), so [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there!</p>
<p>I have just upgraded Typo. It was slightly traumatic, because at first the blog broke horribly and I couldn&#8217;t see anything other than errors 500. To be fair, the change was quite big, because it included also an upgrade to Rails 2 (I was using some older Typo that used Rails 1.2.x), so everything worked better than expected.</p>
<p>I could login as admin, and change preferences and whatnot, and the only thing that was broken was the public view of the blog. I had a look at the logs, and it complained about not being able to find some template for the sidebars. I was very confused, and didn&#8217;t know where to starting looking for this. So, obviously, I asked &#8220;Señor Google&#8221;. He didn&#8217;t tell me that much, but someone left me the following hint: if you comment out the call to the helper `render_sidebars` (in the active theme code) solved the problem&#8230;. at the price of not having sidebars of course.</p>
<p>So I decided to connect a Ruby/Rails console to the production database, and have a look at the Sidebar model. The summary of what I did is this:</p>
<p>&gt;&gt; Sidebar.find(:all, :order =&gt; &#8216;active_position <span class="caps">ASC</span>&#8217;).<br />
map {|s| s.active_position}<br />
=&gt; [0, 0, 1, 1, 2, 2, 3, 4]<br />
&gt;&gt; Sidebar.find(:all, :order =&gt; &#8216;active_position <span class="caps">ASC</span>&#8217;).<br />
map {|s| s.type}<br />
=&gt; [nil, &#8220;CategorySidebar&#8221;, nil, &#8220;ArchivesSidebar&#8221;, nil,<br />
&#8220;TagSidebar&#8221;, &#8220;StaticSidebar&#8221;, &#8220;XmlSidebar&#8221;]<br />
&gt;&gt; Sidebar.find(:all, :order =&gt; &#8216;active_position <span class="caps">ASC</span>&#8217;).<br />
find_all {|s| s.type.nil?}.size<br />
=&gt; 3<br />
&gt;&gt; Sidebar.find(:all, :order =&gt; &#8216;active_position <span class="caps">ASC</span>&#8217;).<br />
find_all {|s| s.type.nil?}.each {|s| s.destroy}<br />
=&gt; [#&lt;Sidebar id: 1, active_position: 0, config: {&quot;empty&quot;=&gt;false, &#8220;count&#8221;=&gt;true}, staged_position: nil, type: nil&gt;,<br />
#&lt;Sidebar id: 2, active_position: 1, config: {&quot;title&quot;=&gt;&quot;Links&quot;, &#8220;body&#8221;=&gt;&quot;&#8230;&quot;}, staged_position: nil, type: nil&gt;,<br />
#&lt;Sidebar id: 3, active_position: 2, config: {&quot;format&quot;=&gt;&quot;rss20&quot;, &#8220;trackbacks&#8221;=&gt;true, &#8220;comments&#8221;=&gt;true, &#8220;articles&#8221;=&gt;true}, staged_position: nil, type: nil&gt;]<br />
&gt;&gt; Sidebar.find(:all, :order =&gt; &#8216;active_position <span class="caps">ASC</span>&#8217;).find_all {|s| s.type.nil?}.size<br />
=&gt; 0</p>
<p>So, the problem is that there were some (severely broken) leftovers of the upgrade. I just removed them, and everything started working again. Phew!</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=35&amp;md5=8273c1f4c688163cc8faace0e614b85c" title="Flattr" target="_blank"><img src="http://hcoder.org/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://hcoder.org/2008/08/07/typo-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=30124&amp;popout=1&amp;url=http%3A%2F%2Fhcoder.org%2F2008%2F08%2F07%2Ftypo-upgrade%2F&amp;language=en_GB&amp;category=text&amp;title=Typo+upgrade&amp;description=Hey+there%21+I+have+just+upgraded+Typo.+It+was+slightly+traumatic%2C+because+at+first+the+blog+broke+horribly+and+I+couldn%26%238217%3Bt+see+anything+other+than+errors+500.+To+be+fair%2C...&amp;tags=problems%2Crails%2CRuby%2Csolution%2Ctypo%2Cupgrade%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

