<?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>Changing Tides - Brenda Moon</title>
	<atom:link href="http://www.moon.net.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moon.net.au</link>
	<description>Brenda&#039;s Blog</description>
	<lastBuildDate>Wed, 14 Mar 2012 12:26:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Another step in my python journey &#8211; virtualenvwrapper</title>
		<link>http://www.moon.net.au/2012/03/14/another-step-in-my-python-journey-virtualenvwrapper/</link>
		<comments>http://www.moon.net.au/2012/03/14/another-step-in-my-python-journey-virtualenvwrapper/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 12:24:32 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=498</guid>
		<description><![CDATA[<p>I&#8217;ve been playing with the MakeHackVoid Sun computer (Morphia) to see how much faster some of my data mining programs run when given access to 64G of memory instead of 4G (not to mention the processors). The short answer is &#8220;a lot&#8221;!</p> <p>So I started thinking about off loading the last part of the backend, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with the <a href="http://www.makehackvoid.com/community/server-config">MakeHackVoid Sun computer</a> (Morphia) to see how much faster some of my data mining programs run when given access to 64G of memory instead of 4G (not to mention the processors). The short answer is &#8220;a lot&#8221;!</p>
<p>So I started thinking about off loading the last part of the backend, which is the <a href="http://ipython.org/">ipython</a> notebook server. I don&#8217;t think that ipython notebook is putting much load on my computer, especially compared to what mysql and solr were causing. But I&#8217;m just interested to see if it is possible. </p>
<p>It would mean only opening a single ssh tunnel for the notebook instead of two for mysql and solr <img src='http://www.moon.net.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For ipython notebook I need to install a much more recent ipython and then all the python libraries that I&#8217;m using. To keep the server stable, I&#8217;ll need to install all of these in my user space. Angus suggested that I look at virtualenvwrapper. Last night I installed it on Morphia and read these useful introduction pages:</p>
<ul>
<li><a href="http://www.doughellmann.com/articles/pythonmagazine/completely-different/2008-05-virtualenvwrapper/index.html"> introduction by the author, Doug Hellmann. (originally in Python Magazine Volume 2 Issue 5 , May, 2008)</a></li>
<li><a href="http://www.doughellmann.com/docs/virtualenvwrapper/index.html">virtualenvwrapper documentation</a></li>
<li><a href="http://mathematism.com/2009/07/30/presentation-pip-and-virtualenv/">Presentation: pip and virtualenv by Rich Leland</a></li>
</ul>
<p>Looks like it will do what I want. I&#8217;ll report again when I&#8217;ve tried to use it &#8211; hopefully soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2012/03/14/another-step-in-my-python-journey-virtualenvwrapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Python &#8211; iPython, matplotlib and Pandas</title>
		<link>http://www.moon.net.au/2012/01/01/learning-python-matplotlib-and-pandas/</link>
		<comments>http://www.moon.net.au/2012/01/01/learning-python-matplotlib-and-pandas/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 08:40:54 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Data Visualisation]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://moon.net.au/?p=443</guid>
		<description><![CDATA[<p>As I said in my last post, I was inspired by the talk at OSDC2011 by Dr Edward Schofield, Python for R&#38;D to try out Python and in particular iPython. </p> <p>So I&#8217;ve been learning Python by using iPython for analysing my twitter data. The iPython notebook provides a fantastic environment for doing this by letting you [...]]]></description>
			<content:encoded><![CDATA[<p>As I said in <a href="http://www.moon.net.au/2012/01/01/great-talk-at-osdc2011-python-for-r-d-edward-schofield/">my last post</a>, I was inspired by the talk at <a href="http://osdc.com.au/">OSDC2011</a> by Dr Edward Schofield, <em>Python for R&amp;D</em> to try out Python and in particular iPython. </p>
<p>So I&#8217;ve been learning Python by using <a href="http://ipython.org/">iPython</a> for analysing my twitter data. The iPython notebook provides a fantastic environment for doing this by letting you write notes in between blocks of python code, and see the results from running the python on the same page.</p>
<p>I&#8217;m starting ipython by opening a terminal window in the directory I have my ipython notebooks and running:<br />
<code>ipython notebook --pylab inline</code> which makes the matplotlib graphics appear inline (on the webpage) instead of in a separate window.</p>
<p>I tried a few different approaches to getting everything working on Mac OSX Lion. The <a href="https://github.com/fonnesbeck/ScipySuperpack">Scipi-Superpack for OS X</a> was the last I tried, and it seems to have got the last piece that I hadn&#8217;t got working via the other approaches, <a href="http://pandas.sourceforge.net/">Pandas</a> and <a href="http://statsmodels.sourceforge.net/">scikits.statsmodels</a>, working.</p>
<p>I&#8217;m using the dev version of <a href="https://github.com/ipython/ipython">iPython from GitHub</a>. It is great that they have it setup so that each time I pull the updates they are available straight away without any extra install just by restarting the notebook.</p>
<p>I began by working out how to get data sets from mySql and from Apache Solr and then draw graphs of them using matplotlib. I used paired lists for this as that was what the <a href="http://matplotlib.sourceforge.net/">matplotlib</a> examples used. When I started trying to add time series of different lengths and with different gaps in the data I started to find the limitations of paired lists. Looking around for python time series libraries I found <a href="http://pytseries.sourceforge.net/">scikits timeseries</a> which looked good, but then came across scikits.statsmodels and Pandas and decided to try them.</p>
<p>If you want to try running this code, I&#8217;ve linked the iPython notebook that these code snippets were taken from at the bottom of the post. </p>
<h3>Convert pair of Python lists to Pandas series</h3>
<p>Pandas makes it easy to convert the paired lists into a pandas.series object:</p>
<pre class="brush: python; highlight: [9]; title: ; notranslate">
def convertListPairToTimeSeries(dList, cList):
    # my dateList had date objects, so convert back to datetime objects
    dListDT = [datetime.datetime.combine(x, datetime.time()) for x in dList]
    # found that NaN didn't work if the cList contained int data
    cListL = [float(x) for x in cList]
    # create the index from the datestimes list
    indx = pandas.Index(dListDT)
    # create the timeseries
    ts = pandas.Series(cListL, index=indx)
    # fill in missing days
    ts = ts.asfreq(pandas.datetools.DateOffset())
    return ts
</pre>
<h3>Adjusting the Pandas series</h3>
<p>I then made the two data sets (tweets received per day and tweets limited per day) have the same start and end and filled in all the missing days with 0&#8242;s or, where I knew that I had a data collection outage, with NaN.</p>
<pre class="brush: python; title: ; notranslate">
# my data had lots of gaps that were actually 0 values, not missing data
# So I used this to fix the NaN outside the known outage
startOutage = datetime.datetime(2011,12,7)
endOutage = datetime.datetime(2011,12,8)
# set all NaN values to 0
tsFilled = tSeries.fillna(0)
# set the known outage values back to NAN
tsFilled.ix[startOutage:endOutage] = numpy.NAN
</pre>
<p>If the gaps in my data were all meant to missing values instead of 0, I could have just left the series as they were and used pandas.join instead of + to add them together</p>
<h3>Truncating the data</h3>
<p>I truncated the data, both to make the series the same length (although there are other ways to do this) and to remove partial days of data at the start and end of the periods.</p>
<pre class="brush: python; title: ; notranslate">
# use slicing to change length of data
tSeriesSlice = tSeries.ix[startData:endData]
# use truncate instead of slicing to change length of data
tSeriesTruncate = tSeries.truncate(before=startData, after=endData)
</pre>
<h3>Plotting the data</h3>
<p>Basic graphing of a Pandas series is very straight forward:</p>
<pre class="brush: python; title: ; notranslate">
tsFilled.plot();
</pre>
<p><a href="http://www.moon.net.au/wp-content/uploads/2012/01/graph1.png"><img src="http://www.moon.net.au/wp-content/uploads/2012/01/graph1.png" alt="" title="graph1" width="407" height="262" class="alignnone size-full wp-image-472" /></a></p>
<p>It is easy to have multiple lines on the same graph, and to add titles and axis labels.</p>
<pre class="brush: python; title: ; notranslate">
tsFilled.plot(label=&quot;original&quot;)
tsNew = tsFilled+(rand(len(tsFilled)))
tsNew.plot(label=&quot;adding&quot;)
tsNew1 = tsFilled.fillna(1)
tsNew1 = tsNew1 +(rand(len(tsNew1)))
tsNew1.plot(label=&quot;fillna+adding&quot;)
plt.legend(loc=3)
plt.title(&quot;Testing Panda Plotting&quot;)
plt.ylabel(&quot;Counts&quot;);
</pre>
<p><a href="http://www.moon.net.au/wp-content/uploads/2012/01/graph2.png"><img src="http://www.moon.net.au/wp-content/uploads/2012/01/graph2.png" alt="" title="graph2" width="407" height="273" class="alignnone size-full wp-image-473" /></a></p>
<p>For more control over the layout, it is possible to pass the matplotlib axis in the Pandas plot statement.</p>
<pre class="brush: python; title: ; notranslate">
# loc = MonthLocator()
loc = DayLocator(interval=2)
formatter = DateFormatter('%d %b')
fig = plt.figure(figsize=(8,4))
ax = fig.add_subplot(211)
plt.title(&quot;Testing Panda Plotting&quot;)
tsFilled.plot(label=&quot;original&quot;, ax=ax)
plt.ylabel(&quot;Counts&quot;)
plt.legend()
ax2 = fig.add_subplot(212)
tsFilled.fillna().plot(label=&quot;filled&quot;, ax=ax2, color='g')
plt.legend()
plt.ylabel(&quot;Counts&quot;)
plt.xlabel(&quot;2011&quot;)
ax2.xaxis.set_major_locator(loc)
ax2.xaxis.set_major_formatter(formatter)
labels = ax2.get_xticklabels()
setp(labels, rotation=80, fontsize=10);
</pre>
<p><a href="http://www.moon.net.au/wp-content/uploads/2012/01/graph3.png"><img src="http://www.moon.net.au/wp-content/uploads/2012/01/graph3.png" alt="" title="graph3" width="500" height="283" class="alignnone size-full wp-image-474" /></a></p>
<p>For plotting multiple lines, it is probably better to add the series into a Pandas dataframe and then plot from that, but I&#8217;ll leave that for another day.</p>
<p>I&#8217;m new to python, matplotlib and Pandas, so I&#8217;d be very happy for any feedback about better ways to do things.</p>
<h3>iPython Notebook for these examples</h3>
<p><a href='http://www.moon.net.au/wp-content/uploads/2012/01/pandasTimeSeriesNotes.ipynb_.zip'>Download pandasTimeSeriesNotes.ipynb_.zip (58k)</a></p>
<h3>Links</h3>
<ul>
<li><a href="http://ipython.org/">iPython &#8211; http://ipython.org/</a></li>
<li><a href="https://github.com/ipython/ipython">iPython from GitHub &#8211; https://github.com/ipython/ipython</a></li>
<li><a href="https://github.com/fonnesbeck/ScipySuperpack">Scipi-Superpack for OS X &#8211; https://github.com/fonnesbeck/ScipySuperpack</a></li>
<li><a href="http://pandas.sourceforge.net/">Pandas &#8211; http://pandas.sourceforge.net/</a></li>
<li><a href="http://statsmodels.sourceforge.net/">scikits.statsmodels &#8211; http://statsmodels.sourceforge.net/</a></li>
<li><a href="https://groups.google.com/group/pystatsmodels">Pandas and StatsModels discussion list &#8211; https://groups.google.com/group/pystatsmodels</a></li>
<li><a href="http://matplotlib.sourceforge.net/">matplotlib &#8211; http://matplotlib.sourceforge.net/</a></li>
<li><a href="http://pytseries.sourceforge.net/">scikits timeseries &#8211; http://pytseries.sourceforge.net/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2012/01/01/learning-python-matplotlib-and-pandas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great talk at OSDC2011 &#8211; Python for R &amp; D &#8211; Edward Schofield</title>
		<link>http://www.moon.net.au/2012/01/01/great-talk-at-osdc2011-python-for-r-d-edward-schofield/</link>
		<comments>http://www.moon.net.au/2012/01/01/great-talk-at-osdc2011-python-for-r-d-edward-schofield/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 08:11:34 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=484</guid>
		<description><![CDATA[<p>I went to OSDC2011 at ANU in November. I had a great time, met a lot of interesting people and heard some great talks.</p> <p>This talk by Dr Edward Schofield &#8211; Python for R&#38;D has inspired me to try using Python in my data analysis.</p> <p></p> ]]></description>
			<content:encoded><![CDATA[<p>I went to <a href="http://osdc.com.au/">OSDC2011</a> at ANU in November. I had a great time, met a lot of interesting people and heard some great talks.</p>
<p>This talk by Dr Edward Schofield &#8211; <em><strong>Python for R&amp;D</strong></em> has inspired me to try using Python in my data analysis.</p>
<p><iframe src="http://www.youtube.com/embed/tdFA_Ji3nec" frameborder="0" width="560" height="315"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2012/01/01/great-talk-at-osdc2011-python-for-r-d-edward-schofield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter changed to SSL only for streaming API today</title>
		<link>http://www.moon.net.au/2011/09/30/twitter-changed-to-ssl-only-for-streaming-api-today/</link>
		<comments>http://www.moon.net.au/2011/09/30/twitter-changed-to-ssl-only-for-streaming-api-today/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 03:58:01 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=421</guid>
		<description><![CDATA[<p>This morning my Twitter data collection program suddenly started failing to connect. I&#8217;m using the the excellent twitter4j library for connecting to Twitter. </p> <p>The error was &#8220;Connection Refused&#8221; with this response: TwitterException{exceptionCode=[b5e7486f-24943238 b5e7486f-2494320e], statusCode=-1, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.4} </p> <p>I found out that Twitter has turned on only accepting SSL connections for connecting to [...]]]></description>
			<content:encoded><![CDATA[<p>This morning my Twitter data collection program suddenly started failing to connect. I&#8217;m using the the excellent <a href="http://twitter4j.org">twitter4j</a> library for connecting to Twitter. </p>
<p>The error was &#8220;Connection Refused&#8221; with this response:<br />
<code><br />
TwitterException{exceptionCode=[b5e7486f-24943238 b5e7486f-2494320e], statusCode=-1, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.4}<br />
</code></p>
<p>I found out that Twitter has turned on only accepting SSL connections for connecting to streams today. (<a href="https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th">https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th</a>)</p>
<p>I tried setting builder.setUseSSL(true) in Twitter4j, but that didn&#8217;t fix the problem. There is a new snapshot build of twitter4j that does fix it (2.2.5-SNAPSHOT). It is available for download from <a href="http://twitter4j.org">http://twitter4j.org</a>.</p>
<p>I&#8217;m using Eclipse Helios and Maven and had some trouble working out how to get the SNAPSHOT. In the configuration I have, it picked up the snapshot of twitter4j-stream-2.2.5-SNAPSHOT.jar, but not the twitter4j-core-2.2.5-SNAPSHOT.jar. I tried a few different things to make it get the core snapshot which didn&#8217;t work, but then found that disabling the releases in the repository definition worked:</p>
<p><code>
<pre>
   &lt;repository&gt;
      &lt;id&gt;twitter4j.org&lt;/id>
      &lt;name&gt;twitter4j.org Repository&lt;/name&gt;
      &lt;url&gt;http://twitter4j.org/maven2&lt;/url&gt;
      &lt;releases&gt;
         &lt;enabled>false&lt;/enabled&gt;
      &lt;/releases&gt;
      &lt;snapshots&gt;
         &lt;enabled&gt;true&lt;/enabled&gt;
      &lt;/snapshots&gt;
   &lt;/repository&gt;
</pre>
<p></code></p>
<p>Not sure why the twitter4j-stream snapshot was downloaded but not the twitter4j-core without changing the POM. But with this change, my data collection is working again although I&#8217;ve missed a few hours of data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2011/09/30/twitter-changed-to-ssl-only-for-streaming-api-today/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Asteroid Discovery since 1980 &#8211; video by British astronomer Scott Manley</title>
		<link>http://www.moon.net.au/2010/08/29/asteroid-discovery-since-1980-video-by-british-astronomer-scott-manley/</link>
		<comments>http://www.moon.net.au/2010/08/29/asteroid-discovery-since-1980-video-by-british-astronomer-scott-manley/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 06:31:15 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Data Visualisation]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Science Communication]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=410</guid>
		<description><![CDATA[<p>An amazing video of Asteroid discovery since 1980. It is best viewed in high resolution at YouTube. There is an interesting article on the Daily Mail UK about it too.</p> <p></p> ]]></description>
			<content:encoded><![CDATA[<p>An amazing video of Asteroid discovery since 1980.  It is best viewed in high resolution at YouTube. There is an interesting <a href="http://www.dailymail.co.uk/sciencetech/article-1306555/Our-terrifyingly-crowded-solar-How-asteroids-closing-in.html">article on the Daily Mail UK</a> about it too.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/S_d-gs0WoUw?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/S_d-gs0WoUw?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2010/08/29/asteroid-discovery-since-1980-video-by-british-astronomer-scott-manley/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Videos from MIT Hyperstudio&#8217;s 2010 humanities + digital Visual Interpretations conference</title>
		<link>http://www.moon.net.au/2010/08/27/videos-from-mit-hyperstudios-2010-humanities-digital-visual-interpretations-conference/</link>
		<comments>http://www.moon.net.au/2010/08/27/videos-from-mit-hyperstudios-2010-humanities-digital-visual-interpretations-conference/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 00:54:41 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=401</guid>
		<description><![CDATA[<p>The conference overview video which includes a brief moment of me demonstrating &#8220;Hearing the Unseen&#8221;:</p> <p></p> <p>Videos of the keynote speakers are available here MIT World &#8211; HyperStudio and the other talks are available here MIT TechTV &#8211; humanities + digital Visual Interpretations conference May 2010.</p> [...]]]></description>
			<content:encoded><![CDATA[<p>The conference overview video which includes a brief moment of me demonstrating &#8220;Hearing the Unseen&#8221;:</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/y0G6yP3PEQk?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/y0G6yP3PEQk?fs=1&amp;hl=en_US&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>Videos of the keynote speakers are available here <a href="http://mitworld.mit.edu/host/view/189">MIT World &#8211; HyperStudio</a> and the other talks are available here <a href="http://techtv.mit.edu/collections/hyperstudio:1184">MIT TechTV &#8211; humanities + digital Visual Interpretations conference May 2010</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2010/08/27/videos-from-mit-hyperstudios-2010-humanities-digital-visual-interpretations-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EarTrading available free in iTunes store</title>
		<link>http://www.moon.net.au/2010/08/18/eartrading-available-free-in-itunes-store/</link>
		<comments>http://www.moon.net.au/2010/08/18/eartrading-available-free-in-itunes-store/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 04:55:10 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Data Visualisation]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[sonification]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=390</guid>
		<description><![CDATA[<p>EarTrading is now available in the iTunes store.  It is a free application for iPhone. The website for Ear Trading is http://eartrading.moon.net.au.  Please try it and tell me what you think.</p> <p>Here are some photos of Barry and me demonstrating the earlier version of EarTrading called &#8220;Hearing the Unseen&#8221; at the MIT Humanities + Digital Visual [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://eartrading.moon.net.au/">EarTrading</a> is now available in the iTunes store.  It is a free application for iPhone. The website for Ear Trading is <a href="http://eartrading.moon.net.au/">http://eartrading.moon.net.au</a>.  Please try it and tell me what you think.</p>
<p>Here are some photos of Barry and me demonstrating the earlier version of EarTrading called &#8220;Hearing the Unseen&#8221; at the MIT Humanities + Digital Visual Interpretations Conference 2010.</p>
<div id="attachment_392" class="wp-caption alignnone" style="width: 401px"><a href="http://www.moon.net.au/wp-content/uploads/2010/08/MITdemoBrenda2.png"><img class="size-full wp-image-392" title="Demonstrating Hearing The Unseen" src="http://www.moon.net.au/wp-content/uploads/2010/08/MITdemoBrenda2.png" alt="" width="391" height="288" /></a><p class="wp-caption-text">Brenda demonstrating Hearing The Unseen</p></div>
<p><div id="attachment_391" class="wp-caption alignnone" style="width: 366px"><a href="http://www.moon.net.au/wp-content/uploads/2010/08/MITdemoBarry.png"><img class="size-full wp-image-391" title="Demonstrating Hearing the Unseen" src="http://www.moon.net.au/wp-content/uploads/2010/08/MITdemoBarry.png" alt="" width="356" height="274" /></a><p class="wp-caption-text">Barry demonstrating Hearing the Unseen</p></div>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2010/08/18/eartrading-available-free-in-itunes-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ear Trading</title>
		<link>http://www.moon.net.au/2010/07/22/ear-trading/</link>
		<comments>http://www.moon.net.au/2010/07/22/ear-trading/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 06:37:56 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=383</guid>
		<description><![CDATA[<p>Hearing the Unseen has evolved into an iphone game and generative music machine called Ear Trading.  It is now ready for beta testing after which it will be released as on the iTunes store as a free application.</p> <p>The website for Ear Trading is http://eartrading.moon.net.au</p> <p>If you are interested in beta testing the application, please send [...]]]></description>
			<content:encoded><![CDATA[<p>Hearing the Unseen has evolved into an iphone game and generative music machine called Ear Trading.  It is now ready for beta testing after which it will be released as on the iTunes store as a free application.</p>
<p>The website for Ear Trading is <a href="http://eartrading.moon.net.au ">http://eartrading.moon.net.au</a></p>
<p>If you are interested in beta testing the application, please send your iPhone UDID (Unique Device Identifier) to <a href="mailto:eartrading@moon.net.au">eartrading@moon.net.au</a>.</p>
<div id="_mcePaste">Note: To find your UDID, open up your phone in iTunes, click on your serial number (it should change to your UDID), then copy the UDID (using Edit &gt; Copy or pressing Cmd/Ctrl-C)</div>
<p><a href="http://eartrading.moon.net.au"><img class=" alignnone" title="Ear Trading" src="http://eartrading.moon.net.au/img/phone.png" alt="" width="460" height="297" /></a>\</p>
<p> </p>
<p> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2010/07/22/ear-trading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hearing the Unseen</title>
		<link>http://www.moon.net.au/2010/07/19/hearing-the-unseen/</link>
		<comments>http://www.moon.net.au/2010/07/19/hearing-the-unseen/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 02:23:43 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Data Visualisation]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[sonification]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=376</guid>
		<description><![CDATA[<p>This is based on a Poster/Demo presented at the &#8220;Humanities + Digital Visual Interpretations Conference&#8221; hosted by HyperStudio &#8211; Digital Humanities at MIT 20-22 May 2010.</p> <p>Barry Moon Arizona State University Brenda Moon The Australian National University</p> <p>This project started as a exploration of data sonification techniques. The abstract published in the conference program is a [...]]]></description>
			<content:encoded><![CDATA[<p>This is based on a Poster/Demo presented at the <a href="http://hyperstudio.mit.edu/h-digital/">&#8220;Humanities + Digital Visual Interpretations Conference&#8221;</a> hosted by <a href="http://hyperstudio.mit.edu/">HyperStudio &#8211; Digital Humanities at MIT</a> 20-22 May 2010.</p>
<p><strong><a href="http://www.moon.net.au/wp-content/uploads/2010/07/ear.png"><img class="alignright size-full wp-image-362" style="margin-left: 10px; margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" title="Ear" src="http://www.moon.net.au/wp-content/uploads/2010/07/ear.png" alt="Ear" width="250" height="232" /></a><a href="http://barrymoon.net">Barry Moon</a></strong><br /> Arizona State University<br /><strong> Brenda Moon</strong><br /> The Australian National University</p>
<p>This project started as a exploration of data sonification techniques. The <a href="http://hyperstudio.mit.edu/conference-bios/moon-barry/">abstract published in the conference program</a> is a testament to this. As it progressed, the idea of using real-time data to create a game for mobile devices became more alluring. More specifically, a game where sound plays a major role in decision making, or even a game that produces interesting music with minimal interaction. For this application, the meanings of the data become far less important than its trends and time basis. We are using stock market data which wakes up and goes to sleep at fixed times of the day. Music, being predominantly time based, suits this kind of predictable framework upon which to drape its material. Although the creation of a game is the direction our sonification research has taken us, similar techniques could be applied to data to not only reveal details, but make the exploration of those details interesting and fun.</p>
<p>As you will see in the <a href="http://hyperstudio.mit.edu/conference-bios/moon-barry/">conference program</a>, our early model was programmed in Processing and Max/MSP. While this gave us a great deal of flexibility over visualization and sonification, it would not be usable on mobile devices in the near future. For our game, the iPhone/iPad was chosen as the device, and Unity as the programming solution. Choosing to use the iPhone/iPad over Macintosh should generate a greater amount of feedback from users to aid in development and create a stronger sense of intimacy with the interface via touchscreen.</p>
<p>Most approaches to producing sound in interactive media follow precedents set in film. So far, in our work, we have combined two sonic elements traditionally used to enhance visual media: music and &#8220;off-screen&#8221; sound. Music reveals details in the data in two ways:</p>
<p>1, Amount of rhythmic activity relates to a share&#8217;s trading volume &#8211; the greater trading volume per sample (6 seconds), the greater the number of beats per measure</p>
<p>2, Pitch change across the duration of the &#8220;measure&#8221; relates to price changes of the share -downward pitch sequence for falling share price and upward pitch sequence for increasing share price.</p>
<p> </p>
<p><div id="attachment_359" class="wp-caption aligncenter" style="width: 464px"><a href="http://www.moon.net.au/wp-content/uploads/2010/07/Figure1.png"><img class="size-full wp-image-359 " title="Figure 1" src="http://www.moon.net.au/wp-content/uploads/2010/07/Figure1.png" alt="Figure 1" width="454" height="300" /></a><p class="wp-caption-text">Figure 1: Typical bar of music with moderate trading volume (9 beats) and share increase in share price.</p></div>
<p>When data is off-screen, it continues to be heard, spatialized according to its position in the corresponding visual space:</p>
<p>Figure 2 &#8211; Position of sounds relative to visual space</p>
<p> </p>
<p><div id="attachment_356" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.moon.net.au/wp-content/uploads/2010/07/Figure2-GameView.png"><img class="size-full wp-image-356" title="Figure 2a GameView" src="http://www.moon.net.au/wp-content/uploads/2010/07/Figure2-GameView.png" alt="Figure 2a GameView" width="480" height="317" /></a><p class="wp-caption-text">Figure 2a:  Game View</p></div>
<p> </p>
<p> </p>
<p><div id="attachment_357" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.moon.net.au/wp-content/uploads/2010/07/Figure2-TopView.png"><img class="size-full wp-image-357 " title="Figure 2b Top View" src="http://www.moon.net.au/wp-content/uploads/2010/07/Figure2-TopView.png" alt="Figure 2b - Top View" width="500" height="501" /></a><p class="wp-caption-text">Figure 2b: Top View</p></div>
<p>Our main concern in creating a musical sonification (as it is in most music creation) is the balancing of repetition with variation. We generate music statistically by choosing beats via weighted probabilities. This extends a drum machine programming analogy, which if simplified (to create really horrible techno for example), the kick drum is heard on the downbeats and snare drum on upbeats.</p>
<p> </p>
<p><div id="attachment_358" class="wp-caption aligncenter" style="width: 443px"><a href="http://www.moon.net.au/wp-content/uploads/2010/07/Figure3.png"><img class="size-full wp-image-358" title="Figure 3" src="http://www.moon.net.au/wp-content/uploads/2010/07/Figure3.png" alt="Figure 3 - Beat Tables" width="433" height="300" /></a><p class="wp-caption-text">Figure 3: Beat Tables</p></div>
<p>Audio samples are triggered at the statistically chosen beats. Audio synthesis would allow greater sonic variety, but there are no methods presently available in Unity. Sixteen percussive samples of different loudness were created for each sound. There needed to be some balance between percussiveness (which aids in direction perception), and &#8220;pitchedness&#8221; (since we are using pitch as a perceptual referent for price change). Samples needed to be quite short (less than one second), again because of limitations in the Unity environment.</p>
<p>We ultimately wanted to call our game “Our Tax Dollars at Work”, but found some of the bailout recipients have extremely low trading volume. Instead we chose shares with large trading volume (which does include CitiGroup and Fannie Mae), and our working title is now &#8220;b-trade&#8221;.</p>
<p>Enhancements we would like make to our game before letting it loose on the public (as much as iPhone/iPad users represent &#8220;the public&#8221;) are enhanced visual interface, greater variety of sounds, the potential for users to design their own &#8220;beat tables&#8221;, and for the game to morph between multiple &#8220;beat tables&#8221; to create greater musical variety. We would also like the user to be able to choose which company’s shares they follow.</p>
<p>Max/MSP: <a href="http://www.cycling74.com">http://www.cycling74.com</a><br /> Processing: <a href="http://processing.org/">http://processing.org/</a><br /> Unity: <a href="http://unity3d.com/">http://unity3d.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2010/07/19/hearing-the-unseen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Atlas of Now</title>
		<link>http://www.moon.net.au/2010/01/29/atlas-of-now/</link>
		<comments>http://www.moon.net.au/2010/01/29/atlas-of-now/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 07:14:42 +0000</pubDate>
		<dc:creator>Brenda</dc:creator>
				<category><![CDATA[Data Visualisation]]></category>
		<category><![CDATA[Science Communication]]></category>
		<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://www.moon.net.au/?p=331</guid>
		<description><![CDATA[<p>Will Grant and I have written an article on the Diffusion blog titled &#8220;An Atlas of Now&#8221; describing the project I&#8217;m working on at CPAS.</p> <p>We are in the process building a system – using both established and novel open source intelligence methods – to gauge, assess and display changes in the online discussion of [...]]]></description>
			<content:encoded><![CDATA[<p>Will Grant and I have written an article on the <a href="http://blog.cpas.anu.edu.au/diffusion/">Diffusion</a> blog titled &#8220;<a href="http://blog.cpas.anu.edu.au/diffusion/2010/01/29/an-atlas-of-now/">An Atlas of Now</a>&#8221; describing the project I&#8217;m working on at CPAS.</p>
<blockquote><p><a href="http://blog.cpas.anu.edu.au/diffusion/2010/01/29/an-atlas-of-now/"><img class="size-full wp-image-336 alignright" title="An Atlas of Now - diffusion" src="http://www.moon.net.au/wp-content/uploads/2010/01/An-Atlas-of-Now-diffusion.png" alt="" width="178" height="104" /></a><br />We are in the process building a system – using both established and novel open source intelligence methods – to gauge, assess and display changes in the online discussion of science and technology issues, controversies and dangerous alternate conceptions. Our goal is to develop a science communication ‘atlas of now’: revealing geographical and temporal changes in attitudes to science and technology issues throughout society.  <br />(<a href="http://blog.cpas.anu.edu.au/diffusion/2010/01/29/an-atlas-of-now/">An Atlas of Now</a>)</p>
</blockquote>
<p>We will be presenting a paper on this project at the <a href="http://www.asc.asn.au/">Australian Science Communicators</a> <a href="http://guest.cvent.com/EVENTS/Info/Summary.aspx?e=cf5adfd9-1d04-4289-bc00-6f37c861b387">National Conference</a> February 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moon.net.au/2010/01/29/atlas-of-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.411 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-04-18 12:54:45 -->
<!-- Compression = gzip -->
