<?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>New Media Initiatives</title>
	<atom:link href="http://blogs.walkerart.org/newmedia/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.walkerart.org/newmedia</link>
	<description>Just another Walker Blogs weblog</description>
	<lastBuildDate>Thu, 12 Nov 2009 20:27:13 +0000</lastBuildDate>
	<generator>walker_blogs</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building the Walker&#8217;s mobile site, part 2 &#8212; google analytics without javascript</title>
		<link>http://blogs.walkerart.org/newmedia/2009/11/12/building-walkers-mobile-site-google-analytics-without-javascript-pt2/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/11/12/building-walkers-mobile-site-google-analytics-without-javascript-pt2/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 20:27:13 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Mobile Devices]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=991</guid>
		<description><![CDATA[As I mentioned in my last post on our mobile site, one of the key features for our site was making sure that we don&#8217;t use any javascript unless absolutely necessary. If you use Google Analytics  (GA) as your stats package, this poses a problem, since the supported way to run GA is via a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.walkerart.org/newmedia/files/2009/11/ga_mobile.jpg"><img class="alignright size-medium wp-image-1030" src="http://blogs.walkerart.org/newmedia/files/2009/11/ga_mobile-450x438.jpg" alt="ga_mobile" width="315" height="307" /></a>As I mentioned in my last post on our mobile site, one of the key features for our site was making sure that we don&#8217;t use any javascript unless absolutely necessary. If you use Google Analytics  (GA) as your stats package, this poses a problem, since the supported way to run GA is via a chunk of javascript at the bottom of every page. And to make matters worse, the ga.js file is not gzipped, so you&#8217;re loading 9K which would otherwise be about 4k, on a platform where every byte counts. By contrast, if you could just serve the tracking gif, it is 47 bytes. And no javascript that might not run on B-grade or below devices.</p>
<p>A few weeks ago, Google announced <a href="http://analytics.blogspot.com/2009/10/google-analytics-now-more-powerful.html">support for analytics inside mobile apps and some cursory support for mobile sites</a>:</p>
<blockquote><p>Google Analytics now tracks mobile websites and mobile apps so you can better measure your mobile marketing efforts. If you&#8217;re optimizing content for mobile users and have created a mobile website, Google Analytics can track traffic to your mobile website from all web-enabled devices, whether or not the device runs JavaScript. This is made possible by adding a server side code snippet to your mobile website which will become available to all accounts in the coming weeks (<a href="http://www.google.com/analytics/googleanalyticsformobile.zip">download snippet instructions</a>). We will be supporting PHP, Perl, JSP and ASPX sites in this release. Of course, you can still track visits to your regular website coming from high-end, Javascript enabled phones.</p></blockquote>
<p>And that is the extent of the documentation you will find anywhere on Google on how to run analytics without javascript. The code included is handy if you happen to run one of their platforms, but the <a href="http://m.walkerart.org">Walker&#8217;s mobile site</a> runs on the python side of AppEngine, so their code doesn&#8217;t do us much good. Thankfully, since they provide us with the source, we can without too much trouble, translate the php or perl into python and make it AppEngine friendly.</p>
<h5>How it works</h5>
<p>Regular Google Analytics works by serving some javascript and a small 1px x 1px gif file to your site from Google. The gif lets Google learn many things from the HTTP request your browser makes, such as your browser, OS, where you came from, your rough geo location, etc. The javascript lets them learn all kinds of nifty things about your screen, flash versions, event that fire, etc. And Google tracks you through a site by setting some cookies on that gif they serve you.</p>
<p>To use GA without javascript, we can still do most of that, and we do it by generating our own gif file and passing some information back to Google through our server. That is, we generate a gif, assign and track our own cookie, and then gather that information as you move through the site, and use a HTTP request with the appropriate query strings and pass it back to Google, which they then compile and treat as regular old analytics.</p>
<h5>The Code</h5>
<p>To make this work in appeinge, we create a  URL in our webapp that we&#8217;ll serve the gif from. I&#8217;m using &#8220;/ga/&#8221;:</p>
<pre class="brush: python;">
def main():
application = webapp.WSGIApplication(
[('/', home.MainHandler),
# edited out extra lines here
('/ga/', ga.GaHandler),
],
debug=False)
wsgiref.handlers.CGIHandler().run(application)
</pre>
<p>And here&#8217;s the big handler for /ga/. I based it mostly off the php and some of the perl (click to expand the full code):</p>
<pre class="brush: python; collapse: true; light: false; toolbar: true;">
from google.appengine.ext import webapp
from google.appengine.api import urlfetch
import re, hashlib, random, time, datetime, cgi, urllib, uuid

# google analytics stuff
VERSION = &quot;4.4sh&quot;
COOKIE_NAME = &quot;__utmmobile&quot;

# The path the cookie will be available to, edit this to use a different cookie path.
COOKIE_PATH = &quot;/&quot;

# Two years in seconds.
COOKIE_USER_PERSISTENCE = 63072000

GIF_DATA = [
      chr(0x47), chr(0x49), chr(0x46), chr(0x38), chr(0x39), chr(0x61),
      chr(0x01), chr(0x00), chr(0x01), chr(0x00), chr(0x80), chr(0xff),
      chr(0x00), chr(0xff), chr(0xff), chr(0xff), chr(0x00), chr(0x00),
      chr(0x00), chr(0x2c), chr(0x00), chr(0x00), chr(0x00), chr(0x00),
      chr(0x01), chr(0x00), chr(0x01), chr(0x00), chr(0x00), chr(0x02),
      chr(0x02), chr(0x44), chr(0x01), chr(0x00), chr(0x3b)
  ]

class GaHandler(webapp.RequestHandler):
	def getIP(self,remoteAddress):
	  	if remoteAddress == '' or remoteAddress == None:
			return ''

		#Capture the first three octects of the IP address and replace the forth
		#with 0, e.g. 124.455.3.123 becomes 124.455.3.0
		res = re.findall(r'\d+\.\d+\.\d+\.', remoteAddress)
		if res:
			return res[0] + &quot;0&quot;
		else:
			return &quot;&quot;

	def getVisitorId(self, guid, account, userAgent, cookie):
		#If there is a value in the cookie, don't change it.
		if type(cookie).__name__ != 'NoneType': # or len(cookie)!=0:
			return cookie

		message = &quot;&quot;

		if type(guid).__name__ != 'NoneType': # or len(guid)!=0:
			#Create the visitor id using the guid.
			message = guid + account
		else:
			#otherwise this is a new user, create a new random id.
			message = userAgent + uuid.uuid1(self.getRandomNumber()).__str__()

		m = hashlib.md5()
		m.update(message)
		md5String = m.hexdigest()

		return str(&quot;0x&quot; + md5String[0:16])

	def getRandomNumber(self):
		return random.randrange(0, 0x7fffffff)

	def sendRequestToGoogleAnalytics(self,utmUrl):
		'''
		Make a tracking request to Google Analytics from this server.
		Copies the headers from the original request to the new one.
		If request containg utmdebug parameter, exceptions encountered
		communicating with Google Analytics are thown.
		'''
		headers = {
			&quot;user_agent&quot;: self.request.headers.get('user_agent'),
			&quot;Accepts-Language&quot;: self.request.headers.get('http_accept_language'),
			}
		if len(self.request.get(&quot;utmdebug&quot;))!=0:
			data = urlfetch.fetch(utmUrl, headers=headers)
		else:
			try:
				data = urlfetch.fetch(utmUrl, headers=headers)
			except:
				pass

	def get(self):
		'''
		Track a page view, updates all the cookies and campaign tracker,
		makes a server side request to Google Analytics and writes the transparent
		gif byte data to the response.
		'''
	  	timeStamp = time.time()

		domainName = self.request.headers.get('host')
		domainName = domainName.partition(':')[0]

		if len(domainName) == 0:
			domainName = &quot;m.walkerart.org&quot;;

		#Get the referrer from the utmr parameter, this is the referrer to the
		#page that contains the tracking pixel, not the referrer for tracking
		#pixel.
		documentReferer = self.request.get(&quot;utmr&quot;)

		if len(documentReferer) == 0 or documentReferer != &quot;0&quot;:
			documentReferer = &quot;-&quot;
		else:
			documentReferer = urllib.unquote_plus(documentReferer)

		documentPath = self.request.get(&quot;utmp&quot;)
		if len(documentPath)==0:
			documentPath = &quot;&quot;
		else:
			documentPath = urllib.unquote_plus(documentPath)

		account = self.request.get(&quot;utmac&quot;)
		userAgent = self.request.headers.get(&quot;user_agent&quot;)
		if len(userAgent)==0:
			userAgent = &quot;&quot;

		#Try and get visitor cookie from the request.
		cookie = self.request.cookies.get(COOKIE_NAME)

		visitorId = str(self.getVisitorId(self.request.headers.get(&quot;HTTP_X_DCMGUID&quot;), account, userAgent, cookie))

		#Always try and add the cookie to the response.
		d = datetime.datetime.fromtimestamp(timeStamp + COOKIE_USER_PERSISTENCE)
		expireDate = d.strftime('%a,%d-%b-%Y %H:%M:%S GMT')

		self.response.headers.add_header('Set-Cookie', COOKIE_NAME+'='+visitorId +'; path='+COOKIE_PATH+'; expires='+expireDate+';' )
	  	utmGifLocation = &quot;http://www.google-analytics.com/__utm.gif&quot;

		myIP = self.getIP(self.request.remote_addr)

		#Construct the gif hit url.
		utmUrl = utmGifLocation + &quot;?&quot; + &quot;utmwv=&quot; + VERSION  + \
			&quot;&amp;utmn=&quot; + str(self.getRandomNumber()) + \
			&quot;&amp;utmhn=&quot; + urllib.pathname2url(domainName) + \
			&quot;&amp;utmr=&quot; + urllib.pathname2url(documentReferer) + \
			&quot;&amp;utmp=&quot; + urllib.pathname2url(documentPath) + \
			&quot;&amp;utmac=&quot; + account + \
			&quot;&amp;utmcc=__utma%3D999.999.999.999.999.1%3B&quot; + \
			&quot;&amp;utmvid=&quot; + str(visitorId) + \
			&quot;&amp;utmip=&quot; + str(myIP)

		# we dont send requests when we're developing
		if domainName != 'localhost':
			self.sendRequestToGoogleAnalytics(utmUrl)

		#If the debug parameter is on, add a header to the response that contains
		#the url that was used to contact Google Analytics.
		if len(self.request.get(&quot;utmdebug&quot;)) != 0:
			self.response.headers.add_header(&quot;X-GA-MOBILE-URL&quot; , utmUrl)

	  	#Finally write the gif data to the response.
		self.response.headers.add_header('Content-Type', 'image/gif' )
		self.response.headers.add_header('Cache-Control', 'private, no-cache, no-cache=Set-Cookie, proxy-revalidate' )
		self.response.headers.add_header('Pragma', 'no-cache' )
		self.response.headers.add_header('Expires', 'Wed, 17 Sep 1975 21:32:10 GMT' )
		self.response.out.write(''.join(GIF_DATA))
</pre>
<p>So now we know what to do with our requests at /ga/ when we get them, we just need to make the proper requests to that URL in the first place. So we need to generate the URL we&#8217;re going to have the visitor&#8217;s browser request in the first place. With normal django, we would be able to use template_context to automatically insert it into the page&#8217;s template values. But, since AppEngine doesn&#8217;t use that, we have our own helper functions to do that, which I showed some of in my last post. Here&#8217;s the updated helper functions, with the GoogleAnalyticsGetImageUrl function included:</p>
<pre class="brush: python;">
import settings

def googleAnalyticsGetImageUrl(request):
	url = &quot;&quot;
	url += '/ga/' + &quot;?&quot;
	url += &quot;utmac=&quot; + settings.GA_ACCOUNT
	url += &quot;&amp;utmn=&quot; + str(random.randrange(0, 0x7fffffff))

	referer = request.referrer
	query = urllib.urlencode(request.GET) #$_SERVER[&quot;QUERY_STRING&quot;];
	path = request.path #$_SERVER[&quot;REQUEST_URI&quot;];

	if len(referer) == 0:
		referer = &quot;-&quot;

	url += &quot;&amp;utmr=&quot; + urllib.pathname2url(referer)

	if len(path)!=0:
		url += &quot;&amp;utmp=&quot; + urllib.pathname2url(path)

	url += &quot;&amp;guid=ON&quot;;

	return {'gaImgUrl':url}

def getTempalteValues(request):
	myDict = {}
	myDict.update(ua_test(request))
	myDict.update(googleAnalyticsGetImageUrl(request))
	return myDict
</pre>
<p>Assuming we use getTemplateValues to set up our inital template_values dict, we should have a variable named &#8216;gaImgUrl&#8217; in our page. To use it, all we need to do is put this at the bottom of every page on the site:</p>
<pre class="brush: xml;">
&lt;img src=&quot;{{ gaImgUrl }}&quot; alt=&quot;analytics&quot; /&gt;
</pre>
<p>My <code>settings</code> file contains  the GA_ACCOUNT variable, but replaces the standard GA-XXXXXX-X setup with MO-XXXXXX-X. I&#8217;m assuming the MO- tells google that it&#8217;s a mobile so accept the proxied requests.</p>
<p>One thing to keep in mind with this technique is that you cannot cache your rendered templates. The image you server will necessarily have a different query string every time, and if you cached it, you would ruin your analytics. Instead, you should cache nearly everything from your view functions, except the gaImgUrl variable.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/11/12/building-walkers-mobile-site-google-analytics-without-javascript-pt2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Media kills in the Walker&#8217;s pumpkin carving contest</title>
		<link>http://blogs.walkerart.org/newmedia/2009/11/11/new-media-kills-in-the-walkers-pumpkin-carving-contest/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/11/11/new-media-kills-in-the-walkers-pumpkin-carving-contest/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:56:36 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[NMI Today]]></category>
		<category><![CDATA[New Media Art]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=1003</guid>
		<description><![CDATA[Every year, the Walker has a staff halloween party, which includes a departmental pumpkin carving contest. And this isn&#8217;t just a carve a grocery store pumpkin contest, it&#8217;s a creative, conceptual, re-imagine an artist or artwork pumpkin contest. Invariably, our carpentry shop and registration departments usually blow everyone else out of the water. Those of [...]]]></description>
			<content:encoded><![CDATA[<p>Every year, the Walker has a staff halloween party, which includes a departmental pumpkin carving contest. And this isn&#8217;t just a carve a grocery store pumpkin contest, it&#8217;s a creative, conceptual, re-imagine an artist or artwork pumpkin contest. Invariably, our carpentry shop and registration departments usually blow everyone else out of the water. Those of us that are a little less hands-on with the art work tend to be outclassed every year (exhibits <a href="http://blogs.walkerart.org/offcenter/2005/10/24/the-conceptual-art-of-pumpkin-carving/">1</a>, <a href="http://blogs.walkerart.org/offcenter/2005/11/10/vol-ii-the-conceptual-art-of-pumpkin-carving/">2</a>, and <a href="http://blogs.walkerart.org/offcenter/2006/10/31/the-conceptual-art-of-pumpkin-carving-vol-iii/">3</a>). New Media Initiatives never wins.</p>
<p><strong>But not this year.</strong></p>
<p><em>This year, we had a plan. </em></p>
<p>Actually, we came up with the plan after our no-show defeat last year, but we smartly held onto it for this year (thank you, iCal). On the day of the contest, we replaced every image of artwork on the Walker website with an image of a pumpkin.</p>
<p><a href="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-20091102.png"><img src="http://blogs.walkerart.org/newmedia/files/2009/11/pumpkin_wac_home.jpg" alt="walker homepage with pumpkins" /></a></p>
<p>And the rest of the pages (click to embiggen):</p>
<div id="attachment_1005" class="wp-caption alignleft" style="width: 160px"><a href="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-Calendar-20091102.png"><img class="size-thumbnail wp-image-1005" src="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-Calendar-20091102-150x150.png" alt="Calendar" width="150" height="150" /></a><p class="wp-caption-text">Calendar</p></div>
<div id="attachment_1008" class="wp-caption alignleft" style="width: 160px"><a href="http://blogs.walkerart.org/newmedia/files/2009/11/Collections-and-Resources-20091102.png"><img class="size-thumbnail wp-image-1008" src="http://blogs.walkerart.org/newmedia/files/2009/11/Collections-and-Resources-20091102-150x150.png" alt="Collections and Resources" width="150" height="150" /></a><p class="wp-caption-text">Collections and Resources</p></div>
<div id="attachment_1007" class="wp-caption alignleft" style="width: 160px"><a href="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-Artists-in-Residence-20091102.png"><img class="size-thumbnail wp-image-1007" src="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-Artists-in-Residence-20091102-150x150.png" alt="Artists-in-Residence" width="150" height="150" /></a><p class="wp-caption-text">Artists-in-Residence</p></div>
<div id="attachment_1011" class="wp-caption alignleft" style="width: 160px"><a href="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-Visual-Arts-20091102.png"><img class="size-thumbnail wp-image-1011" src="http://blogs.walkerart.org/newmedia/files/2009/11/Walker-Art-Center-Visual-Arts-20091102-150x150.png" alt="Visual Arts" width="150" height="150" /></a><p class="wp-caption-text">Visual Arts</p></div>
<div id="attachment_1009" class="wp-caption alignleft" style="width: 160px"><a href="http://blogs.walkerart.org/newmedia/files/2009/11/Design-»-The-Quick-and-the-Dead-20091102.png"><img class="size-thumbnail wp-image-1009" src="http://blogs.walkerart.org/newmedia/files/2009/11/Design-»-The-Quick-and-the-Dead-20091102-150x150.png" alt="Design Blog" width="150" height="150" /></a><p class="wp-caption-text">Design Blog</p></div>
<p><br class="clear" /><br />
We ended up winning in the &#8220;Funniest Pumpkin&#8221; category. </p>
<p>Because we serve all of our media from a single server using lighttpd, and our files are all uniformly named, we were able to implement a simple rule set in lighty to replace the images. Instead of the requested file, each image was re-directed to a simple perl script that would grab a random jpg from our pool of pumpkin images, and send it&#8217;s contents instead. Part of the plan was that we would only serve these images to people visiting our site from inside our internal network. The rest of the world would see our website just as always. In our department, we all unplugged our ethernet cables and ran off of our firewall&#8217;d WiFi, which effectively put us outside the network, seeing nothing different on the site. We had a hard time holding back evil cackles as people came to us wondering how our site was hacked, and watching it slowly dawn on them that this was our pumpkin.</p>
<p>The images we used were all the <a href="http://www.flickr.com/search/?q=pumpkin&amp;l=cc&amp;ss=2&amp;ct=6&amp;mt=all&amp;w=all&amp;adv=1">creative commons licensed flickr images of pumpkins</a> I could find. There were 54 of them. Here they are, for credit:</p>
<ul>
<li><a title="Pumpkin on Flickr - Photo Sharing!" href="http://www.flickr.com/photos/itspaulkelly/2974473528/">Pumpkin</a></li>
<li><a title="My Geek-o-Lantern. on Flickr - Photo Sharing!" href="http://www.flickr.com/photos/42091646@N00/2976282481">My Geek-o-Lantern.</a></li>
<li><a title="Pumpkins! on Flickr - Photo Sharing!" href="http://www.flickr.com/photos/julishannon/1464530443/">Pumpkins!</a></li>
<li><a title="mini pumpkins on Flickr - Photo Sharing!" href="http://www.flickr.com/photos/39242181@N00/113481892/">mini pumpkins</a></li>
<li><a title="My favorite season on Flickr - Photo Sharing!" href="http://www.flickr.com/photos/jimnix/4002507779/">My favorite season</a></li>
<li><a title="Tux Pumpkin! on Flickr - Photo Sharing!" href="http://www.flickr.com/photos/chemist/1811471244/">Tux Pumpkin!</a></li>
<li><a title="Thanksgiving, Orcas Island on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1816575">Thanksgiving, Orcas Island</a></li>
<li><a title="the last pumpkins on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=58804931">the last pumpkins</a></li>
<li><a title="candy pumpkins on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=55260249">candy pumpkins</a></li>
<li><a title="Jack O'Lanterns on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1564502415">Jack O&#8217;Lanterns</a></li>
<li><a title="Dreams of Mellowcreme on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=48845241">Dreams of Mellowcreme</a></li>
<li><a title="R.I.P. Punky on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1699672044">R.I.P. Punky</a></li>
<li><a title="Inside the Amber Pieces of Cloth Time on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1768916332">Inside the Amber Pieces of Cloth Time</a></li>
<li><a title="Pumpkin Trio on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=3882211541">Pumpkin Trio on Flickr</a></li>
<li><a title="Cannibal Pumpkin - Halloween 2007 on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1792803096">Cannibal Pumpkin</a></li>
<li><a title="Pumpkin Avalanche - With a Recipe! on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=3963035133">Pumpkin Avalanche</a></li>
<li><a title="Day 320 - Pumpkin Porn on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1489046267">Day 320</a> One of my favorites</li>
<li><a title="IMG_0589 on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1811000238">IMG_0589</a></li>
<li><a title="halloween bokeh on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=2941787498">halloween bokeh</a></li>
<li><a title="Spooky on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1812682954">Spooky</a></li>
<li><a title="pumpkin rows.jpg on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=256206366">pumpkin rows.jpg</a></li>
<li><a title="My front steps on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1874673828">My front steps</a></li>
<li><a title="Halloween 2006 on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=284521375">Halloween 2006</a></li>
<li><a title="Halloween 2005 on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=58268972">Halloween 2005</a></li>
<li><a title="Fall on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1442846663">Fall</a></li>
<li><a title="pumpkin twins on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=284058024">pumpkin twins</a></li>
<li><a title="fructele toamnei on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=4037884392">fructele toamnei</a></li>
<li><a title="Pumpkin Harvest on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=2967467487">Pumpkin Harvest</a></li>
<li><a title="small pie pumpkin on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=2971439925">small pie pumpkin</a></li>
<li><a title="Pumpkins - Space Invader on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1027786">Pumpkins &#8211; Space Invader</a></li>
<li><a title="You smiling at me on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=4028382825">You smiling at me</a></li>
<li><a title="after the storm on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=67933417">after the storm</a></li>
<li><a title="You Must Be Daddy's Little Pumpkin I Can Tell by the Way You Roll on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=45560282">You Must Be Daddy&#8217;s Little Pumpkin I Can Tell by the Way You Roll</a></li>
<li><a title="Mini citrouilles / Mini Pumpkins on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=245095819">Mini citrouilles / Mini Pumpkins</a></li>
<li><a title="Jack on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=284957537">Jack</a></li>
<li><a title="Duaflex: Pumpkin Patch on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=271814820">Duaflex: Pumpkin Patch</a></li>
<li><a title="'WELCOME GREAT PUMPKIN' on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1411179536">&#8216;WELCOME GREAT PUMPKIN&#8217;</a></li>
<li><a title="pumpkin lit on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=284057663">pumpkin lit</a></li>
<li><a title="Don't overdo it this Halloween on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=2980602687">Don&#8217;t overdo it this Halloween</a></li>
<li><a title="Smiler glow on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=59562000">Smiler glow</a></li>
<li><a title="Hypnotised pumpkin on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=2963800977">Hypnotised pumpkin</a></li>
<li><a title="sad pumpkins on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1576740677">sad pumpkins</a></li>
<li><a title="Red Eye on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=274464845">Red Eye</a></li>
<li><a title="winking pumpkin on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1801258448">winking pumpkin</a></li>
<li><a title="Black Cat Pumpkin on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=273212143">Black Cat Pumpkin</a></li>
<li><a title="Take me to your....tricks and treats! on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=284955421">Take me to your&#8230;.tricks and treats!</a></li>
<li><a title="Which one? on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=253320625">Which one?</a></li>
<li><a title="Pumpkins and Gourds Everywhere! on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1620036155">Pumpkins and Gourds Everywhere!</a></li>
<li><a title="smiley pumpkin on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1659129551">smiley pumpkin</a></li>
<li><a title="Spongebob Pumpkin Pants on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1466029546">Spongebob Pumpkin Pants</a></li>
<li><a title="Silk Garden Lite Socks on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1578821929">Silk Garden Lite Socks</a></li>
<li><a title="i like how cute the tiny pumpkin is on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1662803326">i like how cute the tiny pumpkin is</a></li>
<li><a title="Happy Halloween From Sunny New Jersey! on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=53570647">Happy Halloween From Sunny New Jersey!</a></li>
<li><a title="patch o' pumpkins on Flickr - Photo Sharing!" href="http://flickr.com/photo.gne?id=1723126935">patch o&#8217; pumpkins</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/11/11/new-media-kills-in-the-walkers-pumpkin-carving-contest/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building the Walker&#8217;s mobile website with Google AppEngine, part 1</title>
		<link>http://blogs.walkerart.org/newmedia/2009/11/09/building-the-walkers-mobile-website-with-google-appengine-part-1/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/11/09/building-the-walkers-mobile-website-with-google-appengine-part-1/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 23:26:18 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Mobile Devices]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=956</guid>
		<description><![CDATA[Over the summer, our department made a small but significant policy change. We decided to take a cue from Google&#8217;s 20% time philosophy and spend one day a week working on a Walker-related project of our choosing. Essentially, we wanted to embark on quicker, more nimble projects that hold more interest for our team. The [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-963" src="http://blogs.walkerart.org/newmedia/files/2009/11/mwalker-iphone-234x450.png" alt="mwalker-iphone" width="234" height="450" />Over the summer, our department made a small but significant policy change. We decided to take a cue from Google&#8217;s <a href="http://googleblog.blogspot.com/2006/05/googles-20-percent-time-in-action.html">20% time philosophy</a> and spend one day a week working on a Walker-related project of our choosing. Essentially, we wanted to embark on quicker, more nimble projects that hold more interest for our team. The project I decided to experiment with was making a <a href="http://m.walkerart.org">mobile website for the Walker, m.walkerart.org</a>.</p>
<h5>Reviewing our current site to inform the mobile site</h5>
<p>The web framework we use for most of our site has the ability, with some small changes, to load different versions of a page based on a visitor&#8217;s User Agent (what browser they&#8217;re using). This would mean we could detect if a visitor was running IE on a Desktop or Mobile Safari on an iPhone, and serve each of them two different versions of a page. This is how a lot of mobile sites are done.</p>
<p>This is not the approach we went with for our mobile site, because it violates two of the primary rules (in my mind) of making a mobile website:</p>
<ol>
<li>Make it simple.</li>
<li>Give people the stuff they&#8217;re looking for on their phones right away.</li>
</ol>
<p>Our site is complicated: we have pages for different disciplines, a calendar with years of archives, and many specialty sites. Rule #1, violated. To address #2, I took a look at our web analytics to figure out what most people come to our site looking for. This won&#8217;t surprise anyone, but it&#8217;s hours, admission, directions, and what&#8217;s happening today at the Walker:</p>
<div id="attachment_960" class="wp-caption alignnone" style="width: 344px"><img class="size-full wp-image-960" src="http://blogs.walkerart.org/newmedia/files/2009/11/topContent.jpg" alt="Top Walker Pages as noted by Google Analytics" width="334" height="296" /><p class="wp-caption-text">Top Walker Pages as noted by Google Analytics</p></div>
<p>So it seems pretty clear those things should be up front. One of the other things you might want to access on a mobile is <a href="http://newmedia.walkerart.org/aoc">Art on Call</a>. While Art on Call is designed primarily around dial-in access, there is also a website, but it isn&#8217;t optimized for the small screen of a smartphone. We have WiFi in most spaces within our building, so accessing Art on Call via an web interface and streaming audio via HTTP rather than POTS is a distinct possibility that I wanted to enable.</p>
<h5>Prototyping with Google AppEngine</h5>
<p>I decided to develop a quick prototype using <a href="http://code.google.com/appengine/">Google AppEngine</a>, thinking I&#8217;d end up using GAE in the end, too. Because this was a 20% time project, I had the freedom to do it using the technology I was interested in. AppEngine has the advantage of being something that isn&#8217;t hosted on our server, so there was no need to configure any complicated server stuff. In my mind, AppEngine is perfect for a mobile site because of the low bandwidth requirements for a mobile site. Google doesn&#8217;t provide a ton for free, but if your pages are only 20K each, you can fit quite a bit within the quotas they do give provide. AppEngine&#8217;s primary language is also python, a big plus, since python is the best programming language.</p>
<p>In about two days I built a proof of concept mobile site that displayed the big-ticket pages (hours, admission,etc.) and had a simple interface for Art on Call. Using <a href="http://code.google.com/p/iui/">iUi</a> as a front-end framework was really, really useful here, because it meant that the amount of HTML/CSS/JS I had to code was super minimal, and I didn&#8217;t have to design anything.</p>
<p>I showed the prototype to <a href="http://blogs.walkerart.org/newmedia/author/robin/">Robin</a> and she enthusiastically gave me the green light to work on it full-time.</p>
<h5>Designing a mobile website</h5>
<p>A strategy I saw when looking at mobile sites was to actually have <em>two</em> mobile sites: one for the A-grade phones (iPhone, Nokia S60, Android, Pre) and one for the B- and C-grade phones (Blackberry and Windows Mobile). The main difference between the two is the use of javascript and some more advanced layout. Depending on what version of Blackberry you look at, they have a pretty lousy HTML/CSS implementation, and horrendous or no javascript support.</p>
<p>To work around this, our mobile site does not use any javascript on most pages and tries to keep the HTML/CSS pretty simple. We don&#8217;t do any fancy animations to load between pages like iUi or <a href="http://www.jqtouch.com/">jQtouch</a> do: even on an iPhone those animations are slow. If you make your pages small enough, they should load fast enough and a transition is not necessary.</p>
<p>Designing mobile pages is fun. The size and interface methods for the device force you to re-think how to people interact and what&#8217;s important. They&#8217;re also fun because they&#8217;re blissfully simple. Each page on our mobile site is usually just a headline, image, paragraph or two, and some links. Laying out and styling that content is not rocket surgery.</p>
<p>Initially, when I did my design mockups in Photoshop, I wanted to use a numpad on the site for <a href="http://newmedia.walkerart.org/aoc/">Art on Call</a>, much like the iPhone features for making a phone call. There&#8217;s no easy input for doing this, but I thought it wouldn&#8217;t be too hard to create one with a little javascript (for those that had it). Unfortunately, due to the way touchscreen phones handle click/touch events in the browser, there&#8217;s a delay between when you touch and when the click event fires in javascript. This meant that it was possible to touch/type the number much faster than the javascript events fired. No go.</p>
<p>Instead, the latest versions of WebKit provide with a HTML5 <a href="http://www.bennadel.com/blog/1721-Default-To-The-Numeric-Email-And-URL-Keyboards-On-The-iPhone.htm">input field with a type of &#8220;number&#8221;</a>. On iPhone OS 3.1 and better, it will bring up the keypad already switched to the numeric keys. It does not do this on iPhone OS prior to 3.1. I&#8217;m not sure how Android and Pre handle it.</p>
<div id="attachment_968" class="wp-caption alignleft" style="width: 254px"><img class="size-medium wp-image-968 " src="http://blogs.walkerart.org/newmedia/files/2009/11/aoc_mockup-244x450.jpg" alt="Mocked up Art on Call code input." width="244" height="450" /><p class="wp-caption-text">Mocked up Art on Call code input.</p></div>
<div id="attachment_967" class="wp-caption alignleft" style="width: 250px"><img class="size-medium wp-image-967  " src="http://blogs.walkerart.org/newmedia/files/2009/11/aoc_input_actual-300x450.jpg" alt="Implimented Art on Call code input." width="240" height="360" /><p class="wp-caption-text">Implimented Art on Call code input.</p></div>
<p><br class="clear" /></p>
<h5>Comparing smartphones</h5>
<p>Here&#8217;s a few screenshots of the site on various phones:</p>
<div id="attachment_976" class="wp-caption alignleft" style="width: 250px"><img class="size-medium wp-image-976 " src="http://blogs.walkerart.org/newmedia/files/2009/11/pre-300x450.jpg" alt="Palm Pre" width="240" height="360" /><p class="wp-caption-text">Palm Pre</p></div>
<div id="attachment_977" class="wp-caption alignleft" style="width: 250px"><img class="size-medium wp-image-977 " src="http://blogs.walkerart.org/newmedia/files/2009/11/android-300x450.jpg" alt="Android 1.5" width="240" height="360" /><p class="wp-caption-text">Android 1.5</p></div>
<div id="attachment_978" class="wp-caption alignleft" style="width: 298px"><img class="size-medium wp-image-978  " src="http://blogs.walkerart.org/newmedia/files/2009/11/bb9630-450x338.jpg" alt="Blackberry 9630" width="288" height="216" /><p class="wp-caption-text">Blackberry 9630</p></div>
<p><br class="clear" /><br />
Not pictured is Windows Mobile, because it looks really bad.</p>
<p>A future post may cover getting all of these emulators up and running, because it&#8217;s not as straight easy as it should be. Working with the blackberry emulator is especially painful.<br />
<br class="clear" /></p>
<h5>How our mobile site works</h5>
<p>The basic methodology for our mobile site is to pull the data, via either RSS or XML from our main website, parse it, cache it, and re-template it for mobile visitors. Nearly all of the pages on our site are available via XML if you know how to look. Parsing XML into usable data is a computationally expensive task, so caching is very important. Thankfully, AppEngine provides easy access to memcache, so we can memcache the XML fetches and the parsing as much as possible. Here&#8217;s our simple but effective URL parse/cache helper function:</p>
<pre class="brush: python;">
from google.appengine.api import urlfetch
from xml.dom import minidom
from google.appengine.api import memcache

def parse(url,timeout=3600):
	memKey = hash(url)
	r = memcache.get('fetch_%s' % memKey)
	if r == None:
		r = urlfetch.fetch(url)
		memcache.add(key=&quot;fetch_%s&quot; % memKey, value=r, time=timeout)
	if r.status_code == 200:
		dom = memcache.get('dom_%s' % memKey)
		if dom == None:
			dom = minidom.parseString(r.content)
			memcache.add(key=&quot;dom_%s&quot; % memKey, value=dom, time=timeout)
		return dom
	else:
		return False
</pre>
<p>Google AppEngine does not impose much of a structure for your web app. Similar to <a href="http://docs.djangoproject.com/en/dev/topics/http/urls/">Django&#8217;s urls.py</a>, you link regular expressions for URLS to class-based handlers. You can&#8217;t pass any variables beyond what&#8217;s in the URL or the <a href="http://pythonpaste.org/webob/">WebOb</a> to the request handler. Each handler will call a different method, depending if it&#8217;s a GET, POST, DELETE, http request. If you&#8217;re coming from the django world like me, this is not much of a big deal at first, but it gets tedious pretty fast. If I had it to do over again, I&#8217;d probably use <a href="http://code.google.com/p/app-engine-patch/">app-engine-patch</a> from the outset, and thus be able to use all the normal django goodies like middleware, template context, and way more configurable urls.</p>
<p>Within each handler, we also cache the generated data where possible. That is, after our get handler has run, we cache all the values that we pass to our template that won&#8217;t change over time. Here&#8217;s an example of the classes that handle the visit section of our mobile site:</p>
<pre class="brush: python;">
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.api import memcache
from xml.dom import minidom
from google.appengine.api import memcache
from utils import feeds, parse, template_context, text
import settings

class VisitDetailHandler(webapp.RequestHandler):
	def get(self):
		url = self.request.get(&quot;s&quot;) + &quot;?style=xml&quot;
		template_values = template_context.getTempalteValues(self.request)
		path = settings.TEMPLATE_DIR + 'info.html'
		memKey = hash(url)

		r = memcache.get('visit_%s' % memKey)
		if r and not settings.DEBUG:
			template_values.update(r)
			self.response.out.write(template.render(path, template_values))
		else:
			dom = parse.parse(url)
			records = dom.getElementsByTagName(&quot;record&quot;)
			contents = []
			for rec in records:
				title = text.clean_utf8(rec.getElementsByTagName('title')[0].childNodes[0].nodeValue)
				body = text.clean_utf8(rec.getElementsByTagName('body')[0].childNodes[0].nodeValue)
				contents.append({'title':title,'body':body})

			back = {'href':'/visit/#top', 'text':'Visiting'}
			cacheableTemplateValues = { &quot;contents&quot;: contents,'back':back }
			memcache.add(key='visit_%s' % memKey, value={ &quot;contents&quot;: contents,'back':back }, time=7200)
			template_values.update(cacheableTemplateValues)
			self.response.out.write(template.render(path, template_values))
</pre>
<p>Dealing with parsing XML via the standard DOM methods is a great way to test your tolerance for pain. I would use libxml and xpath, AppEngine doesn&#8217;t provide those libraries in their python environment.</p>
<p>Because the only part of Django&#8217;s template system that AppEngine uses is the template language, and nothing else, we have to roll our own helper functions for context. Meaning, if we want to pass a bunch variables by default to our templates, something easy in django, we have to do it a little differently with GAE. I set up a function called getTemplateValues, which we pass the WebOb request, and it ferrets out and organizes info we need for the templates, passing it back as a dict.</p>
<pre class="brush: python;">
def ua_test(request):
	uastring = request.headers.get('user_agent')
	uaDict = {}
	if &quot;Mobile&quot; in uastring and &quot;Safari&quot; in uastring:
		uaDict['isIphone'] = True
	if 'BlackBerry' in uastring:
		uaDict['isBlackBerry'] = True
	return uaDict

def getTempalteValues(request):
	myDict = {}
	myDict.update(ua_test(request))
	myDict.update(googleAnalyticsGetImageUrl(request))
	return myDict
</pre>
<p>In my next post, I&#8217;ll talk about how to track visitors on a mobile site using google analytics, without using javascript.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/11/09/building-the-walkers-mobile-website-with-google-appengine-part-1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Art(ists) on the Verge 2: Grants for new media artists in minnesota</title>
		<link>http://blogs.walkerart.org/newmedia/2009/10/16/artists-on-the-verge-2-grants-for-new-media-artists-in-minnesota/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/10/16/artists-on-the-verge-2-grants-for-new-media-artists-in-minnesota/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 16:15:37 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[New Media Art]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=934</guid>
		<description><![CDATA[Minneapolis-based Northern Lights.mn has announced the second year of Ar(ists) on the Verge:
Northern Lights announces a second round of Art(ists) on the Verge commissions (AOV2). AOV2 is an intensive, mentor-based fellowship program for 5 Minnesota-based, emerging artists or artist groups working experimentally at the intersection of art,  technology, and digital culture with a focus on [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 229px"><img src="http://farm1.static.flickr.com/176/409214263_ac7119e827.jpg" alt="" width="219" height="329" /><p class="wp-caption-text">Photo  by k0a1a.net.</p></div>
<p>Minneapolis-based Northern Lights.mn has announced the <a href="http://northern.lights.mn/2009/10/announcing-artists-on-the-verge-2/">second year of Ar(ists) on the Verge</a>:</p>
<p style="padding-left: 30px">Northern Lights announces a second round of Art(ists) on the Verge commissions (AOV2). AOV2 is an intensive, mentor-based fellowship program for 5 Minnesota-based, emerging artists or artist groups working experimentally at the intersection of art,  technology, and digital culture with a focus on network-based practices that are interactive and/or participatory. AOV2 is generously supported by the Jerome Foundation.</p>
<p>Northern Lights was founded by former Walker New Media Curator Steve Dietz. The grants this year will be juried by Dietz, along with Kathleen Forde, Curator for Time-Based Arts at the Experimental Media and Performing Arts Center (EMPAC)  in Troy, NY, and the Walker&#8217;s chief curator, <a href="http://blogs.walkerart.org/visualarts/2009/02/02/the-walker-welcomes-chief-curator-darsie-alexander/">Darsie Alexander</a>.</p>
<p>The resulting show  show at the Weisman Art Museum from last years grantees was worth checking out. It is good to see work being done to create our own new media art structures here in Minnesota, rather than watching cool things like Eyebeam happen from afar.</p>
<p>And by the way, Northern Lights&#8217; blog, Public Address, has become one of my favorite reads for neat artwork being made around the world. I confess I find a lot of art blogs rather dry and esoteric, but not <a href="http://northern.lights.mn/publicaddress/">Public Address</a>. And, this may seem somewhat mundane and obvious, but near every post has an interesting image, which is nice for an art blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/10/16/artists-on-the-verge-2-grants-for-new-media-artists-in-minnesota/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access the Walker&#8217;s website from Minneapolis Public WiFi</title>
		<link>http://blogs.walkerart.org/newmedia/2009/10/02/access-the-walkers-website-from-minneapolis-public-wifi/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/10/02/access-the-walkers-website-from-minneapolis-public-wifi/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 17:38:18 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[minneapolis]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=924</guid>
		<description><![CDATA[If you&#8217;re visiting town and are out and about, getting info on the Walker and other cultural institutions in the city via the web just got easier. Minneapolis&#8217; city-wide wireless network now lets users access walkerart.org without being a subscriber. Here&#8217;s how it works:
On your computer, select the &#8220;City of Minneapolis Public WiFi&#8221; network.

Open your [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re visiting town and are out and about, getting info on the Walker and other cultural institutions in the city via the web just got easier. <a href="http://usiwireless.com/">Minneapolis&#8217; city-wide wireless network</a> now lets users access walkerart.org without being a subscriber. Here&#8217;s how it works:</p>
<p>On your computer, select the &#8220;City of Minneapolis Public WiFi&#8221; network.</p>
<p><img class="alignnone size-full wp-image-925" src="http://blogs.walkerart.org/newmedia/files/2009/10/select_wifi.png" alt="select_wifi" width="285" height="184" /></p>
<p>Open your browser and point yourself to <a href="http://walkerart.org">walkerart.org</a>. That should do it. You may be  directed to a user agreement log in screen and then the &#8220;walled garden&#8221; of Minneapolis city information and lists of other accessible community sites. The Walker is listed under Area Arts &amp; Culture &gt; Arts &amp; Museums &gt; Art Museums.</p>
<div id="attachment_927" class="wp-caption alignleft" style="width: 280px"><a href="http://blogs.walkerart.org/newmedia/files/2009/10/type_in_url.png"><img class="size-medium wp-image-927  " src="http://blogs.walkerart.org/newmedia/files/2009/10/type_in_url-450x338.png" alt="Wireless Log In Screen" width="270" height="203" /></a><p class="wp-caption-text">Wireless Log In Screen</p></div>
<div id="attachment_926" class="wp-caption alignleft" style="width: 280px"><a href="http://blogs.walkerart.org/newmedia/files/2009/10/go_portal.png"><img class="size-medium wp-image-926  " src="http://blogs.walkerart.org/newmedia/files/2009/10/go_portal-450x338.png" alt="Minneapolis Dowtown Area Walled Garden Portal" width="270" height="203" /></a><p class="wp-caption-text">Minneapolis Dowtown Area Walled Garden Portal</p></div>
<p><br class="clear" /></p>
<h5>A brief history of Minneapolis Municipal WiFi</h5>
<p>Several years ago, the City of Minneapolis joined with USI Wireless to build out a city-wide network. The goal was to provide access for city government and citizens. The city would be a core tenant, paying USI, and USI would sell access to citizens. The city required USI to build a community portal and USI must provide grants out of it&#8217;s profits to non-profits working to bridge the digital divide.</p>
<p>Over the last several years, the network has slowly been built out. Right now there are <a href="http://www.usiwireless.com/service/minneapolis/schedule.htm">some problem areas</a>, which include Loring Park and the <a href="http://garden.walkerart.org">Minneapolis Sculpture Garden</a>. My understanding is that these areas should see service sometime soon, though I&#8217;m not sure of any exact plans on the Sculpture Garden.</p>
<p>There are a couple things I have really liked about the network:</p>
<ul>
<li><strong>We&#8217;re doing it.</strong> A lot of cities have talked about building municipal wifi, and then discover large problems and things don&#8217;t work well. There have been some issues with in Minneapolis, it is taking longer to build the network than originally thought, but my impression is that it has worked fairly well.</li>
<li><strong>It&#8217;s network neutral.</strong> The agreement between the city and USI specifically requires USI to not hinder any type of traffic over another.</li>
<li><strong>Parts of it are free.</strong> This is how you can get to our site for free.</li>
<li><strong>It&#8217;s low cost.</strong> The cost for being a subscriber is pretty low, compared to other wire-based providers.</li>
<li><strong>It&#8217;s local.</strong> USI is a local company.</li>
</ul>
<p>For more information on the network and the history, <a href="http://www.pfhyper.com/blog">Peter Fleck has been blogging about Minneapolis WiFi</a> for some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/10/02/access-the-walkers-website-from-minneapolis-public-wifi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Behind-the-scenes of ArtsConnectEd: Art Finder</title>
		<link>http://blogs.walkerart.org/newmedia/2009/09/22/behind-the-scenes-of-artsconnected-art-finder/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/09/22/behind-the-scenes-of-artsconnected-art-finder/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:21:00 +0000</pubDate>
		<dc:creator>Nate Solas</dc:creator>
				<category><![CDATA[ArtsConnectEd]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=889</guid>
		<description><![CDATA[On September 1, 2009 the new ArtsConnectEd became available at ArtsConnectEd.org.  The new site provides access to more than 100,000 museum resources, including audio, video, images, and information about works of art, all of which can be saved and presented with the more powerful Art Collector.
This project was at least three years in the making, [...]]]></description>
			<content:encoded><![CDATA[<p>On September 1, 2009 the new ArtsConnectEd became available at <a href="http://www.artsconnected.org/">ArtsConnectEd.org</a>.  The new site provides access to more than 100,000 museum resources, including audio, video, images, and information about works of art, all of which can be saved and presented with the more powerful Art Collector.</p>
<p>This project was at least three years in the making, with the last two of those being the technical work of research, design, and development.  In this series of posts I&#8217;d like to present some of the decisions we struggled with and the process we went through in developing the new site.  I&#8217;ll start with the Art Finder, followed by a post on the Art Collector and presentations, and finish with a post about some of the more technical aspects including the data and harvesting technologies we&#8217;re using.</p>
<h1>Art Finder</h1>
<p>The Art Finder is the guts of the site, a portal into our thousands and thousands of objects, text records, and more.  I don&#8217;t think it&#8217;s an exaggeration to say designing and building this component was the biggest challenge we faced in the entire process.  We&#8217;ve redesigned the interface many times, often significantly, and are still not certain it&#8217;s right.  We&#8217;ve changed the underlying technology from a SQL / Lucene hybrid to a straight-up <a href="http://lucene.apache.org/solr/">Solr</a> search engine.  We&#8217;ve debated (endlessly) what fields to include, and what subset of our data to present in those fields.  We&#8217;ve gone back and forth over tab titles, and even whether to use tabs.  A rocky road, to say the least.</p>
<h2>The big idea</h2>
<p>What if we could start with <em>everything</em> and narrow it down from there?  Offer the user the entire collection and let them whittle away at it until they found what they wanted?</p>
<p><em><strong>It&#8217;s all browse.  Keyword is just another filter.</strong></em></p>
<p>To me this is the big breakthrough of the ArtsConnectEd interface.  We don&#8217;t hide the content behind a search box, or only show filters after you try a keyword.  We don&#8217;t have a separate page for &#8220;Advanced Search&#8221;, but we offer the same power through filters.  There is still a keyword field for those who know exactly what they&#8217;re looking for, but we get to use our metadata in a more powerful way than simple text.  That is, since know the difference between the <a href="http://www.artsconnected.org/resource/list/breadcrumb/true/category/work/f_workHasThumbnailMedia/on/query/painting/sortby/relevance/order/desc"><em>word</em> &#8220;painting&#8221;</a> appearing in the description and something that <a href="http://www.artsconnected.org/resource/list/breadcrumb/true/category/work/f_workHasThumbnailMedia/on/f_workDisplayResourceType/Paintings/sortby/title/order/asc"><em>is</em> a painting</a>, we can present that to the user through filters.</p>
<h2>How we Got here</h2>
<p><a href="http://blogs.walkerart.org/newmedia/files/2009/09/browse_wireframe.gif"><img class="size-thumbnail wp-image-896 alignleft" style="border: 2px solid black;margin-left: 5px;margin-right: 5px" src="http://blogs.walkerart.org/newmedia/files/2009/09/browse_wireframe-150x150.gif" alt="browse_wireframe" width="150" height="150" /></a>We wanted many ways for the user to explore the collection, with the idea we might hopefully mimic some of the serendipity of exploring a gallery.  The tech committee felt early on that we&#8217;d need, in addition to a robust search, some way to freely browse.  Our initial attempt was to split the Art Finder into a Browse interface (left) and a Search interface (right).<a href="http://blogs.walkerart.org/newmedia/files/2009/09/search_wireframe.gif"><img class="size-thumbnail wp-image-897 alignright" style="border: 2px solid black;margin-left: 5px;margin-right: 5px" src="http://blogs.walkerart.org/newmedia/files/2009/09/search_wireframe-150x150.gif" alt="search_wireframe" width="150" height="150" /></a></p>
<p>After forcing users to choose a content type to browse (Object, Text, etc), we exposed facets (fields) to allow filtering, e.g. by Medium or Style.  These facets were hidden by default in the Search interface, where instead you started with a keyword and content type as tabs &#8212; but could then click to reveal the same browse filters!  The more we played with these two ideas, the more we realized they were essentially the same thing, the only difference being a confusing first step and then having to learn two interfaces.  The real power of the site was in combining them, committing fully to Browse, and adding the keyword search as a filter.</p>
<p>Lastly, as we harvested more of our collections we realized pushing filters to the front offered a better way to drill down when many of our records are not text-heavy and thus less findable via keyword search.  In many ways browse leveled the playing field of our objects between those with healthy wall labels and those with more sparse metadata.</p>
<p style="text-align: center"><img class="size-full wp-image-910 aligncenter" style="border: 1px solid black" src="http://blogs.walkerart.org/newmedia/files/2009/09/fact_discovery.png" alt="fact_discovery" width="597" height="234" /></p>
<h2>What works</h2>
<p>(In my humble opinion!)  A good browse has to do a few things:</p>
<ul>
<li><strong>Be fast.</strong> Studies have shown that slow search (or browse) results derail a user&#8217;s chain of thought and makes it difficult to complete tasks.  We went one step further and did away with the &#8220;Go&#8221; button for everything but keyword &#8211; making a change to a pulldown automatically updates your result set.  (It&#8217;s not instant, but it&#8217;s fast enough the action feels connected to the results)</li>
<li><strong>Reduce complex fields to an intuitive subset.</strong> We have a huge range of unique strings for the Medium field, but we&#8217;ve broadly grouped them to present a reasonable-sized pulldown.  Likewise for the Culture pulldown.  (We manually reduce the terms for Medium, and have a automated Bayesian filter for the Culture field)</li>
<li><strong>Have good breadcrumbs.</strong> Users need to know what options are in effect and be able to backtrack easily.</li>
<li><strong>Avoid dead ends. </strong> With many interfaces it&#8217;s entirely too easy to browse yourself into an empty set.  By showing numbers next to our filter choices, we can help users avoid these &#8220;dead ends&#8221;.</li>
<li><strong>Expose variety.</strong> Type &#8220;Jasper Johns&#8221; in the artist field, and <a href="http://www.artsconnected.org/resource/list/breadcrumb/true/category/work/f_workHasThumbnailMedia/on/f_workDisplayCreator/Jasper+Johns/sortby/title/order/asc">check out</a> the Medium pulldown: it shows the bulk of his work is in Prints, but we also have a few sculptures, some mixed media, etc.  A nice way to see the variety of an artist&#8217;s work at-a-glance.</li>
<li><strong>Autocomplete complicated fields.</strong> If a search box is targeted to a field (like our Artist box), it needs to autocomplete.  Leaving a field like this open to free text is asking for frustration as people get 0 results for &#8220;<a href="http://www.artsconnected.org/resource/list/breadcrumb/true/category/work/f_workHasThumbnailMedia/on/query/Claes+Oldenberg/sortby/relevance/order/desc">Claes Oldenberg</a>&#8220;. (Auto-suggest &#8220;did you mean&#8221; should also work!)</li>
<li><strong>Have lots of sort options.</strong> One of my favorite features of the new Art Finder is the ability to <a href="http://www.artsconnected.org/resource/list/breadcrumb/true/category/work/f_workHasThumbnailMedia/on/f_workDisplayResourceType/Sculpture/sortby/size/order/desc">sort by size</a>.  Super cool.  (check out the Scale tab in the detail view for <a href="http://www.artsconnected.org/resource/86810/38/unpainted-sculpture/tab/scale#scale">more</a> <a href="http://www.artsconnected.org/resource/91421/56/the-parachutist/tab/scale#scale">fun</a>!)</li>
</ul>
<p>I&#8217;m biased after this project, but I&#8217;m fairly convinced combining faceted browsing with keyword search is absolutely the way to go for collection search.  It gives the best of both worlds, powerful but still intuitive.</p>
<p style="text-align: center"><img class="size-full wp-image-906 aligncenter" src="http://blogs.walkerart.org/newmedia/files/2009/09/facets_1.png" alt="facets_1" width="572" height="360" /></p>
<h2>What could be better</h2>
<p>&#8230; but is it really intuitive?  People seem to still be looking for a big inviting search box to start with.  The interface is crowded, and the number of options looks intimidating.  We&#8217;ve ended up avoiding using the words &#8220;Search&#8221; and &#8220;Browse&#8221; because they were loaded and causing confusion.  We&#8217;ve tried many versions of the tab bar to try to clarify what filters apply globally (e.g. Institution) and which only effect that tab (Works of Art have an Artist, for instance), but I don&#8217;t believe we&#8217;ve solved it.</p>
<p>I think the two components of the interface that give us the most trouble and confusion are actually the &#8220;Has Image&#8221; checkbox and the &#8220;Reset All&#8221; button.  These are consistently missed by people in testing, and we have tried almost everything we can think of.  Oh, and the back button.  The back button is &#8220;broken&#8221; in dynamic search like this.</p>
<p>Also, while I really like the look of the tiles in the results panel, we&#8217;ve had to heavily overload the rollover data to show fields we can sort by since there&#8217;s no more room in the tiles.  We also intended to create alternative result formats, such as text bars, etc, which could show highlights on matching keywords, but this item was pushed back for other features.</p>
<p>We&#8217;ve defaulted to sorting alphabetically by title when a user first reaches the page, and I&#8217;m no longer sure this is best.  As we&#8217;ve populated the collections in ArtsConnectEd we&#8217;ve ended up with a bunch of works that have numbers for titles, make the alpha sort less obvious.</p>
<p>You tell me!  Give <a href="http://www.artsconnected.org/">the site</a> a spin and post a comment &#8211; what works, and what could be better?</p>
<p style="padding-left: 30px"><span style="font-size:.75em">Resources:</span></p>
<ul>
<li><a href="http://www.uie.com/articles/faceted_search/">Designing for Faceted Search</a> (http://www.uie.com/articles/faceted_search/)</li>
<li><a href="http://www.uie.com/events/virtual_seminars/facets/FacetedSearchVS35Handout.pdf">Faceted Search: Designing Your Content, Navigation, and User Interface</a> (http://www.uie.com/events/virtual_seminars/facets/FacetedSearchVS35Handout.pdf)</li>
<li><a href="http://en.wikipedia.org/wiki/Faceted_search">Faceted Search</a> (http://en.wikipedia.org/wiki/Faceted_search)</li>
<li><a href="http://www.uxmatters.com/mt/archives/2009/09/best-practices-for-designing-faceted-search-filters.php">Best Practices for Designing Faceted Search Filters</a> (http://www.uxmatters.com/mt/archives/2009/09/best-practices-for-designing-faceted-search-filters.php)</li>
<li><a href="http://www.vam.ac.uk/cis-online/search/?q=blue&amp;commit=Search&amp;category%5B%5D=5&amp;narrow=1&amp;offset=0&amp;slug=0">V&amp;A Collections</a> (beta) (http://www.vam.ac.uk/cis-online/search/?q=blue&amp;commit=Search&amp;category%5B%5D=5&amp;narrow=1&amp;offset=0&amp;slug=0)
<ul>
<li>Their facets aren&#8217;t as up front as I&#8217;d like (you have to start with a keyword), but they&#8217;re done really well once they show up.</li>
<li>You can also cheat and leave keyword blank to get a full browse and go right to the facets&#8230;  Maybe start here?</li>
</ul>
</li>
<li><a href="http://www.moma.org/collection/search.php">MOMA Collections</a> (http://www.moma.org/collection/search.php)
<ul>
<li>Nice presentation of facets, but I wish two things: show me a number next to all constraints, not just artists, and let me add a keyword.  (I got a dead end looking for on-view film from the 20s or 2000s)  I also like that it&#8217;s a true browse &#8211; leaving everything at &#8220;All&#8221; seems to give me the whole collection.</li>
</ul>
</li>
</ul>
<p style="padding-left: 30px">
<p style="padding-left: 30px">
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/09/22/behind-the-scenes-of-artsconnected-art-finder/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Web and video standards roundup</title>
		<link>http://blogs.walkerart.org/newmedia/2009/09/17/web-and-video-standards-roundup/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/09/17/web-and-video-standards-roundup/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 19:47:32 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=886</guid>
		<description><![CDATA[   

Eric at Adapted Studio put together this sweet little demo of HTML5 and Canvas in action, in the form of the Game of life. Source code is included, too, if you want to learn a few nifty things.
Color me surprised, but Microsoft is actually purporting to work together on at least some [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://adaptedstudio.com/weblog/2009/sep/14/life-fun/"><img class="alignnone size-thumbnail wp-image-11" src="http://blogs.walkerart.org/files/2009/09/life2-150x150.gif" alt="life2" width="120" height="120" /></a> <a href="http://arstechnica.com/microsoft/news/2009/09/ie-program-manager-endorses-html-5-multimedia-tags.ars"><img class="alignnone size-thumbnail wp-image-10" src="http://blogs.walkerart.org/files/2009/09/513636061_98d07f7966-150x150.jpg" alt="html5 " width="120" height="120" /></a> <a href="http://ejohn.org/apps/learn/"><img class="alignnone size-thumbnail wp-image-12" src="http://blogs.walkerart.org/files/2009/09/Screen-shot-2009-09-17-at-2.35.28-PM-150x150.png" alt="learning advanced javascript" width="120" height="120" /></a> <a href="http://diveintomark.org/archives/2009/01/08/give-slides"><img class="alignnone size-thumbnail wp-image-13" src="http://blogs.walkerart.org/files/2009/09/Screen-shot-2009-09-17-at-2.36.06-PM-150x150.png" alt="audio codec wtf" width="120" height="120" /></a></p>
<ul>
<li>Eric at Adapted Studio put together this sweet little <a href="http://adaptedstudio.com/weblog/2009/sep/14/life-fun/">demo of HTML5 and Canvas in action</a>, in the form of the Game of life. Source code is included, too, if you want to learn a few nifty things.</li>
<li>Color me surprised, but Microsoft is actually purporting to <a href="http://arstechnica.com/microsoft/news/2009/09/ie-program-manager-endorses-html-5-multimedia-tags.ars">work together on at least some of the HTML5</a> spec. This could be good. Using &lt;video&gt; would be much easier if everyone would do it. But there still is the nasty issue of codecs, which is even more thorny than W3C specs.</li>
<li>This is from about a year ago, but John Resig (of jQuery fame) posted a very nice tutorial for <a href="http://ejohn.org/apps/learn/">Learning Advanced Javascript</a>. It clears up a lot of confusion about seemingly advanced techniques.</li>
<li>Also worth perusing is Mark Pilgrim&#8217;s <a href="http://diveintomark.org/archives/2008/12/18/give-part-1-container-formats">Gentle introduction to video formatting</a>. If you&#8217;re a video geek, you might know some of this, but there&#8217;s detail that might fill in some gaps. The <a href="http://diveintomark.org/archives/2009/01/08/give-slides">slides</a> are also slightly amusing. I had no idea the .mkv format came from a bunch of guys in Russia that decided to opensource it.</li>
</ul>
<p>HTML 5 image form <a href="http://www.flickr.com/photos/justinsomnia/513636061/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/09/17/web-and-video-standards-roundup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE6 Must Die (along with 7 and 8)</title>
		<link>http://blogs.walkerart.org/newmedia/2009/07/17/ie6-must-die-along-with-7-and-8/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/07/17/ie6-must-die-along-with-7-and-8/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 18:31:57 +0000</pubDate>
		<dc:creator>Brent Gustafson</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=872</guid>
		<description><![CDATA[One of the trending topics on Twitter currently is &#8220;IE6 Must Die&#8220;, which are mainly retweets to a blog post entitled &#8220;IE6 Must Die for the Web to Move On&#8220;.  This is certainly true, IE6 has many rendering bugs and lacks support for so many things that it is simply a nightmare to work [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blogs.walkerart.org/newmedia/files/2009/07/iedestroy.png" alt="iedestroy" width="244" height="146" class="alignleft size-full wp-image-876" />One of the trending topics on Twitter currently is &#8220;<a href="http://twitter.com/#search?q=%22IE6%20Must%20Die%22">IE6 Must Die</a>&#8220;, which are mainly retweets to a blog post entitled &#8220;<a href="http://mashable.com/2009/07/16/ie6-must-die/">IE6 Must Die for the Web to Move On</a>&#8220;.  This is certainly true, IE6 has many rendering bugs and lacks support for so many things that it is simply a nightmare to work with.  The amount of time and money wasted in supporting this browser across the web is staggering.</p>
<p>In fact a few months ago the New Media department decided to drop support for IE6 on all future websites we create.  The last website we built with full IE6 support was the new <a href="http://artsconnected.org">ArtsConnectEd</a>, mainly because teachers tend to have little say in what browsers they can use on school computers.  However, moving forward we&#8217;re phasing out support for IE6.  It simply costs us too much time and resources for the dwindling number of users it has on our sites (currently under 10%, which is down 45% from last year and falling fast).  We&#8217;re not alone, many other sites are doing this as well.</p>
<p>However calling for the killing of IE6 ignores a bit of history as well as new problems to come.  There was a time not so long ago when all web developers wanted to be using IE6.  The goal back then was to kill off IE5.  You see, IE5 had an incorrect box model.  Padding and margins were included in a boxes width and height instead of adding to it like in standards compliant browsers.</p>
<p>This caused all sorts of layout errors, and meant hacks (like the <a href="http://brentgustafson.com/dump/dom/sbmh.html">Simplified Box Model Hack</a>) had to be used to get content to align correctly.  These hacks were so widely used that Apple was going to allow them to be used in the first version of Safari until I convinced Dave Hyatt (lead Safari dev) to take out support for it.  IE6 fixed this bug and everyone was happy (for a while anyway).</p>
<p>Going back further, IE5, even with its broken box model, was at one time the browser of choice back when IE4 was killing Javascript programmers because it didn&#8217;t support <code>document.getElementById()</code>.   IE4 only supported the proprietary <code>document.all</code> leading to a horrible fracturing of Javascript, whereas IE5 added in the JS standard we still use today.  Before people embraced IE5, cross platform JS on the web was almost non-existent, a fact I attempted to rectify by building my <a href="http://assembler.org/xlat/">Assembler</a> site in 1999.</p>
<p>The reason I bring this up is because we have a history of this behavior with regards to IE.  We yearn for the more modern versions, only to end up hating those same versions later on.  This will not change with the death of IE6.  Soon, it will be IE7 that we are trashing, and then IE8 will be the bane of our existence.</p>
<p>This only becomes more clear as we move to HTML5.  IE8 doesn&#8217;t support it, nor does it support any CSS3.  While IE8 does support many of the older standards it had been ignoring for so long, having just recently been released it is already out of date. All of the other browsers do support these advanced web technologies, but IE is the lone browser to ignore them. Once again IE is two steps behind where the web is going, and severely limits our ability to push web technology forward to everyone for many years to come.</p>
<p>So while we celebrate the death of IE6, let us not forget that there will be a new thorn in our side to take its place in short order.  IE7, you&#8217;re next.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/07/17/ie6-must-die-along-with-7-and-8/feed/</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>Some thoughts on preserving Internet Art</title>
		<link>http://blogs.walkerart.org/newmedia/2009/07/13/some-thoughts-on-preserving-internet-art/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/07/13/some-thoughts-on-preserving-internet-art/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 19:49:37 +0000</pubDate>
		<dc:creator>Nate Solas</dc:creator>
				<category><![CDATA[New Media Art]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=867</guid>
		<description><![CDATA[We&#8217;re in the process of retiring our last production server running NT and ColdFusion (whew!), and this means we needed to get a few old projects ported to our newer Linux machines.  The main site, http://aen.walkerart.org/, is marginally database-driven: that is, it pulls random links and projects from a database to make the pages different [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-868" style="margin-left: 10px;margin-right: 10px" src="http://blogs.walkerart.org/newmedia/files/2009/07/aen-64x450.png" alt="aen" width="64" height="450" />We&#8217;re in the process of retiring our last production server running NT and ColdFusion (whew!), and this means we needed to get a few old projects ported to our newer Linux machines.  The main site, <a href="http://aen.walkerart.org/">http://aen.walkerart.org/</a>, is marginally database-driven: that is, it pulls random links and projects from a database to make the pages different each time you load.  The admin at the time was nice enough to include MDB dump files from the Microsoft Access(!) project database, and the free <a href="http://sourceforge.net/projects/mdbtools/">mdbtools</a> software was able to extract the schema and generate import scripts.  Most of <a href="http://blog.moybella.net/2007/03/10/converting-microsoft-access-mdb-into-csv-or-mysql-in-linux/">this page</a> works as-is, but I had to tweak the schema by hand.</p>
<p>After the database was ported to MySQL, it was time to convert the ColdFusion to PHP.  (Note: the pages still say .cfm so we don&#8217;t break links or search engines &#8211; it&#8217;s running php on the server)  Luckily the scripts weren&#8217;t doing anything terribly complicated, mostly just selects and loops with some &#8220;randomness&#8221; thrown in.  I added a quick database-abstraction file to handle connections and errors and sanitize input, and things were up and running quickly.</p>
<p>&#8230; sort of.  The site is essentially a repository of links to other projects, and was launched in February 2000.  As you might imagine there&#8217;s been some serious link rot, and I&#8217;m at a bit of loss on how to approach a solution.  Steve Dietz, former New Media curator here at the Walker, has an article discussing this very issue <a href="http://www.neme.org/main/524/collecting-new-media-art">here</a> (ironically mentioning <em>another</em> Walker-commissioned project that&#8217;s suffered link rot.  Hmm.).</p>
<p>One strategy Dietz suggests is to update the links by hand as the net evolves.  This seems resource-heavy, even if a link-validating bot could automate the checking &#8212; someone would have to curate new links and update the database.  I&#8217;m not sure we can make that happen.</p>
<p>It also occurred to me to build a proxy using the <a href="http://www.archive.org/web/web.php">wayback machine</a> to try to give the user a view of the internet in early 2000.  There&#8217;s no API for pulling pages, but archive.org allows you to build a URL to get the copy of a page closest to a specific date, so it seems possible.  But this is tricky for other reasons &#8211; what if the site actually still exists?  Should we go to the live copy or the copy from 2000?  Do we need to pull the header on the url and only go to archive.org if it&#8217;s a 404 to 500?  And what if the domain is now owned by a squatter who returns a 200 page of ads?  Also, archive.org respects robots.txt, so a few of our links have apparently never been archived and are gone forever.  Rough.</p>
<p>In the end, the easy part was pulling the code to a new language and server &#8211; it works pretty much exactly like it did before, broken links and all.  The hard part is figuring out what to do with the rest of the web&#8230;  I do think I&#8217;ll try to build that archive.org proxy someday, but for now the fact it&#8217;s running on stable hardware is good enough.</p>
<p>Thoughts?  Anyone already built that proxy and want to share?</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/07/13/some-thoughts-on-preserving-internet-art/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Build a bridging firewall (cheap!)</title>
		<link>http://blogs.walkerart.org/newmedia/2009/06/22/build-a-bridging-firewall-cheap/</link>
		<comments>http://blogs.walkerart.org/newmedia/2009/06/22/build-a-bridging-firewall-cheap/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 18:07:12 +0000</pubDate>
		<dc:creator>Nate Solas</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blogs.walkerart.org/newmedia/?p=862</guid>
		<description><![CDATA[New Media has a number of development servers located in-house where we get stuff done before releasing it out into the wild.  Until last week these were protected by an aging OpenBSD firewall running packet filter and all was well until midweek when the motherboard failed.  Not having a spare on hand, I was scrambling [...]]]></description>
			<content:encoded><![CDATA[<p>New Media has a number of development servers located in-house where we get stuff done before releasing it out into the wild.  Until last week these were protected by an aging OpenBSD firewall running <a href="http://en.wikipedia.org/wiki/PF_(firewall)">packet filter</a> and all was well until midweek when the motherboard failed.  Not having a spare on hand, I was scrambling for a solution.</p>
<div class="wp-caption alignright" style="width: 260px"><a href="http://en.wikipedia.org/wiki/Linksys_WRT54G_series"><img src="http://upload.wikimedia.org/wikipedia/en/thumb/e/ee/Linksys_WRT54G_V1.jpg/250px-Linksys_WRT54G_V1.jpg" alt="Linksys wireless router" width="250" height="188" /></a><p class="wp-caption-text">Linksys wireless router</p></div>
<p>Being familiar with the <a href="http://www.dd-wrt.com/">dd-wrt project</a>, I was pretty sure I could build a firewall out of a <a href="http://en.wikipedia.org/wiki/Linksys_WRT54G_series">Linksys router</a>.  We went with the WRT54GL, currently as cheap as $50 on Amazon.  (We bought local so we&#8217;d have it sooner, and it was a bit more).</p>
<p>The first step after flashing the firmware with the latest dd-wrt build (v24-sp2) was to take off the antennas and turn off the radio.  The last thing I want for the firewall is to be broadcasting an SSID and allow wireless associations.  This actually requires a startup script on the router, with a line to remove the wireless module so it won&#8217;t try to reenable itself:</p>
<pre style="padding-left: 30px">wl radio off
wl down
rmmod wl</pre>
<p>Good start.  Next I needed to bridge the WAN port with the LAN ports, which ended up being a struggle until I found the easy options in the dd-wrt GUI.  First, set the LAN to use a static IP and make sure you can connect via another machine to configure it.  You&#8217;ll also need to enable SSH access and remote configuration &#8211; but be sure to lock this down once the firewall is running!</p>
<p>Once you have the LAN configured, you need to set the WAN connection type to &#8220;disabled&#8221;.  This will give you a checkbox to bridge the LAN and WAN:  &#8220;Assign WAN port to switch&#8221;.  Lastly, under Advanced Routing set the Operating Mode to &#8220;Router&#8221; so it stops trying to do NAT.  Apply these settings, and you&#8217;ll basically have an expensive dumb switch &#8211; all traffic shows up on every port, and there&#8217;s no logic at all.  We&#8217;re halfway there.</p>
<p>Being unfamiliar with iptables (we use OpenBSD and pf for firewalls around here), I was under the impression that iptables rules would work in a bridging environment.  This is not the case: bridged packets don&#8217;t reach iptables at all!  The best I could do was block everything (manual restart needed), or otherwise blow up the configuration (manual restart needed) as I tried to mess with the bridge.  This was an incredibly frustrating learning curve as everything I could find made it sound like this was the way to configure a firewall in Linux, but it just wasn&#8217;t working.</p>
<p>Note to keep you sane: don&#8217;t do any of this testing in the startup scripts or you&#8217;ll brick your router, guaranteed.  Do it all from the command line with a known-good startup.  That way it&#8217;s a simple (but annoying) power cycle to get things back up.</p>
<p>The trick, it turns out, is a kernel module called ebtables.  Luckily, this is included in the dd-wrt build, but it&#8217;s not turned on by default!  Add this to your startup script:</p>
<pre style="padding-left: 30px">insmod ebtables
insmod ebtable_filter
insmod ebt_ip.o</pre>
<p>And, ta-da, all your iptables rules will start impacting packets!  Now it&#8217;s just a matter of configuring the firewall rules.  We&#8217;re using something like this:  (vlan0 represents the LAN ports, and vlan1 is the WAN port)</p>
<pre style="padding-left: 30px"># drop everything by default:
iptables -P FORWARD DROP
# clear the old rules:
iptables -F FORWARD
# forward stuff that's established already
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
# let connections out:
iptables -A FORWARD -i vlan0 -m state --state NEW -j ACCEPT

# firewall access rules
iptables -F INPUT
# WAC ips can get to fw:
iptables -A INPUT -p tcp -d 1.2.3.4 -s 4.3.2.1/24 -j ACCEPT
# drop everything else!
iptables -A INPUT -p tcp -d 1.2.3.4 -j DROP

# ... snipped all the actual access rules and packet flood protection ...</pre>
<p>The only trick here is the last few lines which limit access to the firewall machine itself.  We can&#8217;t use the FORWARD rules since these packets are destined for the internal hardware and not forwarded, but we do need to limit access via the INPUT chain.  In this example the firewall has IP 1.2.3.4 and the network I want to access it from has 4.3.2.x.  That way I can leave the firewall&#8217;s remote access turned on and limit it to our network.  (because there&#8217;s no terminal access you can&#8217;t make it a truly transparent bridge or you&#8217;d never be able to change the config!)</p>
<p>I admit I&#8217;m a bit nervous posting some of this in case there&#8217;s a glaring security hole, but it seems good to me.  Anyone see anything they&#8217;d like to warn me about before we get hacked?</p>
<p>And there you have it!  For the cost of a cheap router and some time (not much, since you can just follow these notes!) you have a full-featured bridging firewall running on dedicated hardware.  With a little extra work it would be easy to get VPN running and much more&#8230;  I&#8217;m hoping for years of service from this little guy!</p>
<p><span style="font-size: xx-small">( Hat tip another <a href="http://slagwerks.com/blog/index.php/2008/10/10/openbsd-firewall-on-soekris-4501/">DIY firewall solution</a> that I&#8217;d really like to try someday. )</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.walkerart.org/newmedia/2009/06/22/build-a-bridging-firewall-cheap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
