
<?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>daniel shiffman &#187; p5</title>
	<atom:link href="http://www.shiffman.net/category/p5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shiffman.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 03:41:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Book Release: Learning Processing</title>
		<link>http://www.shiffman.net/2008/07/31/book-release-learning-processing/</link>
		<comments>http://www.shiffman.net/2008/07/31/book-release-learning-processing/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 20:38:18 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[book]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/?p=216</guid>
		<description><![CDATA[I&#8217;m pleased to announce that my new programming with Processing book will be released this August (by the end of the month). You can pre-order the book from Amazon, download a sample chapter from the web site, and, yes, even &#8230; <a href="http://www.shiffman.net/2008/07/31/book-release-learning-processing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.learningprocessing.com"><img src="http://farm4.static.flickr.com/3284/2672959056_695f5e8258.jpg" width="500" height="324" alt="Learning Processing" /></a></p>
<p>I&#8217;m pleased to announce that my new programming with <a href="http://www.processing.org"> Processing</a> book will be released this August (by the end of the month).  You can <a href="http://www.amazon.com/Learning-Processing-Beginners-Programming-Interaction/dp/0123736021/">pre-order the book from Amazon</a>, <a href="http://www.learningprocessing.com">download a sample chapter from the web site</a>, and, yes, even <a href="http://www.facebook.com/pages/Learning-Processing/18113426918">become a fan</a> of the book on facebook (since that&#8217;s what all the 35 year olds are doing these days.)</p>
<p>A few things I&#8217;d like to say about the book:   </p>
<p>My goal for &#8220;Learning Processing&#8221; was to write something for the complete and total programming beginner.  If you&#8217;ve never written a line of code before in your life, but want to get started creating your own digital media tools then I wrote this book for you.   There are <a href="http://processing.org/learning/books/index.html">several other wonderful Processing</a> books out there and I hope mine will complement them nicely.  A special thanks to Casey, Ben, and Ira who kept encouraging and inspiring me as their books were being published.</p>
<p>The book is also geared towards the teacher.  It&#8217;s not my belief that such a person will necessarily learn any new skills from the book (assuming they have a programming background), however, my hope is that the book will encourage and help facilitate the teaching of programming.   It is structured with 10 lessons (complete with examples and exercises) and can act as a ready-made syllabus for a beginner interactive media / programming class.  In fact, the book is modeled exactly on ITP&#8217;s <a href="http://itp.nyu.edu/varwiki/Syllabus/ICM-All-F07">Introduction to Computational Media</a> course. </p>
<p>The first half of the book is all fundamentals:  pixels, variables, conditionals, loops, functions, objects, arrays.  The second half is an introduction to select advanced topics:  3D, images, video, data, sound, etc. (<a href="http://www.learningprocessing.com/samples/table_of_contents.pdf">download full table of contents</a>).   And although the web site is currently just a splash page, it&#8217;s my intention to make available all the examples (and exercise answers) at the site.  The full site should launch in the next few weeks (a big thanks to <a href="http://www.mandalatv.net/">Rich Hauck</a> who is helping to build the site.)</p>
<p>If anyone is interested in teaching with the book come this fall, please feel free to drop me a line and I&#8217;d be happy to answer any questions.  It&#8217;s also my hope that this book can teach programming to high school students, however, I don&#8217;t have as much experience in this area. . . but if anyone is looking to try it out with younger students, please let me know and I would love to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2008/07/31/book-release-learning-processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XBee API Library for Processing</title>
		<link>http://www.shiffman.net/2007/12/20/xbee-api-library-for-processing/</link>
		<comments>http://www.shiffman.net/2007/12/20/xbee-api-library-for-processing/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 21:06:19 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[xbee]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/12/20/xbee-api-library-for-processing/</guid>
		<description><![CDATA[Rob Faludi and I are working on a Processing library for Digiâ€™s XBee Series 1 radios. Direct from Rob&#8217;s blog: The library currently facilitates receiving single sample I/O packets in API mode, and returns an object that contains the analog &#8230; <a href="http://www.shiffman.net/2007/12/20/xbee-api-library-for-processing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://faludi.com">Rob Faludi</a> and I are working on a Processing library for Digiâ€™s <a href="http://www.digi.com/products/wireless/point-multipoint/xbee-series1-module.jsp">XBee Series 1 radios</a>.  Direct from <a href="http://blog.faludi.com/2007/12/19/xbee-api-library-for-processing/">Rob&#8217;s blog</a>:</p>
<p><i>The library currently facilitates receiving single sample I/O packets in <a href="http://www.digi.com/support/kbase/kbaseresultdetl.jsp?kb=184">API mode</a>, and returns an object that contains the analog values, digital values, senderâ€™s 16-bit address and RSSI value. The next tasks will be to receive regular RX frames, issue AT commands and receive responses, issue TX frames and receive responses to those. Weâ€™d also like to support the XBee Series 2 radios, which have a similar API structure.</i></p>
<p>Here&#8217;s where you can <a href="http://blog.faludi.com/code/xbee-api-library-for-processing/">download and learn about the library</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/12/20/xbee-api-library-for-processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ITP Shows</title>
		<link>http://www.shiffman.net/2007/12/20/itp-shows/</link>
		<comments>http://www.shiffman.net/2007/12/20/itp-shows/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 20:58:25 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[big screens]]></category>
		<category><![CDATA[bigscreens]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[iac]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mpe]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/12/20/itp-shows/</guid>
		<description><![CDATA[The ITP Show finished up with some nice write-ups on the internets: ny times blog and MAKE. About a week or so before the ITP show, my Big Screens class had their own show at the IAC Building on their &#8230; <a href="http://www.shiffman.net/2007/12/20/itp-shows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The <a href="">ITP Show</a> finished up with some nice write-ups on the internets: <a href="http://bits.blogs.nytimes.com/2007/12/18/object-oriented-objects-at-nyu/">ny times blog</a> and <a href="http://blog.makezine.com/archive/2007/12/itp_winter_show_highlight.html?CMP=OTC-0D6B48984890">MAKE</a>.</p>
<p>About a week or so before the ITP show, my <a href="http://itp.nyu.edu/bigscreens/">Big Screens</a> class had their own show at the <a href="http://iacbuilding.com/interactive/content.html">IAC Building</a> on their rather large video wall.  I&#8217;m hoping we set the world record for largest Processing sketch ever.   Some photos (video coming soon):</p>
<p><a href="http://www.flickr.com/photos/shiffman/2124879919/" title="ITP Big Screens @ IAC by shiffman, on Flickr"><img src="http://farm3.static.flickr.com/2199/2124879919_6a8e447903_m.jpg" width="240" height="160" alt="ITP Big Screens @ IAC" /></a> &nbsp;<a href="http://www.flickr.com/photos/shiffman/2124878085/" title="ITP Big Screens @ IAC by shiffman, on Flickr"><img src="http://farm3.static.flickr.com/2308/2124878085_49c6ef7673_m.jpg" width="240" height="160" alt="ITP Big Screens @ IAC" /></a><br />
<a href="http://www.flickr.com/photos/37543813@N00/2094833594/"><img src="http://farm3.static.flickr.com/2074/2094833594_55a39ae5e9_m.jpg"/></a> &nbsp;<a href="http://www.flickr.com/photos/heather_r/2099412070/"><img src ="http://farm3.static.flickr.com/2369/2099412070_c1a03b77b5_m.jpg"/></a></p>
<p>This, as far as I know, was the first public use of the <a href="http://mostpixelsever">Most Pixels Ever</a> library, which admittedly needs quite a bit of work still.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/12/20/itp-shows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Big Screens Testing Round 2</title>
		<link>http://www.shiffman.net/2007/11/21/big-screens-testing-round-2/</link>
		<comments>http://www.shiffman.net/2007/11/21/big-screens-testing-round-2/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 03:19:08 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[big screens]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[iac]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[mpe]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/11/21/big-screens-testing-round-2/</guid>
		<description><![CDATA[ITP Big Screens Testing Round 2 from shiffman on Vimeo. Project credits: http:itp.nyu.edu/bigscreens/]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" width="400" height="266" data="http://www.vimeo.com/moogaloop.swf?clip_id=396813&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=396813&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF" /></object><br /><a href="http://www.vimeo.com/396813/l:embed_396813">ITP Big Screens Testing Round 2</a> from <a href="http://www.vimeo.com/shiffman/l:embed_396813">shiffman</a> on <a href="http://vimeo.com/l:embed_396813">Vimeo</a>.</p>
<p>Project credits: <a href="http:itp.nyu.edu/bigscreens/">http:itp.nyu.edu/bigscreens/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/11/21/big-screens-testing-round-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>E-mail Processing</title>
		<link>http://www.shiffman.net/2007/11/13/e-mail-processing/</link>
		<comments>http://www.shiffman.net/2007/11/13/e-mail-processing/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 02:26:43 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/11/13/e-mail-processing/</guid>
		<description><![CDATA[While it may not be nearly as kooky as calling Processing on the phone, I&#8217;ve been asked about checking e-mail from Processing several times this semester. So rather than try to dig up example code on the internets, I&#8217;ve quickly &#8230; <a href="http://www.shiffman.net/2007/11/13/e-mail-processing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While it may not be nearly as kooky as <a href="http://www.shiffman.net/p5/asterisk">calling Processing on the phone</a>, I&#8217;ve been asked about checking e-mail from Processing several times this semester.  So rather than try to dig up example code on the internets, I&#8217;ve quickly thrown together one that checks a <a href="http://en.wikipedia.org/wiki/Post_Office_Protocol">POP account</a> and/or sends mail via <a href="http://en.wikipedia.org/wiki/Smtp">SMTP</a>.  It&#8217;s all done with <a href="http://en.wikipedia.org/wiki/Smtp">Javamail</a>.</p>
<p><a href="http://www.shiffman.net/p5/Email.zip">Download the example sketch.</a></p>
<p>Code snippets after the jump. . .</p>
<p><span id="more-201"></span></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">    <span style="color: #003399;">Properties</span> props <span style="color: #339933;">=</span> <span style="color: #003399;">System</span>.<span style="color: #006633;">getProperties</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.pop3.host&quot;</span>, <span style="color: #0000ff;">&quot;pop.gmail.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// These are security settings required for gmail</span>
    <span style="color: #666666; font-style: italic;">// May need different code depending on the account</span>
    props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.pop3.port&quot;</span>, <span style="color: #0000ff;">&quot;995&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.pop3.starttls.enable&quot;</span>, <span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    props.<span style="color: #006633;">setProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.pop3.socketFactory.fallback&quot;</span>, <span style="color: #0000ff;">&quot;false&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    props.<span style="color: #006633;">setProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.pop3.socketFactory.class&quot;</span>,<span style="color: #0000ff;">&quot;javax.net.ssl.SSLSocketFactory&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Create authentication object</span>
    Auth auth <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Auth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Make a session</span>
    Session session <span style="color: #339933;">=</span> Session.<span style="color: #006633;">getDefaultInstance</span><span style="color: #009900;">&#40;</span>props, auth<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Store store <span style="color: #339933;">=</span> session.<span style="color: #006633;">getStore</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;pop3&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    store.<span style="color: #006633;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Get inbox</span>
    Folder folder <span style="color: #339933;">=</span> store.<span style="color: #006633;">getFolder</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INBOX&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    folder.<span style="color: #006633;">open</span><span style="color: #009900;">&#40;</span>Folder.<span style="color: #006633;">READ_ONLY</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>folder.<span style="color: #006633;">getMessageCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot; total messages.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Get array of messages and display them</span>
    Message message<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> folder.<span style="color: #006633;">getMessages</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> message.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;---------------------&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Message # &quot;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;From: &quot;</span> <span style="color: #339933;">+</span> message<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">getFrom</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Subject: &quot;</span> <span style="color: #339933;">+</span> message<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">getSubject</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Message:&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003399;">String</span> content <span style="color: #339933;">=</span> message<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">getContent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
      <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>content<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Close the session</span>
    folder.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    store.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>and sending:</p>
</pre>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">  <span style="color: #666666; font-style: italic;">// Create a session</span>
  <span style="color: #003399;">String</span> host<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;smtp.gmail.com&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #003399;">Properties</span> props<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Properties</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// SMTP Session</span>
  props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.transport.protocol&quot;</span>, <span style="color: #0000ff;">&quot;smtp&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.smtp.host&quot;</span>, host<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.smtp.port&quot;</span>, <span style="color: #0000ff;">&quot;25&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.smtp.auth&quot;</span>, <span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #666666; font-style: italic;">// We need TTLS, which gmail requires</span>
  props.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mail.smtp.starttls.enable&quot;</span>,<span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Create a session</span>
  Session session <span style="color: #339933;">=</span> Session.<span style="color: #006633;">getDefaultInstance</span><span style="color: #009900;">&#40;</span>props, <span style="color: #000000; font-weight: bold;">new</span> Auth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">try</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// Make a new message</span>
    MimeMessage message <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MimeMessage<span style="color: #009900;">&#40;</span>session<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Who is this message from</span>
    message.<span style="color: #006633;">setFrom</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> InternetAddress<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name@gmail.com&quot;</span>, <span style="color: #0000ff;">&quot;Name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Who is this message to (we could do fancier things like make a list or add CC's)</span>
    message.<span style="color: #006633;">setRecipients</span><span style="color: #009900;">&#40;</span>Message.<span style="color: #006633;">RecipientType</span>.<span style="color: #006633;">TO</span>, InternetAddress.<span style="color: #006633;">parse</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;address@email.com&quot;</span>, <span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Subject and body</span>
    message.<span style="color: #006633;">setSubject</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello World!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    message.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;It's great to be here. . .&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// We can do more here, set the date, the headers, etc.</span>
    Transport.<span style="color: #006633;">send</span><span style="color: #009900;">&#40;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    println<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Mail sent!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/11/13/e-mail-processing/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Big Screens Class @ IAC</title>
		<link>http://www.shiffman.net/2007/10/25/big-screens-class-iac/</link>
		<comments>http://www.shiffman.net/2007/10/25/big-screens-class-iac/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 10:51:59 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[big screens]]></category>
		<category><![CDATA[iac]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[mpe]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>
		<category><![CDATA[videowall]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/10/25/big-screens-class-iac/</guid>
		<description><![CDATA[ITP Big Screens @ IAC from shiffman on Vimeo. My class went to test their projects on the IAC video wall this week. The works in this video are by Young Cho, Hye Ki Min, and Ji-Sun Lee. The pieces &#8230; <a href="http://www.shiffman.net/2007/10/25/big-screens-class-iac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/moogaloop.swf?clip_id=356543&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=356543&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF" /></object><br /><a href="http://vimeo.com/356543/l:embed_356543">ITP Big Screens @ IAC</a> from <a href="http://vimeo.com/shiffman/l:embed_356543">shiffman</a> on <a href="http://vimeo.com/l:embed_356543">Vimeo</a>.</p>
<p>My class went to test their projects on the IAC video wall this week. The works in this video are by Young Cho, Hye Ki Min, and Ji-Sun Lee.  The pieces in the photos below are by Daniel Liss and Lucia Jeesun Lee.  All 15 projects will be on display in December.  More to come!</p>
<p><a href="http://www.flickr.com/photos/shiffman/1720852268/" title="Photo Sharing"><img src="http://farm3.static.flickr.com/2405/1720852268_ee6bfeea73_m.jpg" width="240" height="180" alt="Sounder by Daniel Liss" /></a> <a href="http://www.flickr.com/photos/shiffman/1720826402/" title="Photo Sharing"><img src="http://farm3.static.flickr.com/2169/1720826402_4c69dc0d0f_m.jpg" width="240" height="180" alt="IMG_5473.JPG" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/10/25/big-screens-class-iac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Processing and Asterisk Tutorial</title>
		<link>http://www.shiffman.net/2007/10/09/processing-and-asterisk-tutorial/</link>
		<comments>http://www.shiffman.net/2007/10/09/processing-and-asterisk-tutorial/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 16:28:18 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[bigscreens]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/10/09/processing-and-asterisk-tutorial/</guid>
		<description><![CDATA[How to connect to Processing from a phone call: http://www.shiffman.net/p5/asterisk]]></description>
			<content:encoded><![CDATA[<p>How to connect to <a href="http://www.processing.org">Processing</a> from a phone call:</p>
<p><a href="http://www.shiffman.net/p5/asterisk">http://www.shiffman.net/p5/asterisk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/10/09/processing-and-asterisk-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multi-Screen Phone Interaction</title>
		<link>http://www.shiffman.net/2007/10/06/multi-screen-phone-interaction/</link>
		<comments>http://www.shiffman.net/2007/10/06/multi-screen-phone-interaction/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 19:15:43 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[big screens]]></category>
		<category><![CDATA[iac]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mpe]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/10/06/multi-screen-phone-interaction/</guid>
		<description><![CDATA[Calling Processing again from shiffman on Vimeo. Going to write this up and publish the code (in conjunction with my Big Screens course) in the next couple days.]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" width="480" height="320" data="http://vimeo.com/moogaloop.swf?clip_id=331848&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=331848&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF" /></object></p>
<p><a href="http://vimeo.com/331848/l:embed_331848">Calling Processing again</a> from <a href="http://vimeo.com/shiffman/l:embed_331848">shiffman</a> on <a href="http://vimeo.com/l:embed_331848">Vimeo</a>.</p>
<p>Going to write this up and publish the code (in conjunction with my <a href="http://itp.nyu.edu/varwiki/BigScreens/BigScreens">Big Screens</a> course) in the next couple days.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/10/06/multi-screen-phone-interaction/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>1-800-Processing</title>
		<link>http://www.shiffman.net/2007/10/02/1-800-processing/</link>
		<comments>http://www.shiffman.net/2007/10/02/1-800-processing/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 18:20:52 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[bigscreens]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/10/02/1-800-processing/</guid>
		<description><![CDATA[1-800-Processing from shiffman on Vimeo.]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" width="480" height="403" data="http://vimeo.com/moogaloop.swf?clip_id=327214&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=327214&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF" /></object></p>
<p><a href="http://vimeo.com/327214/l:embed_327214">1-800-Processing</a> from <a href="http://vimeo.com/shiffman/l:embed_327214">shiffman</a> on <a href="http://vimeo.com/l:embed_327214">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/10/02/1-800-processing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Most Pixels Ever Alpha Release</title>
		<link>http://www.shiffman.net/2007/09/04/most-pixels-ever-alpha-release/</link>
		<comments>http://www.shiffman.net/2007/09/04/most-pixels-ever-alpha-release/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 12:26:04 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[bigscreens]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[mpe]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[teaching_]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/09/04/most-pixels-ever-alpha-release/</guid>
		<description><![CDATA[I&#8217;m pleased to announce that we&#8217;re releasing the first version of The Most Pixels Ever, an open-source Java framework for spanning Processing sketches across multiple screens (developed with Chris Kairalla). This is an early version that has many limitations and &#8230; <a href="http://www.shiffman.net/2007/09/04/most-pixels-ever-alpha-release/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/shiffman/437187494/" title="Photo Sharing"><img src="http://farm1.static.flickr.com/145/437187494_7c19fed4b4_m.jpg" width="240" height="180" alt="Seriously, Run Lola Run.  Run!" /></a></p>
<p>I&#8217;m pleased to announce that we&#8217;re releasing the first version of <a href="http://www.mostpixelsever.com/">The Most Pixels Ever</a>, an open-source Java framework for spanning Processing sketches across multiple screens (developed with Chris Kairalla).  This is an early version that has many limitations and needs a great deal of improvement, but <a href="http://www.mostpixelsever.com/2007/08/26/testing-on-the-iac-video-wall/">it does work</a>.  The site isn&#8217;t complete, but the <a href="http://www.mostpixelsever.com/source/">source</a> is available, and there are a <a href="http://www.mostpixelsever.com/tutorial/">couple tutorials</a> to help get your started.</p>
<p>I&#8217;ll be using the library in conjunction with <a href="http://www.shiffman.net/teaching">teaching</a> a <a href="http://www.itp.nyu.edu/varwiki/Syllabus/BigScreens">new class</a> at ITP starting today!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/09/04/most-pixels-ever-alpha-release/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

