<?xml version="1.0" encoding="ISO-8859-1"?>

<rdf:RDF
 xmlns="http://purl.org/rss/1.0/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
>

<channel rdf:about="http://www.peterbe.com/rss.xml">
  <title>Peterbe.com</title>
  <link>http://www.peterbe.com</link>
  <description>Peter Bengtssons's personal homepage about little things that concern him.</description>
  <dc:language>en-uk</dc:language>
  <dc:publisher>mail@peterbe.com</dc:publisher>
<items>
  <rdf:Seq>
  <rdf:li rdf:resource="http://www.peterbe.com/plog/speed-test-between-django_mongokit-and-postgresql_psycopg2" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/ubuntu-cola-or-ubuntu-linux" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/importance-of-public-urls" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/massive-improvement-on-sorting-a-fat-list" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/how-girls-guys-rate-guys-girls" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/last.fm-tube-tags" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/haiti-earthquake-whos-given-what" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/healingfoodreference.com" />
  <rdf:li rdf:resource="http://www.peterbe.com/plog/guake-not-yakuake-or-yeahconsole" />
 </rdf:Seq>
</items>
<image>
  <title>Peterbe.com</title>
  <url>http://www.peterbe.com/misc_/Peterbecom/peterbe_logo_white_small.gif</url>
  <link>http://www.peterbe.com</link>
  <width>140</width>
  <height>37</height>
  <description>Peterbe.com (Peter Bengtsson on Python, Zope, Kung Fu, London and photos)</description>
</image>
</channel>

<item rdf:about="http://www.peterbe.com/plog/speed-test-between-django_mongokit-and-postgresql_psycopg2">
  <title><![CDATA[Speed test between django_mongokit and postgresql_psycopg2]]></title>
  <description><![CDATA[<p>Following on from yesterday's blog about <a href="http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit">How and why to use django-mongokit</a> I extended the exampleproject which is inside the <a href="http://github.com/peterbe/django-mongokit">django-mongokit</a> project with another app called <code>exampleapp_sql</code> which does the same thing as the <code>exampleapp</code> but does it with SQL instead. Then I added a very simple <a href="http://github.com/peterbe/django-mongokit/blob/master/exampleproject/benchmarker/views.py">benchmarker app</a> in the same project and wrote three functions:</p>

<ol>
<li> One to create 10/100/500/1000 instances of my class</li>
<li> One to edit one field of all 10/100/500/1000 instances</li>
<li> One to delete each of the 10/100/500/1000 instances</li>

</ol></p><br/>[<a href="http://www.peterbe.com/plog/speed-test-between-django_mongokit-and-postgresql_psycopg2" style="font-size:80%">325 more words</a>]]]></description>
  <link>http://www.peterbe.com/plog/speed-test-between-django_mongokit-and-postgresql_psycopg2</link>
  <dc:subject>Python</dc:subject>
  <dc:date>2010-03-09T14:38:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit">
  <title><![CDATA[How and why to use django-mongokit (aka. Django to MongoDB)]]></title>
  <description><![CDATA[<p><a href="http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit/mongo2django.png"><img src="http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit/display-thumbnail/mongo2django.png" alt="How and why to use django-mongokit" class="floatright" border="1" /></a>
Here I'm going to explain how to combine
<a href="http://www.djangoproject.com/">Django</a> and
<a href="http://www.mongodb.org/display/DOCS/Home">MongoDB</a> using
<a href="http://bitbucket.org/namlook/mongokit/wiki/Home">MongoKit</a> and
<a href="http://github.com/peterbe/django-mongokit">django-mongokit</a>. </p>
<p>MongoDB is a document store built for high speed and high concurrency
with a very good redundancy story. It's an alternative to relational
databases (e.g. MySQL) that is what Django is tightly coupled with in
it's ORM (Object Relation Mapping) and what it's called now is ODM
(Object Document Mapping) in lack of a better acronym. That's where
MongoKit comes in. It's written in Python and it connects to the
MongoDB database using a library called
<a href="http://api.mongodb.org/python/1.4%2B/index.html">pymongo</a> and it turns
data from the MongoDB and turns it into instances of classes you have
defined. MongoKit has nothing to do with Django. That's where
django-mongokit comes in. Written by yours truly.</p><br/>[<a href="http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit" style="font-size:80%">1551 more words</a>]]]></description>
  <link>http://www.peterbe.com/plog/how-and-why-to-use-django-mongokit</link>
  <dc:subject>Python</dc:subject>
  <dc:date>2010-03-08T11:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/ubuntu-cola-or-ubuntu-linux">
  <title><![CDATA[Ubuntu Cola or Ubuntu Linux]]></title>
  <description><![CDATA[<p><a href="http://www.peterbe.com/plog/ubuntu-cola-or-ubuntu-linux/photo.jpg"><img src="http://www.peterbe.com/plog/ubuntu-cola-or-ubuntu-linux/display-thumbnail/photo.jpg" alt="Ubuntu Cola or Ubuntu Linux"  border="1" /></a></p>
<p>Which came first?</p>
<p>Does it matter?</p>]]></description>
  <link>http://www.peterbe.com/plog/ubuntu-cola-or-ubuntu-linux</link>
  <dc:subject>Linux</dc:subject>
  <dc:date>2010-03-06T14:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/importance-of-public-urls">
  <title><![CDATA[Importance of public URLs and how enterprisecarsales.com gets it wrong]]></title>
  <description><![CDATA[<p><a href="http://www.peterbe.com/plog/importance-of-public-urls/ecs.png"><img src="http://www.peterbe.com/plog/importance-of-public-urls/display-thumbnail/ecs.png" alt="Importance of public URLs and how enterprisecarsales.com f's it up" class="floatright" border="1" /></a>
A friend of mine found a nice car she on <a href="http://www.enterprisecarsales.com/">www.enterprisecarsales.com</a> so she copied the current URL from the address bar and emailed that to me. The URL was:
<a href="http://www.enterprisecarsales.com/carsales/vehicleDetails.do?carIndex=1&vin=1GCHC24U36E112452">http://www.enterprisecarsales.com/carsales/vehicleDetails.do?carIndex=1&vin=1GCHC24U36E112452</a>
which by the look of it (notice the <code>/vehicleDetails.do</code> part of the URL) takes you to a page that says "Sorry, we are unable to complete your page request since the page you are trying to access no longer is available." How stupid is that? Come on, web developers made those kind of mistakes in 2001. Not 2010. </p>
<p>This means that people can't talk to each other about found matches on the site and this is something people want to do. Especially if you're going to spend $thousands on a car. </p>
<p>Come on Enterprise web team: install <a href="http://www.djangoproject.com">Django</a> or something and give users what they want not your excuses. </p>]]></description>
  <link>http://www.peterbe.com/plog/importance-of-public-urls</link>
  <dc:subject>Web development</dc:subject>
  <dc:date>2010-03-05T01:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/massive-improvement-on-sorting-a-fat-list">
  <title><![CDATA[Massive improvement on sorting a fat list]]></title>
  <description><![CDATA[<p><a href="http://www.issuetrackerproduct.com/Download#IssueTrackerMassContainer">IssueTrackerMassContainer</a> is a simple Zope product that is used to put a bunch of <a href="http://www.issuetrackerproduct.com/">IssueTrackerProduct</a> instances into. It doesn't add much apart from a nice looking dashboard that lists all recent issues and then with an AJAX poll it keeps updating automatically. </p>
<p>But what it was doing was it recursively put together <strong>all</strong> issues across all issue trackers, sorting them and then returning only the first 20. Fine, but once the numbers start to add up it can become a vast sort operation to deal with. </p>
<p>In my local development copy of <strong>814</strong> issues, by the use of <a href="http://code.google.com/p/pympler/">pympler</a> and <code>time()</code> I was able to go from <strong>7 Mb</strong> taking <strong>2 seconds</strong> down to using only <strong>8 Kb</strong> and taking <strong>0.05 seconds</strong>.</p><br/>[<a href="http://www.peterbe.com/plog/massive-improvement-on-sorting-a-fat-list" style="font-size:80%">409 more words</a>]]]></description>
  <link>http://www.peterbe.com/plog/massive-improvement-on-sorting-a-fat-list</link>
  <dc:subject>Python</dc:subject>
  <dc:date>2010-02-28T15:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/how-girls-guys-rate-guys-girls">
  <title><![CDATA[How girls/guys rate guys/girls]]></title>
  <description><![CDATA[<p><a href="http://www.peterbe.com/plog/how-girls-guys-rate-guys-girls/equation1.jpg"><img src="http://www.peterbe.com/plog/how-girls-guys-rate-guys-girls/display-thumbnail/equation1.jpg" alt="How girls/guys rate guys/girls" class="floatright" border="1" /></a>
It's of course a simplification but is it not true? Come on, admit it, isn't there something to it? </p>
<p>What do you think? As a man I must admit that it does feel like that. I don't know about the girls perspective so I'd love to hear what you think (keeping it mind that it's an exaggeration)</p>]]></description>
  <link>http://www.peterbe.com/plog/how-girls-guys-rate-guys-girls</link>
  <dc:subject>Misc. links</dc:subject>
  <dc:date>2010-02-27T13:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/last.fm-tube-tags">
  <title><![CDATA[Last.fm Tube Tags]]></title>
  <description><![CDATA[<p><a href="http://www.peterbe.com/plog/last.fm-tube-tags/map.png"><img src="http://www.peterbe.com/plog/last.fm-tube-tags/display-thumbnail/map.png" alt="Last.fm Tube Tags" class="floatright" border="1" /></a>
Last month I marveled over the cute <a href="http://www.peterbe.com/plog/LastGraph">LastGraph</a> which shows you a visualization of what artists you've been listening to on Last.fm lately in a neat way. Today I discovered this cute visualization: <a href="http://playground.last.fm/demo/tagstube">Tube Tags</a></p>
<p>I think it's only for paying Last.fm users since it says "VIP" next to the link. My understanding is that it shows the genres of music you've been listening too recently in a London Underground type of map way. Very neat.</p>
<p><a href="http://www.peterbe.com/plog/last.fm-tube-tags/peterbengtsson_tags_tube.pdf">Here's mine</a> (31Kb PDF)</p>]]></description>
  <link>http://www.peterbe.com/plog/last.fm-tube-tags</link>
  <dc:subject>Music</dc:subject>
  <dc:date>2010-02-13T17:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/haiti-earthquake-whos-given-what">
  <title><![CDATA[Haiti Earthquake: Who's given what?]]></title>
  <description><![CDATA[<p><a href="http://www.flickr.com/photos/25541021@N00/4312664698/sizes/o/in/pool-1115946@N24/"><img src="http://www.peterbe.com/plog/haiti-earthquake-whos-given-what/4312664698_5b29d03e63_m.jpg" alt="Haiti Earthquake: Who's given what?" class="floatleft" border="1" /></a>
If I've understood it correctly, this is a mashup made on <a href="http://www.guardian.co.uk/open-platform">Guardian's API</a> made by someone not at the Guardian. <a href="http://www.flickr.com/groups/guardiandatastore/pool/with/4312664698/">More photos here</a></p>
<p>What's interesting about this chart, which I've never seen like this before, is the last one where they show how much money various countries pledged versus how much they actually delivered. It's something I've also wanted to see because it opens up a whole new dimension of truth to the equation. For example, Canada has pledged USD 130m to the Haiti Earthquake but they only delivered 51% of what they pledged to the 2004 Tsunami crisis.</p>]]></description>
  <link>http://www.peterbe.com/plog/haiti-earthquake-whos-given-what</link>
  <dc:subject>Politics</dc:subject>
  <dc:date>2010-02-02T14:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/healingfoodreference.com">
  <title><![CDATA[Healing Food Reference]]></title>
  <description><![CDATA[<p><a href="http://www.healingfoodreference.com/tofu.html"><img src="http://www.peterbe.com/plog/healingfoodreference.com/display-thumbnail/tofu.png" alt="Healing Food Reference" class="floatright" border="1" /></a>
Spotted this website called <a href="http://www.healingfoodreference.com/">Healing Food Reference</a> which is what the name says; a reference of food and their healing "power".
From the home page:</p>
<p><em>"This site is part of a public education project created by Mike Adams, the Health Ranger, and hosted by Truth Publishing. Its purpose is to educate and empower consumers with information they can use to prevent and even help reverse degenerative disease. There are no commercial sponsors of this site, and neither Mike Adams nor Truth Publishing was paid anything to create this site."</em></p>
<p>Basically click on a type of food, for example <a href="http://www.healingfoodreference.com/tofu.html">tofu</a> and you get a list of things it can help with such as <a href="http://www.healingfoodreference.com/fever.html">fever</a> and then from the fever page you can more foods that help. </p>
<p>At first I was a bit taken aback by the home page and huge amounts of text on it but once you're in it is so easy to use. Perhaps the reason the home page is jam packed with content is for his search engine optimization.</p>]]></description>
  <link>http://www.peterbe.com/plog/healingfoodreference.com</link>
  <dc:subject>Misc. links</dc:subject>
  <dc:date>2010-01-27T11:00:00+00:00</dc:date>
</item>

<item rdf:about="http://www.peterbe.com/plog/guake-not-yakuake-or-yeahconsole">
  <title><![CDATA[Guake, not Yakuake or Yeahconsole]]></title>
  <description><![CDATA[<p>I've been a big fan of <a href="http://yakuake.uv.ro/">Yakuake</a> for a long time. It's a terminal you have open all the time in Linux that is shown and hidden, over any other windows, by a simply hit on the F12 button. </p>
<p>But as of more recent versions of Yakuake it has become really slow. It sometimes take 2-3 seconds from F12 press till you can type on the terminal. So I uninstalled it and tried <a href="http://phrat.de/yeahtools.html">Yeahconsole</a> but I uninstalled it equally fast as I understood it was broken and didn't work at all despite being in the Xubuntu apt repositories. </p>
<p>Last but not least I ended up using <a href="http://labs.alfaiati.net/guake/">Guake</a> which not only works but also works really really fast. <a href="http://www.dedoimedo.com/computers/guake-yakuake.html">Screenshots here</a></p>]]></description>
  <link>http://www.peterbe.com/plog/guake-not-yakuake-or-yeahconsole</link>
  <dc:subject>Linux</dc:subject>
  <dc:date>2010-01-23T10:00:00+00:00</dc:date>
</item>

</rdf:RDF>