<?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>Tender Lovemaking &#187; betabrite</title>
	<atom:link href="http://tenderlovemaking.com/category/computadora/betabrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com</link>
	<description>The act of making love, tenderly.</description>
	<lastBuildDate>Sun, 15 Jan 2012 04:36:11 +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>Watch Your Twits</title>
		<link>http://tenderlovemaking.com/2008/02/26/watch-your-twits/</link>
		<comments>http://tenderlovemaking.com/2008/02/26/watch-your-twits/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 07:12:39 +0000</pubDate>
		<dc:creator>Aaron Patterson</dc:creator>
				<category><![CDATA[betabrite]]></category>
		<category><![CDATA[computadora]]></category>
		<category><![CDATA[mechanize]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tenderlovemaking.com/2008/02/26/watch-your-twits/</guid>
		<description><![CDATA[If this doesn&#8217;t win me the super nerd of the year award, I don&#8217;t know what will. In fact, this is so nerdy that I&#8217;m kind of ashamed to write about it! Remeber my Twitterbrite post? Well I registered twitterbrite.com, and now if my client catches a twit from you, it records the message on [...]]]></description>
			<content:encoded><![CDATA[<p>If this doesn&#8217;t win me the super nerd of the year award, I don&#8217;t know what will.  In fact, this is so nerdy that I&#8217;m kind of ashamed to write about it!</p>
<p>Remeber my <a href="http://tenderlovemaking.com/2008/02/22/twitterbrite/">Twitterbrite</a> post?  Well I registered <a href="http://twitterbrite.com/">twitterbrite.com</a>, and now if my client catches a twit from you, it records the message on the LED sign and uploads it to <a href="http://youtube.com/profile_videos?user=aaronp58">my youtube account</a>.  Go ahead, check out <a href="http://twitterbrite.com/">twitterbrite.com</a> now!</p>
<p><strong>Update:</strong> My scripts are too chatty, so now it will only post videos if the text of the twit contains &#8216;betabrite&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://tenderlovemaking.com/2008/02/26/watch-your-twits/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>TwitterBrite</title>
		<link>http://tenderlovemaking.com/2008/02/22/twitterbrite/</link>
		<comments>http://tenderlovemaking.com/2008/02/22/twitterbrite/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 06:27:06 +0000</pubDate>
		<dc:creator>Aaron Patterson</dc:creator>
				<category><![CDATA[betabrite]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://tenderlovemaking.com/2008/02/22/twitterbrite/</guid>
		<description><![CDATA[I signed up my BetaBrite for a twitter account. Now I&#8217;m getting twitter messages in my living room. Yay! Leave a comment, or follow me on twitter so I can get your messages on my sign. I think next I will try to wire up a webcam to automagically take pictures. Anyway, here is the [...]]]></description>
			<content:encoded><![CDATA[<p>I signed up my BetaBrite for a <a href="http://twitter.com/betabrite">twitter</a> account.  Now I&#8217;m getting twitter messages in my living room.  Yay!  Leave a comment, or follow me on twitter so I can get your messages on my sign.  I think next I will try to wire up a webcam to automagically take pictures.</p>
<p>Anyway, here is the code:</p>
<pre class="brush: ruby; title: ; notranslate">
twitter = Twitter::Base.new('betabrite', '%%%%%%%%')

seen = {}
DATA.each_line { |l| seen[l.chomp] = true }
twit = nil
twitter.timeline(:friends).each do |tweet|
  next if seen[tweet.id]
  twit = tweet
end

if twit
  File.open(__FILE__, 'a') { |db| db.puts(twit.id) }
  puts &quot;#{twit.text} (#{twit.user.name})&quot;
  bb = BetaBrite::USB.new { |sign|
    sign.stringfile('0') do
      print string(&quot;#{twit.text}&quot;)
    end
    sign.stringfile('1') do
      print string(&quot;(#{twit.user.name})&quot;).red
    end
  }.write!
end
__END__
</pre>
<p>My favorite part is that I use the script for its own database.  It keeps appending twitter ids it has seen to the end of the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://tenderlovemaking.com/2008/02/22/twitterbrite/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Autotest and BetaBrite</title>
		<link>http://tenderlovemaking.com/2008/02/11/autotest-and-betabrite/</link>
		<comments>http://tenderlovemaking.com/2008/02/11/autotest-and-betabrite/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 04:39:50 +0000</pubDate>
		<dc:creator>Aaron Patterson</dc:creator>
				<category><![CDATA[betabrite]]></category>
		<category><![CDATA[computadora]]></category>

		<guid isPermaLink="false">http://tenderlovemaking.com/2008/02/11/autotest-and-betabrite/</guid>
		<description><![CDATA[I&#8217;ve finally added USB betabrite support to my Betabrite library, and released version 1.0.0. Version 1.0.0 also includes an autotest module so that you can see your autotest output on the sign. Here is what mine looks like: The sign shows errors too, but it scrolls, so I couldn&#8217;t get it in one picture. Anyway, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally added <a href="http://betabrite.com/">USB betabrite</a> support to my <a href="http://betabrite.rubyforge.org/">Betabrite</a> library, and released version 1.0.0.</p>
<p>Version 1.0.0 also includes an autotest module so that you can see your autotest output on the sign.  Here is what mine looks like:</p>
<p><a href="http://www.flickr.com/photos/aaronp/2259850772/" title="Betabrite Autotest by fakebeard, on Flickr"><img src="http://farm3.static.flickr.com/2078/2259850772_60a8429289_m.jpg" width="240" height="160" alt="Betabrite Autotest" /></a></p>
<p>The sign shows errors too, but it scrolls, so I couldn&#8217;t get it in one picture.  Anyway, if you&#8217;ve got the USB sign, all you have to do to get it working with autotest is add this to your .autotest file:</p>
<pre class="brush: ruby; title: ; notranslate">
require 'betabrite/autotest'
require 'usb'

Autotest::BetaBrite.hook(BetaBrite::USB)
</pre>
<p>The hook method takes a block, and you can modify your messages before they are sent to the sign.  For example, I wanted my failures to be blue, so my .autotest file looks like this:</p>
<pre class="brush: ruby; title: ; notranslate">
require 'betabrite/autotest'
require 'usb'

Autotest::BetaBrite.hook(BetaBrite::USB) do |failures, erorrs|
  failures.rgb('0000FF') if failures.green?
end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tenderlovemaking.com/2008/02/11/autotest-and-betabrite/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New Ruby BetaBrite &#8211; 0.0.2</title>
		<link>http://tenderlovemaking.com/2006/09/28/new-ruby-betabrite-002/</link>
		<comments>http://tenderlovemaking.com/2006/09/28/new-ruby-betabrite-002/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 05:33:42 +0000</pubDate>
		<dc:creator>Aaron Patterson</dc:creator>
				<category><![CDATA[betabrite]]></category>
		<category><![CDATA[computadora]]></category>

		<guid isPermaLink="false">http://tenderlovemaking.com/2006/09/28/new-ruby-betabrite-002/</guid>
		<description><![CDATA[I just released a new version of the ruby BetaBrite sign library. It lets you control BetaBrite signs. You can write text, change the color, fonts, display images, and do a bunch of other stuff. In celebration of this new release, I created a DRb server that lets you write to my BetaBrite sign and [...]]]></description>
			<content:encoded><![CDATA[<p>I just released a new version of the <a href="http://betabrite.rubyforge.org/">ruby BetaBrite sign library</a>.  It lets you control <a href="http://www.betabrite.com/">BetaBrite</a> signs.  You can write text, change the color, fonts, display images, and do a bunch of other stuff.</p>
<p>In celebration of this new release, I created a DRb server that lets you write to my BetaBrite sign and take a photo of it!  Here is the code that will write &#8220;Seattle.rb&#8221; to my server and take a photo:</p>
<pre class="brush: ruby; title: ; notranslate">
require 'drb'
require 'rubygems'
require 'betabrite'

DRb.start_service()
obj = DRbObject.new(nil, 'druby://eviladmins.org:9000')

File.open(&quot;out.jpg&quot;, 'wb') { |a|
  a.write obj.write_simple(&quot;Seattle.rb&quot;)
}
</pre>
<p>Which took this photo:</p>
<p><img src="http://tenderlovemaking.com/images/out.jpg"><br />
<span id="more-34"></span></p>
<p>How about writing a red string?</p>
<pre class="brush: ruby; title: ; notranslate">
require 'drb'
require 'rubygems'
require 'betabrite'

DRb.start_service()
obj = DRbObject.new(nil, 'druby://eviladmins.org:9000')

s = BetaBrite::String.new(&quot;Seattle.rb&quot;) { |a| a.set_color &quot;red&quot; }

File.open(&quot;out.jpg&quot;, 'wb') { |a|
  a.write obj.write(s)
}
</pre>
<p>Install it and try it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://tenderlovemaking.com/2006/09/28/new-ruby-betabrite-002/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

