<?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>design is philosophy &#187; Pivot</title>
	<atom:link href="http://www.designisphilosophy.com/category/pivot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designisphilosophy.com</link>
	<description>WordPress, Expression Web, CSS, other stuff</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:10:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.designisphilosophy.com/?pushpress=hub'/>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Live Labs Pivot meets Flickr for the 12&#215;12 Vancouver Photo Marathon</title>
		<link>http://www.designisphilosophy.com/pivot/live-labs-pivot-meets-flickr-for-the-12x12-vancouver-photo-marathon/</link>
		<comments>http://www.designisphilosophy.com/pivot/live-labs-pivot-meets-flickr-for-the-12x12-vancouver-photo-marathon/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 22:55:49 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Pivot]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[photo marathon]]></category>
		<category><![CDATA[pivot]]></category>
		<category><![CDATA[seadragon]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=802</guid>
		<description><![CDATA[Guest post by Ole Rand-Hendriksen. So my brother Morten came to me with this idea about making a pivot project for the 12&#215;12 Vancouver Photo Marathon 2009 where he basically wanted to be able to sort the images in categories, &#8230; <a href="http://www.designisphilosophy.com/pivot/live-labs-pivot-meets-flickr-for-the-12x12-vancouver-photo-marathon/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><object width="514" height="321"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12835681&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12835681&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="514" height="321"></embed></object></p>
<h4>Guest post by Ole Rand-Hendriksen.</h4>
<p>So my brother <a title="Pink &amp; Yellow Media - Web design and WordPress development in Vancouver" href="http://www.pinkandyellow.com" target="_blank">Morten</a> came to me with this idea about making a pivot project for the <a title="12x12 Vancouver Photo Marathon" href="http://vancouverphotomarathon.com/" target="_blank">12&#215;12 Vancouver Photo Marathon 2009</a> where he basically  wanted to be able to sort the images in categories, photographer,  gender, winners and so on. He hadn&#8217;t really looked into how pivot works,  but he thought this could be something that I could probably figure out  in a couple of hours or something.</p>
<p>I followed the links he gave me to the pivot  site and some instructional demo videoes. But i didn&#8217;t really have the  patience to go through them all. So I did what i normally do;  which is  take half a look at the specifications and then just try it out.</p>
<p>I started by downloading pivot from <a title="Microsoft Live Labs Pivot" href="http://www.getpivot.com/" target="_blank">www.getpivot.com</a> and  looking at how it works, which is still a bit confusing to me because of  the seadragon technology and the image sorting, but I&#8217;ll get into that  later.</p>
<p>Then i started reading about how pivot works, and  the data part is actually quite straight forward. It&#8217;s basically just  xml files where each item has some properties, and in the beginning of  the file, it says what kind of properties and if you should be able to  use them to sort by.</p>
<p>The more confusing part is the deep zoom collection part, which is  the part that makes all the trouble. Basically deep zoom collections  aren&#8217;t dynamic at all (someone please prove me wrong), which is very  anoying. Since it means that you have to host all the images locally on  the server where you have the pivot collection.</p>
<p>And then i started to read up on how to make pivot  collections. There are according to the pivot site 3 ways of making  them;</p>
<ol>
<li>by using the commandline tools</li>
<li>by using  the excel tool</li>
<li>by making the tool yourself.</li>
</ol>
<p>Since i  concidder my self proficient in excel i decided to use that method on  this project. So I downloaded the tool and installed it <a href="http://www.getpivot.com/developer-info/excel-tools.aspx" target="_blank">(link).</a></p>
<p>Then i went on to figure out how to get all the data  I wanted from the <a title="All the photos from 12x12 Vancouver Photo Marathon " href="http://www.flickr.com/photos/vancouverphotomarathon/collections/72157623080902771/" target="_blank">12&#215;12 Vancouver Photo Marathon Flickr sets</a>. The  easiest way i could think of was to use the rss feeds and try to parse  them in some way or other. I ended up using a rss parsing library for python  from <a href="http://feedparser.org/" target="_blank">http://feedparser.org/</a> and  i wrote a very simple script that went through all the set feeds and  parsed them into a more usable .csv file.</p>
<p>The print lines were just for debuging.</p>
<p># -*- coding: utf-8 -*-<br />
import feedparser<br />
import  codecs</p>
<p>url = [ *list of urls*]</p>
<p>f = open(&#8221; *path to file* &#8220;, &#8220;w&#8221;)<br />
for  u in url:<br />
print u<br />
d = feedparser.parse(u)<br />
name = d.feed.title.split(&#8220;- &#8220;)[1]<br />
print name<br />
num = d.feed.title.split(&#8221; &#8220;)[2]<br />
print num<br />
for entry in d.entries:<br />
h =  entry.links[2].href<br />
print h<br />
t =  entry.title<br />
print t<br />
s = num+&#8217;,  &#8216;+name+&#8217;, &#8216;+h+&#8217;, &#8216;+t+&#8217;\n&#8217;<br />
u = s.encode( &#8220;utf-8&#8243; )<br />
print u<br />
f.write(u)<br />
f.close()</p>
<p>then i  imported the data into a new excel file.</p>
<p>The pivot plugin for  excel is a bit buggy, so you can&#8217;t really import data directly into the  fields, but when you have the data in another document, you can just  copy each column in where you want it. It takes some time for the previews to load though when you are  working with a few hundred images that are all online, so be prepared to  spend a few hours doing something else if you try.</p>
<p>Another  bug that&#8217;s nice to be aware of, is that if you by accident make too  many rows in your collection, you won&#8217;t really be able to remove it. When you&#8217;ve added all the data you want, you just  push the publish pivot button, and then save it where you want to. This  can also take a few hours. When it&#8217;s done, pivot will open and you can  view your collection.</p>
<p>Since pivot utilizes Deep Zoom and <a href="http://seadragon.com/" target="_blank">Seadragon</a>, the images  are sorted into a gazillion small files that will take forever to upload  to a webhotell by ftp. so make sure you are using as many connections  as you can. Also it&#8217;s very annoying that deep zoom is almost  completely static unless you trick seadragon by using the api like<strong><a href="http://www.codeproject.com/Members/Lang-Deng" target="_blank"> Lang Deng</a> </strong>did  for deep zoom images with his <a href="http://www.codeproject.com/KB/webforms/DeepZoom.aspx" target="_blank">project</a>, though i don&#8217;t know if there&#8217;s an easy way  of doing something like that for deep zoom collections.</p>
<p>I&#8217;ve got some ideas for further pivot projects but I  don&#8217;t know if they are possible to make yet.</p>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/pivot/live-labs-pivot-meets-flickr-for-the-12x12-vancouver-photo-marathon/' addthis:title='Live Labs Pivot meets Flickr for the 12&#215;12 Vancouver Photo Marathon' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/pivot/live-labs-pivot-meets-flickr-for-the-12x12-vancouver-photo-marathon/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

