<?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>Trouble With Dreams</title>
	<atom:link href="http://troublewithdreams.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://troublewithdreams.com</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 10:02:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Last.fm Explorer</title>
		<link>http://troublewithdreams.com/2011/01/30/last-fm-explorer/</link>
		<comments>http://troublewithdreams.com/2011/01/30/last-fm-explorer/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 21:54:45 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[scrobbler]]></category>
		<category><![CDATA[twd]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=432</guid>
		<description><![CDATA[A note to say that a successor to Historical Charts is available at twothreefall.co.uk/lastfmexplorer.  Redesign and restructure aside, new features alongside the charts that went before include:

Interactive charts and plots of weekly playcounts
Charts for only new artists
Information about extreme weeks

For an example see what it does with my data.
I&#8217;m pleased with how it&#8217;s turned [...]]]></description>
			<content:encoded><![CDATA[<p>A note to say that a successor to <a href="/scrobbler">Historical Charts</a> is available at <a href="http://twothreefall.co.uk/lastfmexplorer">twothreefall.co.uk/lastfmexplorer</a>.  Redesign and restructure aside, new features alongside the charts that went before include:</p>
<ul>
<li>Interactive charts and plots of weekly playcounts</li>
<li>Charts for only new artists</li>
<li>Information about extreme weeks</li>
</ul>
<p>For an example see what it does with <a href="http://twothreefall.co.uk/lastfmexplorer/user/aradnuk">my data</a>.</p>
<p>I&#8217;m pleased with how it&#8217;s turned out.</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2011/01/30/last-fm-explorer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Desperate times for the North Koreans</title>
		<link>http://troublewithdreams.com/2010/07/07/desperate-times-for-the-north-koreans/</link>
		<comments>http://troublewithdreams.com/2010/07/07/desperate-times-for-the-north-koreans/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 22:36:43 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[politics]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=419</guid>
		<description><![CDATA[.. the chance of them having to face Justin Bieber are somehow above zero.
The caption attached to Kim Jong-il is brilliant:

Bet he is.

]]></description>
			<content:encoded><![CDATA[<p>.. the chance of them having to face Justin Bieber are <a href="http://news.bbc.co.uk/1/hi/technology/10506482.stm">somehow above zero</a>.</p>
<p>The caption attached to Kim Jong-il is brilliant:</p>
<p><center><img alt="It is not known if Kim Jong-il is a fan of Justin Bieber's music" src="http://imgur.com/lQG4n.png" /></center></p>
<p>Bet he is.</p>
<p><!-- also have a copy here: http://img.photobucket.com/albums/v628/aradnuk/kim-jong-il-beiber.png --></p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/07/07/desperate-times-for-the-north-koreans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beltane</title>
		<link>http://troublewithdreams.com/2010/06/30/beltane/</link>
		<comments>http://troublewithdreams.com/2010/06/30/beltane/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 20:23:23 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[edinburgh]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=412</guid>
		<description><![CDATA[
Calton Hill, Edinburgh, April 30th.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm5.static.flickr.com/4045/4579084191_a0b8bf135d.jpg"/></p>
<p>Calton Hill, Edinburgh, April 30th.</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/06/30/beltane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do not read this title</title>
		<link>http://troublewithdreams.com/2010/06/02/do-not-read-this-title/</link>
		<comments>http://troublewithdreams.com/2010/06/02/do-not-read-this-title/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 11:12:25 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=407</guid>
		<description><![CDATA[This signature is at the bottom of every email from a company I&#8217;m in contact with at work, emphasis mine:
This e-mail may be confidential and privileged.  Do not open it if you are in any doubt that you are the intended recipient.  You must scan this e-mail and any attachments for the presence [...]]]></description>
			<content:encoded><![CDATA[<p>This signature is at the bottom of every email from a company I&#8217;m in contact with at work, emphasis mine:</p>
<blockquote><p>This e-mail may be confidential and privileged.  <b>Do not open it if you are in any doubt that you are the intended recipient.</b>  You must scan this e-mail and any attachments for the presence of viruses or any other unwelcome content.  This e-mail must be read in conjunction with the important legal notice at &#8230;.. </p></blockquote>
<p>I don&#8217;t understand the complete misunderstanding of email/technology you need to deem silly things like this legally useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/06/02/do-not-read-this-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Election Losers</title>
		<link>http://troublewithdreams.com/2010/05/08/election-losers/</link>
		<comments>http://troublewithdreams.com/2010/05/08/election-losers/#comments</comments>
		<pubDate>Sat, 08 May 2010 12:22:05 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[britain]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=402</guid>
		<description><![CDATA[Congratulations to Godfrey Spickernell for getting 17 votes for the Blue Environment Party in Chelsea &#038; Fulham &#8212; as far as I can see, the lowest total in the country.
I was a little disappointed nobody matched the heroic efforts of Catherine Taylor-Dawson, of the Vote For Yourself Rainbow Dream Ticket Party, who managed to get [...]]]></description>
			<content:encoded><![CDATA[<p>Congratulations to Godfrey Spickernell for getting 17 votes for the Blue Environment Party in Chelsea &#038; Fulham &#8212; as far as I can see, the lowest total in the country.</p>
<p>I was a little disappointed nobody matched the heroic efforts of Catherine Taylor-Dawson, of the <a href="http://en.wikipedia.org/wiki/Make_Politicians_History">Vote For Yourself Rainbow Dream Ticket Party</a>, who managed to get just <a href="http://news.bbc.co.uk/1/shared/vote2005/html/124.stm">one vote</a> in Cardiff North in 2005, apparently a record low for any candidate in a general election since universal suffrage.  And she wasn&#8217;t even registered there!</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/05/08/election-losers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debate Throes</title>
		<link>http://troublewithdreams.com/2010/05/04/debate-throes/</link>
		<comments>http://troublewithdreams.com/2010/05/04/debate-throes/#comments</comments>
		<pubDate>Tue, 04 May 2010 21:35:34 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[britain]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[quotes]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=399</guid>
		<description><![CDATA[Charlie Brooker on the final leaders&#8217; debate:
According to some polls, Cameron won, or at the very least tied with Clegg. Which is odd, because to my biased eyes, he looked hilariously worried whenever the others were talking. He often wore a face like the Fat Controller trying to wee through a Hula Hoop without splashing [...]]]></description>
			<content:encoded><![CDATA[<p>Charlie Brooker <a href="http://www.guardian.co.uk/commentisfree/2010/apr/29/tv-debate-songs-of-praise-charlie-brooker">on the final leaders&#8217; debate</a>:</p>
<blockquote><p>According to some polls, Cameron won, or at the very least tied with Clegg. Which is odd, because to my biased eyes, he looked hilariously worried whenever the others were talking. He often wore a face like the Fat Controller trying to wee through a Hula Hoop without splashing the sides, in fact.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/05/04/debate-throes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caves Weekend</title>
		<link>http://troublewithdreams.com/2010/04/28/caves-weekend/</link>
		<comments>http://troublewithdreams.com/2010/04/28/caves-weekend/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 22:18:19 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[edinburgh]]></category>
		<category><![CDATA[gigs]]></category>
		<category><![CDATA[jazz]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=382</guid>
		<description><![CDATA[Having not been to the Caves for two years was there twice in a weekend, first for the Big Red Door Fundraiser, second for Departure Lounge, with the Souljazz Orchestra, the Hypnotic Brass Ensemble and Bass Clef.
The Big Red Door was an interesting one .. the entire crowd looked like this.  No exaggeration.  [...]]]></description>
			<content:encoded><![CDATA[<p>Having not been to the Caves for two years was there twice in a weekend, first for the Big Red Door Fundraiser, second for Departure Lounge, with the Souljazz Orchestra, the Hypnotic Brass Ensemble and Bass Clef.</p>
<p>The Big Red Door was an interesting one .. the entire crowd looked like <a href="http://sphotos.ak.fbcdn.net/hphotos-ak-snc3/hs511.snc3/26847_386816491331_82267186331_4409487_481040_n.jpg">this</a>.  No exaggeration.  Some cracking music though.  The Banana Sessions were a super start to the night, especially their <a href="http://www.youtube.com/watch?v=qewxdg2NXHg">Prodigy medley</a>.  Then just about the most ridiculous band I&#8217;ve ever seen playing catchy reggae that didn&#8217;t make much sense.  A singer wearing zebra-print tights, a Newcastle United t-shirt, a sailor&#8217;s hat and a superb beard.  A bassist in trousers and cape.  A guitarist in boxer shorts and a t-shirt three or four sizes too small.  Another guitarist who looked like he&#8217;d wandered in after a few cans on the Meadows, playing an unmiced box with strings that surely nobody could hear.  It was great fun and I&#8217;ve got no idea who they were.  The Horndogs finished up, they play exactly what I wish I&#8217;d got myself into when I came to Edinburgh.</p>
<p>Was well up for Departure Lounge -- this video of the Hypnotic Brass Ensemble had me pretty excited</p>
<p>	<!-- Smart Youtube -->
	<span class="youtube">
		<object width="425" height="344">
			<param name="movie" value="http://www.youtube.com/v/Ospt8g4i-9k&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" />
			<param name="allowFullScreen" value="true" />
			<embed wmode="transparent" 
				src="http://www.youtube.com/v/Ospt8g4i-9k&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" 
				type="application/x-shockwave-flash" 
				allowfullscreen="true" 
				width="425" 
				height="344">
			</embed>
			<param name="wmode" value="transparent" />
		</object>
	</span><a href="http://www.youtube.com/watch?v=Ospt8g4i-9k">www.youtube.com/watch?v=Ospt8g4i-9k</a></p>
<p>The Souljazz Orchestra were cracking, some really exciting afrobeat with tenor and alto saxophonists that looked just like the two men in the Jam lizards sketch and a wonderful baritone.  Highly recommend them.  The Hypnotic Brass Ensemble were a bit more PARTY and YEAH! and PARTY than the tunes I hoped they&#8217;d play, but I was more frustrated by all the people trying to shove past when there was nowhere to go.  Rather ruined it.</p>
<p>Pretty mad that of the nine members of HBE, eight are brothers, they have four mothers between them and another fifteen brothers.</p>
<p>I&#8217;m writing this as Gordon Brown apologises for being rude and honest.</p>
<blockquote><p>&#8216;I&#8217;ve just been talking to Gillian, etc. etc. GHASTLY SMILE GHASTLY SMILE.&#8217;</p></blockquote>
<p>I really hope we don&#8217;t have to put up with another four years of Brown&#8217;s fakery.</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/04/28/caves-weekend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django experiments</title>
		<link>http://troublewithdreams.com/2010/04/05/django-experiments/</link>
		<comments>http://troublewithdreams.com/2010/04/05/django-experiments/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 22:44:53 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[last.fm]]></category>
		<category><![CDATA[scrobbler]]></category>
		<category><![CDATA[twd]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=337</guid>
		<description><![CDATA[I&#8217;ve been playing about with Django and Last.fm data, intended as an eventual upgrade to historical charts.  It&#8217;s fun .. I now know I play most music in March and November (university deadline time!), that my top three artists of 2010 so far are Animal Collective, Grizzly Bear and The Delgados, and that my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing about with Django and Last.fm data, intended as an eventual upgrade to <a href="/scrobbler"/>historical charts</a>.  It&#8217;s fun .. I now know I play most music in March and November (university deadline time!), that my top three artists of 2010 so far are <a href="http://www.last.fm/music/Animal Collective">Animal Collective</a>, <a href="http://www.last.fm/music/Grizzly Bear">Grizzly Bear</a> and <a href="http://www.last.fm/music/The Delgados">The Delgados</a>, and that my favourite three discoveries are <a href="http://www.last.fm/music/Starless &#038; Bible Black">Starless &amp; Bible Black</a>, <a href="http://www.last.fm/music/RM Hubbert">RM Hubbert</a> and <a href="http://www.last.fm/music/Soweto Kinch">Soweto Kinch</a>.</p>
<p>I also discovered that using a foreign key of an object returned by a Django QuerySet as a dictionary key prompts Django to look the actual data up.  I had something like the following:</p>
<blockquote><p><code>class WeekData(models.Model):<br />
&nbsp;&nbsp;&nbsp;&nbsp;artist = models.ForeignKey(Artist)<br />
&nbsp;&nbsp;&nbsp;&nbsp;plays  = models.PositiveIntegerField()<br />
&nbsp;&nbsp;&nbsp;&nbsp;..</code><br />
<code><br />
tracking = defaultdict(int)<br />
for week in WeekData.objects.all():<br />
&nbsp;&nbsp;&nbsp;&nbsp;tracking[week.artist] += week.plays<br />
</code>
</p></blockquote>
<p>The dictionary update was taking <em>ages</em>.  Confused, I enabled Mysql&#8217;s logging and discovered 25,000 lines of the following..</p>
<blockquote><p>
<code>SELECT `id`, `name` FROM `muncher_artist` WHERE `id` = 22<br />
SELECT `id`, `name` FROM `muncher_artist` WHERE `id` = 23<br />
SELECT `id`, `name` FROM `muncher_artist` WHERE `id` = 24<br />
SELECT `id`, `name` FROM `muncher_artist` WHERE `id` = 25</code>
</p></blockquote>
<p>At which point I realised that using <code>week.artist</code> as the key here looks up the artist <em>every</em> time, meaning 25,000 useless database queries and a really, really slow function.  Perhaps I was being too hopeful in my expectation that Django would be clever.</p>
<p>Changing the last line to:</p>
<blockquote><p>
<code>tracking[week.artist_id] += week.plays</code></p></blockquote>
<p>sped the function up by a factor of ten and lets me produce images like this in reasonable time:</p>
<p><img src="http://troublewithdreams.com/sometimesiwrite/wp-content/uploads/2010/04/tophist-snippet.png" alt="" title="tophist-snippet" class="aligncenter size-full wp-image-345" /></p>
<p>It&#8217;s showing which artists occupy which chart positions as the weeks go by.  The dark black line is for Fleet Foxes .. seems I went pretty mad for them :o</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/04/05/django-experiments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Onwards and Downwards</title>
		<link>http://troublewithdreams.com/2010/01/29/onwards-and-downwards/</link>
		<comments>http://troublewithdreams.com/2010/01/29/onwards-and-downwards/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:29:30 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=314</guid>
		<description><![CDATA[Spent an excellent week in Les Arcs, save for one hit to the head.  Obligatory photos:



Plus a couple more here.
Thought I&#8217;d see if eMusic was still value for money this afternoon .. astonished to find a year&#8217;s subscription is still £140 but they&#8217;ve reduced the number of songs allowed by from 90 to 35. [...]]]></description>
			<content:encoded><![CDATA[<p>Spent an excellent week in Les Arcs, save for one hit to the head.  Obligatory photos:</p>
<p style="text-align:center"><a href="http://www.flickr.com/photos/aradnuk/4310304158/"><img src="http://farm5.static.flickr.com/4038/4310304158_65c195ee0f.jpg"/></a></p>
<p style="text-align:center"><a href="http://www.flickr.com/photos/aradnuk/4309567287/"><img src="http://farm5.static.flickr.com/4002/4309567287_9e3fc8afcb.jpg"/></a></p>
<p style="text-align:center"><a href="http://www.flickr.com/photos/aradnuk/4309568223/"><img src="http://farm3.static.flickr.com/2759/4309568223_40250c0924.jpg" alt="The End of the Day" /></a></p>
<p>Plus a couple more <a href="http://www.flickr.com/photos/aradnuk/">here</a>.</p>
<p>Thought I&#8217;d see if eMusic was still value for money this afternoon .. astonished to find a year&#8217;s subscription is still £140 but they&#8217;ve reduced the number of songs allowed by from 90 to 35.  So I&#8217;ll be giving that a miss. How do they expect to compete with Spotify?</p>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2010/01/29/onwards-and-downwards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISIHAC</title>
		<link>http://troublewithdreams.com/2009/12/17/isihac/</link>
		<comments>http://troublewithdreams.com/2009/12/17/isihac/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 11:44:20 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[quotes]]></category>

		<guid isPermaLink="false">http://troublewithdreams.com/?p=309</guid>
		<description><![CDATA[A super line from Jack Dee to close this week&#8217;s I&#8217;m Sorry I Haven&#8217;t a Clue:

And so, ladies and gentlemen, as the gentle donkey of time is lead into the tranquil Bethlehem of hope, before having his ears blown off by the Israeli army of eternity, I notice it&#8217;s the end of the show..

]]></description>
			<content:encoded><![CDATA[<p>A super line from Jack Dee to close this week&#8217;s <em>I&#8217;m Sorry I Haven&#8217;t a Clue</em>:</p>
<blockquote><p>
And so, ladies and gentlemen, as the gentle donkey of time is lead into the tranquil Bethlehem of hope, before having his ears blown off by the Israeli army of eternity, I notice it&#8217;s the end of the show..
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://troublewithdreams.com/2009/12/17/isihac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

