<?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>And now here&#039;s something… &#187; processing</title>
	<atom:link href="http://christiansons.net/mike/blog/tag/processing/feed/" rel="self" type="application/rss+xml" />
	<link>http://christiansons.net/mike/blog</link>
	<description>Java, Ant, SVN, Jetty, cygwin and other stuff…</description>
	<lastBuildDate>Fri, 02 Dec 2011 16:53:46 +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>Processing: Case-Shiller Home Price Index</title>
		<link>http://christiansons.net/mike/blog/2009/05/processing-case-shiller-home-price-index/</link>
		<comments>http://christiansons.net/mike/blog/2009/05/processing-case-shiller-home-price-index/#comments</comments>
		<pubDate>Wed, 27 May 2009 04:06:30 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[processing]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[case-shiller]]></category>
		<category><![CDATA[graph]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=365</guid>
		<description><![CDATA[I&#8217;ve updated my Processing app to use the latest Case-Shiller Home Price Index data as of May 26, 2009. (For the uninitiated, see my previous post.) Moving the mouse over the graph will highlight and display the index for a given point in time. Clicking the mouse will advance to another city. Posting this update <a href='http://christiansons.net/mike/blog/2009/05/processing-case-shiller-home-price-index/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/04/screenshot-sketch_apr04a.png"><img class="alignleft size-thumbnail wp-image-319" title="screenshot-sketch_apr04a" src="/mike/blog/wp-content/uploads/2009/04/screenshot-sketch_apr04a-150x100.png" alt="screenshot-sketch_apr04a" width="150" height="100" /></a>I&#8217;ve updated my Processing app to use the latest <a href="http://www2.standardandpoors.com/portal/site/sp/en/us/page.topic/indices_csmahp/2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0.html">Case-Shiller Home Price Index</a> data as of May 26, 2009.  (For the uninitiated, see my <a href="http://christiansons.net/mike/blog/2009/04/processing-week-4-case-shiller-home-price-indices/">previous post</a>.)<span id="more-365"></span></p>
<p>Moving the mouse over the graph will highlight and display the index for a given point in time.  Clicking the mouse will advance to another city.</p>
<p>Posting this update reminds me I need to get back to reading <a href="http://www.amazon.com/Visualizing-Data-Ben-Fry/dp/0596514557/?tag=wiltblog-20">Visualizing Data</a>!</p>
<p>Oops, your browser does not have a Java Plug-in. <a title="Download Java Plug-in" href="http://java.sun.com/products/plugin/downloads/index.html">Get the latest Java Plug-in here.</a> Or, if you have Java but can&#8217;t use the Plug-in, feel free to download the <a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/05/sketch_may26a.jar">program as an executable jar</a>.  Here&#8217;s a screen shot of what you&#8217;re missing.<br />
<a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/05/sketch_may26a.jar"><img class="aligncenter size-full wp-image-319" title="screenshot-sketch_apr04a" src="/mike/blog/wp-content/uploads/2009/04/screenshot-sketch_apr04a.png" alt="screenshot-sketch_apr04a" width="600" height="400" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/05/processing-case-shiller-home-price-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing, week 4: Case-Shiller Home Price Indices</title>
		<link>http://christiansons.net/mike/blog/2009/04/processing-week-4-case-shiller-home-price-indices/</link>
		<comments>http://christiansons.net/mike/blog/2009/04/processing-week-4-case-shiller-home-price-indices/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 21:44:01 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[career]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[case-shiller]]></category>
		<category><![CDATA[graph]]></category>

		<guid isPermaLink="false">http://blog.christiansons.net/?p=320</guid>
		<description><![CDATA[Earlier this week I skimmed a WSJ blog and article on the Case-Shiller Home Price Index and thought to myself "time for a graph!"

For the uninitiated, Case-Shiller tracks home prices in 20 metro areas. As WSJ states, "[the index has] a base value of 100 in January 2000. So a current index value of 150 translates to a 50% appreciation rate since January 2000 for a typical home located within the metro market."

This program graphs the history of each city's home price index.]]></description>
			<content:encoded><![CDATA[<p style="border: thin dashed;">See <a href="http://christiansons.net/mike/blog/2009/05/processing-case-shiller-home-price-index/">my post of May 26, 2009</a> for a more up-to-date Case-Shiller Home Price Index</a> graph.</p>
<p><a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/04/screenshot-sketch_apr04a.png"><img src="/mike/blog/wp-content/uploads/2009/04/screenshot-sketch_apr04a-150x100.png" alt="screenshot-sketch_apr04a" title="screenshot-sketch_apr04a" width="150" height="100" class="alignright size-thumbnail wp-image-319" /></a>I must admit, I&#8217;ve been extremely lazy about reading <a href="http://www.amazon.com/Visualizing-Data-Ben-Fry/dp/0596514557/?tag=wiltblog-20">Visualizing Data</a> or even updating this blog&#8230; but, this post should make up for it.</p>
<p>Earlier this week I skimmed a WSJ <a href="http://blogs.wsj.com/economics/2009/03/31/a-look-at-case-shiller-numbers-by-metro-area-7/">blog</a> and <a href="http://online.wsj.com/article/SB123850357559373519.html">article</a> on the Case-Shiller Home Price Index and thought to myself &#8220;time for a graph!&#8221;</p>
<p>For the uninitiated, <a href="http://www2.standardandpoors.com/portal/site/sp/en/us/page.topic/indices_csmahp/2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0.html">Case-Shiller tracks home prices</a> in 20 metro areas.  As WSJ states, &#8220;[the index has] a base value of 100 in January 2000.  So a current index value of 150 translates to a 50% appreciation rate since January 2000 for a typical home located within the metro market.&#8221;</p>
<p>This program graphs the history of each city&#8217;s home price index.  <span id="more-320"></span>Not satisfied with just a plain-old graph, I added some aesthetic and functional features.  The 20-city composite is shown for reference.  Moving the mouse over the graph will highlight and display the index for a given point in time.  Clicking the mouse will advance to another city.  </p>
<p><applet code="sketch_apr04a.class" archive="/mike/blog/wp-content/uploads/2009/04/sketch_apr04a.jar" width="600" height="400">Oops, your browser does not have a Java Plug-in. <a title="Download Java Plug-in" href="http://java.sun.com/products/plugin/downloads/index.html">Get the latest Java Plug-in here.</a> Or, if you have Java but can&#8217;t use the Plug-in, feel free to download the <a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/04/sketch_apr04a.jar">program as an executable jar</a>.  Here&#8217;s a screen shot of what you&#8217;re missing.<br />
<a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/04/sketch_apr04a.jar"><img class="aligncenter size-full wp-image-319" title="screenshot-sketch_apr04a" src="/mike/blog/wp-content/uploads/2009/04/screenshot-sketch_apr04a.png" alt="screenshot-sketch_apr04a" width="600" height="400" /></a></applet></p>
<p>The graph&#8217;s data comes from a static CSV which I slightly hand-modified from <a href="http://www2.standardandpoors.com/portal/site/sp/en/us/page.topic/indices_csmahp/2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0.html">the original XLS spreadsheet</a>.</p>
<p>It&#8217;s interesting the number of little things I find missing or bothersome.  For example, I&#8217;d like to use <tt><a href="http://processing.org/reference/curveVertex_.html">curveVertex()</a></tt> instead of <tt><a href="http://processing.org/reference/vertex_.html">vertex()</a></tt> for a smoother line curve, but by nature it doesn&#8217;t display the first and last data points.  Fortunately there are enough data points and few large jumps/drops so the graph does not appear jagged.  I could go on&#8230;</p>
<p>Taking a break from the book and making something useful has been fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/04/processing-week-4-case-shiller-home-price-indices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing, week 3</title>
		<link>http://christiansons.net/mike/blog/2009/03/processing-week-3/</link>
		<comments>http://christiansons.net/mike/blog/2009/03/processing-week-3/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 16:09:16 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[processing]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://blog.christiansons.net/?p=298</guid>
		<description><![CDATA[It&#8217;s been a week and a half since my Processing, week 2 post and I&#8217;m still not done with chapter four, &#8220;Time Series.&#8221; Oh, well. I&#8217;ve been noticing that my Processing programs use a lot of CPU &#8212; about 35% on my dual-core, 2 GHz machine. And that&#8217;s for a program which just displays static <a href='http://christiansons.net/mike/blog/2009/03/processing-week-3/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a week and a half since my <a href="http://christiansons.net/2009/02/processing-week-2/">Processing, week 2 post</a> and I&#8217;m still not done with chapter four, &#8220;Time Series.&#8221;  Oh, well.</p>
<p>I&#8217;ve been noticing that my Processing programs use a lot of CPU &#8212; about 35% on my dual-core, 2 GHz machine.  And that&#8217;s for a program which just displays static data, like the one below.<span id="more-298"></span></p>
<p style="border: thin dashed;">Update: thanks to a helpful suggestion, I was able to decrease CPU usage significantly.  To find out how, read the <a href="#comments">comments section</a>.</p>
<p><applet code="sketch_mar09a.class" archive="/mike/blog/wp-content/uploads/2009/03/sketch_mar09a.jar" width="600" height="400"><br />
Oops, your browser does not have a Java Plug-in. <a href="http://java.sun.com/products/plugin/downloads/index.html" title="Download Java Plug-in">Get the latest Java Plug-in here.</a> Or, if you have Java but can&#8217;t use the Plug-in, feel free to download the <a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/03/sketch_mar09a.jar">program as an executable jar</a>.<br />
</applet></p>
<p>This program, from <a href="http://www.amazon.com/Visualizing-Data-Ben-Fry/dp/0596514557/?tag=wiltblog-20">Visualizing Data</a>, plots some US beverage consumption stats over a period of time.  Clicking anywhere within the app switches the subject beverage.</p>
<p>Unless I&#8217;m missing something, the excessive CPU usage is due to constant re-draw.  The book puts all drawing code within the <tt><a href="http://processing.org/reference/draw_.html">draw()</a></tt> method which is called repeatedly, up to 60 times per second (by default).  Setting the <tt><a href="http://processing.org/reference/frameRate_.html">frameRate()</a></tt> to 30 fps improves the matter, but only marginally.    </p>
<p>As I was putting in the reference link for <tt>draw()</tt>, I noticed the documentation indicates its continuous execution can be disabled with <tt><a href="http://processing.org/reference/noLoop_.html">noLoop()</a></tt>.  That&#8217;s great, but has the side effect of disabling key or mouse events.</p>
<p>For now I&#8217;m willing to overlook this CPU usage &#8220;problem&#8221; but I hope the book addresses it soon.  </p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/03/processing-week-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Processing, week 2</title>
		<link>http://christiansons.net/mike/blog/2009/02/processing-week-2/</link>
		<comments>http://christiansons.net/mike/blog/2009/02/processing-week-2/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 04:26:33 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[processing]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://blog.christiansons.net/?p=265</guid>
		<description><![CDATA[Today marks the second week I have been learning Processing, a Java-based language for &#8220;program[ming] images, animation, and interactions.&#8221; In other words, I want to learn how to make useful, pretty graphics. Over the past year I had seen Processing mentioned here-and-there in various articles, but what piqued my interest was a visualization of US <a href='http://christiansons.net/mike/blog/2009/02/processing-week-2/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/Visualizing-Data-Ben-Fry/dp/0596514557/?tag=wiltblog-20"><img alt="" src="http://processing.org/img/learning/books/visualizing-data" title="Visualizing Data by Ben Fry" class="alignright" width="110" height="138" /></a>
<p>Today marks the second week I have been learning <a href="http://processing.org/">Processing</a>, a Java-based language for &#8220;program[ming] images, animation, and interactions.&#8221;  In other words, I want to learn how to make useful, pretty graphics.  <img src='http://christiansons.net/mike/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Over the past year I had seen Processing mentioned here-and-there in various articles, but what piqued my interest was a <a href="http://benfry.com/zipdecode/">visualization of US zipcodes</a>.  Check it out; it&#8217;s awesome.</p>
<p>My guide, at least for now, is <a href="http://www.amazon.com/Visualizing-Data-Ben-Fry/dp/0596514557/?tag=wiltblog-20">Visualizing Data by Ben Fry</a>.  I just completed reading the third chapter and thought I&#8217;d share an example program.<span id="more-265"></span></p>
<div id="sketch_feb28a_container">
<p>
<applet code="sketch_feb28a.class" archive="/mike/blog/wp-content/uploads/2009/02/sketch_feb28a.jar" width="600" height="400"><br />
Oops, your browser does not have a Java Plug-in. <a href="http://java.sun.com/products/plugin/downloads/index.html" title="Download Java Plug-in">Get the latest Java Plug-in here.</a> Or, if you have Java but can&#8217;t use the Plug-in, feel free to download the <a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/02/sketch_feb28a.jar">program as an executable jar</a>.<br />
</applet>
</p>
</div>
<p>The above Processing program plots data on a US map.  The data are random numbers, associated with each state, which are displayed as colored circles of varying sizes.  Colors are based on sign; size based on magnitude.  Moving the mouse cursor over a circle displays the state name and the random value.</p>
<p>Obviously, this is a very simple visualization but it&#8217;s not hard to see the potential for powerful visualizations.  I&#8217;m already coming up with other data to visualize with this&#8230; such as displaying the difference between the current and average daily temperature for a state.</p>
<p>Oh, before you get to comfortable with that static graphic, click anywhere on the map.  Neat, huh?  A new random number is generated and the graphic is animated from the old value.</p>
<p>Over the course of this coming week I will read the fourth chapter, &#8220;Time Series,&#8221; about displaying data which changes over time.  I can&#8217;t wait to see what program the book will have me work on.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/02/processing-week-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

