<?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; Meta</title>
	<atom:link href="http://hcoder.org/category/meta/feed/" rel="self" type="application/rss+xml" />
	<link>http://hcoder.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 04 Feb 2012 11:06:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flattr: microdonations rock!</title>
		<link>http://hcoder.org/2010/08/31/flattr-microdonations-rock/</link>
		<comments>http://hcoder.org/2010/08/31/flattr-microdonations-rock/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 20:44:56 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://hcoder.org/?p=461</guid>
		<description><![CDATA[Ever since I discovered Flattr I was really excited about it. Back then it was a closed beta, only-by-invitation service, and I couldn&#8217;t get hold of an invitation before they opened it to everyone. Of course I signed up, tried it out and looked for content to &#8220;flattr&#8221; right away. I think the idea is [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I discovered Flattr I was really excited about it. Back then it was a closed beta, only-by-invitation service, and I couldn&#8217;t get hold of an invitation before they <a href="http://blog.flattr.net/2010/08/open-beta/">opened it to everyone</a>.</p>
<p>Of course I signed up, tried it out and looked for content to &#8220;flattr&#8221; right away. I think the idea is great, and I can&#8217;t really complain about the implementation either. The service feels really easy to use and understand, and there are many extensions and plugins to integrate with different tools, including the <a href="http://wordpress.org/extend/plugins/flattr/">WordPress plugin</a> I&#8217;m using.</p>
<p>How does Flattr work then? Basically, you pay a fixed amount of money per month (you choose how much of course!), and you click &#8220;Flattr&#8221; buttons of the content you find interesting on the internet. At the end of the month, the money you paid is divided between the number of buttons you clicked, and each of those &#8220;slices&#8221; will be given to each author. You can watch the video below for a better explanation:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/9zrMlEEWBgY?fs=1&amp;hl=es_ES" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/9zrMlEEWBgY?fs=1&amp;hl=es_ES" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The only downside is that the money Flattr gets for every transaction is a bit high (<a href="http://https://flattr.com/support/faq">10%</a>), but I really like the idea and the service and I feel it&#8217;s something I have to support. Because, as the <a href="http://questioncopyright.com/">Question Copyright</a> folks say, &#8220;<a href="http://questioncopyright.com/qco-t-ctnt-m.html">I <strong>am</strong> the content industry</a>&#8220;.</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=461&amp;md5=deecf533b62d7128b5105cefa3cdba3c" 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/08/31/flattr-microdonations-rock/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="http://hcoder.org/?flattrss_redirect&amp;id=461&amp;md5=deecf533b62d7128b5105cefa3cdba3c" type="text/html" />
	</item>
		<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="http://hcoder.org/?flattrss_redirect&amp;id=266&amp;md5=3b44a41370a570e3adff54e8c2f83ee1" 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="http://hcoder.org/?flattrss_redirect&amp;id=82&amp;md5=8273c1f4c688163cc8faace0e614b85c" 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="http://hcoder.org/?flattrss_redirect&amp;id=58&amp;md5=817baa09ce76cc88fae3730ab49d2e01" type="text/html" />
	</item>
		<item>
		<title>Problems with comments</title>
		<link>http://hcoder.org/2008/11/26/problems-with-comments/</link>
		<comments>http://hcoder.org/2008/11/26/problems-with-comments/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:30:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[typo]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today, my good friend &#8220;Esberrito&#8221; warned me that comments were not working in the blog. I hadn&#8217;t realised earlier, but I had them enabled so they should have appeared all the time. I investigated a bit, and it turns out that there&#8217;s some bug (apparently related to saving a post as draft, then publishing) that [...]]]></description>
			<content:encoded><![CDATA[<p>Today, my good friend &#8220;Esberrito&#8221; warned me that comments were not working in the blog. I hadn&#8217;t realised earlier, but I had them enabled so they should have appeared all the time.</p>
<p>I investigated a bit, and it turns out that there&#8217;s some bug (apparently related to saving a post as draft, then publishing) that makes the post have an empty &#8220;permalink&#8221;. When this happens, the link to the blog post looks exactly like the view of the posts for that particular day (say, http://hcoder.org/2008/11/23/ instead of http://hcoder.org/2008/11/23/why-i-hate-rubygems), so Typo decides that it shouldn&#8217;t show the comment form.</p>
<p>The bad news is that many posts are fucked now (although I have fixed some of the most recent ones). The good news is that it&#8217;s more or less easy to fix. You just have to connect to a &#8220;Rails terminal&#8221; with the production configuration (with <code>./script/console production</code>) and do something like this for each post you want to fix:</p>
<p>&gt;&gt; a = Article.find(:first, :conditions =&gt; [&#8220;title <span class="caps">LIKE</span> ?&#8221;, &#8220;<span class="caps">GPG</span>%&#8221;])<br />
=&gt; #&lt;Article id: 41, type: &#8220;Article&#8221;, yadda, yadda, yadda, &#8230;&gt;<br />
&gt;&gt; a.title<br />
=&gt; &#8220;<span class="caps">GPG</span> confusion&#8221;<br />
&gt;&gt; a.permalink = a.stripped_title<br />
=&gt; &#8220;gpg-confusion&#8221;<br />
&gt;&gt; a.save<br />
=&gt; true</p>
<p>Lesson learned: don&#8217;t save as draft for now (maybe I should upgrade to 5.1.3, it seems fixed there). Instead, untick the &#8220;Online&#8221; under &#8220;Post settings&#8221;, and hit &#8220;Publish&#8221;. That will assign a default, sane permalink value.</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=50&amp;md5=50c89ef561373561975e9be6466b3c4b" 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/11/26/problems-with-comments/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<atom:link rel="payment" href="http://hcoder.org/?flattrss_redirect&amp;id=50&amp;md5=50c89ef561373561975e9be6466b3c4b" type="text/html" />
	</item>
		<item>
		<title>Irrepressible information</title>
		<link>http://hcoder.org/2008/11/09/irrepressible-information/</link>
		<comments>http://hcoder.org/2008/11/09/irrepressible-information/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 21:03:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Freedom]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[amnesty]]></category>
		<category><![CDATA[censorship]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[international]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[repression]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I just remembered something really cool that I had on my previous blog: a small box that shows information that &#8220;someone doesn&#8217;t want people to read&#8221;. It&#8217;s part of a brilliant campaign called &#8220;Irrepressible info&#8221; by Amnesty International. Many of you know that I&#8217;m very Amnesty-friendly (&#8220;supporter&#8221; might be too strong a word, since I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>I just remembered something really cool that I had on my previous blog: a small box that shows information that &#8220;someone doesn&#8217;t want people to read&#8221;. It&#8217;s part of a brilliant campaign called &#8220;Irrepressible info&#8221; by <a href="http://www.amnesty.org/">Amnesty International</a>. Many of you know that I&#8217;m very Amnesty-friendly (&#8220;supporter&#8221; might be too strong a word, since I&#8217;m not really doing much apart from being a member), and I think this campaign is just pure awesomeness.</p>
<p>The idea is very simple: you take texts that have been blocked in some country and allow people to show them in their own websites. It&#8217;s a simple but poweful way of showing your rejection for censorship and your support for freedom of expression. As for what you have to do to join the campaign, it couldn&#8217;t be simpler. You just have to copy some Javascript code from the <a href="http://irrepressible.info/addcontent">instructions page</a> and you&#8217;re set.</p>
<p>I have of course added the information box to the sidebar, under the &#8220;Irrepressible info&#8221; header.</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=46&amp;md5=60247592b430dcbe789e1cf598b106e2" 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/11/09/irrepressible-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://hcoder.org/?flattrss_redirect&amp;id=46&amp;md5=60247592b430dcbe789e1cf598b106e2" type="text/html" />
	</item>
		<item>
		<title>Spam adventures</title>
		<link>http://hcoder.org/2008/09/22/spam-adventures/</link>
		<comments>http://hcoder.org/2008/09/22/spam-adventures/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 20:35:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Freedom]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today I have had a gigantic e-mail spam attack. And by &#8220;gigantic&#8221; I mean something like one every couple of seconds. It seems to have stopped by now, though (maybe until tomorrow, sigh). However, there is some small tip that I used in the meantime, and I have found it helps me filtering spam so [...]]]></description>
			<content:encoded><![CDATA[<p>Today I have had a gigantic e-mail spam attack. And by &#8220;gigantic&#8221; I mean something like one <strong>every couple of seconds</strong>. It seems to have stopped by now, though (maybe until tomorrow, <strong>sigh</strong>). However, there is some small tip that I used in the meantime, and I have found it helps me filtering spam so I thought I&#8217;d share with you. It&#8217;s very simple: ordering by <strong>subject</strong> instead of by date. Of course, you have to filter your view to only unread messages, but it works surprisingly well.</p>
<p>This is very easy to do in <a href="http://www.mutt.org/">mutt</a>, my mail reader of choice (for personal e-mail; I have found that, <em>at least</em> for work e-mail, Opera&#8217;s M2 works quite well too). You just have to limit to unread messages (pressing lowercase &#8220;L&#8221; and then using &#8220;~N&#8221; as filter), and then sort by subject (<code>:set sort=subject</code>). I have even created too &#8220;macros&#8221; in mutt to switch back and forth between &#8220;spam filtering mode&#8221; and &#8220;normal mode&#8221; :</p>
<div class="CodeRay">
<pre> macro     index     Cs     &quot;:set sort=subject&lt;return&gt;l~N&lt;return&gt;&quot;
 macro     index     Cq     &quot;:set sort=threads&lt;return&gt;lall&lt;return&gt;&quot;</pre>
</div>
<p>Let&#8217;s hope it doesn&#8217;t begin again tomorrow <code>:-S</code></p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=40&amp;md5=12af3fe9d63c0e9426327f0c5b7d27fa" 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/09/22/spam-adventures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://hcoder.org/?flattrss_redirect&amp;id=40&amp;md5=12af3fe9d63c0e9426327f0c5b7d27fa" type="text/html" />
	</item>
		<item>
		<title>Sucky Typo update</title>
		<link>http://hcoder.org/2008/08/19/sucky-typo-update/</link>
		<comments>http://hcoder.org/2008/08/19/sucky-typo-update/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 21:19:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[upgrading]]></category>
		<category><![CDATA[woes]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The other day I was talking about upgrading Typo. The update itself went well, true, and the site was up and running without too much downtime, but then I started using it again&#8230; and I have noticed two things so far (both about writing posts) that I really dislike: First, the good old editor is [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I was talking about <a href="http://hcoder.org/2008/08/07/">upgrading Typo</a>. The update itself went well, true, and the site was up and running without <em>too much</em> downtime, but then I started using it again&#8230; and I have noticed two things so far (both about writing posts) that I really dislike:</p>
<p>First, the good old editor is not there anymore: the Typo editor used to be really good, because on the left hand side you had a very reliable and easy to use textarea with Wiki syntax (you can choose which exact syntax you want), and on the right hand side you had a &#8220;live preview&#8221; of your post, automatically updated with Ajax, that showed you how the post was going to look like. Well, that&#8217;s <strong>gone</strong>. Now there are two options: some retarded <span class="caps">WYSIWYG</span> box, that I tried to use and failed, and some good old textarea&#8230; <em>without the damn live preview</em>. That <strong>sucks</strong> big time, because there is <em>no other preview</em> (that I have seen: <strong>please</strong> enlighten me if there is indeed one), so I just blindly write things in a Wiki format, and <strong>hope</strong> that it&#8217;s going to look OK when I press &#8220;Publish&#8221;.</p>
<p>Second, I was playing with the Wiki format for the articles, and I changed it to &#8220;Markdown&#8221; (I always mix &#8220;Textile&#8221; with &#8220;Markdown&#8221;, and never remember which is which; the one I prefer is Textile). After I hit &#8220;Save&#8221;, not only the next article was parsed in Markdown format by default, but <strong>every single blog post</strong>. It&#8217;s like, you select the parser the system is going to use to interpret your whole blog. How retarded is that? Once you have written posts, it doesn&#8217;t make sense to change their syntax (unless you do it manually editing the post itself). <strong>Clearly</strong> the format is a property of each blog post, not of the whole blog installation.</p>
<p>Not everything is bad though: it seems that now you finally have a &#8220;Draft&#8221; concept, so I can start writing a blog post and just save as a draft, instead of unticking the &#8220;Online&#8221; property and saving as a normal post. Also, the drafts are saved <em>automatically</em>, so I don&#8217;t have to remember to hit &#8220;Save&#8221; from time to time just in case the browser crashes or I hit something stupid and erase the contents of the post. Yay for that.</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=38&amp;md5=b284396e75d48636ba7cd3f7a7ec5828" 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/19/sucky-typo-update/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<atom:link rel="payment" href="http://hcoder.org/?flattrss_redirect&amp;id=38&amp;md5=b284396e75d48636ba7cd3f7a7ec5828" 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="http://hcoder.org/?flattrss_redirect&amp;id=35&amp;md5=8273c1f4c688163cc8faace0e614b85c" type="text/html" />
	</item>
		<item>
		<title>Welcome!</title>
		<link>http://hcoder.org/2007/10/10/welcome/</link>
		<comments>http://hcoder.org/2007/10/10/welcome/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 09:11:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[haberdasher]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[After http://www.zingzang.org, I&#8217;m opening a new blog, this time in some sort of English ;-) The current plan is to write (mostly) about technical things in this blog, and leave the rest to CincoReyes. Hopefully, I&#8217;ll go back to doing some Debian work, and will also resume Haberdasher development (&#8220;Haberdasher&#8221; is the new project name [...]]]></description>
			<content:encoded><![CDATA[<p>After <a href="http://www.zingzang.org">http://www.zingzang.org</a>, I&#8217;m opening a new blog, this time in some sort of English ;-)</p>
<p>The current plan is to write (mostly) about technical things in this blog, and leave the rest to <a href="http://cincoreyes.blogspot.com">CincoReyes</a>.</p>
<p>Hopefully, I&#8217;ll go back to doing some <a href="http://www.debian.org">Debian</a> work, and will also resume Haberdasher development (&#8220;Haberdasher&#8221; is the new project name for <a href="http://patch-server.rubyforge.org">PatchSever</a>; why the name <a href="http://en.wikipedia.org/wiki/Haberdasher">haberdasher</a>? Well, go to Wikipedia and check ;-)).</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=1&amp;md5=9a843f20677a52ca79af903123147af0" 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/2007/10/10/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://hcoder.org/?flattrss_redirect&amp;id=1&amp;md5=9a843f20677a52ca79af903123147af0" type="text/html" />
	</item>
	</channel>
</rss>

