<?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>Abyss Knight &#187; Web Development</title>
	<atom:link href="http://www.abyssknight.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abyssknight.com</link>
	<description>version 9</description>
	<lastBuildDate>Thu, 31 Mar 2011 02:31:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ASP.NET Pandora, iTunes Mashup</title>
		<link>http://www.abyssknight.com/2009/01/24/aspnet-pandora-itunes-mashup/</link>
		<comments>http://www.abyssknight.com/2009/01/24/aspnet-pandora-itunes-mashup/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 03:41:30 +0000</pubDate>
		<dc:creator>Abyss</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://www.abyssknight.com/?p=142</guid>
		<description><![CDATA[What is it? Last week I had some down time and manage to crank out a relatively basic mashup of the iTunes Libary XML file and Pandora&#8217;s favourites feed. Essentially my code reads in the iTunes XML file and converts it into a readable form using XSLT then grabs the Pandora feed and compares the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is it?</strong></p>
<p>Last week I had some down time and manage to crank out a relatively basic mashup of the iTunes Libary XML file and Pandora&#8217;s favourites feed. Essentially my code reads in the iTunes XML file and converts it into a readable form using XSLT then grabs the Pandora feed and compares the two using XPath.</p>
<p>The application is written in VB.NET on the ASP.NET platform. Yes, I know, VB is the poor ugly stepchild language but we use it at work and it was far easier to pick up and go. C# is on the docket for the next project, I promise. That said, I&#8217;m hoping to get some Ruby and Python up here too. I just need to get a ticket in with my Linux hosting provider.</p>
<p><strong>Why did you write it?</strong></p>
<p>I wanted to write this application for awhile but I never had the time or the motivation. Thankfully boredom breeds innovation for me. I had started the code months ago and abandoned it after getting stuck on the WebRequest to Pandora. I managed to dig up the code last week and had a few eureka moments which lead to release worthy code.</p>
<p>The reason behind the construction of this application is that I use Pandora every single day. I practically need their radio service to work. One thing that I do when I&#8217;m listening is bookmark the songs I like, and mod them up with the thumbs up button. It&#8217;s intuitive and quick to do which is great. However, when you&#8217;re ready to plop down a bunch of money on new music how do you know which songs to buy? I always forget to update my favourites list to remove the songs I&#8217;ve bought, and I&#8217;m too lazy to search my iTunes every time I want to buy a song. Sure, iTunes <em>sometimes </em>prevents you from buying the same song twice, but having been bitten by that bug before I&#8217;d rather have a third part verify that for me.</p>
<p><strong>Improvements, Ideas, Concerns</strong></p>
<p>The application is very rudimentary and will be sitting on a very restricted shared hosting environment. The code is definitely not rocket science, but it works for the most basic use case. That said, it doesn&#8217;t handle advanced searches or merge results for remixes and the like. It isn&#8217;t using a special algorithm for matching. It just does a direct XPath contains on the artist and song title. If it doesn&#8217;t match, the application will falsely mark it as if it doesn&#8217;t exist in your library. Likewise, single quotes are currently not handled correctly because I was lazy and XPath parameterization looked like a pain. This is just a proof of concept.</p>
<p>iTunes XML files can get pretty big. I think my library file was almost 6mb, which is rather large for a web upload. I might look into letting users upload a zip file and decompress it on the fly. Not sure how you&#8217;d go about that though. My guess is this application will thrash the server with IO under load.</p>
<p>One of my coworkers/friends suggested implementing affiliate IDs for the various music stores and injecting those into the application in order to generate revenue. If I ever wanted to turn this into a real product that might be a way to monetize, but rest assured that isn&#8217;t implemented at the moment. If anyone wants to see this as an actual product, feel free to drop me a line.</p>
<p><strong>Where is it?</strong></p>
<p>It will be hosted on my new domain at once the kinks are worked out. GoDaddy&#8217;s Windows hosting is far from perfect, but it gets the job done. Unfortunately, it appears they are trying to proxy my WebRequest and XSLT discovery outgoing sockets which is throwing an error. I have a ticket in to find out what I can do to fix that.</p>
<p>If you are interested in seeing the code I&#8217;ll gladly post it. Right now it isn&#8217;t up to much and still needs some cleaning up so I&#8217;ll leave it off for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abyssknight.com/2009/01/24/aspnet-pandora-itunes-mashup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)

Served from: www.abyssknight.com @ 2012-02-09 10:26:20 -->
