<?xml version="1.0"?>
<rss version="2.0">
  <channel><title>New AJAX sample application for Fins</title><link>http://bill.welliver.org//space/start/2006-04-25/1</link><description>I was surfing around the other day and ran across a little screencast&amp;#91;1]&#xD;
on the Ruby on Rails website. The point of the screencast was basically&#xD;
demonstrating how to create an AJAX application in a few minutes using&#xD;
Rails and Prototype (a javascript library). Well, obviously Ruby doesn't&#xD;
have the market cornered on ease of development. We in the Pike world have&#xD;
options, too.&lt;p class="paragraph"/&gt;
So, last night I threw together the Fins&amp;#91;2] equivalent that searches&#xD;
SmugMug&amp;#91;3] for images and returns the results to you. It's functionally&#xD;
equivalent to the Rails demo application that uses Flickr.&lt;p class="paragraph"/&gt;
A running instance of the sample app can be found here:&lt;p class="paragraph"/&gt;
&lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://buoy.riverweb.com:9098/"&gt;http://buoy.riverweb.com:9098/&lt;/a&gt;&lt;/span&gt;&lt;p class="paragraph"/&gt;
The code is available here:&lt;p class="paragraph"/&gt;
&lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://hww3.riverweb.com/dist/Fins/samples"&gt;http://hww3.riverweb.com/dist/Fins/samples&lt;/a&gt;&lt;/span&gt;&lt;p class="paragraph"/&gt;
You'll note that most of the bulk of the download consists of the Dojo&amp;#91;4]&#xD;
javascript library we're using to achieve some of the client side&#xD;
functionality. You'll also need to download Fins, which can be found in&#xD;
the directory immediately above. Simply untar both files, and run&lt;p class="paragraph"/&gt;
&lt;div class="code"&gt;&lt;pre&gt;&lt;pre&gt;&#xD;
./fin_serve.pike -p yourportnumber /path/to/smugmug&#xD;
&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class="paragraph"/&gt;
&#xD;
If you don't have the Public.Image.SmugMug and Public.Web.RSS modules,&#xD;
this app won't do much for you, but that's sort of beside the point.&lt;p class="paragraph"/&gt;
The only other difference between the amount of work required to achieve&#xD;
the pike version is that you're responsible for doing a lot of the&#xD;
javascript work yourself. I'm not sure how I feel about the Rails way of&#xD;
doing things, which is to say there's a lot of magic involved. I suppose&#xD;
it might be worthwhile to build some convenience functions that make some&#xD;
of this easier.&lt;p class="paragraph"/&gt;
As always, comments and suggestions are welcome!&lt;p class="paragraph"/&gt;
&amp;#91;1] &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://media.rubyonrails.org/video/flickr-rails-ajax.mov"&gt;http://media.rubyonrails.org/video/flickr-rails-ajax.mov&lt;/a&gt;&lt;/span&gt; &lt;br class="break"/&gt;
&amp;#91;2] &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://hww3.riverweb.com/space/pike/Fins"&gt;http://hww3.riverweb.com/space/pike/Fins&lt;/a&gt;&lt;/span&gt; &lt;br class="break"/&gt;
&amp;#91;3] &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://www.smugmug.com"&gt;http://www.smugmug.com&lt;/a&gt;&lt;/span&gt; &lt;br class="break"/&gt;
&amp;#91;4] &lt;span class="nobr"&gt;&lt;img height="9" width="8" src="/static/images/Icon-Extlink.png" alt="&amp;#91;external]"/&gt;&lt;a href="http://www.dojotoolkit.org"&gt;http://www.dojotoolkit.org&lt;/a&gt;&lt;/span&gt;&lt;p class="paragraph"/&gt;
</description><generator>Fins 0.9.7</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><category>web apps</category><category>Fins</category><category>pike</category></channel>
</rss>
