<?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>Mashups, Marketing and Me &#187; mashups</title>
	<atom:link href="http://www.cfg.no/category/mashups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cfg.no</link>
	<description>The blog project, a journey!</description>
	<lastBuildDate>Wed, 02 Sep 2009 17:51:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Really cool Spotify and last.fm Mashup</title>
		<link>http://www.cfg.no/2009/05/really-cool-spotify-and-lastfm-mashup/</link>
		<comments>http://www.cfg.no/2009/05/really-cool-spotify-and-lastfm-mashup/#comments</comments>
		<pubDate>Fri, 29 May 2009 21:00:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mashups]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[mashup]]></category>
		<category><![CDATA[spotify]]></category>

		<guid isPermaLink="false">http://www.cfg.no/?p=196</guid>
		<description><![CDATA[		
		
		
		Just a short post for today, but I thought I&#8217;d make you aware of an application (that has been around for a while, but hey, it&#8217;s creative).
If you use Spotify and Last.fm this mashup of an application is a great way to find music on added to Spotify that matches your top 50 artists (or [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.cfg.no/2009/05/really-cool-spotify-and-lastfm-mashup/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Really+cool+Spotify+and+last.fm+Mashup";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong>Just a short post</strong> for today, but I thought I&#8217;d make you aware of an application (that has been around for a while, but hey, it&#8217;s creative).</p>
<p>If you use Spotify and Last.fm <a href="http://lutt.se/lastfm+spotify+new/">this mashup of an application</a> is a great way to find music on added to Spotify that matches your top 50 artists (or so, <a href="http://lutt.se">Vilhelm</a> writes.)</p>
<p>Maybe you can find some goodies there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfg.no/2009/05/really-cool-spotify-and-lastfm-mashup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps in Flash with the Flex SDK and haXe</title>
		<link>http://www.cfg.no/2009/05/google-maps-in-flash-with-the-flex-sdk-and-haxe/</link>
		<comments>http://www.cfg.no/2009/05/google-maps-in-flash-with-the-flex-sdk-and-haxe/#comments</comments>
		<pubDate>Sat, 23 May 2009 00:12:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mashups]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[haXe]]></category>

		<guid isPermaLink="false">http://www.cfg.no/?p=162</guid>
		<description><![CDATA[		
		
		
		and getting it to work together.. seems like people have a lot of issues with this, so here are the steps you have to take.
If you do not have an API key, sign up for one here.
This way of installing haXe is pretty bad and should be avoided, but it made it easy swapping haXe [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.cfg.no/2009/05/google-maps-in-flash-with-the-flex-sdk-and-haxe/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Google+Maps+in+Flash+with+the+Flex+SDK+and+haXe";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><em>and getting it to work together.. seems like people have a lot of issues with this, so here are the steps you have to take.</em></p>
<p>If you do not have an API key, sign up for one <a href="http://code.google.com/apis/maps/signup.html">here</a>.</p>
<p>This way of installing haXe is pretty bad and should be avoided, but it made it easy swapping haXe versions fast.<br />
I use the haXe version 1.19 together with the Google Maps Flash API.</p>
<p>Lets first get haXe and the Googles Flash API</p>
<blockquote><p>
root@devbox:/usr/local/src$ mkdir flashdevelopment<br />
root@devbox:/usr/local/src$ cd flashdevelopment/<br />
root@devbox:/usr/local/src/flashdevelopment$ wget -q \</p>
<p>http://maps.googleapis.com/maps/flash/release/sdk.zip</p>
<p>root@devbox:/usr/local/src/flashdevelopment$ wget -q \</p>
<p>http://haxe.org/file/haxe-1.19-linux.tar.gz</p>
<p>root@devbox:/usr/local/src/flashdevelopment$ unzip -q sdk.zip<br />
root@devbox:/usr/local/src/flashdevelopment$ tar -zxf \<br />
haxe-1.19-linux.tar.gz
</p></blockquote>
<p>To make haXe work:</p>
<blockquote><p>
root@devbox:/usr/local/src/flashdevelopment$ cd haxe-1.19-linux<br />
root@devbox:/usr/local/src/flashdevelopment/haxe-1.19-linux$ cp haxe /usr/bin/<br />
root@devbox:/usr/local/src/flashdevelopment/haxe-1.19-linux$ cp haxelib /usr/bin<br />
root@devbox:/usr/local/src/flashdevelopment/haxe-1.19-linux$ cp haxedoc /usr/bin/<br />
root@devbox:/usr/local/src/flashdevelopment/haxe-1.19-linux$ mkdir /usr/lib/haxe<br />
root@devbox:/usr/local/src/flashdevelopment/haxe-1.19-linux$ ln -s /usr/local/src/flashdevelopment/haxe-1.19-linux/std/ /usr/lib/haxe
</p></blockquote>
<p>Now we need to generate hxclasses from the SDK to make it usable in haXe</p>
<blockquote><p>
root@devbox:/usr/local/src/flashdevelopment$ cd lib<br />
root@devbox:/usr/local/src/flashdevelopment/lib$ mv map_1_9.swc map_1_9.zip<br />
root@devbox:/usr/local/src/flashdevelopment/lib$ unzip map_1_9.zip<br />
Archive:  map_1_9.zip<br />
  inflating: library.swf<br />
  inflating: catalog.xml<br />
root@devbox:/usr/local/src/flashdevelopment/lib$ haxe &#8211;gen-hx-classes library.swf
</p></blockquote>
<p>Now, there are some changes that has to made to make haXe like the API<br />
I generated the working sources with a newer version of haXe, and applied the changes to it.<br />
This makes the patchfile a bit larger than it had to be, because I had to make a patch against my haxe 1.19-generated hxclasses/ folder.<br />
Anyways, this works and it is against the 1.9 file from Google.</p>
<blockquote><p>
root@devbox:/usr/local/src/flashdevelopment/lib$ wget -q \</p>
<p>http://arpa.no/googlemaps.diff</p>
<p>root@devbox:/usr/local/src/flashdevelopment/lib$ patch -p0 < \<br />
googlemaps.diff
</p></blockquote>
<p>Clean up a bit so we can just develop here:</p>
<blockquote><p>
root@devbox:/usr/local/src/flashdevelopment$ rm lib/map_*<br />
root@devbox:/usr/local/src/flashdevelopment$ rm haxe-1.19-linux.tar.gz sdk.zip
</p></blockquote>
<p>Lets try to create just a simple map, this file will be /usr/local/src/flashdevelopment/MyMap.hx</p>
<blockquote><p>
import com.google.maps.Map;<br />
import com.google.maps.MapEvent;<br />
import com.google.maps.LatLng;<br />
import com.google.maps.MapType;<br />
import com.google.maps.controls.ZoomControl;<br />
import com.google.maps.controls.MapTypeControl;<br />
import com.google.maps.controls.PositionControl;</p>
<p>class MyMap extends Map {<br />
        static function main() {<br />
                var app:MyMap = new MyMap();<br />
                flash.Lib.current.addChild(app);<br />
                app.setSize(new flash.geom.Point(400,400));<br />
        }</p>
<p>        public function new(){<br />
                super();<br />
                addEventListener(MapEvent.MAP_READY, onMapReady);<br />
        }</p>
<p>        private function onMapReady(event:MapEvent) {<br />
                setCenter(new LatLng(40.416740,-3.703250), 2, MapType.NORMAL_MAP_TYPE);<br />
                setZoom(2,false);<br />
                addControl(new ZoomControl());<br />
                addControl(new PositionControl());<br />
                addControl(new MapTypeControl());<br />
        }</p>
<p>}
</p></blockquote>
<p>Now we need to make a way for haXe to understand how to compile this with the API, so this is the contents of:<br />
/usr/local/src/flashdevelopment/compile.hxml</p>
<blockquote><p>
-swf map.swf<br />
-swf-version 9<br />
-cp lib/hxclasses/<br />
-swf-lib lib/library.swf<br />
-main MyMap
</p></blockquote>
<p>Use haXe to compile this map into an SWF:</p>
<blockquote><p>
root@devbox:/usr/local/src/flashdevelopment$ haxe compile.hxml<br />
root@devbox:/usr/local/src/flashdevelopment$
</p></blockquote>
<p>Voila!  Your first Google Flash Map, fresh from the oven.. the filename is map.swf<br />
Try to include this on a webpage, check the source here if you don&#8217;t know how to do it.<br />
Your API key should be in the flashvars when applying the flash object on a webpage.<br />
&#038;ltparam name=&#8221;flashvars&#8221; value=&#8221;key=key&#8221;/&#038;gt</p>
<p>Here is my result, I messed up the width/height of my app, but it works:<br />
<object id="map" width="400" height="400"  type="application/x-shockwave-flash" data="/wp-content/map.swf" ><param name="movie" value="/wp-content/map.swf" /><param name="quality" value="high" /><param name="play" value="true" /><param name="loop" value="true" /><param name="bgcolor" value="#E5E5E5" /><param name="flashvars" value="key=ABQIAAAAKGyUKyuZICfIfsfKBWvaexTTwDV3CHqYJVEQUjP_FHuAnm2oRBQxH4YkCJYSMWcuUIVBLftXVgbT6Q"/></object></p>
<p>Hope someone can have use out of this! <img src='http://www.cfg.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfg.no/2009/05/google-maps-in-flash-with-the-flex-sdk-and-haxe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 Websites with a good API for Mashups</title>
		<link>http://www.cfg.no/2009/05/7-websites-with-a-good-api-for-mashups/</link>
		<comments>http://www.cfg.no/2009/05/7-websites-with-a-good-api-for-mashups/#comments</comments>
		<pubDate>Fri, 22 May 2009 19:01:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mashups]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bitly]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[geonames]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.cfg.no/?p=144</guid>
		<description><![CDATA[		
		
		
		Mashups. To be able to think creatively about it you must know which sites offer an API. And then; what kind of data you can expect to be able to access.  Here is a list of websites which offer an API. Some are the most popular, but you will find a little golden egg [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.cfg.no/2009/05/7-websites-with-a-good-api-for-mashups/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "7+Websites+with+a+good+API+for+Mashups";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong>Mashups</strong>. To be able to think creatively about it you must know which sites offer an API. And then; what kind of data you can expect to be able to access.  Here is a list of websites which offer an API. Some are the most popular, but you will find a little golden egg or two in this list.<br />
<a href="http://www.facebook.com"><img class="alignnone size-full wp-image-145" title="fb_logosm" src="http://www.cfg.no/wp-content/uploads/2009/05/fb_logosm.gif" alt="fb_logosm" width="350" height="131" /></a></p>
<p><strong>Facebook</strong> have an API, you can use most of the data users have stored at facebook, like friends, profile info, photos.<br />
<strong>API Docs:</strong> <a href="http://wiki.developers.facebook.com/index.php/API">Facebook API Documentation</a></p>
<p><a href="http://twitter.com"><img class="alignnone size-full wp-image-146" title="twitter_logo" src="http://www.cfg.no/wp-content/uploads/2009/05/twitter_logo.gif" alt="twitter_logo" width="477" height="200" /></a><br />
From <strong>Twitter</strong> you can get the user data, followers, friends and status updates. A previous article on this website was about <a href="http://www.cfg.no/2009/05/14-excellent-power-twitter-tools-and-tips/">Twitter applications</a>.<strong><br />
API Docs:</strong> <a href="http://apiwiki.twitter.com/Twitter-API-Documentation">Twitter API Documentation</a></p>
<p><a href="http://last.fm"><img class="alignnone size-full wp-image-147" title="lastfmlogo" src="http://www.cfg.no/wp-content/uploads/2009/05/lastfmlogo.png" alt="lastfmlogo" width="103" height="50" /></a><br />
With the <strong>last.fm</strong> API you can retrieve user data, most popular songs and everything stored within last.fm</p>
<p>A friend of mine created <a href="http://lutt.se/lastfm+spotify+new/">this mashup</a> of Spotify and Last.fm.<br />
<strong>API Docs:</strong> <a href="http://www.last.fm/api">Last.Fm API Documentation</a></p>
<p><a href="http://bit.ly"><img class="alignnone size-full wp-image-148" title="bitlylogo" src="http://www.cfg.no/wp-content/uploads/2009/05/bitlylogo.png" alt="bitlylogo" width="280" height="47" /></a></p>
<p>With the <strong>bit.ly</strong> API you can expand and shorten URL&#8217;s, then gather statistics about traffic on those specific short URL&#8217;s.<br />
A lot of Twitter users post links shortened with bit.ly, so it would also be possible to keep track of what&#8217;s popular by the use of this API.<br />
<strong>API Docs:</strong> <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation">Bit.ly API Documentation</a></p>
<p><a href="http://maps.google.com"><img src="http://maps.google.com/intl/en_ALL/images/maps_logo_small_blue.png" alt="" /></a><br />
Create your own maps, you can use <strong>Google Maps API</strong> to display geodata in your mashup.<br />
<strong>API Docs:</strong> <a href="http://code.google.com/apis/maps/documentation/">Google Maps API Documentation</a></p>
<p><a href="http://www.geonames.org/">GeoNames</a><br />
With the <strong>GeoNames</strong> API you can get data for your Google Maps; Airports, Hotels and a lot of other things. Trivial resource!<br />
<strong>API Docs:</strong> <a href="http://www.geonames.org/export/web-services.html">GeoNames API Documentation</a></p>
<p><a href="http://www.digg.com"><img class="alignnone size-full wp-image-149" title="digglogo" src="http://www.cfg.no/wp-content/uploads/2009/05/digglogo.gif" alt="digglogo" width="300" height="158" /></a></p>
<p>With the <strong>Digg.com</strong> API you can get current popular stories from all categories, the digg count, comments and a lot of other data.<br />
<strong>API Docs:</strong> <a href="http://apidoc.digg.com/">Digg.com API Documentation<br />
</a></p>
<p>That&#8217;s the list!</p>
<p><em>Which other popular APIs exist?</em> If you have used another API, leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cfg.no/2009/05/7-websites-with-a-good-api-for-mashups/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
