<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0" -->
<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/"
	>

<channel>
	<title>...begins in wonder</title>
	<link>http://beginsinwonder.com</link>
	<description>code, poetry, philosophy, folly</description>
	<pubDate>Fri, 02 May 2008 21:41:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>
	<language>en</language>
			<item>
		<title>alonetone</title>
		<link>http://beginsinwonder.com/2008/05/03/alonetone/</link>
		<comments>http://beginsinwonder.com/2008/05/03/alonetone/#comments</comments>
		<pubDate>Fri, 02 May 2008 21:41:19 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2008/05/03/alonetone/</guid>
		<description><![CDATA[

]]></description>
			<content:encoded><![CDATA[<p><embed src="http://alonetone.com/flash/alonetone_player.swf" width="320" height="140" allowfullscreen="true" allowscriptaccess="always" flashvars="&#038;file=http://alonetone.com/diegesisfreak/playlists/hauntology.xml&#038;height=140&#038;width=320&#038;frontcolor=0x3C3C3C&#038;backcolor=0xf3f3f3&#038;lightcolor=0xFF944B&#038;screencolor=0xFF944B&#038;displaywidth=120&#038;showdigits=false&#038;showdownload=true" />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2008/05/03/alonetone/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Ruby on Rails plugin configuration</title>
		<link>http://beginsinwonder.com/2007/10/15/ruby-on-rails-plugin-configuration/</link>
		<comments>http://beginsinwonder.com/2007/10/15/ruby-on-rails-plugin-configuration/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 02:07:23 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/10/15/ruby-on-rails-plugin-configuration/</guid>
		<description><![CDATA[I work on Ruby on Rails plugins fairly often, and I&#8217;m always curious how people make their plugins configurable.
For example, ActiveMessaging uses several config files - some are yaml, some are ruby - all of them get loaded when the plugin gets initialized.  ActiveMessaging has more than a bit of configuration, so distinct files [...]]]></description>
			<content:encoded><![CDATA[<p>I work on Ruby on Rails plugins fairly often, and I&#8217;m always curious how people make their plugins configurable.</p>
<p>For example, <a href="http://code.google.com/p/activemessaging/">ActiveMessaging</a> uses several config files - some are yaml, some are ruby - all of them get loaded when the plugin gets initialized.  ActiveMessaging has more than a bit of configuration, so distinct files for it makes sense.  Also, it has less singular values that get set, and more sets of configuration values (e.g. all the values for a message broker connection).</p>
<p><a href="http://comatose.rubyforge.org/index.html">Comatose</a> uses a singleton with attributes that get defined in a block - so like the Rails initializer, you can call this define method in an environment.rb.  Again, this makes sense, there are only a few values to fiddle with, and you very often don&#8217;t have to mess with them at all.</p>
<p>Not sure if I&#8217;ll use it, but I&#8217;ve been playing with an idea where you can use constants to override config values using constants.  Makes sense for a plugin where you have default values that would rarely, and often individually, be overridden.  Nice thing about this is that constants can be defined even before the config class, so if you need them to be set before the plugin is loaded, this provides a way.  </p>
<p>Anyway, to make it easier, I wrote a little helper method to define class attributes, set the default value, and check for constants to override the default, all at one time.</p>
<p><code><br />
class Config<br />
&nbsp;<br />
&nbsp;&nbsp;class &lt;&lt;self<br />
&nbsp;&nbsp;&nbsp;&nbsp;def set_config_value(var_sym, default=nil)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cattr_accessor var_sym<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;const_name = var_sym.to_s.upcase<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = (Object.constants.include?(const_name)) ? Object.const_get(const_name): default<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class_variable_set(&quot;@@#{var_sym}&quot;.intern, value)<br />
&nbsp;&nbsp;&nbsp;&nbsp;end<br />
&nbsp;&nbsp;end<br />
&nbsp;<br />
&nbsp;&nbsp;# SOME_CONFIG_VALUE set as a constant will override the default<br />
&nbsp;&nbsp;set_config_value :some_config_value, &quot;this is a default&quot;<br />
&nbsp;<br />
end<br />
</code><!--fbf222b5a71b4bfdebc18617fa867ffd--><!--ccdb5f0cddb0142b6a9371b29e2f4462--><!--0f6b89b699e49565911350ff526a483f--><!--d0ce45f3fb3835df831e33976c908a38--><!--fbec8e9ceeb20e34c3b930700ed1599f--><!--50b0e61653b3e85141ce9903842163b8-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/10/15/ruby-on-rails-plugin-configuration/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>The 4th Network: Todd Mundt on PRX</title>
		<link>http://beginsinwonder.com/2007/06/26/the-4th-network-todd-mundt-on-prx/</link>
		<comments>http://beginsinwonder.com/2007/06/26/the-4th-network-todd-mundt-on-prx/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 16:23:56 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>radio</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/06/26/the-4th-network-todd-mundt-on-prx/</guid>
		<description><![CDATA[We had some fun folks from both the station/network side of PRX, and the independent producer side of the biz come hang out with us and talk about what to do next.  Much of what we heard is now fermenting into the sweet brew of the next PRX release.  For a non-PRX take [...]]]></description>
			<content:encoded><![CDATA[<p>We had some fun folks from both the station/network side of PRX, and the independent producer side of the biz come hang out with us and talk about what to do next.  Much of what we heard is now fermenting into the sweet brew of the next PRX release.  For a non-PRX take on the meeting and the future of PRX, pull a few gems from the <a href="http://toddmundt.com/blog/2007/06/25/talking-to-prx/">bag of insights</a> that <a href="http://toddmundt.com/blog/about/">Todd Mundt</a> left on his bloggy doorstep:</p>
<blockquote><p>PRX has been around just long enough that now is good time to reassess strategy. That seems to be happening. But a few things are already clear: PRX is public radio’s fourth network; it’s the open source public radio network, and for those of us who are beginning to look for fresh, new voices to add to our schedules, it’s the best place to start.</p></blockquote>
<p><!--9732ea7630742b9b98accb1704cf9a9f--><!--c522cc91ccea2ac4e1758dd56101447b--><!--57776accc3a8d865240d7fc00593d6e4--><!--89ddee720c53fefc246d8a5f504a5fa0-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/06/26/the-4th-network-todd-mundt-on-prx/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Beantown Tapfest live</title>
		<link>http://beginsinwonder.com/2007/05/18/beantown-tapfest-live/</link>
		<comments>http://beginsinwonder.com/2007/05/18/beantown-tapfest-live/#comments</comments>
		<pubDate>Fri, 18 May 2007 14:33:54 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/05/18/beantown-tapfest-live/</guid>
		<description><![CDATA[With the Tapestry tap celebration this weekend, it&#8217;s just in the nick of time that the website for the Beantown Tapfest is now fleshed out.
I still need to spend some time making it prettier, adding images and such things, but most importantly it now has the list of events, and the online registration form which [...]]]></description>
			<content:encoded><![CDATA[<p>With the Tapestry tap celebration this weekend, it&#8217;s just in the nick of time that the website for the <a href="http://beantowntapfest.com">Beantown Tapfest</a> is now fleshed out.</p>
<p>I still need to spend some time making it prettier, adding images and such things, but most importantly it now has the list of events, and the online registration form which integrates with PayPal (Website Payments Standard in conjuntion with IPN).  I am not a big PHP fan, but I do like being able to package up and deploy my new &#8216;pprf&#8217; (PayPal Registration Form) plug-in to any WordPress site for testing.  I need to make it a bit more generic, and add one more admin page, but hey, it works and I&#8217;ll probably release it as open source soon.</p>
<p>I&#8217;m mostly happy with the logo, as IANAD(esigner) - anything that comes from Illustrator out of my computer should be suspect, but I think the logo looks good.</p>
<p>Now on with the day, and hoping a get some rest before Tapestry classes kick my butt.<!--0e8fed52780a74be81560f2a6867f63e--><!--da8c99fb259c6350bcd7d3fdb4e62ed9--><!--b941992f7fd5fc384e09df7d12cffd7b-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/05/18/beantown-tapfest-live/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>My first Rails patch</title>
		<link>http://beginsinwonder.com/2007/05/17/my-first-rails-patch/</link>
		<comments>http://beginsinwonder.com/2007/05/17/my-first-rails-patch/#comments</comments>
		<pubDate>Wed, 16 May 2007 18:56:02 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>code</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/05/17/my-first-rails-patch/</guid>
		<description><![CDATA[&#8230;it&#8217;s small, but found a bug in the new filter code in the ActionController for rails edge.
Showed up using habtm with ActiveScaffold - go figure.
Lesson learned - Array.insert should probably be named Array.insert! - it changes the underlying array, and sometimes that&#8217;s not what you mean to do.
http://dev.rubyonrails.org/ticket/8383
Now we&#8217;ll see if it gets committed.

]]></description>
			<content:encoded><![CDATA[<p>&#8230;it&#8217;s small, but found a bug in the new filter code in the ActionController for rails edge.<br />
Showed up using habtm with ActiveScaffold - go figure.</p>
<p>Lesson learned - Array.insert should probably be named Array.insert! - it changes the underlying array, and sometimes that&#8217;s not what you mean to do.</p>
<p><a href="http://dev.rubyonrails.org/ticket/8383">http://dev.rubyonrails.org/ticket/8383</a></p>
<p>Now we&#8217;ll see if it gets committed.<!--34af93603bde090d018259bca2b1d218--><!--3a05d01bae772fffbe4d3791db8c3d9b--><!--11ff806daeeb2337e401a8815e82bd44-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/05/17/my-first-rails-patch/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Trying Amazon EC2 - waiting impatiently</title>
		<link>http://beginsinwonder.com/2007/05/09/trying-amazon-ec2-waiting-impatiently/</link>
		<comments>http://beginsinwonder.com/2007/05/09/trying-amazon-ec2-waiting-impatiently/#comments</comments>
		<pubDate>Tue, 08 May 2007 22:04:45 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>code</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/05/09/trying-amazon-ec2-waiting-impatiently/</guid>
		<description><![CDATA[We use Amazon S3 at PRX for images and more importantly all our audio files.  We love it.
What we really want to do is use EC2 - look at the gigavox success story on amazon&#8217;s site - we need almost the same things, and want to implement almost the same arch - except using [...]]]></description>
			<content:encoded><![CDATA[<p>We use Amazon S3 at PRX for images and more importantly all our audio files.  We love it.</p>
<p>What we really want to do is use EC2 - look at the <a href="http://www.amazon.com/gp/browse.html?node=341907011">gigavox success story on amazon&#8217;s site</a> - we need almost the same things, and want to implement almost the same arch - except using rails and activemessaging.</p>
<p>The problem is the EC2 closed beta - ugh - we&#8217;ve been waiting, oh so impatiently. In the meantime everyone shuold go get their feet wet with <a href="http://info.rightscale.com/">RightScale</a>.  You get 10 hours to play with, even without your own EC2 keys.<!--5ed9a36362296a8e1c97c7500d69316d--><!--f8e23a9e21f4d3bdff6b6bc05fa4db1d-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/05/09/trying-amazon-ec2-waiting-impatiently/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Comatose Extensions</title>
		<link>http://beginsinwonder.com/2007/05/02/comatose-extensions/</link>
		<comments>http://beginsinwonder.com/2007/05/02/comatose-extensions/#comments</comments>
		<pubDate>Tue, 01 May 2007 20:39:37 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>code</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/05/02/comatose-extensions/</guid>
		<description><![CDATA[comatose is a lovely terse cms that you can integrate into a web application - unlike other rails cms systems which are the application.  Thing is, terse is great until you need something it does not do.  
At PRX we wanted to be able to upload/resize/attach images and files, have a preview mode [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://comatose.rubyforge.org/">comatose</a> is a lovely terse cms that you can integrate into a web application - unlike other rails cms systems which are the application.  Thing is, terse is great until you need something it does not do.  </p>
<p>At PRX we wanted to be able to upload/resize/attach images and files, have a preview mode to see what the home page would look like before we publish parts of the content, and also we wanted to be able to access session info so we could make some content vary based on info in a user&#8217;s session (this is also part of how the &#8216;preview&#8217; mode works).</p>
<p><a href="http://rubyforge.org/forum/forum.php?thread_id=13826&#038;forum_id=7970">Folks on the forums</a> also seem to be trying to figure this kind of thing out, so I humbly offer what I have gotten to work.</p>
<p>So without exposing all the work I am cleaning up on extending comatose, <a href="http://www.rorpaste.com/paste/details/743">here is a bit of code</a> showing how to add the session info to the comatose pages so it can be accessed and used.</p>
<p>As for the rest of my enhancements - well, I need to make it into a plugin I think, that gets installed on top of comatose.  That will have to wait, as I am too busy adding enhancements at the moment to stop and package it&#8230;.<!--5a94a3cf7a2a4ffd083ebceb6a1f7f96--><!--20033d58cad75a6fb6457e144b78dd3f--><!--bdabb1e8ad3cf1c7a93af2a90e9262f6-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/05/02/comatose-extensions/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Weekend America covers Public Radio Talent Quest</title>
		<link>http://beginsinwonder.com/2007/04/21/weekend-america-covers-public-radio-talent-quest/</link>
		<comments>http://beginsinwonder.com/2007/04/21/weekend-america-covers-public-radio-talent-quest/#comments</comments>
		<pubDate>Sat, 21 Apr 2007 17:24:58 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>radio</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/04/21/weekend-america-covers-public-radio-talent-quest/</guid>
		<description><![CDATA[Weekend America has a segment this week, and a spot on their home page, about the public radio talent quest.  Bill Radke interviews Jake Shapiro about the contest, and what it&#8217;ll take to win.

]]></description>
			<content:encoded><![CDATA[<p><a href="http://weekendamerica.publicradio.org/programs/2007/04/21/public_radio_talent_.html">Weekend America</a> has a segment this week, and a spot on their home page, about the public radio talent quest.  Bill Radke interviews Jake Shapiro about the contest, and what it&#8217;ll take to win.<!--b59e3263160ec9eff942c55927958d46-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/04/21/weekend-america-covers-public-radio-talent-quest/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Competition Begins for Public Radio &#8216;Idol&#8217;</title>
		<link>http://beginsinwonder.com/2007/04/02/competition-begins-for-public-radio-idol/</link>
		<comments>http://beginsinwonder.com/2007/04/02/competition-begins-for-public-radio-idol/#comments</comments>
		<pubDate>Mon, 02 Apr 2007 15:06:41 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>radio</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/04/02/competition-begins-for-public-radio-idol/</guid>
		<description><![CDATA[NY Times has some coverage today on the Talent Quest Competition that PRX has undertaken with a grant from CPB.
Contest opens April 16th - be or pick the next Ira Glass!
read more &#124; digg story

]]></description>
			<content:encoded><![CDATA[<p>NY Times has some coverage today on the Talent Quest Competition that <a href="htp://prx.org">PRX</a> has undertaken with a grant from <a href="http://cpb.org">CPB</a>.<br />
Contest opens April 16th - be or pick the next Ira Glass!</p>
<p><a href="http://www.nytimes.com/2007/04/02/business/media/02radio.html?ex=1333166400&amp;en=21ec591f6f956fed&amp;ei=5124&amp;partner=digg&amp;exprod=digg">read more</a> | <a href="http://digg.com/offbeat_news/Competition_Begins_for_Public_Radio_Idol">digg story</a><!--652cde6d6cea78326aa63817545d91c6--><!--0ed2716edf27e3cf2eca4fb779aab90e--><!--abea45bd0b282155e137f954d19d8175-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/04/02/competition-begins-for-public-radio-idol/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>PRX uses ActiveMessaging</title>
		<link>http://beginsinwonder.com/2007/03/10/prx-uses-activemessaging/</link>
		<comments>http://beginsinwonder.com/2007/03/10/prx-uses-activemessaging/#comments</comments>
		<pubDate>Sat, 10 Mar 2007 00:49:14 +0000</pubDate>
		<dc:creator>Andrew Kuklewicz</dc:creator>
		
	<category>code</category>
		<guid isPermaLink="false">http://beginsinwonder.com/2007/03/10/prx-uses-activemessaging/</guid>
		<description><![CDATA[I just wrote up a post for the PRX blog about how we are using Amazon S3 and ActiveMessaging.
Have a look, there&#8217;s also a very short prez I gave at the IMA 2007 Conference showing how we use S3, ActiveMq, Rails, ActiveMessaging and other junk like that to make our systems hum.
Here it is again:


]]></description>
			<content:encoded><![CDATA[<p><a href="http://about.prx.org/archives/000442.php">I just wrote up a post</a> for the <a href="http://about.prx.org/blog">PRX blog</a> about how we are using <a href="http://www.amazon.com/gp/browse.html?node=16427261">Amazon S3</a> and <a href="http://code.google.com/p/activemessaging/">ActiveMessaging</a>.</p>
<p>Have a look, there&#8217;s also a very short prez I gave at the <a href="http://www.integratedmedia.org/nav.cfm?cat=15&#038;subcat=116&#038;subsub=126">IMA 2007 Conference</a> showing how we use S3, ActiveMq, Rails, ActiveMessaging and other junk like that to make our systems hum.</p>
<p>Here it is again:</p>
<p><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="500" HEIGHT="375" id="myMovieName"><PARAM NAME=movie VALUE="myFlashMovie.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="http://beginsinwonder.com/wp-content/uploads/2007/03/audiomonster_IMA2007.swf" quality=high bgcolor=#FFFFFF WIDTH="500" HEIGHT="375" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT><!--af2b1e63dc4d26082b692004d61aa33f--><!--315461bcf659f15ea759a88db0f95b6a-->
</p>
]]></content:encoded>
			<wfw:commentRSS>http://beginsinwonder.com/2007/03/10/prx-uses-activemessaging/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
