<?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>Pearl Wisdom &#187; Code</title>
	<atom:link href="http://blog.pearlcrescent.com/categories/code/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.pearlcrescent.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 21:21:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>5 Minute Signal</title>
		<link>http://blog.pearlcrescent.com/archives/78</link>
		<comments>http://blog.pearlcrescent.com/archives/78#comments</comments>
		<pubDate>Thu, 22 Jan 2009 04:11:17 +0000</pubDate>
		<dc:creator>Mark Smith</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Diversions]]></category>
		<category><![CDATA[DIYTech]]></category>

		<guid isPermaLink="false">http://blog.pearlcrescent.com/?p=78</guid>
		<description><![CDATA[For the past year and a half I (Mark) have been part of an Ann Arbor, Michigan based group named GO-Tech. The common thread among the group members is that each of us is interested in making things using technology (combining hardware, software, metal, wood, etc.). I refer to it as &#8220;Do It Yourself Tech&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div style="float:right; margin-left: 5px;">
<a href="http://pearlcrescent.com/diytech/5-minute-signal/signal.jpg"><img src="http://pearlcrescent.com/diytech/5-minute-signal/signal-small.jpg" alt="5 Minute Signal" title="Click to view larger image"/></a></div>
<p>For the past year and a half I (Mark) have been part of an Ann Arbor, Michigan based group named <a href="http://tech.groups.yahoo.com/group/notbago/">GO-Tech</a>.  The common thread among the group members is that each of us is interested in making things using technology (combining hardware, software, metal, wood, etc.).  I refer to it as &#8220;Do It Yourself Tech&#8221; (DIYTech).  The group meets monthly to present projects and have interesting discussions.  I attend when I am able; it is a fun, enriching after hours activity.</p>
<p>At the <a href="http://blog.makezine.com/archive/2009/01/gotech_meeting_tonight_11309.html">most recent meeting</a> that took place on January 13th, there was a contest in which everyone was invited to build a device and demonstrate it at the meeting.  As Dale (the group organizer and leader) described it:</p>
<blockquote><p>
The Five-Minute Timer Contest goal is to design a timer to time presentations at our meetings. It should semi-accurately time the presenter, and give some audible or visual indication when their time is up. Portability, coolness, and robustness will be helpful. Cool prizes supplied by O&#8217;Reilly, publishers of Make.
</p></blockquote>
<p>I created a traffic signal based timer that I named &#8220;5 Minute Signal.&#8221;  The time is actually settable to one minute and up (in one minute increments).  To build it, I hacked an inexpensive plastic traffic signal (about one foot tall) that I purchased from Oriental Trading Company.  To control the signal and provide accurate time keeping, I used my trusty <a href="http://www.moderndevice.com/">Bare Bones Board</a> (BBB) Arduino-compatible microcontroller board.  The hardware is fairly simple (the BBB, a pushbutton control switch, and 3 relays to control the red, yellow, and green lights) and the software was fun to write.  I put the whole thing together the weekend before the GO-Tech meeting.</p>
<p>Basic operation is as you would expect:  Push the button to start the timer.  When the time interval is set to 5 minutes, the green light will stay on for the first 4 minutes, followed by one minute of yellow, and then red at the end of 5 minutes (the green and yellow intervals are shorter when the interval is 2 minutes or less).  More details are available in these documents:</p>
<ul>
<li>Presentation:   <a href="http://pearlcrescent.com/diytech/5-minute-signal/presentation.pdf">presentation.pdf</a></li>
<li>Schematic Diagram:   <a href="http://pearlcrescent.com/diytech/5-minute-signal/schematic.png">schematic.png</a></li>
<li>Arduino Source Code:  <a href="http://pearlcrescent.com/diytech/5-minute-signal/source-code.txt">source-code.txt</a></li>
</ul>
<p>The other contest entries included a very clever and well-made artificial sundial timer (by Jim) and another with a large servo-driven dial (by Don) that, if the presenter went too far over the allotted time, popped a balloon to get everyone&#8217;s attention.  The meeting attendees voted and in the end I tied with the sundial for &#8220;Best Timer&#8221; and the sundial won the &#8220;Coolest Timer&#8221; award.  I walked away with a copy of the <a href="http://www.instructables.com/group/Best-of-Instructables-Book/">Best of Instructables</a> book (thanks O&#8217;Reilly).</p>
<p>There was one more 5 Minute Timer project presented at the meeting (it arrived too late for the contest).  Peter put together a traffic signal based timer similar to mine that uses a full size (reclaimed) traffic signal that he purchased on eBay.  His impressively polished project includes a wireless remote control (something I considered but did not have time to include), a custom printed circuit board, and a wooden project box.  <a href="http://peterjjensen.com/TrafficLight.pdf">Schematic</a> (PDF).</p>
<p>The meeting also included an interesting talk about <a href="http://linuxcnc.org/">EMC</a> and some other presentations.  Overall, it was a creative, fun and informative evening.  If you are in the southeast Michigan area, I highly recommend that you attend an upcoming GO-Tech meeting</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pearlcrescent.com/archives/78/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capture Page Images Programmatically</title>
		<link>http://blog.pearlcrescent.com/archives/51</link>
		<comments>http://blog.pearlcrescent.com/archives/51#comments</comments>
		<pubDate>Fri, 18 May 2007 19:37:36 +0000</pubDate>
		<dc:creator>Mark Smith</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Cool Tools]]></category>
		<category><![CDATA[Page Saver]]></category>

		<guid isPermaLink="false">http://blog.pearlcrescent.com/archives/51</guid>
		<description><![CDATA[Ever since we released Page Saver Pro, people have been asking us how they can leverage its image capture features within their own in-house projects. The wait is over. Earlier this week, we launched a new product named Page Saver Toolkit that allows web and Mozilla developers to use the page capture capabilities of Page [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since we released <a href="http://pearlcrescent.com/products/pagesaver/pro/">Page Saver Pro</a>, people have been asking us how they can leverage its image capture features within their own in-house projects.  The wait is over.</p>
<p>Earlier this week, we launched a new product named <a href="http://pearlcrescent.com/products/pagesaver/toolkit/">Page Saver Toolkit</a> that allows web and Mozilla developers to use the page capture capabilities of Page Saver Pro.  By placing a little bit of JavaScript code inside a web page, you can call the Page Saver Pro engine to save an image of a page to a local PNG file.  Or save it to a local JPEG file.  Or upload it to an FTP server.  Or save the area occupied by a single DOM element on the page.  In fact, the Toolkit API will let you access nearly all of the capabilities of Page Saver Pro.</p>
<p>We also provide an <a href="http://developer.mozilla.org/en/docs/XPCOM">XPCOM</a> interface which is callable from privileged code inside Firefox (typically, that means from within another extension).</p>
<p>I could go on and on but I know this kind of product is not for everyone.  But for those of you who are doing things like writing automated quality assurance tests for an interactive web product or who want to go beyond the capabilities provided by Page Saver Pro&#8217;s command line interface, the Toolkit is the product for you.  Plus, it is fun to use.  Learn more on these pages:</p>
<ul>
<li><a href="http://pearlcrescent.com/products/pagesaver/toolkit/">Page Saver Toolkit Overview</a>.</li>
<li><a href="http://pearlcrescent.com/products/pagesaver/toolkit/doc/">Documentation</a> (includes sample code).</li>
</ul>
<p>Please take a look and <a href="http://pearlcrescent.com/products/pagesaver/toolkit/feedback.html">let us know</a> what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pearlcrescent.com/archives/51/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

