<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>slapcast.com blog</title>
	<atom:link href="http://slapcast.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://slapcast.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 16 Aug 2007 19:43:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='slapcast.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>slapcast.com blog</title>
		<link>http://slapcast.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://slapcast.wordpress.com/osd.xml" title="slapcast.com blog" />
	<atom:link rel='hub' href='http://slapcast.wordpress.com/?pushpress=hub'/>
		<item>
		<title>voicemail2twitter.rb</title>
		<link>http://slapcast.wordpress.com/2007/08/16/voicemail2twitter/</link>
		<comments>http://slapcast.wordpress.com/2007/08/16/voicemail2twitter/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 19:43:26 +0000</pubDate>
		<dc:creator>slapcast</dc:creator>
				<category><![CDATA[barcampdc]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.slapcast.com/2007/08/16/voicemail2twitter/</guid>
		<description><![CDATA[Quickly: with this script and a free k7.net account you can post voicemail messages to your twitter account. On Saturday I gave a quick demo at barcampdc on a ruby script I wrote called voicemail2twitter.rb. This was the barebones 5 &#8230; <a href="http://slapcast.wordpress.com/2007/08/16/voicemail2twitter/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slapcast.wordpress.com&amp;blog=1299037&amp;post=13&amp;subd=slapcast&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quickly: with this script and a free k7.net account you can post voicemail messages to your twitter account.</p>
<p>On Saturday I gave a quick demo at barcampdc on a ruby script I wrote called voicemail2twitter.rb.</p>
<p>This was the barebones 5 minute slideshow:<br />
<iframe src='http://www.slideshare.net/slideshow/embed_code/92784' width='425' height='348'></iframe></p>
<p>And here is the code:</p>
<pre>#! /usr/bin/env ruby

require 'rubygems'
require_gem 'actionmailer'
require 'twitter'

ActionMailer::Base.smtp_settings = {
  :address =&gt; 'localhost',
  :port =&gt; 25,
  :domain=&gt; 'slapcast.com',
}
ActionMailer::Base.delivery_method = :smtp

class Mailman &lt; ActionMailer::Base
  def receive(email)
    if email.has_attachments?
      for attachment in email.attachments

        base_dir = "/home/barcampdcaudio/web/"
        wav_name = "#{Time.now.to_i}-#{rand(1000)}"
        wav_path = "#{base_dir}#{wav_name}"
        mp3_path = "#{wav_path}.mp3"

        File.open(wav_path,File::CREAT|File::TRUNC|File::WRONLY,0666){ |f|
          f.write(attachment.read)
        }

        #convert wav to mp3
        system("/usr/bin/sox #{wav_path} -t wav -s -w - | /usr/local/bin/lame --resample 22 -v -q 0 -V 9 --quiet - #{mp3_path}")
        system("chmod 777 #{mp3_path}")  #yes, probably don't need a system call for this

        mp3_url = "http://slapcast.com/m/#{wav_name}"

        #post the link to twitter
        Twitter::Base.new('barcampdcaudio', 'twitter_password_goes_here').update("#{mp3_url}.mp3")

      end
    end
  end
end

Mailman.receive(STDIN.read)</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/slapcast.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/slapcast.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slapcast.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slapcast.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slapcast.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slapcast.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slapcast.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slapcast.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slapcast.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slapcast.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slapcast.wordpress.com&amp;blog=1299037&amp;post=13&amp;subd=slapcast&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://slapcast.wordpress.com/2007/08/16/voicemail2twitter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4afdc178b7a03b104f90e8584027f095?s=96&#38;d=identicon" medium="image">
			<media:title type="html">slapcast</media:title>
		</media:content>
	</item>
		<item>
		<title>Twittergram &#8211; new slapcast.com feature</title>
		<link>http://slapcast.wordpress.com/2007/06/29/twittergram-new-slapcastcom-feature/</link>
		<comments>http://slapcast.wordpress.com/2007/06/29/twittergram-new-slapcastcom-feature/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 14:55:11 +0000</pubDate>
		<dc:creator>slapcast</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.slapcast.com/2007/06/29/twittergram-new-slapcastcom-feature/</guid>
		<description><![CDATA[Dave Winer wrote a cool webservice called twittergram that posts small audio files to your twitter account of choice (as well as a global account twitogram). I combined this with slapcast&#8217;s support for podcasting by telephone, so now you can &#8230; <a href="http://slapcast.wordpress.com/2007/06/29/twittergram-new-slapcastcom-feature/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slapcast.wordpress.com&amp;blog=1299037&amp;post=6&amp;subd=slapcast&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dave Winer wrote a cool webservice called <a href="http://www.twittergram.com/">twittergram</a> that posts small audio files to your twitter account of choice (as well as a global account <a href="http://twitter.com/twitogram">twitogram</a>). I combined this with slapcast&#8217;s support for podcasting by telephone, so now you can post directly to twitter from slapcast.</p>
<p>Here is the preference screen for a logged-in slapcast user:<br />
<img src="http://slapcast.files.wordpress.com/2007/06/twitter_prefs.png?w=500" /></p>
<p>This is the link to twitter prefs from the dashboard:<br />
<img src="http://slapcast.files.wordpress.com/2007/06/pub_opts.png?w=500" /></p>
<p>known bugs: there is a preference called &#8220;Also post to the global twitogram account&#8221; but it doesn&#8217;t do anything yet. It ALWAYS posts to twitogram right now.</p>
<p><a href="http://www.scripting.com/stories/2007/06/25/webServiceDocs.html">Dave</a> &#8212; thanks for creating twittergrams!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/slapcast.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/slapcast.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slapcast.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slapcast.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slapcast.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slapcast.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slapcast.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slapcast.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slapcast.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slapcast.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slapcast.wordpress.com&amp;blog=1299037&amp;post=6&amp;subd=slapcast&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://slapcast.wordpress.com/2007/06/29/twittergram-new-slapcastcom-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4afdc178b7a03b104f90e8584027f095?s=96&#38;d=identicon" medium="image">
			<media:title type="html">slapcast</media:title>
		</media:content>

		<media:content url="http://slapcast.files.wordpress.com/2007/06/twitter_prefs.png" medium="image" />

		<media:content url="http://slapcast.files.wordpress.com/2007/06/pub_opts.png" medium="image" />
	</item>
	</channel>
</rss>
