<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ten.ynottony.net &#187; Ubuntu</title>
	<atom:link href="http://ten.ynottony.net/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://ten.ynottony.net</link>
	<description>He's at it again...</description>
	<lastBuildDate>Sat, 05 Feb 2011 11:21:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Testing with Python 2.4 on Ubuntu 10.10</title>
		<link>http://ten.ynottony.net/2011/02/testing-with-python24-on-ubuntu-1010/</link>
		<comments>http://ten.ynottony.net/2011/02/testing-with-python24-on-ubuntu-1010/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 18:30:49 +0000</pubDate>
		<dc:creator>Anthony Batchelor</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://ten.ynottony.net/?p=178</guid>
		<description><![CDATA[Recently I needed to test a Django app under Python 2.4. I&#8217;m using Ubuntu 10.10 and the lowest packaged version of Python in the repositories is 2.6. I decided to compile Python 2.4 myself and use it in a virtualenv &#8230; <a href="http://ten.ynottony.net/2011/02/testing-with-python24-on-ubuntu-1010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to test a <a href="http://www.djangoproject.com/">Django</a> app under <a href="http://www.python.org/">Python</a> 2.4.  I&#8217;m using <a href="http://www.ubuntu.com/">Ubuntu</a> 10.10 and the lowest packaged version of Python in the repositories is 2.6.  I decided to compile Python 2.4 myself and use it in a <a href="http://pypi.python.org/pypi/virtualenv">virtualenv</a> environment to test the app.  There were a couple of little gotchas that caught me when I was doing this, so I thought I&#8217;d write-up the process.</p>
<h3>Step 1: Install the Build Dependencies </h3>
<p>Python 2.6 is close enough to 2.4 that the dependencies haven&#8217;t changed much (if at all).<br />
	<code>sudo apt-get build-dep python2.6</code></p>
<h3>Step 2: Download Python 2.4 Final</h3>
<p>	<code>wget http://www.python.org/ftp/python/2.4/Python-2.4.tgz<br />
	tar -zxvf Python-2.4.tgz</code></p>
<h3>Step 3: Configure and Install Python 2.4</h3>
<p>My first attempt at building Python 2.4 failed with a buffer overflow.  I found a <a href="https://forums.ubuntulinux.jp/viewtopic.php?id=8265">Japanese forum post</a> that had solved the issue by setting <code>BASECFLAGS=-U_FORTIFY_SOURCE</code> during the configure stage.<br />
	<code>./configure BASECFLAGS=-U_FORTIFY_SOURCE<br />
	make<br />
	sudo make install</code></p>
<h3>Step 4: Fix the Default Python Version</h3>
<p>The make install step sets Python 2.4 as the default version of Python.  I wanted to keep that at 2.6. So&#8230;<br />
	<code>sudo rm /usr/local/bin/python<br />
	sudo ln -s /usr/bin/python2.6 /usr/local/bin/python</code></p>
<h3>Step 5: Install into Virtualenv</h3>
<p>I wanted to set up a virtualenv environment to test the app.  Here I specify which version of python I want to use for the interpreter and activate it.<br />
	<code>virtualenv env -p python2.4 --no-site-packages<br />
	source env/bin/activate</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ten.ynottony.net/2011/02/testing-with-python24-on-ubuntu-1010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbooks</title>
		<link>http://ten.ynottony.net/2010/10/netbooks/</link>
		<comments>http://ten.ynottony.net/2010/10/netbooks/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 15:23:47 +0000</pubDate>
		<dc:creator>Anthony Batchelor</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[notebook]]></category>

		<guid isPermaLink="false">http://ten.ynottony.net/?p=135</guid>
		<description><![CDATA[I&#8217;ve been thinking about buying a laptop or a netbook recently. I like the idea of a netbook but was a bit worried that it would be too small, crappy and underpowered. Today I got to play with David&#8217;s Samsung &#8230; <a href="http://ten.ynottony.net/2010/10/netbooks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking about buying a laptop or a netbook recently.  I like the idea of a netbook but was a bit worried that it would be too small, crappy and underpowered.</p>
<p>Today I got to play with David&#8217;s <a href="http://www.amazon.co.uk/gp/product/B002MQOI3K?ie=UTF8&#038;tag=tenynottonyne-21&#038;linkCode=as2&#038;camp=1634&#038;creative=19450&#038;creativeASIN=B002MQOI3K">Samsung N130</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=tenynottonyne-21&#038;l=as2&#038;o=2&#038;a=B002MQOI3K" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> running Ubuntu 10.10.  </p>
<p>It&#8217;s nice. It&#8217;s no slower for doing the day to day things I need to do than the laptop I use at work (although that&#8217;s not saying much).</p>
<p>I think my mind is made up now&#8230; I&#8217;ll see if I can find a nice refurbished netbook.</p>
]]></content:encoded>
			<wfw:commentRss>http://ten.ynottony.net/2010/10/netbooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speeding up Liferea</title>
		<link>http://ten.ynottony.net/2009/08/speeding-up-liferea/</link>
		<comments>http://ten.ynottony.net/2009/08/speeding-up-liferea/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 13:46:38 +0000</pubDate>
		<dc:creator>Anthony Batchelor</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[liferea]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://ten.ynottony.net/?p=92</guid>
		<description><![CDATA[Liferea was taking a couple of minutes to open for me, so I thought I&#8217;d look for a solution to that. I have >100 feeds, but I&#8217;m not about to cut the amount down (not addicted, honest). Liferea stores a &#8230; <a href="http://ten.ynottony.net/2009/08/speeding-up-liferea/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Liferea was taking a couple of minutes to open for me, so I thought I&#8217;d look for a solution to that.  I have >100 feeds, but I&#8217;m not about to cut the amount down (not addicted, honest).</p>
<p>Liferea stores a lot of information in an sqlite database.  If sqlite databases aren&#8217;t vacuumed every now and then, they bloat and slow down.  </p>
<p>Most people know about speeding up Firefox by <a href="http://www.gettingclever.com/2008/06/vacuum-your-firefox-3.html">vacuuming the sqlite databases</a> every now and then.  Well, the same can be done with <a href="http://liferea.sourceforge.net/">Liferea</a>.<br />
Close Liferea and paste the following in a bash terminal. </p>
<p><code>sqlite3 ~/.liferea_1.4/liferea.db "VACUUM;"</code></p>
<p>Open up Liferea and you should notice it load much faster.  Unless of course, it was fast to begin with.</p>
]]></content:encoded>
			<wfw:commentRss>http://ten.ynottony.net/2009/08/speeding-up-liferea/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

