<?xml version="1.0"?>
<rss version="0.91">
  <channel>
    <title>Morgan Christianssons blog</title>
    <link>http://mog.se/index.html</link>
    <description>Ramblings about programming</description>
        <item>
      <title>urldecode plugin for gedit</title>
      <link>http://mog.se/arch_m7_2009_05.html#e5</link>
      <description><![CDATA[For my friend Kenneth: Enable the &quot;External Tools&quot; plugin in the gedit plugin prefs click &quot;Configure Plugin&quot; Create a new plugin and name it UrlEncode Select a shortcut key Set Input & Output to Current selection / Replace current selection Paste this into command(s): #!/bin/sh (C) 2006 GPL by Huidae Cho awk ' BEGIN{ for(i = 0; i &lt; 10; i++) hex[i] = i hex[&quot;A&quot;] = hex[&quot;a&quot;] = 10 hex[&quot;B&quot;] = hex[&quot;b&quot;] = 11 hex[&quot;C&quot;] = hex[&quot;c&quot;] = 12 hex[&quot;D&quot;] = hex[&quot;d&quot;] = 13 hex[&quot;E&quot;] = hex[&quot;e&quot;] = 14 hex[&quot;F&quot;] = hex[&quot;f&quot;] = 15 } { gsub(/\+/, &quot; &quot;) i = $0 while(match(i, /%../)){ if(RSTART &gt; 1) printf &quot;%s&quot;, substr(i, 1, RSTART-1) printf &quot;%c&quot;, hex[substr(i, RSTART+1, 1)] * 16 + hex[substr(i, RSTART+2, 1)] i = substr(i, RSTART+RLENGTH) } print i } ' Further reading: External tool plugin snippets urldecode script examples ... [141 words]]]></description>
      <pubDate>Sat, 16 May 2009 00:38:18 GMT</pubDate>
    </item>
    <item>
      <title>Xapian vs Thinking Sphinx</title>
      <link>http://mog.se/arch_m7_2009_05.html#e2</link>
      <description><![CDATA[As someone who recently switched from Xapian / PHP to Sphinx / Thinking sphinx on Ruby on Rails, with scoop's fork on github for (undocumented) faceted classification support. Defining the index was extrememly simple, thanks to the clean Thinking Sphinx API and It's ActiveRecord Integration indexes can be defined like this: define_index do indexes subject, :sortable =&gt; true indexes content indexes author.name, :as =&gt; :author, :sortable =&gt; true has author_id, created_at, updated_at end That's it! ... [249 words]]]></description>
      <pubDate>Mon, 11 May 2009 14:04:22 GMT</pubDate>
    </item>
    <item>
      <title>Can I use Regexps to parse XML?</title>
      <link>http://mog.se/arch_m7_2009_05.html#e1</link>
      <description><![CDATA[A common task for a programmer is to extract XML data, transform it and insert it to a database. The obvious and easiest tool to use is usually a DOM XML parser that parses the XML into a tree that is easy to use. ... [522 words]]]></description>
      <pubDate>Mon, 11 May 2009 14:04:22 GMT</pubDate>
    </item>

  </channel>
</rss>
