<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-US">
  <title type="text">Shane's Vitarana's thoughts on technology</title>
  <id>tag:shanesbrain.net,2009:mephisto/</id>
  <generator uri="http://mephistoblog.com" version="0.7.3">Mephisto Noh-Varr</generator>
  
  <link href="http://shanesbrain.net/" rel="alternate" type="text/html" />
  <updated>2008-10-10T04:42:42Z</updated>
  <subtitle type="html">Rants and annoucements about Ruby, Rails, and social software.</subtitle><geo:lat>41.900332</geo:lat><geo:long>-87.669276</geo:long><logo>http://www.feedburner.com/fb/images/pub/fb_pwrd.gif</logo><link rel="self" href="http://feeds.feedburner.com/ShanesBrainExtension" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-10-10:6033</id>
    <published>2008-10-10T00:45:00Z</published>
    <updated>2008-10-10T04:42:42Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/Q8fddJuFEsY/iphone-friendfeed-client-open-sourced" rel="alternate" type="text/html" />
    <title>iPhone FriendFeed Client Open-Sourced</title>
<content type="html">
            &lt;p&gt;When the iPhone &lt;span class='caps'&gt;SDK&lt;/span&gt; was first released in March, I got my feet wet with Objective-C and the &lt;span class='caps'&gt;SDK&lt;/span&gt; by building a FriendFeed client.  I never got around to finishing it, and don’t want it to languish away on my Mac.  So I’m releasing it to you guys under the &lt;span class='caps'&gt;MIT&lt;/span&gt; license.  It was last developed on an early beta of 2.0, but has been updated to compile using the released 2.0 &lt;span class='caps'&gt;SDK&lt;/span&gt;.  It is currently read-only, and doesn’t have the ability to post to FriendFeed.  It was also done before Interface Builder was available.  Feel free to finish it up and release it, use it as a learning tool, or whatever else you may want to do with it.&lt;/p&gt;


	&lt;p&gt;FriendFeed Touch is hosted on GitHub: &lt;a href='http://github.com/shanev/friendfeed-iphone'&gt;http://github.com/shanev/friendfeed-iphone&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Warning: This is not release quality software.  I leave it as an exercise for the reader to finish.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=Q8fddJuFEsY:siNul3FL8HE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=Q8fddJuFEsY:siNul3FL8HE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/10/10/iphone-friendfeed-client-open-sourced</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-10-08:6035</id>
    <published>2008-10-08T18:28:00Z</published>
    <updated>2008-10-10T04:53:40Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/fOsfQivLpKE/speaking-at-iphonelive-2008" rel="alternate" type="text/html" />
    <title>Speaking at iPhoneLive 2008</title>
<content type="html">
            &lt;p&gt;I’m going to be speaking at &lt;a href='http://en.oreilly.com/iphonelive2008'&gt;iPhoneLive 2008&lt;/a&gt; in San Jose, on November 18th, O’Reilly’s new conference for iPhone developers.  Now that the &lt;span class='caps'&gt;NDA&lt;/span&gt; has been lifted, this conference is going to be a chock full of information.  The &lt;a href='http://en.oreilly.com/iphonelive2008/public/schedule/speakers'&gt;line-up&lt;/a&gt; looks amazing, and includes some of the best speakers from &lt;a href='http://www.iphonedevcamp.org/'&gt;iPhoneDevCamp&lt;/a&gt; and &lt;a href='http://rentzsch.com/c4/2schedule'&gt;C4&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;I’m going to talk about criteria for successful iPhone apps, and about the Audio APIs available in the &lt;span class='caps'&gt;SDK&lt;/span&gt;.  If you would like to hear about anything else, please leave a comment here or &lt;a href='https://twitter.com/shanev'&gt;send me a tweet&lt;/a&gt;.  I’m looking forward to meeting you and hearing your questions and ideas.&lt;/p&gt;


	&lt;p&gt;Early registration ends on 10/14, so &lt;a href='https://en.oreilly.com/iphonelive2008/public/register'&gt;sign up now&lt;/a&gt;.  If you register now, you’ll get an additional 20% off early registration with discount code ‘ip08gd20’.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=fOsfQivLpKE:RYGX_Hhm7JA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=fOsfQivLpKE:RYGX_Hhm7JA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/10/8/speaking-at-iphonelive-2008</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-07-31:3774</id>
    <published>2008-07-31T03:51:00Z</published>
    <updated>2008-07-31T03:52:44Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/la63YFQsgf8/rails-on-facebook-published" rel="alternate" type="text/html" />
    <title>Rails on Facebook Published</title>
<content type="html">
            &lt;p&gt;I’m happy to announce the publication of my first &lt;span class='caps'&gt;PDF&lt;/span&gt; book, &lt;a href='http://peepcode.com/products/rails-on-facebook'&gt;Rails on Facebook&lt;/a&gt;, along with co-author &lt;a href='http://shortpath.blogspot.com/'&gt;David Clements&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;a href='http://peepcode.com/products/rails-on-facebook'&gt;&lt;img src='http://img.skitch.com/20080731-kstp4g93syus3ftr8ytdi79e3n.jpg' alt='' /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;“This 67 page &lt;span class='caps'&gt;PDF&lt;/span&gt; will get you up and running with the Facebooker plugin. You’ll learn to install and configure the plugin. You’ll send &lt;span class='caps'&gt;HTML&lt;/span&gt;, Javascript, and images to Facebook (with caching). You’ll learn about the parts of Facebook that you can augment. Finally, you’ll learn how to write tests for your Facebook application”. —Peepcode Press&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;Like all &lt;a href='http://peepcode.com/'&gt;Peepcode&lt;/a&gt; books, there’s no fluff here.  Just straight ahead how to make a Facebook application using Ruby on Rails.  David and I made sure it covers the latest &lt;span class='caps'&gt;API&lt;/span&gt; additions and changes.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=la63YFQsgf8:ry6RlqtESfo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=la63YFQsgf8:ry6RlqtESfo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/7/31/rails-on-facebook-published</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-07-09:3456</id>
    <published>2008-07-09T18:29:00Z</published>
    <updated>2008-07-31T03:56:33Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/yEFSTDx7tTs/using-xcode-with-git" rel="alternate" type="text/html" />
    <title>Using Xcode with Git</title>
<content type="html">
            &lt;p&gt;For Xcode and Git to work smoothly with each other, you need to make sure Git treats Xcode project files properly.  You do this by configuring Git via .gitignore and .gitattributes.  Create these files in your repo’s root folder and add the following lines:&lt;/p&gt;


	&lt;p&gt;.gitignore&lt;/p&gt;


&lt;code&gt;
&lt;pre&gt;
# xcode noise
build/*
*.pbxuser
*.mode1v3

# old skool
.svn

# osx noise
.DS_Store
profile
&lt;/pre&gt;
&lt;/code&gt;

	&lt;p&gt;.gitattributes&lt;/p&gt;


&lt;code&gt;
&lt;pre&gt;
*.pbxproj -crlf -diff -merge
&lt;/pre&gt;
&lt;/code&gt;

	&lt;p&gt;The line in .gitattributes treats your Xcode project file as a binary.  This prevents Git from trying to fix newlines, show it in diffs, and excludes it from merges.  Note that you will still see it shown as a conflict in merges, although the file won’t have changed.  Simply commit it and things should be good.&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href='http://twitter.com/schwa/statuses/853833491'&gt;Jonathan Wight&lt;/a&gt; and &lt;a href='http://www.bluishcoder.co.nz/2007/09/git-binary-files-and-cherry-picking.html'&gt;Chris Double&lt;/a&gt;.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=yEFSTDx7tTs:swZOpaKiTtk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=yEFSTDx7tTs:swZOpaKiTtk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/7/9/using-xcode-with-git</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-04-08:2256</id>
    <published>2008-04-08T07:03:00Z</published>
    <updated>2008-04-13T21:35:34Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/KRCBtZ_iwQ0/iphone-app-friendfeed-touch" rel="alternate" type="text/html" />
    <title>iPhone App: FriendFeed Touch</title>
<content type="html">
            &lt;p&gt;
[This video demo has been removed]
&lt;/p&gt;


	&lt;p&gt;Here’s my first iPhone app demo, a client for FriendFeed, created with the official &lt;span class='caps'&gt;SDK&lt;/span&gt;.  It’s not the first one I did but it’s the only one that is presentable so far.  I tried to keep the design true to standard iPhone apps without too much customization.  In the future I plan adding the ability to post to FriendFeed, including directly posting photos taken with the iPhone camera.  Currently, you can see your personal feed (once authenticated), your friends’ feed, and the public feed for everyone.&lt;/p&gt;


	&lt;p&gt;This is still in the initial stages.  Lots more work has to be done, like making links clickable, and extracting out more specific data in the detail view.  I also want to tailor the detail view based on the service.  For example, Flickr feed items can be shown in a in an interface where you swipe between photos, and YouTube videos can be opened in the iPhone media player.  And yes, the tab-bar images are just placeholders and will be changed to something more meaningful.&lt;/p&gt;


	&lt;p&gt;When released, this will probably go under a different name than FriendFeed Touch, since it has to be obvious that third-party apps aren’t affiliated with FriendFeed.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=KRCBtZ_iwQ0:OkK9pqkAIuc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=KRCBtZ_iwQ0:OkK9pqkAIuc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/4/8/iphone-app-friendfeed-touch</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-04-04:2224</id>
    <published>2008-04-04T18:36:00Z</published>
    <updated>2008-04-04T18:37:01Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/_XwMHbGMvBg/iphone-development" rel="alternate" type="text/html" />
    <title>iPhone Development</title>
<content type="html">
            &lt;p&gt;For those who are &lt;a href='http://twitter.com/shanev'&gt;following me on Twitter&lt;/a&gt;, it’s quite obvious that I’ve been playing with the iPhone &lt;span class='caps'&gt;SDK&lt;/span&gt; for the past couple of weeks.  I’m taking the next 2-3 months off of client work just to build out some iPhone apps.  I have list of 30+ ideas but will focus on a handful of them and hopefully get them ready by the time the App Store launches in June.&lt;/p&gt;


	&lt;p&gt;I’ll be posting some video demos of app prototypes soon.  Stay tuned.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=_XwMHbGMvBg:aSQFAQz4X7s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=_XwMHbGMvBg:aSQFAQz4X7s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/4/4/iphone-development</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-02-11:1645</id>
    <published>2008-02-11T17:15:00Z</published>
    <updated>2008-02-11T17:17:45Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/orx75XmuURs/spacer-myspace-ruby-api-released" rel="alternate" type="text/html" />
    <title>Spacer, Yes with an 'e', Released</title>
<content type="html">
            &lt;p&gt;&lt;img src='http://shanesbrain.net/assets/2008/2/11/2245964951_69fdb18688_o.jpg' alt='' /&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;DESCRIPTION&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Ruby &lt;span class='caps'&gt;API&lt;/span&gt; for the MySpace Platform &lt;span class='caps'&gt;REST API&lt;/span&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;FEATURES&lt;/span&gt;/PROBLEMS&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Implements v1.0 of the MySpace Platform &lt;span class='caps'&gt;REST API&lt;/span&gt;&lt;/li&gt;
		&lt;li&gt;Uses OAuth to securely authenticate with MySpace&lt;/li&gt;
		&lt;li&gt;Uses &lt;span class='caps'&gt;JSON&lt;/span&gt; for minimal transport footprint&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;PLAY&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;&lt;img src='http://shanesbrain.net/assets/2008/2/11/2246938994_11c6d63b2e.jpg' alt='' /&gt;&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;
@myspace = Spacer::Client.new(api_key, secret_key)
user = @myspace.user('3454354')
puts user.interests.music
puts user.photos.first.caption
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;REQUIREMENTS&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;OAuth&lt;/li&gt;
		&lt;li&gt;ActiveSupport&lt;/li&gt;
		&lt;li&gt;Mocha (for testing)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;INSTALL&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;sudo gem install spacer&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;DOCUMENTATION&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Rubyforge: &lt;a href='http://rubyforge.org/projects/spacer/'&gt;http://rubyforge.org/projects/spacer/&lt;/a&gt; (submit bugs here)&lt;/p&gt;


	&lt;p&gt;RDocs: &lt;a href='http://spacer.rubyforge.org/'&gt;http://spacer.rubyforge.org/&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Goolge Group: &lt;a href='http://groups.google.com/group/spacer-ruby'&gt;http://groups.google.com/group/spacer-ruby&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;NOTES&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;MySpace is still actively making changes to their &lt;span class='caps'&gt;API&lt;/span&gt;, so this is far from a 1.0 release.  However, as of the day of this post, it implements all the features of their &lt;span class='caps'&gt;REST API&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Thanks to Ken Pelletier for coming up with the very creative name.&lt;/p&gt;


	&lt;p&gt;&lt;span&gt;photo credits: &lt;a href='http://bub.blicio.us/'&gt;bub.blicio.us&lt;/a&gt; and &lt;a href='http://laughingsquid.com/'&gt;Scott Beale / Laughing Squid&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=orx75XmuURs:WBX-ZjqTkmA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=orx75XmuURs:WBX-ZjqTkmA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/2/11/spacer-myspace-ruby-api-released</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-02-11:1653</id>
    <published>2008-02-11T07:57:00Z</published>
    <updated>2008-02-11T08:08:41Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/O-YkBN_eJyc/introducing-youtube-g" rel="alternate" type="text/html" />
    <title>Introducing YouTube-G</title>
<content type="html">
            &lt;p&gt;&lt;a href='http://lemurware.blogspot.com/'&gt;Walter Korman&lt;/a&gt; and I are proud to release youtube-g version 0.4.1.&lt;/p&gt;


	&lt;p&gt;youtube-g is a pure Ruby client for the YouTube GData &lt;span class='caps'&gt;API&lt;/span&gt;. It provides an easy
way to access the latest YouTube video search results from your own programs.
In comparison with the earlier Youtube search interfaces, this new &lt;span class='caps'&gt;API&lt;/span&gt; and
library offers much-improved flexibility around executing complex search
queries to obtain well-targeted video search results.&lt;/p&gt;


	&lt;p&gt;More detail on the underlying source Google-provided &lt;span class='caps'&gt;API&lt;/span&gt; is available at:&lt;/p&gt;


	&lt;p&gt;&lt;a href='http://code.google.com/apis/youtube/overview.html'&gt;http://code.google.com/apis/youtube/overview.html&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;FEATURES&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Aims to be in parity with Google’s YouTube GData &lt;span class='caps'&gt;API&lt;/span&gt;.  Core functionality is currently present—work is in progress to fill in the rest.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;USE&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Create a client:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;require 'youtube_g'
client = YouTubeG::Client.new&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Basic queries:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;client.videos_by(:query =&amp;gt; "penguin")
client.videos_by(:tags =&amp;gt; ['tiger', 'leopard'])
client.videos_by(:categories =&amp;gt; [:news, :sports])
client.videos_by(:categories =&amp;gt; [:news, :sports], :tags =&amp;gt; ['soccer', 'football'])
client.videos_by(:user =&amp;gt; 'liz')&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Standard feeds:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;client.videos_by(:most_viewed)
client.videos_by(:top_rated, :time =&amp;gt; :today)&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Advanced queries (with boolean operators OR (either), &lt;span class='caps'&gt;AND&lt;/span&gt; (include), &lt;span class='caps'&gt;NOT&lt;/span&gt; (exclude)):&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;client.videos_by(:categories =&amp;gt; { :either =&amp;gt; [:news, :sports], :exclude =&amp;gt; [:comedy] }, :tags =&amp;gt; { :include =&amp;gt; ['football'], :exclude =&amp;gt; ['soccer'] })&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;DOCUMENTATION&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Rubyforge project: &lt;a href='http://rubyforge.org/projects/youtube-g/'&gt;http://rubyforge.org/projects/youtube-g/&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;RDoc: &lt;a href='http://youtube-g.rubyforge.org/'&gt;http://youtube-g.rubyforge.org/&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Google Group: &lt;a href='http://groups.google.com/group/ruby-youtube-library?hl=en'&gt;http://groups.google.com/group/ruby-youtube-library?hl=en&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;INSTALL&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;sudo gem install youtube-g&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Changes:&lt;/p&gt;


	&lt;p&gt;0.4.1 / 2008-02-11&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Added 3GPP video format [shane]&lt;/li&gt;
		&lt;li&gt;Fixed tests [shane]&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;0.4.0 / 2007-12-18&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Fixed &lt;span class='caps'&gt;API&lt;/span&gt; projection in search &lt;span class='caps'&gt;URL&lt;/span&gt; [Pete Higgins]&lt;/li&gt;
		&lt;li&gt;Fixed embeddable video searching [Pete Higgins]&lt;/li&gt;
		&lt;li&gt;Fixed video embeddable detection [Pete Higgins]&lt;/li&gt;
		&lt;li&gt;Fixed unique id hyphen detection [Pete Higgins, Chris Taggart]&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;0.3.0 / 2007-09-17&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Initial public release&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;NOTES&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;&lt;em&gt;Our previous library, youtube, has been deprecated.  Please use youtube-g from now on.&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;Who can guess what the name youtube-g is in reference to? Hint: Like us, you probably used &lt;a href='http://en.wikipedia.org/wiki/Bulletin_board_system'&gt;&lt;span class='caps'&gt;BBS&lt;/span&gt;’s&lt;/a&gt; before the days of the web, when wide adoption of &lt;span class='caps'&gt;TCP&lt;/span&gt;/IP was still a few years away.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=O-YkBN_eJyc:hCSsu143Xs0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=O-YkBN_eJyc:hCSsu143Xs0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/2/11/introducing-youtube-g</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2008-02-11:1644</id>
    <published>2008-02-11T00:54:00Z</published>
    <updated>2008-02-11T02:09:21Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/m5AcH-A7JOc/super-rewards-client-api-released" rel="alternate" type="text/html" />
    <title>Super Rewards Client API Released</title>
<content type="html">
            &lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;DESCRIPTION&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;A Ruby client for the $uper Rewards &lt;span class='caps'&gt;API&lt;/span&gt; by &lt;span class='caps'&gt;KITN&lt;/span&gt; Media, the Facebook monetization tool.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;FEATURES&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Aims to implement all the functionality of the $uper Rewards service&lt;/li&gt;
	&lt;/ul&gt;


&lt;strong&gt;&lt;span class='caps'&gt;USE&lt;/span&gt;&lt;/strong&gt;
&lt;code&gt;&lt;pre&gt;
offer_code = SuperRewards::Client.offers_display(:iframe, uid)
points = SuperRewards::Client.get_points(uids).first.user.points
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;REQUIREMENTS&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;span class='caps'&gt;API&lt;/span&gt; / Secret keys for the $uper Rewards service&lt;/li&gt;
		&lt;li&gt;Shoulda gem (for testing)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;INSTALL&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;sudo gem install superrewards&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;DOCUMENTATION&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Rubyforge: &lt;a href='http://rubyforge.org/projects/superrewards/'&gt;http://rubyforge.org/projects/superrewards/&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;RDocs: &lt;a href='http://superrewards.rubyforge.org/'&gt;http://superrewards.rubyforge.org/&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class='caps'&gt;NOTES&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;I released this on December 17th, 2007, so the service may have changed since then.  All the tests still pass as of the day of this post.&lt;/p&gt;


	&lt;p&gt;Thanks to Eugene from &lt;span class='caps'&gt;KITN&lt;/span&gt; Media for helping me with debugging and testing, and Jason Bailey for moral support.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=m5AcH-A7JOc:8CG0Q8hoep8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=m5AcH-A7JOc:8CG0Q8hoep8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2008/2/11/super-rewards-client-api-released</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2007-10-27:619</id>
    <published>2007-10-27T06:38:00Z</published>
    <updated>2007-10-27T17:24:01Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/5yOSXk4IZXU/for-sale-youcast-white-label-video-sharing-site" rel="alternate" type="text/html" />
    <title>YouCast: White-label video sharing site</title>
<content type="html">
            &lt;p&gt;YouCast is a Ruby on Rails video sharing application that you host on your own servers.  It can be rebranded easily for your company or used as is.&lt;/p&gt;


	&lt;p&gt;Main features:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Upload videos, images, and music via web or &lt;b&gt;mobile phone&lt;/b&gt; via &lt;span class='caps'&gt;SMS&lt;/span&gt;/MMS attachment&lt;/li&gt;
		&lt;li&gt;Create a playlist of your videos, images, and music&lt;/li&gt;
		&lt;li&gt;Play your media in a Flash player&lt;/li&gt;
		&lt;li&gt;Get the code for the player to embed in any site (myspace, blog, etc)&lt;/li&gt;
		&lt;li&gt;Generates thumbnails for videos&lt;/li&gt;
		&lt;li&gt;Multi-user support with user login and user management&lt;/li&gt;
		&lt;li&gt;Export your playlist in &lt;a href='http://en.wikipedia.org/wiki/XSPF'&gt;&lt;span class='caps'&gt;XSPF&lt;/span&gt;/Spiff&lt;/a&gt; format&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Tech specs:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Ruby on Rails application designed with RESTful methodology&lt;/li&gt;
		&lt;li&gt;Supports all major video and image formats, and mp3 for music&lt;/li&gt;
		&lt;li&gt;Encodes all video to Flash&lt;/li&gt;
		&lt;li&gt;Uses &lt;a href='http://mms2r.rubyforge.org/'&gt;&lt;span class='caps'&gt;MMS2R&lt;/span&gt;&lt;/a&gt; for mobile media processing&lt;/li&gt;
		&lt;li&gt;&lt;a href='http://en.wikipedia.org/wiki/XSPF'&gt;&lt;span class='caps'&gt;XSPF&lt;/span&gt;/Spiff&lt;/a&gt; format used for playlists for maximum portability&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;What you get:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Full source code&lt;/li&gt;
		&lt;li&gt;10 hours of free consulting, including help with installation and migration&lt;/li&gt;
		&lt;li&gt;Option to hire me for additional consulting&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;What can you do with YouCast?&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Create an internal video sharing site for your company or small business&lt;/li&gt;
		&lt;li&gt;Use it as a base for your own video-related site&lt;/li&gt;
		&lt;li&gt;Merge it with your existing site to add video and mobile media support&lt;/li&gt;
		&lt;li&gt;Re-create YouTube to impress your friends&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;How much does it cost?&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;YouCast will cost a yet-to-be-determined one-time fee, which includes free updates to that version.  I will determine the cost once I get a better idea of demand.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Email me at the address in the &lt;a href='http://shanesbrain.net/about-me'&gt;About Me page&lt;/a&gt; if you are interested in seeing a demo and/or purchase.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=5yOSXk4IZXU:WtarIRsX4cs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=5yOSXk4IZXU:WtarIRsX4cs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2007/10/27/for-sale-youcast-white-label-video-sharing-site</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2007-10-10:485</id>
    <published>2007-10-10T21:30:00Z</published>
    <updated>2007-10-10T21:30:27Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/in8_mJW9e8k/jookbox-facebook-application-launched" rel="alternate" type="text/html" />
    <title>Video Jukebox Facebook Application Launched</title>
<content type="html">
            &lt;p&gt;&lt;img src='http://shanesbrain.net/assets/2007/10/10/jukebox_shanesbrain.png' alt='' /&gt;&lt;/p&gt;


	&lt;p&gt;&lt;a href='http://apps.facebook.com/jookbox/'&gt;Video Jukebox&lt;/a&gt; finds music videos of your favorite music and lets you put them on your profile.&lt;/p&gt;


	&lt;p&gt;You must have the favorite music section in your profile filled out for Video Jukebox to figure out what you like.&lt;/p&gt;


	&lt;p&gt;This uses a pre-release version of &lt;a href='http://rubyforge.org/projects/youtube-g/'&gt;youtube-g&lt;/a&gt;, a Ruby &lt;span class='caps'&gt;API&lt;/span&gt; for the &lt;a href='http://code.google.com/apis/youtube/overview.html'&gt;GData&lt;/a&gt; version of YouTube’s &lt;span class='caps'&gt;API&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href='http://lemurware.blogspot.com/'&gt;Walter Korman&lt;/a&gt; for brainstorming the idea with me and Jesus Duran for help with the name.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=in8_mJW9e8k:LNc5yMKkPQU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=in8_mJW9e8k:LNc5yMKkPQU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2007/10/10/jookbox-facebook-application-launched</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2007-09-01:432</id>
    <published>2007-09-01T19:28:00Z</published>
    <updated>2007-09-13T07:56:31Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/7LLV-MNkjm0/myfitbuddy-com-launched" rel="alternate" type="text/html" />
    <title>MyFitBuddy.com Launched!</title>
<content type="html">
            &lt;p&gt;&lt;img src='http://shanesbrain.net/assets/2007/9/4/myfitbuddy_pr.jpg' alt='MyFitBuddy.com logo' /&gt;&lt;/p&gt;

&lt;p&gt;I’m pleased to announce the launch of &lt;a href='http://myfitbuddy.com'&gt;MyFitBuddy.com&lt;/a&gt;, a workout tracking tool with social networking features.  It allows you to log your workouts at the gym, sports training, your run in the park, or any other type of physical activity, and see the improvement over time.  You can add your workout buddies as friends, and keep in touch with their workouts as well.  &lt;/p&gt;

&lt;p&gt;I mainly built this site for myself, as I wanted a super simple way to keep a record of my workouts and see graphs of my improvement.  I thought it would be a great idea for a social site, as many studies have shown that people exercise more when they have a workout buddy or do it as part of a group.  In &lt;a href='http://myfitbuddy.com'&gt;MyFitBuddy.com&lt;/a&gt;, you will be motivated to exercise by seeing the activity of your friends and others on the site.    &lt;/p&gt;

&lt;p&gt;Some of the other interesting features on the site include user generated exercise information from Wikipedia, and videos of exercise form from YouTube.  Soon I’ll be adding weight and calorie tracking, as well as the ability to SMS text in your workouts from your mobile phone.  The site is currently completely free to use.&lt;/p&gt;

&lt;p&gt;Give it a spin and help me knock off some bugs.  I’d love to hear feedback and any suggestions.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Update:&lt;/em&gt; &lt;a href='http://www.killerstartups.com/'&gt;KillerStarups&lt;/a&gt;, a sort of digg for startups, is the first to review MyFitBuddy.com.  If you are in a generous mood, &lt;a href='http://www.killerstartups.com/Web20/myfitbuddy--Keep-Track-of-Workouts-Online/'&gt;please vote for it&lt;/a&gt;.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=7LLV-MNkjm0:SHQfvcKFV6s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=7LLV-MNkjm0:SHQfvcKFV6s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2007/9/1/myfitbuddy-com-launched</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2007-08-14:403</id>
    <published>2007-08-14T18:57:00Z</published>
    <updated>2007-08-14T19:12:53Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/rnCJAiHrKWk/pardon-the-dust" rel="alternate" type="text/html" />
    <title>Pardon the Dust</title>
<content type="html">
            &lt;p&gt;I recently migrated this blog from Typo to Mephisto and have a few cleanup activities to perform.  Markdown formatting has to be converted, sidebar stuff has to be added, and the design needs some minor tweaks to get things looking like how they did before.  So sorry for the temporary ugliness.&lt;/p&gt;


	&lt;p&gt;I’ve been really busy working on client projects and trying to get my own startup launched, and therefore have been falling behind on the open source work.  Thanks to those who sent me contributions to the youtube gem.  I plan on making one more release before working on version 2.  youtube2 will use the GData format since YouTube is changing the &lt;span class='caps'&gt;API&lt;/span&gt; to fit more with Google’s other APIs.  It is slated for release later in the year.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=rnCJAiHrKWk:xtj1uI0yOrM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=rnCJAiHrKWk:xtj1uI0yOrM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2007/8/14/pardon-the-dust</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2007-06-12:38</id>
    <published>2007-06-12T22:42:05Z</published>
    <updated>2007-07-17T19:27:47Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/5y6rcN1L9sM/youtube-gem-0-8-6-released" rel="alternate" type="text/html" />
    <title>&gt; YouTube Gem 0.8.6 Released</title>
<content type="html">
            &lt;p&gt;This is mainly a bugfix release but also makes it easier to search for videos by category.  Searching by category greatly helps in finding videos that are more relevant.  You can now do:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;videos = videos_by_category_and_tag(YouTube::Category::MUSIC, 'bush')&lt;/code&gt;&lt;/pre&gt;

or if you wanted to:
&lt;pre&gt;&lt;code&gt;videos = videos_by_category_and_tag(YouTube::Category::NEWS_POLITICS, 'bush')&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;For more details check out the &lt;a href='http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/trunk/CHANGELOG?root=youtube&amp;view=markup'&gt;&lt;span class='caps'&gt;CHANGELOG&lt;/span&gt;&lt;/a&gt;.  Thanks to all the contributers, &lt;a href='http://lemurware.blogspot.com/'&gt;Walter Korman&lt;/a&gt;, &lt;a href='http://rufy.com/'&gt;Lucas Carlson&lt;/a&gt;, Rob Tsuk, and Thomas Cox.&lt;/p&gt;


	&lt;p&gt;Related posts:&lt;br /&gt;&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=5y6rcN1L9sM:wDhqeDbuMT4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=5y6rcN1L9sM:wDhqeDbuMT4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2007/6/12/youtube-gem-0-8-6-released</feedburner:origLink></entry>
  <entry xml:base="http://shanesbrain.net/">
    <author>
      <name>shane</name>
    </author>
    <id>tag:shanesbrain.net,2007-05-30:37</id>
    <published>2007-05-30T13:33:10Z</published>
    <updated>2007-07-17T19:27:47Z</updated>
    <link href="http://feedproxy.google.com/~r/ShanesBrainExtension/~3/ldRuSZj3_fU/managing-database-yml-with-capistrano-2-0" rel="alternate" type="text/html" />
    <title>Managing database.yml with Capistrano 2.0</title>
<content type="html">
            &lt;p&gt;Jeremy Voorhis posted &lt;a href='http://www.jvoorhis.com/articles/2006/07/07/managing-database-yml-with-capistrano'&gt;a really great Capistrano recipe for managing database.yml&lt;/a&gt; which dynamically creates a database.yml file in your shared directory on setup, and symlinks your app’s database.yml once it’s deployed.  This is great if you don’t version control your database.yml file for security reasons or working with multiple developers.  &lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;changes the syntax for task callbacks and gets rid of the useful render method.  However, using &lt;a href='http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/'&gt;ERb&lt;/a&gt;, Ruby's built-in templating system, isn't much more difficult than using the old render method.  Here is Jeremy's script updated for Capistrano 2.0 using ERb and the new namespaced callback syntax.&lt;/code&gt;&lt;/pre&gt;


&lt;pre&gt;&lt;code&gt;require 'erb'

before "deploy:setup", :db
after "deploy:update_code", "db:symlink" 

namespace :db do
  desc "Create database yaml in shared path" 
  task :default do
    db_config = ERB.new &amp;lt;&amp;lt;-eof base:&gt;&amp;lt;&amp;lt;:&gt;&amp;lt;&amp;lt;:&gt;&amp;lt;&amp;lt;:&gt;&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Until I get better syntax highlighting for this blog, check out the &lt;a href='http://pastie.caboo.se/67170'&gt;Pastie for the color version&lt;/a&gt;.  For more info on whats new in Capistrano 2.0, check out &lt;a href='http://weblog.jamisbuck.org/2007/5/11/capistrano-2-0-preview-2'&gt;Jamis’ preview&lt;/a&gt; and &lt;a href='http://nubyonrails.com/articles/2007/04/27/tips-for-upgrading-to-capistrano-2'&gt;Geoff’s post&lt;/a&gt;.  Also, props to Jamis for suggesting I use ERb directly.&lt;/p&gt;


	&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; Updated code to use its own :db namespace instead of the default one.  The database yaml file will be created by the default :db task, and the symlink will be created by the db:symlink task.  Note how namespaces in Cap 2.0 allows us to have two symlink tasks, one in the deploy namespace and the other in db.&lt;/p&gt;
          &lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=ldRuSZj3_fU:70W9Bc3N0d4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ShanesBrainExtension?a=ldRuSZj3_fU:70W9Bc3N0d4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ShanesBrainExtension?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>  <feedburner:origLink>http://shanesbrain.net/2007/5/30/managing-database-yml-with-capistrano-2-0</feedburner:origLink></entry>
</feed>
