<?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>ninjalabz.com</title>
	<atom:link href="http://www.ninjalabz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ninjalabz.com</link>
	<description>Home of experimental web applications &#124; last.fm proxie &#124; Cloud Search</description>
	<lastBuildDate>Sun, 17 Jan 2010 13:56:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lastfm proxie now scrobbles your music!</title>
		<link>http://www.ninjalabz.com/2010/01/lastfm-proxie-now-scrobbles-your-music/</link>
		<comments>http://www.ninjalabz.com/2010/01/lastfm-proxie-now-scrobbles-your-music/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 13:48:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[last.fm]]></category>
		<category><![CDATA[last.fm proxie]]></category>
		<category><![CDATA[php script]]></category>

		<guid isPermaLink="false">http://www.ninjalabz.com/?p=19</guid>
		<description><![CDATA[Scrobbler support now automatically enabled in Version 0.2 of last.fm proxie. Songs appear in your profile automatically, including real-time &#8216;now listening&#8217; data!
Check out last.fm proxie&#8217;s main page for download details. 
]]></description>
			<content:encoded><![CDATA[<p>Scrobbler support now automatically enabled in Version 0.2 of last.fm proxie. Songs appear in your profile automatically, including real-time &#8216;now listening&#8217; data!<br />
<a href="http://www.ninjalabz.com/last-fm-proxie-a-php-proxy-server/" target="_self">Check out last.fm proxie&#8217;s main page for download details. </a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ninjalabz.com%2F2010%2F01%2Flastfm-proxie-now-scrobbles-your-music%2F&amp;linkname=Lastfm%20proxie%20now%20scrobbles%20your%20music%21"><img src="http://www.ninjalabz.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ninjalabz.com/2010/01/lastfm-proxie-now-scrobbles-your-music/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>last.fm proxie &#124; A php proxy server</title>
		<link>http://www.ninjalabz.com/2010/01/last-fm-proxie-a-php-proxy-server/</link>
		<comments>http://www.ninjalabz.com/2010/01/last-fm-proxie-a-php-proxy-server/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:55:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[last.fm]]></category>
		<category><![CDATA[last.fm proxie]]></category>
		<category><![CDATA[php script]]></category>

		<guid isPermaLink="false">http://www.ninjalabz.com/?p=1</guid>
		<description><![CDATA[Last.fm proxie is a prototype open source proxy server. It tunes into a specified last.fm station and provides a continuous audio stream for use with your favorite media player.
I developed last.fm proxie out of a need to stream my favorite stations to my home theater through my home network. I wrote the whole thing from [...]]]></description>
			<content:encoded><![CDATA[<p>Last.fm proxie is a prototype open source proxy server. It tunes into a specified <a href="http://www.last.fm/" target="_blank">last.fm</a> station and provides a continuous audio stream for use with your favorite media player.</p>
<p>I developed last.fm proxie out of a need to stream my favorite stations to my home theater through my home network. I wrote the whole thing from scratch! It was fun.  Please see below for details.</p>
<p>Update 04/01/10: I&#8217;ve successfully implemented scrobbling as well, so that tracks listened through the proxy appear in your profile. Will be rolling out in a few days. Stay tuned for updates. In the meantime you can also <a href="http://www.last.fm/group/Lastfm+Proxie" target="_blank">join the last.fm proxie group.</a></p>
<p><span id="more-1"></span></p>
<h2>Setting up the proxy</h2>
<h3>Last.fm proxie basics</h3>
<p>Last.fm proxie is a proxy server intended for use with last.fm. It tunes into an entered station and provides a continuous stream of audio to your favorite media device.</p>
<h3>Authentication Notes</h3>
<p>I didn&#8217;t write the script to sell it or provide it as a service. So if you want to use it you will have to get your own <a href="http://www.last.fm/api/account" target="_blank">API key</a> and plug it into the setup file to get it to work. You will need to authenticate the application once (see below for details).<br />
Please note that all keys, session keys,  and <a href="http://www.last.fm/api/desktopauth" target="_blank">everything to do with authentication</a> is stored locally on your computer in the same folder you extracted the other php files. If you have security concerns with that data, please take necessary precautions.</p>
<h3>Setup Proxie</h3>
<ol>
<li>Open setup.php and insert your last.fm API key and secret. You can apply and get those from the <a href="http://www.last.fm/api/account">last.fm API account page</a>.</li>
<li>Timelimit is the amount of time in seconds to keep streaming. Leave this as is for now.</li>
<li>Make sure php and apache are running and run auth.php in your browser. You should see a welcome screen and instructions to get the application authorized (step1) and then acquire a session key (step2). Please make sure to complete step 1 first, otherwise step 2 will fail. Step 1 will launch a new window to last.fm. Part of the second step is the creation of a .htaccess file. This forwards requests for lastfm.mp3 to lastfm.php. Depending on the media player you&#8217;re using you might need this. Note that if you have a .htaccess file in the same folder it will be overwritten. Extract all files in a new folder and not in the root to avoid problems.</li>
<li>Once you have finished the previous steps you&#8217;ll be forwarded to selectstation.php which you will need to run once to save a default station. Once the station is saved it will be used as the default for streaming. At any time you can visit this page to change the last.fm station you want to tune to. By pressing submit, the script essentially writes a small file called currentstation.php in the same folder that stores the default station.</li>
<li>Once submitted, you should be all set. You can now request http://localhost/&lt;add path here&gt;/lastfm.mp3 with your favorite media player and music should come out of your speakers.</li>
</ol>
<p><strong>Notes:</strong></p>
<ul>
<li>You should request the URL and not try to open the file <img src='http://www.ninjalabz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
<li>On macs you&#8217;ll probably need to add you username to localhost.</li>
<li>The path in step 5 should point to the location of lastfm.php. Remember we&#8217;re using the .htaccess to forward requests for lastfm.mp3 to lastfm.php. ie Don&#8217;t get confused if you don&#8217;t find an mp3 file in the folder. Of course you can always request lastfm.php and that should work with some players (works with winamp).</li>
</ul>
<h3>Bugs</h3>
<p>Life isn&#8217;t perfect. If you find a repeatable bug, drop me a line at alefbetac [at] ninjalabz [dot] com or leave a comment below and I&#8217;ll try to fix it . Feedback is welcome.</p>
<h3>Compatibility</h3>
<p>Tested on <a href="http://www.wampserver.com/en/" target="_blank">WampServer Version 2.0 for Windows</a>. Works with <a href="http://www.winamp.com/" target="_blank">winamp 5.5x</a>, windows media player 11.x and <a href="http://tversity.com/" target="_blank">TVersity media server</a> to route to other devices in home network through <a href="http://www.dlna.org/home" target="_blank">DLNA</a> (neat!). To get it to work with Tversity just add the full URL to lastfm.mp3 to the internet radio section in your library.</p>
<h3>Downloads</h3>
<p><a href="http://www.ninjalabz.com/downloads/lastfm_proxie_V01.zip">Prototype version 0.1 03/01/2010</a></p>
<p>If you found this script useful please feel free to donate using the button below. Thanks!</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="encrypted" type="hidden" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYA+wqH/wa9hueVxYR2TE4G6I54E6yvLszmZbBLXE42FKIYJVJQr3+sZFR0USKi4PH1XBA18oCYm0KfaPvL1nV4WvZ/VwQ/dWPiFndbdV4bY+lykuFpAZRmm51+JyjoEN7CRrj0f/xdJTdOmJIeU2OVQzhEEp/YrizFdIpi2rBNY/DELMAkGBSsOAwIaBQAwgawGCSqGSI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AYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTAwMTAzMTY1MzQ5WjAjBgkqhkiG9w0BCQQxFgQUIEausizRvC41MlcZ/TkemjUykwYwDQYJKoZIhvcNAQEBBQAEgYCl/hSnn9pEXo4P2j4AhP1aqxenP/ROjoc1ItEsji+qHT7RaHrdjXAL1Ut3rIOZv37quf7WepZJsjQXGSUPY1KEO68D5dV3g3bR8eyINO1JAkXvCExfx0Mvf92CcGQ9XbgrnmbB3B7mgXJUI4lSgwUeFBg/0yEQJDW6yIH88jTD5A==-----END PKCS7----- " />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ninjalabz.com%2F2010%2F01%2Flast-fm-proxie-a-php-proxy-server%2F&amp;linkname=last.fm%20proxie%20%7C%20A%20php%20proxy%20server"><img src="http://www.ninjalabz.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ninjalabz.com/2010/01/last-fm-proxie-a-php-proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
