<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.6(BH)" -->
<rss version="2.0"    xmlns:georss="http://www.georss.org/georss/"
>
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Henri Bergius: category &quot;midgard&quot;</title>
        <description>Motorcycle Adventures and Free Software from Henri Bergius</description>
        <link>http://bergie.iki.fi/blog/</link>
        <lastBuildDate>Sat, 04 Sep 2010 13:14:57 +0000</lastBuildDate>
        <generator>FeedCreator 1.7.6(BH)</generator>
        <language>en</language>
        <managingEditor>henri.bergius@iki.fi</managingEditor>
        <item>
            <title>My interview at dot KDE</title>
            <link>http://bergie.iki.fi/blog/my_interview_at_dot_kde/</link>
            <description><![CDATA[
<p><a href="http://nowwhatthe.blogspot.com/">Jos Poortvliet</a> did <a href="http://dot.kde.org/2010/07/23/henri-bergius-akademy-midgard-open-collaboration-services-and-geoclue">an interview with me for dot KDE</a> in this summer's aKademy and it has been online for a while now. In it we discuss things like <a href="http://bergie.iki.fi/blog/ratatoskr_is_out-midgard2_content_repository_goes_lts/">Midgard as a storage engine</a> for desktop applications, and <a href="http://wiki.maemo.org/Extras-testing#Community_Quality_Assurance">Maemo's open QA process</a> for <a href="http://maemo.org/downloads/Maemo5/">Downloads</a> applications. Some excepts:</p>
<blockquote>At <a href="http://maemo.org/">maemo.org</a> we have an appstore for  FOSS applications on the Maemo platform. This appstore is enabled by  default on all Nokia N900s so we wanted to have some quality control. We  had to create our own appstore approval process, compatible with the  FOSS philosophy. Now any developer can submit an app, and anyone can  test and vote. The whole process is completely transparent, auditable  and visible. And it also provides a feedback channel from testers and  users to the developers!</blockquote>
<p>...</p>
<blockquote>Midgard is a data storage service. Whether you write desktop or web  applications, instead of coming up with your own file format, you just  use Midgard. You can work more easily and object-based. Users have many  different devices these days, so Midgard has strong replication features  to synchronize between different systems. Midgard is built on top of  GObject; we provide bindings to a bunch of different languages so  developers can choose the tools they like - PHP, Python, Javascript.  Currently (as in <strong>now</strong>, while we're talking) Qt bindings are being developed here at Akademy.</blockquote>
<p><a href="http://dot.kde.org/2010/07/23/henri-bergius-akademy-midgard-open-collaboration-services-and-geoclue">Read the whole interview</a>.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>desktop</category>
            <pubDate>Thu, 02 Sep 2010 15:55:28 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1dfb6aa81a547aeb6aa11dfa837c90298d01a921a92</guid>
        </item>
        <item>
            <title>Aloha and the art of semantic web content</title>
            <link>http://bergie.iki.fi/blog/aloha_and_the_art_of_semantic_web_content/</link>
            <description><![CDATA[
<p>To bring CMS editing to the next level, the <a href="http://www.iks-project.eu/">IKS</a> project is <a href="http://www.iks-project.eu/launching-iks-semantic-editor-development-group">working on a semantic HTML5 editor</a>. This week we had a <a href="http://wiki.iks-project.eu/index.php/Semantic_Editor/Helsinki_hackathon_2010">hackathon in Helsinki</a> focusing on implementing our ideas with the <a href="http://aloha-editor.com/">Aloha Editor</a>. In addition to enjoying the hot summer weather here, we accomplished quite a bit and in the end were able to present the whole pipeline of:</p>
<ul><li>Loading content from Midgard CMS to Aloha Editor</li>
<li>Annotating our content with <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=146646">Google-compatible Person RDFa</a> elements</li>
<li>Saving the content back to Midgard</li>
<li>...and finally analysing the content with <a href="http://wiki.iks-project.eu/index.php/FISE">FISE</a> to find more semantic information</li>
</ul><p><img src="http://bergie.iki.fi/static/1/1df99b0fbedc9d099b011df9cde59aa729dc602c602_iks_helsinki_hackathon_participants.jpg" border="0" alt="iks_helsinki_hackathon_participants.jpg" title="iks_helsinki_hackathon_participants.jpg" /></p>
<p>The hackathon participants included developers from <a href="http://nemein.com/en/">Nemein</a>, <a href="http://gentics.com/Content.Node/index_en.php">Gentics</a>, <a href="http://infigo.fi/en/">Infigo</a>, <a href="http://www.salzburgresearch.at/company/index_e.php">Salzburg Research</a> and the <a href="http://www.dfki.de/web/welcome?set_language=en&amp;cl=en">German Research Center for Artificial Intelligence</a>. Some screenshots:</p>
<p><img src="http://bergie.iki.fi/static/1/1df99b12c14931e99b111dfb2649b40ceb420042004_aloha-editing-small.png" border="0" alt="aloha-editing-small.png" title="aloha-editing-small.png" /><br />Editing content with Aloha in Midgard</p>
<p><img src="http://bergie.iki.fi/static/1/1df99b152d8fbca99b111df8c291f845ff4792c792c_aloha-editing-rdfa-small.png" border="0" alt="aloha-editing-rdfa-small.png" title="aloha-editing-rdfa-small.png" /><br />Annotating persons with the Aloha RDFa plugin</p>
<p><img src="http://bergie.iki.fi/static/1/1df99b19296459c99b111dfbf84d704b90a3b663b66_aloha-generated-rdfa-small.png" border="0" alt="aloha-generated-rdfa-small.png" title="aloha-generated-rdfa-small.png" /></p>
<p>RDFa annotation created with the semantic editor<br /><img src="http://bergie.iki.fi/static/1/1df99b1bdbd0be899b111dfbf84d704b90a3b663b66_fise-analysed-content-small.png" border="0" alt="fise-analysed-content-small.png" title="fise-analysed-content-small.png" /><br />Additional semantic information suggested by FISE</p>
<p>All the relevant code can be found <a href="http://github.com/alohaeditor/Aloha-Editor">from GitHub</a> (see also the <a href="http://github.com/nemein/eu_iksproject_fise">FISE Midgard integration</a>).</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>midgard</category>
            <pubDate>Tue, 27 Jul 2010 19:07:49 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df99b23f6dcf1099b211df89977363a99c82578257</guid>
        </item>
        <item>
            <title>Recent performance improvements for Midgard 8.09</title>
            <link>http://bergie.iki.fi/blog/recent_performance_improvements_for_midgard_8-09/</link>
            <description><![CDATA[
<p><a href="http://www.midgard-project.org/midgard/8.09/">Midgard 8.09</a> is an <em>industrial CMS</em> that is now in <a href="http://bergie.iki.fi/blog/long-term_support_for_midgard-ragnaroek_is_here/">Long-Term Supported</a> stage, with the community maintaining it until 2013. As we all know, <a href="http://www.rockstarapps.com/wordpress/?p=40">performance is a feature</a>, and with a CMS framework that has lived through many changes including transitions from PHP4 to 5.2 and from <a href="http://www.midgard-project.org/documentation/reference/#9f42c2021f0b0efedacd0ae9d6801c5c">Classic Midgard</a> era to the modern APIs, there is a lot to do.</p>
<p>For the next 8.09.10 release we decided to put quite a bit of efforts into performance tuning, with some excellent work done by <a href="http://www.contentcontrol-berlin.de/">Content Control</a> to simplify <a href="http://midgardwiki.contentcontrol-berlin.de/index.php/MidCOM_ACL">ACL handling</a> and cache <a href="http://midgardwiki.contentcontrol-berlin.de/index.php/MidCOM_NAP">navigation information</a>. As you can see, the result is quite impressive:</p>
<p><img src="http://bergie.iki.fi/static/1/1df9584cd985724958411dfa136e3b7372904a904a9_ragnaroek-acl-nap-performance.png" border="0" alt="ragnaroek-acl-nap-performance.png" title="Ragnaroek performance is 42 percent better" /></p>
<p>What is left to be done is some work with the <a href="http://www.midgard-project.org/documentation/midgard-and-multilingual-content/">multilingual content</a> database queries. After that we should be good to go with what is probably the fastest Midgard1 ever.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>midgard</category>
            <pubDate>Thu, 22 Jul 2010 11:35:29 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df95853ad981aa958511dfbb301908ed9c29f029f0</guid>
        </item>
        <item>
            <title>Meet Midgard and GeoClue in aKademy 2010</title>
            <link>http://bergie.iki.fi/blog/meet_midgard_and_geoclue_in_akademy_2010/</link>
            <description><![CDATA[
<p>We <a href="http://bergie.iki.fi/blog/tampere_is_a_candidate_for_guadec_and_akademy_2009/">tried to get the combined GUADEC and aKademy conferences</a> to Tampere in 2009, but <a href="http://www.flickr.com/photos/bergie/sets/72157621730088174/">a warmer place</a> unfortunately won. However, <a href="http://www.coss.fi/">we</a> will be hosting <a href="http://akademy.kde.org/">this year's aKademy</a> so at least KDE and Qt fans will get to enjoy this <a href="http://en.wikipedia.org/wiki/Tampere">beautiful northern industrial city</a>.</p>
<p>The main conference will be held at the Tampere University over the weekend, and then the remaining hackweek will be in the nice <a href="http://demola.fi/">Demola</a> facility in the Finlayson district. Expect great connectivity and close proximity to all Tampere nightlife.</p>
<p>I'm involved with two aKademy activities:</p>
<ul><li><a href="http://akademy.kde.org/node/397"><strong>GeoClue presentation</strong></a> on the <a href="http://geoclue.freedesktop.org/">location service</a> that can be used on any Linux desktop and is <a href="http://meego.com/developers/meego-architecture">used in MeeGo</a>. I'll also talk about what desktops can do when location is available</li>
<li><a href="http://www.midgard-project.org/community/events/akademy_and_midgard_gathering/"><strong>Midgard Gathering</strong></a> during Mon-Wed of the hackweek. Midgard provides <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">a content repository</a> for applications that should be available also for <a href="http://live.gnome.org/GObjectIntrospection/GObjectConsume">Qt apps through GObject Introspection</a>. With some <a href="http://blogs.nemein.com/people/piotras/view/1274453113.html">proven performance benefits</a> and replication support, Midgard should be interesting for any desktop or mobile app that deals with structured data</li>
</ul><p>In addition there will be a <a href="http://talk.maemo.org/showthread.php?t=56616">Maemo / MeeGo meetup</a> in the Plevna brewery on Friday evening. See you there!</p>
<p><img src="http://bergie.iki.fi/static/1/1df82b418e85d4882b411df8e0f9d54d6b1ca1aca1a_akademy-banner-small.png" border="0" alt="akademy-banner-small.png" title="akademy-banner-small.png" /></p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>desktop</category>
            <pubDate>Mon, 28 Jun 2010 12:54:47 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df82b4550448c882b411dfa8a7a196adf2c0e7c0e7</guid>
        </item>
        <item>
            <title>Midgard Runtime brings our web framework to the desktop</title>
            <link>http://bergie.iki.fi/blog/midgard_runtime_brings_our_web_framework_to_the_desktop/</link>
            <description><![CDATA[
<p><a href="http://www.midgard-project.org/updates/midgard2_10-05-1-ratatoskr-lts_released/">Midgard2 10.05.1 was released</a> yesterday, bringing a long-waited feature finally to the Midgard installation packages: the <em>Midgard Runtime</em>.</p>
<p>Midgard Runtime is an application that consists of a simple Qt WebKit viewer that, when run, starts a local Midgard web server on the background and connects to it. This means that you'll have the full Midgard MVC stack available on your own desktop, in a way that is easy to install and easy to run. Get it for your favorite Linux distribution <a href="http://download.opensuse.org/repositories/home:/midgardproject:/ratatoskr/">from OBS</a>!</p>
<p><img src="http://bergie.iki.fi/static/1/1df7ebd0f39e0467ebd11dfb50cc71550a9171e171e_midgard-runtime-ratatoskr-small.png" border="0" alt="midgard-runtime-ratatoskr-small.png" title="midgard-runtime-ratatoskr-small.png" /></p>
<p>As a whole, the Midgard Runtime stack is quite interesting:</p>
<ul><li>SQLite is used as the default storage through the <a href="http://live.gnome.org/ChooseLibgdaSQLite">libgda4 abstraction layer</a></li>
<li><a href="http://bergie.iki.fi/blog/getting_started_with_the_midgard_content_repository/">Midgard2 is used as the content repository</a>, brought to PHP through an extension</li>
<li><a href="http://bergie.iki.fi/blog/midcom_3_at_a_glance/">Midgard MVC</a> provides the web development framework</li>
<li><a href="http://wiki.github.com/indeyets/appserver-in-php/">Alexey Zakhlestin's AppServer</a> is used as the pure-PHP web server</li>
<li>The Qt application starts server processes on the background and displays the site in a WebKit view</li>
<li>Runtime's bundle setup tool uses libraries from the <a href="http://blog.milkfarmsoft.com/2009/08/pake-php5-project-build-system/">Pake build system</a></li>
</ul><p>The AppServer is particularly something that other PHP projects might find useful. Since the server itself is written in PHP you don't have any additional dependencies besides <em>php-cli</em>. It also means your application can use a lot more efficient caching as files have to be loaded only once, and things can be kept in memory between requests. Of course the downside is that if your PHP script dies, then the whole server is down. But that is easy to deal with by a bit of <a href="http://en.wikipedia.org/wiki/Defensive_programming">defensive programming</a>.</p>
<p>At this point the Runtime is targeted at web developers interested in trying out Midgard, but eventually we'll be using the bundle system also for distributing full Midgard-powered web applications to the desktop. The progress on this can be followed <a href="http://github.com/midgardproject">on GitHub</a>.</p>
<p>Compared to <a href="http://www.forum.nokia.com/Develop/Web/">Nokia's Web Runtime</a>, the Midgard Runtime should be more familiar to developers as you'll be able to write also server-side PHP code, not just JavaScript. In addition to PHP, the whole system is <a href="http://devel.akbkhome.com/seed/Midgard.html">also accessible</a> via any language that can handle <a href="http://live.gnome.org/GObjectIntrospection">GObject Introspection</a>.</p>
<h2>So, what can I do with it?</h2>
<ul><li>Install a Midgard environment with <em>$ midgard2-runtime-bundle-simple-install</em></li>
<li>Start the runtime with <em>$ midgard2-runtime-bundle-simple-run</em></li>
<li>Midgard MVC and components are located in <em>~/.midgard2/simple-bundle/</em>. This is where you can also place your own code</li>
</ul>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>47 13</georss:point>
            <category>desktop</category>
            <pubDate>Wed, 23 Jun 2010 12:02:17 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df7ebf2b33f7627ebf11df825c53b2e93c5f955f95</guid>
        </item>
        <item>
            <title>First year of IKS for Midgard</title>
            <link>http://bergie.iki.fi/blog/first_year_of_iks_for_midgard/</link>
            <description><![CDATA[
<p>Last year we became a partner in the European Commission -funded Interactive Knowledge Systems project aiming to increase semantic capabilities in Open Source CMSs and vendors.</p>

<p>The first year of IKS has focused mostly on research and requirements gathering. As a project participant we at the Midgard project have taken this time for making our own preparations as well. Here are some initial results:</p>

<ul><li>grokking the semantic web and linked data ideas and terminology obviously required some amounts of studying</li>
<li>we did a comparison of features and concepts between three content repositories together with Day Software. The similarities between Midgard, JCR and CouchDB are remarkable</li>
<li>while others in the IKS sphere are focused on Java, we've started collaborating with the developers of Tracker, a GObject-based RDF triple store. Tracker would fit the Midgard architecture much better and we would be able to avoid big external dependencies</li>
<li>we chose Wymeditor as the new rich text editor in Midgard CMS. Wymeditor is fast, jQuery-based and relatively sparse of features, allowing us to build the functionality we need in an integrated manner. Wymeditor is also capable of dealing with RDFa</li>
<li>MgdSchema, the XML syntax for describing Midgard content types was expanded to allow us to link objects and properties to appropriate RDF ontologies</li>
<li>we participated in several IKS meetings around Europe: Salzburg, Rome, Salzburg, Rome and now Paderborn</li>
<li>preparations were made to migrate Midgard's default HTML templates from Microformats to RDFa</li>
</ul><p>All of this aims for making Midgard compatible with the designs of the IKS project, but building as much of it on top of the pure GNOME + PHP stack as possible.</p>
]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>51.713299 8.77055</georss:point>
            <category>midgard</category>
            <pubDate>Tue, 25 May 2010 15:29:31 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df6812508b07f8681211dfb4f6435c1a3656f156f1</guid>
        </item>
        <item>
            <title>Midgard2 has moved to GitHub</title>
            <link>http://bergie.iki.fi/blog/midgard2_has_moved_to_github/</link>
            <description><![CDATA[
<p>Now that <a href="http://bergie.iki.fi/blog/ratatoskr_is_out-midgard2_content_repository_goes_lts/">Midgard2 is at Long-Term Supported stage</a> it was time to finally make the jump and migrate our development efforts to happen on top of <a href="http://git-scm.com/">Git</a>, the fast version control system. To maximize project visibility and enable easy tool access we chose <a href="http://github.com/">GitHub</a> as the Git hosting provider.</p>
<p><img src="http://bergie.iki.fi/static/1/1df64cc8af1955464cc11dfa27e2702d32509890989_git-banner.png" border="0" alt="git-banner.png" title="git-banner.png" /></p>
<p>While migrating to Git we also decided to implement the <a href="http://www.slideshare.net/err/git-machine">Distributed Version Control model</a> where the <a href="http://github.com/midgardproject">MidgardProject account</a> contains "blessed" repositories of various modules of the Midgard2 ecosystem, with <a href="http://whygitisbetterthanx.com/#any-workflow">development happening in personal clones</a>. Maintainers of Midgard modules will be responsible for merging changes from developers back upstream, based on <a href="http://github.com/guides/pull-requests">pull requests</a>. More information can be found from <a href="http://www.midgard-project.org/discussion/developer-forum/read/4cf414fe644311df818bd7a6bcc6d37ed37e.html">the developer list thread</a>.</p>
<p>You can get started by following the <a href="http://github.com/midgardproject">MidgardProject account on GitHub</a>! See also <a href="https://www.ohloh.net/p/midgard2">Midgard2</a> and <a href="https://www.ohloh.net/p/midgardmvc">Midgard MVC</a> on Ohloh.</p>
<p><a href="http://www.midgard-project.org/midgard/8.09/">Midgard1 Ragnaroek</a> maintenance and development will still happen in our <a href="https://svn.midgard-project.org/midgard/branches/ragnaroek/">old SVN environment</a> and the <a href="http://trac.midgard-project.org/timeline">Trac tool</a>.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>midgard</category>
            <pubDate>Fri, 21 May 2010 11:43:57 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df64ce241991ea64ce11df9b7397660577fa81fa81</guid>
        </item>
        <item>
            <title>Notes from my first Ubuntu Developer Summit</title>
            <link>http://bergie.iki.fi/blog/notes_from_my_first_ubuntu_developer_summit/</link>
            <description><![CDATA[
<p>Last week was the <a href="https://wiki.ubuntu.com/UDS-M">Ubuntu Developer Summit</a> targeted at planning how the next iteration of the operating system, <a href="http://www.markshuttleworth.com/archives/336"><em>Maverick Meerkat</em></a>, targeted at a October 10th 2010 release, would look like. The event was held in a spa resort off in the countryside near Brussels. A place where the developers were comfortably separated from the busy towns by forests and country roads.</p>
<p>I went to the UDS with two goals in my mind: to discuss <a href="http://bergie.iki.fi/blog/making_the_gnome_desktop_location-aware/">making the Ubuntu desktop location-aware</a>, and to figure out what sort of role <a href="http://www.midgard2.org/">Midgard</a>, our content repository could play in the Ubuntu space. Normally such things would be better approached by talking to upstream projects and distributions, but as Ubuntu is <a href="http://www.0d.be/2010/05/13/gnome-and-operating-systems/">taking an increasingly active role</a> in developing itself to be a <em>comprehensive and unique operating system</em>, it would be a better place to accomplish such wide-ranging changes.</p>
<p><strong>Location-awareness</strong> was a area that many were interested in. Ubuntu already had considered <a href="http://geoclue.freedesktop.org/"><strong>GeoClue</strong></a>, our location service, to be a component of the distribution in Lucid Lynx, but that <a href="https://blueprints.launchpad.net/ubuntu/+spec/desktop-lucid-gnome-geoclue">plan had been abandoned</a> due to the low-maintained status of the software. However, now that GeoClue has become the <a href="http://jaaksi.blogspot.com/2010/04/meego-is-now-opened.html">geolocation framework for MeeGo</a> things are about to change, and so there is <a href="https://blueprints.launchpad.net/ubuntu/+spec/desktop-maverick-geoclue/">a significant possibility</a> to get GeoClue into Ubuntu as well.</p>
<p>GeoClue by itself will obviously not do much, and so making applications use it is the important thing. Some applications already support location information and could be changed to include those features by default. This includes <a href="http://blog.pierlux.com/2009/06/15/geolocation-in-empathy-now-real/en/"><strong>Empathy</strong></a><a href="http://blog.pierlux.com/2009/06/15/geolocation-in-empathy-now-real/en/"> sharing location</a> information with instant messaging buddies, and <strong>Getting Things GNOME</strong> TODO manager being able to <a href="http://live.gnome.org/gtg/soc/geolocalized_tasks">tag action items with location</a>. <strong>Zeitgeist</strong> is intending to start tagging and searching activity <a href="https://code.launchpad.net/~mortenmjelva/zeitgeist/geoclue-extension">history with location</a>, and <a href="http://patchpanel.blogspot.com/2010/05/ubuntu-1004-my-two-cents.html"><strong>Gwibber</strong></a> also wants to include location sharing to interface with social web services like Brightkite, Qaiku and Google Latitude. Another reasonably low-hanging fruit would be to make the <strong>Ubuntu panel clock</strong> automatically change time zones as you travel.</p>
<p><strong>Midgard in Ubuntu</strong> is a bit trickier question. A lot of Ubuntu has now been developed to <a href="http://www.youtube.com/watch?v=2R1qf5_6Zt4">utilize the <strong>CouchDB</strong> document database</a>, which provides quite <a href="http://bergie.iki.fi/blog/what_is_a_content_repository/">similar storage services as Midgard</a> does. <a href="http://couchdb.apache.org/">CouchDB's</a> cool map/reduce algorithms and replication capabilities have enabled Ubuntu developers to <a href="http://arstechnica.com/open-source/reviews/2009/11/good-karma-ars-reviews-ubuntu-910.ars/6">quickly integrate a content repository</a> into many applications and to provide a cloud storage and synchronization service to users of the operating system.</p>
<p>But at the same time <a href="http://arstechnica.com/open-source/reviews/2010/05/lucid-dream-ars-reviews-ubuntu-1004.ars/9">CouchDB introduces some problems</a>:</p>
<blockquote>CouchDB can't seem to handle the load of Gwibber's messages, leading to excessive CPU consumption and poor performance in certain cases. For example, the overhead of computing the views causes lag when the user switches streams after Gwibber refreshes. The cost of pulling the account configuration data out of the database can also sometimes cause a noticeable lag that lasts up to four or five seconds when opening Gwibber's account manager.</blockquote>
<p>CouchDB has been designed with web servers in mind, and in many situations having a constantly-running Erlang process and having to do HTTP roundtrips to access data are undesirable on more constrained computers. We <a href="http://protoblogr.net/blog/view/finally_got_them_working.html">ported CouchDB to Maemo</a> a few years ago and the performance was terrible. I'd imagine the same issues on netbooks and other small hardware that <a href="http://www.markshuttleworth.com/archives/383">Ubuntu's Light initiative</a> targets.</p>
<p>On such environments <a href="http://twitter.com/sil/status/13782972356">Midgard might be a better option</a>. <a href="http://bergie.iki.fi/blog/ratatoskr_is_out-midgard2_content_repository_goes_lts/">Midgard's recent LTS release</a> uses regular <a href="http://www.gnome-db.org/News">relational databases</a> for fast performance and low footprint, utilizes important pieces of free desktop architecture like D-Bus signalling and <a href="http://live.gnome.org/GObjectIntrospection">GObject Introspection</a>, and has been proven to work well even on low-end devices like the Nokia N900. And yet it provides <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">full content repository APIs</a> comparable to CouchDB, and can even handle <a href="http://bergie.iki.fi/blog/couchdb_and_midgard_talking_with_each_other/">replication with Couch</a>. One way to make Midgard possible, then, would be to provide Python <a href="http://www.freedesktop.org/wiki/Specifications/desktopcouch">DesktopCouch APIs</a> to it.</p>
<p>Another interesting technology discussed much in UDS was <a href="http://www.puppetlabs.com/"><strong>Puppet</strong></a>, the  systems administration tool. It enables developers to describe their setups in a <a href="http://docs.puppetlabs.com/guides/language_tutorial.html">object-oriented declarative language</a>, and then just let Puppet to <em>make it so</em>. I attended two Puppet sessions, and picked up a Kindle edition of <a href="http://www.amazon.com/Pulling-Strings-Puppet-Configuration-Management/dp/1590599780">the Puppet book</a> which I read on the train ride <a href="http://www.qaiku.com/channels/show/maemork/view/00ddfcd65e1411dfacfeebea881863c763c7/">to the Netherlands</a>. As my company manages lots of Midgard web servers for our customers, automating system setup and maintenance on top of Puppet and <a href="http://bergie.iki.fi/blog/nemein_is_going_to_ubuntu_server/">Ubuntu Server</a> might save us lots of time and effort.</p>
<p>All in all, quite an enlightening <a href="http://www.qaiku.com/channels/show/ubuntu/view/adaba27e5c2f11dfb0df111cdab35b375b37/">two days in the event</a>. If things work out, I hope I'll be able to spend more time in the UDS targeting the N-series of Ubuntu next fall.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>desktop</category>
            <pubDate>Sat, 15 May 2010 21:09:47 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df60663161db1c606611dfac05498e607b5d015d01</guid>
        </item>
        <item>
            <title>Ratatoskr is out: Midgard2 Content Repository goes LTS</title>
            <link>http://bergie.iki.fi/blog/ratatoskr_is_out-midgard2_content_repository_goes_lts/</link>
            <description><![CDATA[
<p><a href="http://www.midgard-project.org/updates/midgard2_10-05-ratatoskr-released/">Midgard2 10.05 "Ratatoskr"</a> was released yesterday, moving the Midgard <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">Content Repository</a> into long-term supported state as <a href="http://bergie.iki.fi/blog/future_directions_for_midgard/">outlined in my recent post</a>. Ratatoskr should provide a stable storage system for both desktop and mobile application developers.</p>
<p>Web developers will also benefit from <a href="http://bergie.iki.fi/blog/midcom_3_at_a_glance/">Midgard MVC</a>, the PHP framework that already runs services like <a href="http://qaiku.com/">Qaiku.com</a>.</p>
<p>The release includes:</p>
<blockquote>
<ul><li><strong>Content Repository API</strong> bindings for the following programming languages: C, Python, PHP, C# and Vala. D-Bus signals are used to inform different Midgard2 applications about things happening in the repository, enabling for example a PHP website and a Python background process to communicate with each other.</li>
<li><strong>Midgard MVC</strong>, an elegant framework for PHP web applications. Midgard MVC includes interfaces for loadable components, hierarchical sub-requests, a forms system and much more.</li>
<li><strong>Midgard Runtime</strong> that combines the Midgard MVC, a PHP application server and a WebKit UI to provide a full Midgard web development environment on the desktop.</li>
</ul></blockquote>
<p>This release benefits greatly from new technologies happening in the <a href="http://www.gnome.org/">GNOME</a> sphere: some of the language bindings are created using <a href="http://live.gnome.org/GObjectIntrospection">GObject Introspection</a>, <a href="http://live.gnome.org/Vala">Vala</a> has made development of new features faster and <a href="http://www.gnome-db.org/News">libgda4</a> makes all database operations more efficient.</p>
<p>Packages for various Linux distributions are already trickling into <a href="http://download.opensuse.org/repositories/home:/midgardproject:/ratatoskr/">Midgard's OpenSuse Build Service repositories</a> and <a href="http://maemo.org/packages/search/?org_maemo_packages_search%5B1%5D%5Bproperty%5D=name&amp;org_maemo_packages_search%5B1%5D%5Bconstraint%5D=LIKE&amp;org_maemo_packages_search%5B1%5D%5Bvalue%5D=midgard">Maemo Packages</a>.</p>
<p>A good place to start the Midgard2 journey is my <a href="http://bergie.iki.fi/blog/getting_started_with_the_midgard_content_repository/">Midgard2 Content Repository for Python tutorial</a>.</p>
<p><img src="http://bergie.iki.fi/static/1/1df59f95f46c97a59f911df997e7567a2f979277927_ratatoskr.jpg" border="0" alt="ratatoskr.jpg" title="ratatoskr.jpg" /></p>
<p><em>Photo: </em><a href="http://www.flickr.com/photos/aidanmorgan/2447587265/"><em>Squirrel</em></a><em> by John-Morgan on Flickr (the release codename <a href="http://en.wikipedia.org/wiki/Ratatoskr">Ratatoskr</a> is a mythological squirrel)</em></p>
<p> </p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60 24</georss:point>
            <category>desktop</category>
            <pubDate>Fri, 07 May 2010 17:03:21 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df59fa70e99c9c59fa11df803d83c2bf126d766d76</guid>
        </item>
        <item>
            <title>Future directions for Midgard</title>
            <link>http://bergie.iki.fi/blog/future_directions_for_midgard/</link>
            <description><![CDATA[
<p>Two weeks ago we had the <a href="http://www.qaiku.com/go/6myd/">Midgard Gathering</a> in Poland, and some big decisions were made there. I've been meaning to blog about them, but the <a href="http://en.wikipedia.org/wiki/2010_eruptions_of_Eyjafjallaj%C3%B6kull">volcano eruption in Iceland</a> kept me busy by providing an <a href="http://bergie.iki.fi/blog/on_volcanic_ashes_and_international_travel/">interesting trip through New York and Moscow</a>.</p>
<h2>Midgard2</h2>
<p>The next Midgard2 release, <em>10.05 "Ratatoskr"</em> will be <a href="http://bergie.iki.fi/blog/long-term_support_for_midgard-ragnaroek_is_here/">a long-term support release</a>, intended to provide <em>a reliable base for building web and mobile applications</em> utilizing the content repository. It will consist of:</p>
<p><strong>Midgard Core</strong>, the actual content repository library that abstracts database connections, provides <a href="http://bergie.iki.fi/blog/getting_started_with_the_midgard_content_repository/">object-oriented storage and retrieval interfaces</a> and handles things like D-Bus notifications of content changed by other applications.</p>
<p><strong>Midgard PHP and Midgard Python</strong>, language bindings providing the Midgard content repository services to these popular scripting languages. This means the Midgard content repository can easily be used within any PHP web application, Python maemo application or with the <a href="http://github.com/jerryjj/MidgardPyMVC">Pylons MVC framework</a>.</p>
<p><strong>Midgard Mono</strong>, C# bindings to the Midgard content repository allowing better interfacing with Microsoft technologies.</p>
<p><strong>GObject Introspection</strong> allowing us to <a href="http://live.gnome.org/GObjectIntrospection">provide other language bindings</a> including Vala and Javascript.</p>
<p><strong>Midgard MVC</strong>, an elegant framework for PHP web applications. Midgard MVC includes interfaces for loadable components, <a href="http://techportal.ibuildings.com/2010/02/22/scaling-web-applications-with-hmvc/">hierarchical sub-requests</a>, a forms system and much more. You can see it in action for example on <a href="http://qaiku.com/">Qaiku.com</a></p>
<p><strong>Midgard Runtime</strong> that combines the Midgard MVC, a <a href="http://wiki.github.com/indeyets/appserver-in-php/">PHP application server</a> and <a href="http://www.flickr.com/photos/bergie/4071541356/">a WebKit UI</a> to provide a full Midgard web development environment on the desktop.</p>
<p>Once the release is in shape a major focus will be put in ease of installation and documentation. We already have Midgard2 running on Windows in addition to Linux and Mac, but it will remain to be seen if the port makes it in time for release.</p>
<h2>Midgard3</h2>
<p>After having a stable LTS release of Midgard2 out there the community will start working on Midgard3, which takes the concepts from Midgard2 even further with several important additions:</p>
<p><strong>Workspaces</strong>, kind of "layered virtual databases" inside one content repository. These can be used on the CMS level of Midgard a bit like git branches are used.</p>
<p><strong>Binary GUIDs</strong> for more efficient storage of the unique object identifiers in Midgard.</p>
<p><strong>MgdSchemas stored in the database</strong> instead of XML files. This will make schema editing, sandboxing and replication between installations a lot easier.</p>
<p><strong>MidgardQuerySelect</strong>, the new better database select interface to replace Midgard Query Builder.</p>
<p><strong>Midgard CMS</strong>, the content management user interface built on top of Midgard3 and the Midgard MVC. We will provide interesting new concepts like UI constructed fully based on <em>introspecting the CMS-generated pages</em> and a git-like model <em>where anybody can edit</em> but pushing to production requires additional privileges.</p>
<p>Most applications will need to be adapted to work on Midgard3, which is why the LTS release will be there to ease the way, just <a href="http://www.midgard-project.org/midgard/8.09/">like we did with Ragnaroek</a> on the Midgard1 series.</p>
<p>The estimated first release of Midgard3 will be in December 2010.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.175201 24.919201</georss:point>
            <category>desktop</category>
            <pubDate>Sun, 25 Apr 2010 23:53:31 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df50c5c087390a50c511dfbf7d5988809eab0dab0d</guid>
        </item>
        <item>
            <title>Content repositories: SQL or NoSQL?</title>
            <link>http://bergie.iki.fi/blog/content_repositories-sql_or_nosql/</link>
            <description><![CDATA[
<p>The <a href="http://nosql-database.org/">NoSQL movement</a> seems to be pretty active, advocating a <a href="http://www.roadtofailure.com/2009/06/19/social-media-kills-the-rdbms/">move away from traditional relational databases</a>:</p>
<blockquote>...developers have become crippled by being able to only think of data in terms of Rows and Columns. There's a multitude of database paradigms: Graphs, Trees, Objects, and so on. Furthermore, databases limit developers to SQL, which is great for certain kinds of set mathematics and not much else. In order to overcome fundamental limitations of DBs, things like Conditionals, Iteration, String Manipulation, and more have been hacked into what was at first an elegant set mathematics language.<br /><br /> Algorithms (such as MapReduce) which make data analysis scalable are highly unintuitive in SQL. The limitations in the environment lead to a limitation in engineers' ability to solve "big data" problems.</blockquote>
<p>This may be true if you're building the next Twitter or Facebook. But how many of us really do?<br />In the quite ranty article <a href="http://teddziuba.com/2010/03/i-cant-wait-for-nosql-to-die.html">I Can't Wait for NoSQL to Die</a> <em>Ted Dziuba</em> has a point:</p>
<blockquote>by replacing MySQL or Postgres with a different, new data store, you have traded a well-enumerated list of limitations and warts for a newer, poorly understood list of limitations and warts, and <em>that</em> is a huge business risk.</blockquote>
<p>This is exactly the reason we decided to build <a href="http://midgard2.org/">Midgard2</a> on top of <a href="http://www.gnome-db.org/">a relational database</a>. While it does constrain us in some cases, we can still provide a quite <a href="http://bergie.iki.fi/blog/what_is_a_content_repository/">reasonably full-featured content repository</a> this way.</p>
<p>And being built on SQL means we know the system scales <a href="http://maemo.org/packages/search/?org_maemo_packages_search%5B1%5D%5Bproperty%5D=name&amp;org_maemo_packages_search%5B1%5D%5Bconstraint%5D=LIKE&amp;org_maemo_packages_search%5B1%5D%5Bvalue%5D=midgard">down to mobile devices</a> and all the way up to major business systems like <em>Lufthansa's</em> global marketing budget tracking. That is something very few NoSQL systems will be able to boast.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.176102 24.919701</georss:point>
            <category>midgard</category>
            <pubDate>Mon, 29 Mar 2010 11:08:31 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df3b2368cb88183b2311dfbab7a96235f84fb94fb9</guid>
        </item>
        <item>
            <title>Easier templating for Midgard 8.09</title>
            <link>http://bergie.iki.fi/blog/easier_templating_for_midgard_8-09/</link>
            <description><![CDATA[
<p>For a while now there has been discussion about making <a href="http://www.kaktus.cc/weblog/372ed3bd0f54f3c74b1f158caf87f36a/">template editing</a> easier with <a href="http://www.midgard-project.org/midgard/">Midgard CMS</a>. In the Ragnaroek series we have a very <a href="http://www.midgard-project.org/documentation/concepts-midcom-specs-subsystems-style-engine/">comprehensive template system</a> where all output from the system can be overridden. While the possibilities have not always been easy to discover, things should be better in the <a href="http://trac.midgard-project.org/milestone/8.09.8%20Ragnaroek">next Ragnaroek LTS release</a>.</p>
<p>To access the template system just click F<em>older &gt; Edit layout template</em> in the <a href="http://bergie.iki.fi/blog/midgard-s-new-toolbar/">Midgard toolbar</a>:</p>
<p><img src="http://bergie.iki.fi/static/1/1df3201efbd09f8320111df80bbcb7714e98cae8cae_midcom-toolbar-edittemplate.png" border="0" alt="midcom-toolbar-edittemplate.png" title="midcom-toolbar-edittemplate.png" /></p>
<p>This will take you into <a href="http://bergie.iki.fi/blog/building_a_new_admin_interface_for_midgard/">Asgard, the Midgard administration interface</a>. There you'll be shown what elements are used by the components running on your site:</p>
<p><img src="http://bergie.iki.fi/static/1/1df32022a590a94320211dfb0f36fd381e98e6a8e6a_asgard-template-possibleelements.png" border="0" alt="asgard-template-possibleelements.png" title="asgard-template-possibleelements.png" /></p>
<p>Clicking on an element name will let you create it. Then you'll be shown the default contents of that element to make overriding them easier. The language used in the templates is <a href="http://blog.astrumfutura.com/archives/420-Is-PHP-A-Worthy-Template-Language-Well,-of-course-it-is....html">obviously PHP</a>:</p>
<p><img src="http://bergie.iki.fi/static/1/1df3202625fb4e2320211df96f1fd6cee6a91709170_asgard-element-defaults.png" border="0" alt="asgard-element-defaults.png" title="asgard-element-defaults.png" /></p>
<p>When you save your element it will replace the component's default output in the folders using that particular style. You can also do nice things like including contents from another page <a href="http://www.midgard-project.org/documentation/midcom-method-dynamic_load/">using Dynamic Loading</a>.</p>
<h2>What about file attachments?</h2>
<p>Asgard also allows you to add files (images, CSS, javascript, whatever) to your template. To do this click the <em>Attachments</em> button when you're in the style. There you'll be able to manage existing file attachments and to add new ones:</p>
<p><img src="http://bergie.iki.fi/static/1/1df3202fe3bb7ee320211df80cfc1cacbe5946a946a_asgard-style-attachments-add.png" border="0" alt="asgard-style-attachments-add.png" title="asgard-style-attachments-add.png" /></p>
<p>If you're dealing with a text-based file (CSS, javascript, XML, ...) Asgard will also allow you to edit it directly on the web:</p>
<p><img src="http://bergie.iki.fi/static/1/1df3203321b73ba320311df96f1fd6cee6a91709170_asgard-edit-css-file.png" border="0" alt="asgard-edit-css-file.png" title="asgard-edit-css-file.png" /></p>
<p>...and finally when you're done with your file and want to use it in some of your templates, the URL is available easily from the interface:</p>
<p><img src="http://bergie.iki.fi/static/1/1df32035ad2fc1a320311df80cfc1cacbe5946a946a_asgard-file-information-url.png" border="0" alt="asgard-file-information-url.png" title="asgard-file-information-url.png" /></p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.1717 24.928101</georss:point>
            <category>midgard</category>
            <pubDate>Wed, 17 Mar 2010 20:33:14 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df32044fd172aa320411df84b1594ab9b013e813e8</guid>
        </item>
        <item>
            <title>First year of Qaiku, and a travel writing challenge</title>
            <link>http://bergie.iki.fi/blog/first_year_of_qaiku-and_a_travel_writing_challenge/</link>
            <description><![CDATA[
<p><img src="http://bergie.iki.fi/static/1/1df2bbe864279c02bbe11df8849b307a0df59445944_qaiku-birthday_mascot.gif" border="0" alt="1st birthday of Qaiku" title="1st birthday of Qaiku" style="float:right;" /><a href="http://www.qaiku.com/">Qaiku</a>, the <a href="http://bergie.iki.fi/blog/microblogging-why_qaiku_might_do_what_twitter_and_brightkite_didn-t/">conversational microblogging service</a> that launched a year ago had a refresh that launched today. While it hasn't yet convinced the twittering masses, it has already proven itself as a lot more thoughtful platform for the Finnish online community, and as a valuable <a href="http://bergie.iki.fi/blog/maemo-org_is_testing_workstreaming_with_qaiku/">workstreaming tool</a>.</p>
<p>The new version looks quite nice and fresh. Notice the privacy information on the right-hand side, which is relevant as Qaiku allows channels and profiles that are private or invitation-only:</p>
<p><img src="http://bergie.iki.fi/static/1/1df2bbd3c08f3262bbd11dfb984e5004382fa3ffa3f_qaiku-onmytravels-small.png" border="0" alt="qaiku-onmytravels-small.png" title="qaiku-onmytravels-small.png" /></p>
<p>Technically the new version is also remarkable as it is the first major website to run fully on top of the legacy-free <a href="http://bergie.iki.fi/blog/raise_the_hammer-midgard2_mjolnir_goes_live/">Midgard2 platform</a>. So yes, every entry you see there is a GObject. And D-Bus signals fly when you post.</p>
<h2>On to the challenge, then</h2>
<p>To highlight Qaiku's threading, conversational nature I started a new <a href="http://www.qaiku.com/go/61gu/"><em>"On my travels, I have"</em></a><a href="http://www.qaiku.com/go/61gu/"> thread</a> for sharing your <em>most extraordinary travel experiences</em>. This is not on Twitter or Buzz as with Qaiku it is so easy to keep the conversation together and accessible for the future as well.</p>
<p>To contribute, <a href="http://www.qaiku.com/settings/registration/">sign up on Qaiku</a>, go to <a href="http://www.qaiku.com/go/61gu/">the thread</a> and add your experiences as a comment. If you have a link or picture to include, you can also do so. My first entry was:</p>
<blockquote><a href="http://bergie.iki.fi/blog/african-miracles/">seen</a> ice descend from the heavens and provide us with cold beer on a hot day in Lesotho</blockquote>
<p>Will be interesting to see what comes out of this :-)</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>-3.06343 -60.106998</georss:point>
            <category>desktop</category>
            <pubDate>Tue, 09 Mar 2010 21:00:09 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df2bbebf6658b62bbe11dfb4a947f5df1c12871287</guid>
        </item>
        <item>
            <title>Getting started with the Midgard content repository</title>
            <link>http://bergie.iki.fi/blog/getting_started_with_the_midgard_content_repository/</link>
            <description><![CDATA[
<p>I'm doing a talk today in the <a href="http://www.bossaconference.indt.org/">Bossa Conference</a> about using  <a href="http://bergie.iki.fi/blog/raise_the_hammer-midgard2_mjolnir_goes_live/">Midgard</a> as a content repository for mobile applications. As part of my presentation I wrote some simple example code for using the <a href="http://www.midgard-project.org/documentation/python_midgard/">Midgard APIs in Python</a>, and thought they would be good to share to those not attending the event as well.</p>
<p>The <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">idea of a content repository</a> is that instead of coming up with new, isolated file formats or database setups for your application you can just work with objects and signals, and let Midgard handle the rest. This is something that lots of people are doing with  <a href="http://couchdb.apache.org/">CouchDB</a> as well, but we feel Midgard, with its light footprint and native APIs for languages like Python, C, Vala and PHP fits better in the mobile applications context.</p>
<h2>Installing Midgard</h2>
<p>Midgard packages are available for many different Linux distributions through the OpenSuse Build Service. To find the right repository for  your setup, go to the <a href="http://download.opensuse.org/repositories/home:/midgardproject:/mjolnir/">OBS project page</a>.  For example, on my Ubuntu Karmic netbook the URL to add to apt <code>sources.list</code> is  <code>deb http://download.opensuse.org/repositories/home:/midgardproject:/mjolnir/xUbuntu_9.10/ ./</code>. Then I just:</p>
<pre>sudo apt-get update
sudo apt-get install python-midgard2
</pre>
<p>Midgard is also available in <a href="http://maemo.org/packages/search/?org_maemo_packages_search%5B1%5D%5Bproperty%5D=name&amp;org_maemo_packages_search%5B1%5D%5Bconstraint%5D=LIKE&amp;org_maemo_packages_search%5B1%5D%5Bvalue%5D=midgard">Maemo extras</a> and for OS X <a href="http://www.macports.org/ports.php?by=name&amp;substr=midgard2">on MacPorts</a>.</p>
<h2>Defining a schema</h2>
<p>The first thing when developing a Midgard application is to define your storage objects. This is done using the  <a href="http://www.midgard-project.org/documentation/mgdschema-file-properties/">MgdSchema XML format</a>. In this case we're doing a simple "attendee" object that amends Midgard's built-in person record with information related to the conference:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Schema xmlns="http://www.midgard-project.org/repligard/1.4"&gt;
    &lt;type name="openbossa_attendee" table="openbossa_attendee"&gt;
        &lt;property name="id" type="unsigned integer" primaryfield="id"&gt;
            &lt;description&gt;Local non-replication-safe database identifier&lt;/description&gt;
        &lt;/property&gt;
        &lt;property name="person" type="unsigned integer" link="midgard_person:id"&gt;
            &lt;description&gt;Person attending the event&lt;/description&gt;
        &lt;/property&gt;
        &lt;property name="registration" type="datetime"&gt;
            &lt;description&gt;Registration date of the attendee&lt;/description&gt;
        &lt;/property&gt;
        &lt;property name="likesbeer" type="boolean"&gt;
            &lt;description&gt;Whether the attendee likes beer&lt;/description&gt;
        &lt;/property&gt;
    &lt;/type&gt;
&lt;/Schema&gt;
</pre>
<p>Then we just save this XML file into <code>/usr/share/midgard2/schema/</code> so that Midgard will find it.</p>
<h2>Initiating the repository connection</h2>
<p>Once the MgdSchema is in place it is time to <a href="http://xkcd.com/353/">import antigravity</a> and start hacking in Python.  The code works pretty much in the same way in other languages Midgard is available for, but Python is used here for the sake of simplicity. First we load the Midgard extension:</p>
<pre>import _midgard as midgard
</pre>
<p>Then we setup the <a href="http://www.midgard-project.org/api-docs/midgard/core/9.9/midgard-connection.html">repository connection</a>. With these <a href="http://www.midgard-project.org/api-docs/midgard/core/9.9/midgard-config.html">settings</a> we will store our content into an SQLite database located in  <code>~/.midgard2/data/midgardexample.db</code>:</p>
<pre>configuration = midgard.config()
configuration.dbtype = 'SQLite'
configuration.database = 'midgardexample'

# Open a Midgard repository connection with our config
connection = midgard.connection()
connection.open_config(configuration)
</pre>
<p>As this is the first time we're interacting with the repository we need to tell Midgard to  <a href="http://www.midgard-project.org/api-docs/midgard/core/9.9/midgard-storage.html">prepare the storage</a> for itself and also for our new <code>openbossa_attendee</code> class:</p>
<pre>midgard.storage.create_base_storage()
midgard.storage.create_class_storage('midgard_person')
midgard.storage.create_class_storage('midgard_parameter')
midgard.storage.create_class_storage('openbossa_attendee')
</pre>
<h2>Interacting with data</h2>
<p>First we create a person <a href="http://www.midgard-project.org/api-docs/midgard/core/9.9/midgard-object.html">object</a> with our attendee:</p>
<pre>person = midgard.mgdschema.midgard_person()
person.firstname = 'Leif'
person.lastname = 'Eriksson'
person.create()
</pre>
<p>Then we create our attendee object and link that with the person we just created:</p>
<pre>attendee = midgard.mgdschema.openbossa_attendee()
attendee.person = person.id
attendee.likesbeer = True
attendee.create()
</pre>
<h2>Querying data</h2>
<p>Later we'll want to find out about all Leifs attending the event. We do this by using the  <a href="http://www.midgard-project.org/api-docs/midgard/core/9.9/midgard-query-builder.html">Midgard query builder</a>:</p>
<pre>qb = midgard.query_builder('openbossa_attendee')
qb.add_constraint('person.firstname', '=', 'Leif')
attendees = qb.execute()
</pre>
<p>The query builder returns us a list of matching attendee objects. We can go through them and also fetch the associated persons:</p>
<pre>for attendee in attendees:
    person = midgard.mgdschema.midgard_person()
    person.get_by_id(attendee.person)
    if attendee.likesbeer:
        print "%s, %s is attending the event" % (person.lastname, person.firstname)
</pre>
<p>Then we can update the persons with their email addresses:</p>
<pre>    person.email = 'leif@vinland.no'
    person.update()
</pre>
<p>For basic data handling, that's it! When you need more, you can extend objects with  <a href="http://www.midgard-project.org/documentation/php_midgard_object_attachments/">file attachments</a> or  <a href="http://www.midgard-project.org/documentation/php_midgard_object_parameters/">parameters</a>. You can also create joined records using <a href="http://blogs.nemein.com/people/piotras/view/1246881867.html">Midgard views</a>.  Midgard provides <a href="http://teroheikkinen.iki.fi/blog/midgard_workshop_at_fscons/">D-Bus signals</a>, <a href="http://blogs.nemein.com/people/piotras/view/1246966442.html">transactions</a>,  <a href="http://www.midgard-project.org/documentation/mgdschema-metadata-object/">centralized metadata</a>,  <a href="http://www.midgard-project.org/documentation/php-midgard_replicator/">synchronization</a> and many other things.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>-3.06343 -60.106998</georss:point>
            <category>desktop</category>
            <pubDate>Tue, 09 Mar 2010 15:50:26 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df2b937abcafba2b9311df8feac5680ae0b314b314</guid>
        </item>
        <item>
            <title>CMS Watch on their Midgard usage</title>
            <link>http://bergie.iki.fi/blog/cms_watch_on_their_midgard_usage/</link>
            <description><![CDATA[
<p><a href="http://www.cmswatch.com/Blog/1826-Which-CMS-does-The-Real-Story-Group-Use?">Which CMS does The Real Story Group Use? (Tony Byrne / CMS Watch)</a>:</p>
<blockquote>The answer is, we use an open-source platform called "Midgard." We picked it nearly ten years ago, and it has held up fairly well.<br />...<br /><br /> One of the things we like about Midgard actually makes it rather unsuitable for many simpler publishing scenarios: it is highly object-oriented. This allows us to run multiple sites off largely a single codebase -- at the cost of quite user-unfriendly administrative and authoring facilities.<br /><br /> Also, Midgard is very much a development platform, and we have had to create a fair amount of custom code, especially to handle structured content. In that regard, our CMS experience probably resemble yours. As an industry we remain very far from plug-and-play content management technology for all but the simplest of websites.</blockquote>
<p>While the post contains many negative points about <a href="http://www.midgard-project.org/midgard/">older Midgard</a> (the UIs are <a href="http://bergie.iki.fi/blog/midgard-s-new-toolbar/">a bit better now</a> than they used to be, quite a lot of development has since <a href="http://trac.midgard-project.org/timeline">been happening</a> especially in <a href="http://bergie.iki.fi/blog/long-term_support_for_midgard-ragnaroek_is_here/">the LTS branch</a>), it is remarkable that <a href="http://www.cmswatch.com/">CMS Watch</a> has been able to run their services through the <em>same CMS setup for ten years</em>. This really shows the durability and commitment to long-term stability we have in the Midgard community. We've been doing this for <a href="http://bergie.iki.fi/blog/first_ten_years_of_midgard/">more than ten years</a>, and will likely keep going for quite a bit longer.</p>
<p>As for usability and popularity of Midgard, there is quite little we can do about it in the Midgard1 area, as that is now in <a href="http://bergie.iki.fi/blog/long-term_support_for_midgard-ragnaroek_is_here/">long-term support</a> phase that won't allow major changes. But <a href="http://bergie.iki.fi/blog/raise_the_hammer-midgard2_mjolnir_goes_live/">Midgard2 is a new world</a> with new opportunities. Midgard's <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">content repository</a> is pretty much there already, as is the MVC layer, and this spring we should be able to unveil the new, quite revolutionary CMS concept as well. Watch <a href="http://bergie.iki.fi/">this blog</a> for updates!</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>-3.06343 -60.106998</georss:point>
            <category>midgard</category>
            <pubDate>Mon, 08 Mar 2010 18:24:26 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df2adfd3b9cf802adf11df924fff308a1dbaf7baf7</guid>
        </item>
        <item>
            <title>Register and log into meego.com using your maemo.org account</title>
            <link>http://bergie.iki.fi/blog/register_and_log_into_meego-com_using_your_maemo-org_account/</link>
            <description><![CDATA[
<p><a href="http://meego.com/">MeeGo</a> is the new mobile Linux platform developed by Nokia and Intel. As the <a href="http://bergie.iki.fi/blog/maemo-s_community_involvement_infrastructure_is_what_meego_needs/">community is forming</a> up, we thought that it would be good to enable people to use their <a href="http://maemo.org/profile/list/">maemo.org identities</a> also on the MeeGo web services (as well as on any other <a href="https://www.myopenid.com/directory">OpenID enabled website</a>). For this, let me introduce <a href="http://maemo.org/openid/">Maemo's OpenID provider</a>.</p>
<p>First of all, go to <a href="http://meego.com/">meego.com</a> and click login:</p>
<p><img src="http://bergie.iki.fi/static/1/1df214b955a0432214b11df8240e36785e2ee2fee2f_meego-login-png.jpg" border="0" alt="meego-login.png" title="meego-login.png" /></p>
<p>Select the "<em>Log in using OpenID</em>" option, and provide your <a href="http://maemo.org/openid/">maemo.org OpenID URL</a>:</p>
<p><img src="http://bergie.iki.fi/static/1/1df214bb9e88c06214b11df9a008b182b8765336533_meego-maemo-openid-png.jpg" border="0" alt="meego-maemo-openid.png" title="meego-maemo-openid.png" /></p>
<p>Then the request will be redirected to <a href="http://maemo.org/">maemo.org</a> where the site will check your credentials and ask whether to relay your information on to meego.com:</p>
<p><img src="http://bergie.iki.fi/static/1/1df214be6d9568c214b11df85c435f51c00c07ac07a_maemo-openid-meego-png.jpg" border="0" alt="maemo-openid-meego.png" title="maemo-openid-meego.png" /></p>
<p>And that's it, suddenly you can use your maemo.org account with meego.com!</p>
<p> </p>
<p>The same <a href="http://trac.midgard-project.org/browser/branches/ragnaroek/midcom/net.nemein.openidprovider">OpenID provider</a> component can also be utilized on any other <a href="http://www.midgard-project.org/midgard/8.09/">Midgard</a>-powered website.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.167999 24.9263</georss:point>
            <category>meego</category>
            <pubDate>Wed, 24 Feb 2010 13:57:09 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df214c801741f6214c11df81724157cc3a80998099</guid>
        </item>
        <item>
            <title>Going to the Bossa Conference</title>
            <link>http://bergie.iki.fi/blog/going_to_the_bossa_conference/</link>
            <description><![CDATA[
<p><a href="http://www.bossaconference.indt.org/">Bossa Conference</a>, an event about mobile development with free software technologies will be held on March 7th-10th in <a href="http://en.wikipedia.org/wiki/Manaus">Manaus</a>, Brazil. This year I'm speaking about using <a href="http://midgard2.org/">Midgard</a> as a replicated storage layer in mobile applications, with examples for multiple programming languages and toolkits.</p>
<p>The idea behind the <a href="http://bergie.iki.fi/blog/midgard2_stable-generic_content_repository_for_web-desktop_and_mobile/">Midgard content repository</a> is that instead of coming up with your own file formats you can just <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">keep working with objects and signals</a>, and let the repository deal with the rest.</p>
<p><img src="http://bergie.iki.fi/static/1/1df2077771ab4aa207711dfb6718745055195119511_bossaconference-small-png.jpg" border="0" alt="bossaconference-small.png" title="bossaconference-small.png" /></p>
<p>It is always fun to go to Brazil and <a href="http://www.flickr.com/photos/bergie/collections/72157600946258420/">meet the vibrant free software community</a> there. The plan is to fly over this weekend, spend a few days in Sao Paulo and then head for the Amazon. Feel free to <a href="http://bergie.iki.fi/">ping me</a> if you're around.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.169899 24.9384</georss:point>
            <category>desktop</category>
            <pubDate>Tue, 23 Feb 2010 12:38:44 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df2078618248a0207811dfbc30997c9fb3d8eed8ee</guid>
        </item>
        <item>
            <title>Halti.com provides contextual product recommendations</title>
            <link>http://bergie.iki.fi/blog/halti-com_provides_contextual_product_recommendations/</link>
            <description><![CDATA[
<p>Last week the <a href="http://halti.com/">Finnish outdoor brand Halti</a> launched a pretty interesting web service. While many outdoor brands focus on extreme sports that don't really have much to do with the reality of most of their customers, Halti connects their product lineup to the needs of the site visitor by utilizing both weather and location. This means where ever they are or are planning to go, they can get product recommendations personalized to their needs:</p>
<p><img src="http://bergie.iki.fi/static/1/1df1657ccade8c6165711dfba5f45ffba46b268b268_halti-small-png.jpg" border="0" alt="halti-small.png" title="halti-small.png" /></p>
<p>This is another case of <a href="http://bergie.iki.fi/blog/making_the_gnome_desktop_location-aware/">location context being used</a> to serve users better. To figure out where the user is coming from the site uses a combination of <a href="http://bergie.iki.fi/blog/easy_user_location_with_midgard/">IP positioning</a> and <a href="http://bergie.iki.fi/blog/browser_geolocation_without_gps-quite_accurate_enough/">browser geolocation</a>, while weather information comes from <a href="http://www.foreca.com/">Foreca's</a> feeds. Map visualization uses <a href="http://cloudmade.com/">CloudMade's</a> <a href="http://www.openstreetmap.org/">OpenStreetMap</a>-based maps. And of course the whole thing runs on the stable <a href="http://bergie.iki.fi/blog/long-term_support_for_midgard-ragnaroek_is_here/">Ragnaroek series of Midgard</a>.</p>
<p><strong>In other news,</strong> <a href="http://josetjaksa.fi/">Jos et jaksa</a> is another pretty interesting recent site launch, especially for the fact that it is the first-ever website running on the <a href="http://bergie.iki.fi/blog/midgard_2-finally_legacy-free/">legacy-free Midgard2 platform</a> and <a href="http://www.midgard-project.org/discussion/developer-forum/status_of_midgard_mvc/">Midgard MVC</a>.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.166401 24.9175</georss:point>
            <category>geo</category>
            <pubDate>Wed, 10 Feb 2010 15:33:05 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df165995023e66165911dfae5e39ee72ad6ab26ab2</guid>
        </item>
        <item>
            <title>Direct manipulation interfaces</title>
            <link>http://bergie.iki.fi/blog/direct_manipulation_interfaces/</link>
            <description><![CDATA[
<p>There certainly is a lot of buzz about <a href="http://www.engadget.com/tag/Appletablet/">Apple's rumored Tablet</a> product.  <a href="http://daringfireball.net/2009/12/the_tablet">Daring Fireball writes</a>:</p>
<blockquote>If you’re thinking The Tablet is just a big iPhone, or just Apple’s take on the e-reader, or just a media player, or <em>just</em> anything, I say you’re thinking too small — the equivalent of thinking that the iPhone was going to be just a click wheel iPod that made phone calls. I think The Tablet is nothing short of Apple’s reconception of personal computing.</blockquote>
<p>What I find most interesting are the view that the Tablet may bring new  computer interaction paradigms. <a href="http://daringfireball.net/2010/01/the_original_tablet">Again from Daring Fireball</a>:</p>
<blockquote>Our “desktop” computers’ human interfaces haven’t fundamentally changed since 1984 — keyboard and mouse/trackpad for input, overlapping draggable resizable windows on-screen, and a hierarchical file system where you create and manage “document files”. Have you ever sat back, scratched your chin, and wondered when the computer industry will break free of these current interfaces — which can be a hassle even for experts, and downright confusing (e.g. click vs. double-click) for the non-experts? Surely no one expects the computer interfaces of, say, 50 years hence to be based on these same metaphors and input methods. What’s the next step?</blockquote>
<p>A touchscreen tablet isn't really suited for <a href="http://en.wikipedia.org/wiki/WIMP_%28computing%29">the WIMP paradigm</a> as for example <a href="http://www.macworld.com/article/145609/2010/01/tablet_text_entry.html">text entry is quite difficult</a>, and you probably want larger, thumb-friendly user interface elements. This is where <a href="http://theappleblog.com/2010/01/07/microsofts-slate-exactly-unlike-apples-upcoming-tablet/">Microsoft's Tablet PC initiative failed</a>, trying to bring the regular WIMP user interface to the tablet.</p>
<p>Instead what seems to be happening is that all the Wiis, iPhones, and N900s are now heading us towards a <a href="http://en.wikipedia.org/wiki/Post-WIMP">post-WIMP</a> world. Instead of indirect manipulation by mouse and keyboard we can now interact with our applications using the more natural ways of touching things on screen or moving the device around.</p>
<p>This innovation will not be limited only to mobile APIs, web applications can already now know whether user is accessing them via a WIMP  system or a touchscreen device thanks to <a href="https://developer.mozilla.org/en/css/media_queries#-moz-touch-enabled">CSS  media queries</a> and <a href="http://dougt.org/wordpress/2009/08/orientation/">Javascript  orientation events</a> in <a href="http://www.mozilla.com/en-US/firefox/3.6/releasenotes/">latest  Firefox</a>.</p>
<p>The user interface innovation that is arriving thanks to these new interaction possibilities is quite promising, though it will probably take a while before we know what things actually work, and what are just fun demos.</p>
<p>If you're thinking about new kinds of user interfaces, it might be a good time to read papers like <a href="http://www.useit.com/papers/noncommand.html">Noncommand User Interfaces</a> (<em>Jakob Nielsen</em>, 1993) and <a href="http://worrydream.com/MagicInk/">Magic Ink</a> (<em>Bret Victor</em>, 2006).</p>
<p>I certainly am as we are in the process of <a href="http://www.qaiku.com/go/5ebp">defining a new kind of CMS UI</a> for <a href="http://bergie.iki.fi/blog/raise_the_hammer-midgard2_mjolnir_goes_live/">Midgard 2</a>.</p>
<p><strong>Update:</strong> Gizmodo has a very nice <a href="http://gizmodo.com/5452501/the-apple-tablet-interface-must-be-like-this">article on Jef Raskin's information appliance concept</a> and the evolution of GUIs.</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.163502 24.927999</georss:point>
            <category>desktop</category>
            <pubDate>Thu, 21 Jan 2010 13:26:44 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1df06909e4e04ce069011dfb6b32b7fb4e242a442a4</guid>
        </item>
        <item>
            <title>Midgard in 2009</title>
            <link>http://bergie.iki.fi/blog/midgard_in_2009/</link>
            <description><![CDATA[
<p><img src="http://bergie.iki.fi/static/1/1def5febc8f9aeef5fe11de9b44cb847ee61f091f09_vali_new_year.jpg" border="0" alt="Vali raising a toast" title="Toast for 2009 from Vali" style="float:right;margin-left:6px;" />2009 was a pretty active year for the <a href="http://www.midgard-project.org/">Midgard</a> content repository project, and so it is good to take a look at some of the highlights:</p>
<ul><li><a href="http://www.midgard2.org/">Midgard2</a> finally <a href="http://bergie.iki.fi/blog/midgard2_stable-generic_content_repository_for_web-desktop_and_mobile/">became a reality</a>, bringing us a <a href="http://bergie.iki.fi/blog/midgard_2-finally_legacy-free/">fully legacy-free</a> modern Midgard implementation. There were two releases: <a href="http://www.midgard-project.org/updates/midgard2-9-3-0-vinland-released/">9.03 Vinland</a> and <a href="http://bergie.iki.fi/blog/raise_the_hammer-midgard2_mjolnir_goes_live/">9.09 Mjolnir</a>. Midgard2 works just fine also <a href="http://bergie.iki.fi/blog/why_you_should_use_a_content_repository_for_your_application/">in desktop applications</a> and mobile devices like <a href="http://bergie.iki.fi/blog/tomboy_web_synchronization-conboy_and_midgard/">the Nokia N900</a></li>
<li><a href="http://www.midgard-project.org/midgard/8.09/">Ragnaroek</a>, the <a href="http://bergie.iki.fi/blog/long-term_support_for_midgard-ragnaroek_is_here/">long-term support version</a> of Midgard1 kept chugging along with four new maintenance releases and total of <a href="http://trac.midgard-project.org/query?status=closed&amp;milestone=8.09.3+Ragnaroek&amp;milestone=8.09.4+Ragnaroek&amp;milestone=8.09.5+Ragnaroek&amp;milestone=8.09.6+Ragnaroek&amp;order=priority">566 issues closed</a>. Ragnaroek will be maintained until October 2013</li>
<li>The <a href="http://bergie.iki.fi/blog/first_ten_years_of_midgard/">Midgard Project turned ten years old</a> in May. A <a href="http://www.midgard-project.org/10/programme/">gala evening</a> and <a href="http://www.flickr.com/photos/bergie/sets/72157617984600444/">party was held</a> in Helsinki, Finland</li>
<li>Midgard's content repository gained bindings to two new programming languages alongside existing PHP, C and Python: <a href="http://www.mdk.org.pl/2009/3/26/midgard-objc-bindings">Objective-C in March</a> and <a href="http://trac.midgard-project.org/browser/trunk/midgard/apis/vala/example.vala?rev=24376">Vala in December</a></li>
<li>Midgard was <a href="http://www.iks-project.eu/team">one of the CMSs</a> admitted to the <a href="http://bergie.iki.fi/blog/starting_the_interactive_knowledge_project/">EU-funded Interactive Knowlegde project</a> that aims to increase semantic capabilities in content management</li>
<li><a href="http://www.qaiku.com/">Qaiku</a>, a <a href="http://bergie.iki.fi/blog/microblogging-why_qaiku_might_do_what_twitter_and_brightkite_didn-t/">conversational microblogging platform</a> powered by Midgard MVC was launched in March</li>
<li>We had two Midgard Gatherings: in <a href="http://bergie.iki.fi/blog/midgard_gathering_2009_in_linkoping/">March in Linköping, Sweden</a> and in <a href="http://www.qaiku.com/channels/show/midgard/view/1debfda2c347a3cbfda11dea31c97423a5855b355b3/">October in Helsinki, Finland</a></li>
<li><a href="http://bergie.iki.fi/blog/ragnaland_is_coming/">Ragnaland</a> became a way to bridge the gap between Midgard1 and Midgard2 by enabling running of MidCOM applications on top of Midgard MVC</li>
<li>Midgard was presented in several conferences including <a href="http://bergie.iki.fi/blog/learn_about_midgard2-geoclue_and_libchamplain_in_guadec_2009/">Gran Canaria Desktop Summit</a>, <a href="http://bergie.iki.fi/blog/content_repository_talk_in_froscon/">FrOSCon</a>, <a href="http://www.qaiku.com/channels/show/seminaarikannu/view/1deadc2a643dd4cadc211de91f513767f63d2b7d2b7/">OpenMind</a> and <a href="http://www.qaiku.com/channels/show/seminaarikannu/view/1ded0f68a907c48d0f611de9405ddb75667e0dfe0df/">FSCONS</a></li>
<li><a href="http://www.qaiku.com/channels/show/midgard/view/1deeca09f359ab4eca011dea74d4f007179bd35bd35/">Founding meeting for an association to support the Midgard project</a> was held in December. The association will provide membership to all active Midgard contributors, and an alumni membership for people who have been part of the project in the past</li>
</ul><p>Happy new year to everybody in the Midgard world!</p>]]></description>
            <author>henri.bergius@iki.fi (Henri Bergius)</author>
            <georss:point>60.176201 24.920099</georss:point>
            <category>desktop</category>
            <pubDate>Thu, 31 Dec 2009 11:23:35 +0000</pubDate>
            <guid>http://bergie.iki.fi/midcom-permalink-1def5feef2e0fa8f5fe11de9869ffb95a6ee8c4e8c4</guid>
        </item>
    </channel>
</rss>
