<?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>disjoint thoughts &#187; rails</title>
	<atom:link href="http://disjointthoughts.com/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://disjointthoughts.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Dec 2011 04:23:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How I became a web developer</title>
		<link>http://disjointthoughts.com/2011/05/19/how-i-became-a-web-developer/</link>
		<comments>http://disjointthoughts.com/2011/05/19/how-i-became-a-web-developer/#comments</comments>
		<pubDate>Fri, 20 May 2011 05:38:34 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[gaming]]></category>
		<category><![CDATA[geek community]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=523</guid>
		<description><![CDATA[When I was 6 or 7 years old, my Grandparents bought me the most awesome gift ever&#8230; a NES. This set me down a path [...]]]></description>
			<content:encoded><![CDATA[<p>When I was 6 or 7 years old, my Grandparents bought me the most awesome gift ever&#8230; a NES. This set me down a path that would ultimately lead me to where I am now. A web developer.</p>
<p>After the NES came the 286, then the Playstation 1. At some point between Commander Keen and Ridge Racer, I decided I wanted to design my own games. I didn&#8217;t to much programming though. Around the age of 10 I started writing .bat scripts&#8230; which never did anything useful. I hacked (mostly unsuccessfully) on ZZT.</p>
<p>When I was 13 I created an awesome Star Trek fan site on GeoCities giving me my first taste of HTML. Taking that to what I thought was the next step, I learned VRML&#8230; which turned out to be a step towards nowhere.</p>
<p>No, I didn&#8217;t do any real programming until college. Here I learned C, Java, ML, Prolog, Lisp, and Icon. Along with learning what real programming was, I learned that programming games is hard. I came to the realization sometime around my senior year that being a game developer would be awesome, but probably wasn&#8217;t in the cards for me. A dream job that I might have someday.</p>
<p>Towards the end of my college career, I started doing web development as a research assistant using JSPs and Servlets. This turned into somewhat of an expertise for me, and ended up landing me my first job out of college. </p>
<p>Still using Java at the time, I was introduced to Ruby and Rails by an outside consultant. This consultant was brought in to explore the possibility of using Rails on a new project. But like so many other companies at the time, using Rails (which at the time was new and unproven in the eyes of enterprise businesses) was too high of a risk. They went with the tried and true Java approach.</p>
<p>I didn&#8217;t take the Java approach. I left the company shortly after and joined a startup where I got paid to do Rails full time. I had drank the Rails kool aid. I was mainly hooked on how quickly you could implement ideas. I could come up with an idea in the morning, and have a working web app by the afternoon. I could gather requirements and show off working code the same day. I loved it.</p>
<p>At some point, I looked back and realized that game development wasn&#8217;t for me. Rapid development of games doesn&#8217;t exist the same way it does in web development. I&#8217;ve been a happy web developer ever since.</p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2011/05/19/how-i-became-a-web-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>github and submodule weirdness</title>
		<link>http://disjointthoughts.com/2009/12/08/github-and-submodule-weirdness/</link>
		<comments>http://disjointthoughts.com/2009/12/08/github-and-submodule-weirdness/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 05:18:20 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=504</guid>
		<description><![CDATA[So I&#8217;m not a git or github master by any means. For the most part, I know enough commands to get by and to get [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m not a git or github master by any means. For the most part, I know enough commands to get by and to get myself into trouble every now and then. My experience so far has been good with git and github, but today I ended up banging my head on a wall while I tried to figure out what was going on. Follow me, on this little trip down a rabbit hole. Maybe someone can explain what&#8217;s going on here.</p>
<p>First I generate a rails app:</p>
<blockquote><p>
lappy:tmp bsmith$ <strong>rails foo</strong>
</p></blockquote>
<p>Then I add restful authentication, using the command listed in the install documentation:</p>
<blockquote><p>
lappy:tmp bsmith$ <strong>cd foo/</strong><br />
lappy:foo bsmith$ <strong>cd vendor/plugins/</strong><br />
lappy:plugins bsmith$ <strong>git clone git://github.com/technoweenie/restful-authentication.git restful_authentication</strong><br />
Initialized empty Git repository in /Users/bsmith/tmp/foo/vendor/plugins/restful_authentication/.git/<br />
remote: Counting objects: 1741, done.<br />
remote: Compressing objects: 100% (590/590), done.<br />
remote: Total 1741 (delta 1010), reused 1641 (delta 957)<br />
Receiving objects: 100% (1741/1741), 733.93 KiB | 831 KiB/s, done.<br />
Resolving deltas: 100% (1010/1010), done.</p></blockquote>
<p>Then I add everything to git:</p>
<blockquote><p>
lappy:plugins bsmith$ <strong>cd ../..</strong><br />
lappy:foo bsmith$ <strong>git init</strong><br />
Initialized empty Git repository in /Users/bsmith/tmp/foo/.git/<br />
lappy:foo bsmith$ <strong>git add .</strong><br />
lappy:foo bsmith$ <strong>git commit -m &#8216;init&#8217;</strong><br />
[master (root-commit) f63c7ea] init<br />
 43 files changed, 8462 insertions(+), 0 deletions(-)<br />
 create mode 100644 README<br />
 create mode 100644 Rakefile<br />
&#8230;[followed by lots more output]</p></blockquote>
<p>Then I pushed it to github:</p>
<blockquote><p>
lappy:foo bsmith$ <strong>git remote add github git@github.com:benjaminleesmith/submodule_test.git</strong><br />
lappy:foo bsmith$ <strong>git push github master</strong><br />
Counting objects: 64, done.<br />
Delta compression using up to 2 threads.<br />
Compressing objects: 100% (56/56), done.<br />
Writing objects: 100% (64/64), 79.32 KiB, done.<br />
Total 64 (delta 10), reused 0 (delta 0)<br />
To git@github.com:benjaminleesmith/submodule_test.git<br />
 * [new branch]      master -> master
</p></blockquote>
<p>Next, I take a look at the vendor directory that got committed go github:</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/q3k8001wNzSpvdpRe18SWw?feat=embedwebsite"><img src="http://lh5.ggpht.com/_m1FTfX8GeeI/Sx8xVK8ZZEI/AAAAAAAAAYM/lcPtKR-BpHw/s800/Screen%20shot%202009-12-08%20at%209.53.51%20PM.png" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/benjamin.lee.smith/ScreenShots?feat=embedwebsite">screen shots</a></td>
</tr>
</table>
<p>I assume that the little folder icon with an arrow means that the restful authentication code is being hosted elsewhere&#8230; as a submodule maybe? The folder is not clickable, so I can&#8217;t see what&#8217;s inside&#8230; if there&#8217;s anything!</p>
<p>So my next step is to pull the project, say for a deployment on another system:</p>
<blockquote><p>
lappy:tmp bsmith$ <strong>mkdir bar</strong><br />
lappy:tmp bsmith$ <strong>cd bar/</strong><br />
lappy:bar bsmith$ <strong>git init</strong><br />
Initialized empty Git repository in /Users/bsmith/tmp/bar/.git/<br />
lappy:bar bsmith$ <strong>git pull git://github.com/benjaminleesmith/submodule_test.git</strong><br />
remote: Counting objects: 64, done.<br />
remote: Compressing objects: 100% (56/56), done.<br />
remote: Total 64 (delta 10), reused 0 (delta 0)<br />
Unpacking objects: 100% (64/64), done.<br />
From git://github.com/benjaminleesmith/submodule_test<br />
 * branch            HEAD       -> FETCH_HEAD
</p></blockquote>
<p>Then&#8230; I go searching for restful auth in this latest pull&#8230;</p>
<blockquote><p>lappy:bar bsmith$ <strong>cd vendor/plugins/</strong><br />
lappy:plugins bsmith$ <strong>ls</strong><br />
restful_authentication<br />
lappy:plugins bsmith$ <strong>cd restful_authentication/</strong><br />
lappy:restful_authentication bsmith$ <strong>ls</strong><br />
lappy:restful_authentication bsmith$
</p></blockquote>
<p>Yikes! The directory is there, but the contents are missing! I don&#8217;t know if this is a problem with the way I added restful auth to my local git repo, or if this is an issue with github. I noticed this when a production deployment was failing saying &#8220;uninitialized constant User::Authentication (NameError)&#8221; as if restful auth was no where to be found.</p>
<p>It seems less than intuitive to say the least. If anyone knows what&#8217;s going on here, leave me a comment please! Otherwise, my fix was to clone restful auth, then remove its git directory. This allowed me to push to github exactly what my local copy contained. </p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2009/12/08/github-and-submodule-weirdness/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>flickr gadget for google wave</title>
		<link>http://disjointthoughts.com/2009/10/21/flickr-gadget-for-google-wave/</link>
		<comments>http://disjointthoughts.com/2009/10/21/flickr-gadget-for-google-wave/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 17:00:04 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=485</guid>
		<description><![CDATA[So I got an invite to Google Wave last week. It was pretty fun to play around with the latest and greatest toy from google, [...]]]></description>
			<content:encoded><![CDATA[<p>So I got an invite to <a href="https://wave.google.com" target="_google">Google Wave</a> last week. It was pretty fun to play around with the latest and greatest toy from google, but the novelty quickly wore off. After everyone realized they were using it like a chatroom + wiki, I think we all got bored. When I was first invited, everyone was adding and editing waves&#8230; now no one I know is still using it.</p>
<p>ANYWAYS&#8230; during the first few hours of being excited about Google Wave, I decided to write a &#8220;Gadget&#8221; which would embed a <a href="http://www.flickr.com/" target="_flickr">Flickr</a> user&#8217;s latest images into a Wave. It was super easy to write. Gadgets are basically JavaScript and HTML wrapped in some XML. So whipping up a Rails app that fetched Flickr images via the Flickr API and rendered some HTML to display them was cake. I deployed the Rails app/Gadget to heroku&#8230; check it out here: <a href="http://flickr-wave.heroku.com/" target="_gadget">http://flickr-wave.heroku.com/</a></p>
<p>There seems to be some bugs, for some reason after embedding the Gadget and reloading the wave SOMETIMES it won&#8217;t load the Gadget. I don&#8217;t know why&#8230; and I probably won&#8217;t worry about fixing it unless I start getting excited about Google Wave again. Ohh well, check out the source here: <a href="http://github.com/benjaminleesmith/Flickr-Wave" target="_gadget">http://github.com/benjaminleesmith/Flickr-Wave</a></p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2009/10/21/flickr-gadget-for-google-wave/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>adding blackbird javascript logging to your rails project</title>
		<link>http://disjointthoughts.com/2008/10/21/adding-blackbird-javascript-logging-to-your-rails-project/</link>
		<comments>http://disjointthoughts.com/2008/10/21/adding-blackbird-javascript-logging-to-your-rails-project/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 23:44:19 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=295</guid>
		<description><![CDATA[Blackbird is a nifty JavaScript logger that can be added to any web app. Ever find yourself adding alerts into your JavaScript to get some [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gscottolson.com/blackbirdjs/" target="_new">Blackbird</a> is a nifty JavaScript logger that can be added to any web app. Ever find yourself adding alerts into your JavaScript to get some (foggy) idea of what&#8217;s going on? Blackbird makes this kind of debugging much easier.</p>
<p>So how do you get Blackbird working in your Rails app? By following these easy steps:</p>
<p>1. Download the <a href="http://blackbirdjs.googlecode.com/files/blackbirdjs-1.0.zip">Blackbird zip file</a>.<br />
2. Extract contents of zip file.<br />
3. Copy blackbird.css into public/stylesheets<br />
4. Copy blackbird.js into public/javascripts<br />
5. Copy blackbird_panel.png and blackbird_icon.png to public/images<br />
6. Edit blackbird.css, modify urls to blackbird_panel.png and blackbird_icon.png to contain &#8220;/images/&#8221; in their path; &#8220;url(blackbird_panel.png)&#8221; should become &#8220;url(/images/blackbird_panel.png)&#8221;<br />
7. Include the blackbird Javascript and CSS files in your layout: <%= stylesheet_link_tag 'blackbird' %> and <%= javascript_include_tag 'blackbird' %><br />
8. Add a button to open the Blackbird console: &lt;input type=&#8221;button&#8221; onclick=&#8221;javascript:log.toggle();&#8221; value=&#8221;show log&#8221;/&gt;<br />
9. ???<br />
10. Profit!<br />
11. Check out the <a href="http://www.gscottolson.com/blackbirdjs/" target="_new">Blackbird website</a> to learn more about using Blackbird.</p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2008/10/21/adding-blackbird-javascript-logging-to-your-rails-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rails: building urls to static html in public dir</title>
		<link>http://disjointthoughts.com/2007/09/14/rails-building-urls-to-static-html-in-public-dir/</link>
		<comments>http://disjointthoughts.com/2007/09/14/rails-building-urls-to-static-html-in-public-dir/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 00:07:02 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/2007/09/14/rails-building-urls-to-static-html-in-public-dir/</guid>
		<description><![CDATA[In rails when you create links in your view it&#8217;s best to use link_to or url_for tags when creating urls. However, both of these methods [...]]]></description>
			<content:encoded><![CDATA[<p>In rails when you create links in your view it&#8217;s best to use link_to or url_for tags when creating urls. However, both of these methods take as arguments the controller and/or action to generate a link for. If you&#8217;re trying to link to something in the public directory, like a static html file, then there is no controller or action. Instead of hardcoding the link, use compute_public_path:</p>
<p><%=compute_public_path('file-name-without-extention','parent-dir','extension')%></p>
<p>So if you&#8217;re trying to link to a file public/static_files/foo.html just do:</p>
<p><%=compute_public_path('foo','static_files','html')%></p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2007/09/14/rails-building-urls-to-static-html-in-public-dir/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>getting thickbox, jquery, and prototype to play together nicely</title>
		<link>http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/</link>
		<comments>http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 17:39:06 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jumpbox]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/</guid>
		<description><![CDATA[The latest version of the JumpBox admin interface uses ThickBox for its cool visual effects, and prototype for handling AJAX requests. The problem is that [...]]]></description>
			<content:encoded><![CDATA[<p>The latest version of the <a href="http://www.jumpbox.com/" target="_new">JumpBox</a> admin interface uses <a href="http://jquery.com/demo/thickbox/" target="_new">ThickBox</a> for its cool visual effects, and <a href="http://www.prototypejs.org/" target="_new">prototype</a> for handling AJAX requests. The problem is that ThickBox depends on jQuery, and jQuery and prototype don&#8217;t like working together. </p>
<p>Both jQuery and prototype define &#8220;$&#8221; as an alias in the global namespace. When you try to use the &#8220;$&#8221; shortcut and both libraries are included, the browser complains. Lucky <a href="http://docs.jquery.com/Using_jQuery_with_Other_Libraries" target="_new">jQuery gives you a way to override &#8220;$&#8221;</a> and let prototype use it thus resolving the conflict:</p>
<pre style="width:500px;height:200px;border:solid 1px #ccc;overflow:scroll;">
 &lt;html>
 &lt;head>
   &lt;script src="prototype.js">&lt;/script>
   &lt;script src="jquery.js">&lt;/script>
   &lt;script>
     jQuery.noConflict();
   &lt;/script>
 &lt;/head>
 &lt;body></body>
 &lt;/html>
</pre>
<p>After calling jQuery.noConflict(), you can still use jQuery &#8220;$&#8221; functionality, but you have to call it using &#8220;jQuery(&#8216;foo&#8217;)&#8221; instead of &#8220;$(&#8216;foo&#8217;)&#8221;.</p>
<p>Now that jQuery and prototype can coexists peacefully, how does ThickBox work? Well&#8230; out of the box it doesn&#8217;t. ThickBox uses the &#8220;$&#8221; syntax, but expects to use jQuery&#8217;s implementation of it. So to get ThickBox to work, you need to replace all instances of &#8220;$&#8221; with &#8220;jQuery&#8221; in thickbox.js. Now ThickBox should be using jQuery exclusively, jQuery and prototype won&#8217;t conflict over &#8220;$&#8221;, and everything should work fine and dandy. Note: I&#8217;ve only tried this using ThickBox 2.1.1, jQuery 1.1.1, and prototype 1.5.0, but it should work on the latest and greatest versions.</p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>rails: multiple request values with the same name</title>
		<link>http://disjointthoughts.com/2007/06/08/rails-multiple-request-values-with-the-same-name/</link>
		<comments>http://disjointthoughts.com/2007/06/08/rails-multiple-request-values-with-the-same-name/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 18:01:23 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=173</guid>
		<description><![CDATA[Let&#8217;s say you have a web app that takes input from the user. How about a phone book app for storing phone numbers. And let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have a web app that takes input from the user. How about a phone book app for storing phone numbers. And let&#8217;s assume that each person in your phone book can have an unlimited number of phone numbers.  In the interface you allow the user to fill in as many phone numbers as they&#8217;d like by dynamically creating more and more input=&#8217;text&#8217; elements. When the user saves, the data that gets posted to the server looks something like:<br />
<code><br />
/phonebook/save?number=5203842233&#038;number=6029130923&#038;number=9283125248<br />
</code><br />
Basically there are multiple parameters that have the same name with different values. Now in Java to get the values of the numbers you would do something like&#8230;<br />
<code><br />
request.getParameterList('number');<br />
</code><br />
&#8230;to get an Array of Strings, each element containing one of the numbers (NOTE: my Java is rusty and this could be wrong). In rails there is no such getParameterList method. As I currently understand it, rails only sees the first number. So it thinks that number=5203842233 was the only value passed to the server, the other values are ignored. Looking at rail&#8217;s logs confirms this:<br />
<code><br />
Parameters: {"controller"=>"phonebook", "action"=>"save", "number"=>"5203842233"}<br />
</code><br />
So how do you get multiple values with the same name out of the request? You add &#8216;[]&#8216; to the parameter name (ie &lt;input type=&#8221;text&#8221; name=&#8221;number[]&#8220;/>):<br />
<code><br />
/phonebook/save?number[]=5203842233&#038;number[]=6029130923&#038;number[]=9283125248<br />
</code><br />
Now looking at the log file:<br />
<code><br />
Parameters: {"controller"=>"phonebook", "action"=>"save", "number"=>["5203842233","6029130923","9283125248"]}<br />
</code><br />
When retrieving params[:number], you&#8217;ll end up with an Array of the numbers instead of just the first.</p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2007/06/08/rails-multiple-request-values-with-the-same-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rails: getting ip address from request</title>
		<link>http://disjointthoughts.com/2007/06/07/rails-getting-ip-address-from-request/</link>
		<comments>http://disjointthoughts.com/2007/06/07/rails-getting-ip-address-from-request/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 15:29:17 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=171</guid>
		<description><![CDATA[This is useful if you want to log the ip address of the person using your rails app (except when the person is behind a [...]]]></description>
			<content:encoded><![CDATA[<p>This is useful if you want to log the ip address of the person using your rails app (except when the person is behind a proxy, thanks <a href="http://www.jamesbritt.com/" target="new">James</a>!):<br />
<code><br />
  request.env['REMOTE_ADDR']<br />
</code><br />
Taken from <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/238784" target="new">this ruby thread</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2007/06/07/rails-getting-ip-address-from-request/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>desert code camp</title>
		<link>http://disjointthoughts.com/2006/10/26/desert-code-camp/</link>
		<comments>http://disjointthoughts.com/2006/10/26/desert-code-camp/#comments</comments>
		<pubDate>Thu, 26 Oct 2006 23:55:25 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[geek community]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=118</guid>
		<description><![CDATA[The second Desert Code Camp is coming up this weekend. &#8220;Code Camp is a free, one-day event put on by the local Phoenix community to [...]]]></description>
			<content:encoded><![CDATA[<p>The second <a target="_blank" href="http://www.desertcodecamp.com/">Desert Code Camp</a> is coming up this weekend.</p>
<blockquote><p>&#8220;Code Camp is a free, one-day event  						put on by the local Phoenix community to help promote software development in  						general.  There is no right or wrong language, platform, or  						technology.  If a topic relates in any way to the code that causes a  						machine to produce a desired result, it&#8217;s welcome here.&#8221;</p></blockquote>
<p>The previous code camp was ok, but the sessions were too jammed together. There was no time to meet people and just talk. Everyone kept running from session to session trying to keep up. Some of the sessions were good, while others were a waste of my time.</p>
<p>I&#8217;ll be attending again, hopefully they&#8217;ve tweaked the schedule enough so it&#8217;s no so jam-packed. There aren&#8217;t any sessions that are must-attends for me, so I&#8217;ll mostly be there to hang out and support the community. If nothing else, at least it&#8217;s a free lunch.</p>
<p>Edit:  Apparently lunch isn&#8217;t free.</p>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2006/10/26/desert-code-camp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>missing gems/plugins</title>
		<link>http://disjointthoughts.com/2006/06/28/missing-gemsplugins/</link>
		<comments>http://disjointthoughts.com/2006/06/28/missing-gemsplugins/#comments</comments>
		<pubDate>Wed, 28 Jun 2006 16:49:20 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://disjointthoughts.com/?p=88</guid>
		<description><![CDATA[The designer of a project I&#8217;m working on decided to use the RedCloth ruby gem in the project we&#8217;re working on. He installed the gem [...]]]></description>
			<content:encoded><![CDATA[<div>The designer of a project I&#8217;m working on decided to use the <a href="http://whytheluckystiff.net/ruby/redcloth/">RedCloth</a> ruby gem in the project we&#8217;re working on. He installed the gem on his local machine and added &#8220;require &#8216;RedCloth&#8217;&#8221; to environment.rb. Now, since he installed a gem and ruby gems by default are stored in the ruby installation directory, the source repository did not contain the RedCloth library.</p>
<p>Unforunately I forgot to get the RedCloth gem. So when I updated my project source from SVN the project broke output in development.log. I eventually figured out that I was missing the gem. So I downloaded the gem, then moved the whole RedCloth folder into the vendor/plugins directory of the rails project. </p>
<p>The lack of error messages pointing me to the &#8220;require &#8216;RedCloth&#8217;&#8221; was annoying to say the least. Maybe the require statement should be moved someplace else? Someplace after the logger has been initialized maybe? I wonder if other error/issues in enviroment.rb will make WEBrick die out too. Maybe you can start WEBrick with some advanced debugging for these kinds of situations? Hmm, I guess I should do a little research&#8230;</p></div>
]]></content:encoded>
			<wfw:commentRss>http://disjointthoughts.com/2006/06/28/missing-gemsplugins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

