<?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>Sean&#039;s Blog &#187; development</title>
	<atom:link href="http://seanbehan.com/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com</link>
	<description>Web Programming, Ruby on Rails, Wordpress, PHP from Burlington, Vermont</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:44:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Git Untrack Already Tracked Files</title>
		<link>http://seanbehan.com/git/git-untrack-already-tracked-files/</link>
		<comments>http://seanbehan.com/git/git-untrack-already-tracked-files/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 13:27:44 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gitignore]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1360</guid>
		<description><![CDATA[To remove files that are currently being tracked by git, you have to remove them from the &#8220;cache&#8221;. Note, doing this will NOT delete the file on your local machine. It will still be there but not be tracked. git rm -r --cached supersecretpasswords.txt You then need to add the file to the .gitignore file [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fgit-untrack-already-tracked-files%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Git Untrack Already Tracked Files" data-url="http://seanbehan.com/git/git-untrack-already-tracked-files/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>To remove files that are currently being tracked by git, you have to remove them from the &#8220;cache&#8221;. Note, doing this will NOT delete the file on your local machine. It will still be there but not be tracked.</p>
<pre class="wp-code-highlight prettyprint"> git rm -r --cached supersecretpasswords.txt </pre>
<p>You then need to add the file to the .gitignore file in the root of the project so that it isn&#8217;t tracked again on your next commit. </p>
<pre class="wp-code-highlight prettyprint">

vim .gitignore
supersecretpasswords.txt
</pre>
<p>.gitignore files are tracked so remember to check in these changes.</p>
<pre class="wp-code-highlight prettyprint">
git commit -am'my super secret passwords are safe!'
</pre>
<p>If you want to completely delete the file, on your local machine and from git</p>
<pre class="wp-code-highlight prettyprint">
git rm supersecretpasswords.txt
</pre>
<p>If you&#8217;re working with a directory remember to add the -r flag for recursive removal!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/git-untrack-already-tracked-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository</title>
		<link>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/</link>
		<comments>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 21:44:37 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[groupadd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[shared]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1189</guid>
		<description><![CDATA[If you are having permission problems using git, such as error: insufficient permission for adding an object to repository database ./objects There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. Create your users and add them to a group. Create (if you [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fsetting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository" data-url="http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you are having permission problems using git, such as </p>
<pre class="wp-code-highlight prettyprint">error: insufficient permission for adding an object to repository database ./objects</pre>
<p>There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. </p>
<p>Create your users and add them to a group. Create (if you haven&#8217;t already) your git repo on the server and change permission and ownship and set the git config sharedRepository to true.  </p>
<p>Here are all the commands, quick and dirty!</p>
<pre class="wp-code-highlight prettyprint">
adduser sean
adduser jackson
groupadd developers
adduser sean developers
adduser jackson developers

mkdir -p /git/dev/app.git
cd /git/dev/app.git
git --bare init
vim description  #edit this file (mac os x complains otherwise)
chmod -R g+ws *
chgrp -R developers *
git repo-config core.sharedRepository true
</pre>
<p>Found from: <a href="http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html">http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing and Using Rvm on Mac OS X, Creating Gemsets and Reverting to Original Environment</title>
		<link>http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/</link>
		<comments>http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 17:35:23 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[rvm]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[version management]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1187</guid>
		<description><![CDATA[What is RVM and why should you use it? RVM is a Ruby interpreter, version management tool. In short, it enables you to switch between different versions and releases of Ruby (for instance, version 1.8.6, 1.8.7, jruby 1.9.2, ruby enterprise edition) on the same machine, while associating different gems with each version of the ruby [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fmac-os-x%2Finstalling-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Installing and Using Rvm on Mac OS X, Creating Gemsets and Reverting to Original Environment" data-url="http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>What is RVM and why should you use it? RVM is a Ruby interpreter, version management tool. In short, it enables you to switch between different versions and releases of Ruby (for instance, version 1.8.6, 1.8.7, jruby 1.9.2, ruby enterprise edition) on the same machine, while associating different gems with each version of the ruby interpreter. This is super useful and awesome. If you want to play with Rails 3 and Ruby 1.9.1, for 5 minutes, and then want to switch back to your production apps, which are running on Rails 2.3.5 and Ruby 1.8.7, you can do so with a single command from the terminal. With RVM this is a fairly simple process so there is no reason not to install it. You can also revert back to your system settings (not using RVM) with a single command. After all Rails is just a gem, so you can easily create and manage different RVM &#8220;gemsets&#8221;, (sets of different gems), for the different versions of Ruby (rubies as RVM refers to them) you have installed.      </p>
<p>Installing RVM  </p>
<pre class="wp-code-highlight prettyprint">
bash &lt; &lt;(curl -s https://rvm.beginrescueend.com/install/rvm)
</pre>
<p>Next you have to add rvm to your bash profile</p>
<pre class="wp-code-highlight prettyprint">
# place in ~/.bash_profile as the very last line
[[ -s &quot;$HOME/.rvm/scripts/rvm&quot; ]] &amp;&amp; . &quot;$HOME/.rvm/scripts/rvm&quot;
</pre>
<p>To check everything went well</p>
<pre class="wp-code-highlight prettyprint">
type rvm | head -n1
</pre>
<p>Should tell you &#8220;rvm is a function&#8221; </p>
<p>How to add ruby, pass it the version to install </p>
<pre class="wp-code-highlight prettyprint">
rvm install 1.8.7
</pre>
<p>*The current terminal session will load this environment. New sessions will not. To use a version of ruby and set it as the default, pass it the &#8211;default option</p>
<pre class="wp-code-highlight prettyprint">
rvm use 1.8.7 --default
</pre>
<p>Next create a gemset, which will make available different gems for different versions</p>
<pre class="wp-code-highlight prettyprint">
rvm gemset create rails_2_3_5
</pre>
<p>When you run &#8220;gem list&#8221;, you should see nothing!</p>
<pre class="wp-code-highlight prettyprint">
gem install rails -v=2.3.5
</pre>
<p>Set a default rvm and default gemset, specify which gemset with the @ sign and include the &#8211;default option</p>
<pre class="wp-code-highlight prettyprint">
rvm use 1.8.7@rails_2_3_5 --default
</pre>
<pre class="wp-code-highlight prettyprint">
which gem
gem list
ruby --version
rails --version
</pre>
<p>And to get back to where you started and revert to using your original ruby setup </p>
<pre class="wp-code-highlight prettyprint">
rvm system
</pre>
<p>For upgrading your version of RVM check out this post I wrote <a href="http://seanbehan.com/ruby/how-to-upgrade-rvm-on-mac-os-x/">http://seanbehan.com/ruby/how-to-upgrade-rvm-on-mac-os-x/</a></p>
<p>Finally, you can create a .rvmrc file and put it in any directory and when you cd into that directory the environment specified in the file will be loaded automatically. This way you don&#8217;t have to remember the version and gemsets and type them into the console. All you have to do is put the ruby version and gemset name in the file like so</p>
<pre class="wp-code-highlight prettyprint">ruby1.8.7@rails2.3.5</pre>
<p>You&#8217;ll be prompted to trust the .rvmrc file the first time, type &#8220;y&#8221; for yes. Also, subdirectories will inherit this .rvmrc so you can just put it in the parent directory like</p>
<pre class="wp-code-highlight prettyprint">
rails2/
     .rvmrc
     app1
     app2
rails3/
     .rvmrc
     app1
     app2
</pre>
<p>And both app1 and app2 will use the .rvmrc environment while your rails3 directory apps will load the environment in its directory!</p>
<p>More information available here:<br />
<a href="http://rvm.beginrescueend.com/rvm/install/">http://rvm.beginrescueend.com/rvm/install/</a><br />
<a href="http://www.stjhimy.com/posts/4">http://www.stjhimy.com/posts/4</a><br />
<a href="http://eddorre.com/posts/installing-rails-3-beta-4-using-rvm">http://eddorre.com/posts/installing-rails-3-beta-4-using-rvm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Defining Application Constants for Ruby on Rails Application</title>
		<link>http://seanbehan.com/ruby-on-rails/defining-application-constants-for-ruby-on-rails-application/</link>
		<comments>http://seanbehan.com/ruby-on-rails/defining-application-constants-for-ruby-on-rails-application/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 16:20:30 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[constants]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[production]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=879</guid>
		<description><![CDATA[The best place to keep application constants which are environment specific is in config/environments directory. For instance&#8230; # in RAILS_ROOT/config/environments/development.rb APP_DOMAIN = &#34;localhost&#34; # in RAILS_ROOT/config/environments/production.rb APP_DOMAIN = &#34;real-domain.com&#34; &#8230;will set the APP_DOMAIN constant to either &#8220;localhost&#8221; or &#8220;real-domain.com&#8221; depending on which environment Rails boots up.]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fruby-on-rails%2Fdefining-application-constants-for-ruby-on-rails-application%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Defining Application Constants for Ruby on Rails Application" data-url="http://seanbehan.com/ruby-on-rails/defining-application-constants-for-ruby-on-rails-application/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>The best place to keep application constants which are environment specific is in config/environments directory. For instance&#8230;</p>
<pre class="wp-code-highlight prettyprint">
# in RAILS_ROOT/config/environments/development.rb
APP_DOMAIN = &quot;localhost&quot;
# in RAILS_ROOT/config/environments/production.rb
APP_DOMAIN = &quot;real-domain.com&quot;
</pre>
<p>&#8230;will set the APP_DOMAIN constant to either &#8220;localhost&#8221; or &#8220;real-domain.com&#8221; depending on which environment Rails boots up.</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/ruby-on-rails/defining-application-constants-for-ruby-on-rails-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Output Logger and SQL to the Rails Console in Development Mode</title>
		<link>http://seanbehan.com/ruby-on-rails/output-logger-and-sql-to-the-rails-console-in-development-mode/</link>
		<comments>http://seanbehan.com/ruby-on-rails/output-logger-and-sql-to-the-rails-console-in-development-mode/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 18:22:11 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[stdout]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=612</guid>
		<description><![CDATA[If you want to take a look at the SQL being generated by active record while your using the console, you can either type this into the console when it loads ActiveRecord::Base.logger = Logger.new(STDOUT) Or you can add it to your environment so that it&#8217;ll be the default behavior rails_root/config/environments/development.rb #... ActiveRecord::Base.logger = Logger.new(STDOUT) It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fruby-on-rails%2Foutput-logger-and-sql-to-the-rails-console-in-development-mode%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Output Logger and SQL to the Rails Console in Development Mode" data-url="http://seanbehan.com/ruby-on-rails/output-logger-and-sql-to-the-rails-console-in-development-mode/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you want to take a look at the SQL being generated by active record while your using the console, you can either type this into the console when it loads</p>
<pre class="wp-code-highlight prettyprint">
ActiveRecord::Base.logger = Logger.new(STDOUT)
</pre>
<p>Or you can add it to your environment so that it&#8217;ll be the default behavior<br />
rails_root/config/environments/development.rb</p>
<pre class="wp-code-highlight prettyprint">
#...
ActiveRecord::Base.logger = Logger.new(STDOUT)
</pre>
<p>It&#8217;s a nice way to keep you away of any expensive queries you may unknowingly be writing!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/ruby-on-rails/output-logger-and-sql-to-the-rails-console-in-development-mode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Scala on Mac OS X Leopard</title>
		<link>http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/</link>
		<comments>http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 03:52:01 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[scala]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=543</guid>
		<description><![CDATA[I followed the instructions from here http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/ but I used version 2.7.6 (rather than .5) I installed scala under /usr/local/scala so I had to include it to my path. Type vim .bash_profile export PATH=&#34;/usr/local/bin:/usr/local/sbin:/usr/local/scala/scala-2.7.6.final/bin:$PATH&#34; Now to download and install&#8230; curl -O http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar sudo java -jar scala-2.7.6.final-installer.jar This will launch an installer. Just follow the instructions [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fprogramming%2Finstalling-scala-on-mac-os-x-leopard%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Installing Scala on Mac OS X Leopard" data-url="http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>I followed the instructions from here http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/ but I used version 2.7.6 (rather than .5) I installed scala under /usr/local/scala so I had to include it to my path. Type</p>
<pre class="wp-code-highlight prettyprint">
vim .bash_profile
export PATH=&quot;/usr/local/bin:/usr/local/sbin:/usr/local/scala/scala-2.7.6.final/bin:$PATH&quot;
</pre>
<p>Now to download and install&#8230;</p>
<pre class="wp-code-highlight prettyprint">
curl -O http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar
sudo java -jar scala-2.7.6.final-installer.jar
</pre>
<p>This will launch an installer. Just follow the instructions and when it asks for the destination folder, remember that it&#8217;s in /usr/local/scala<br />
Simple as pie!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Manage Sinatra Server in Development Mode with Shotgun</title>
		<link>http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/</link>
		<comments>http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 02:03:31 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[reload]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shotgun]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=512</guid>
		<description><![CDATA[Sinatra won&#8217;t reload your files. So if you&#8217;re developing your app and want to see any changes made in the browser, install the shotgun gem. gem install shotgun You can then use shotgun to run your server shotgun your_sinatra_ditty.rb Presto, your ditty will never be out of key :)]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fsinatra%2Fmanage-sinatra-server-in-development-mode-with-shotgun%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Manage Sinatra Server in Development Mode with Shotgun" data-url="http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Sinatra won&#8217;t reload your files. So if you&#8217;re developing your app and want to see any changes made in the browser, install the shotgun gem.</p>
<pre class="wp-code-highlight prettyprint">
gem install shotgun
</pre>
<p>You can then use shotgun to run your server</p>
<pre class="wp-code-highlight prettyprint">
shotgun your_sinatra_ditty.rb
</pre>
<p>Presto, your ditty will never be out of key :)</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/sinatra/manage-sinatra-server-in-development-mode-with-shotgun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Sphinx Search Engine on Mac OS X&#8230; or ld: library not found for -lmysqlclient</title>
		<link>http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/</link>
		<comments>http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 19:19:47 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[sphinx]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=410</guid>
		<description><![CDATA[If you are trying to install Sphinx on Mac OS X, it will most likely fail. The current version of MySQL bundled with Mac OS X is not supported and therefore, it will spit out the error message because it can&#8217;t find the correct libraries. ld: library not found for -lmysqlclient There is a quick [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fprogramming%2Finstalling-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Installing Sphinx Search Engine on Mac OS X&#8230; or ld: library not found for -lmysqlclient" data-url="http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you are trying to install Sphinx on Mac OS X, it will most likely fail. The current version of MySQL bundled with Mac OS X is not supported and therefore, it will spit out the error message because it can&#8217;t find the correct libraries.</p>
<pre class="wp-code-highlight prettyprint">
 ld: library not found for -lmysqlclient
</pre>
<p>There is a quick solution to the problem -upgrade mysql! You&#8217;ll need Mac Ports installed, available at</p>
<p>http://macports.org/</p>
<p>Run the command</p>
<pre class="wp-code-highlight prettyprint">
sudo port install mysql5
</pre>
<p>This will not destroy any existing data from your previous MySQL installation. The mac port installation will take a while, and it will appear as if it is just hanging. It&#8217;s not. It just takes a while. I clocked it at 15 minutes on a relatively fast network connection. Drink a cappuccino!</p>
<p>After you have the upgrade you&#8217;ll need to download Sphinx available at:<br />
http://sphinxsearch.com/downloads.html (latest stable) and build the Sphinx engine from source like so:</p>
<pre class="wp-code-highlight prettyprint">
wget http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
tar xzvf sphinx-0.9.8.1.tar.gz
cd  sphinx-0.9.8.1/
./configure --with-mysql-libs=/opt/local/lib/mysql5/mysql/
--with-mysql-includes=/opt/local/include/mysql5/mysql/
make
sudo make install
</pre>
<p>Much thanks to this post b/c I spent forever trying to get the bundled version of MySQL linked properly:</p>
<p>http://www.fozworks.com/2008/9/5/rake-installation-of-sphinx-in-mac-osx</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Postfix, ActionMailer and OpenSSL Fix on Ubuntu</title>
		<link>http://seanbehan.com/ruby-on-rails/postfix-actionmailer-and-openssl-fix-on-ubuntu/</link>
		<comments>http://seanbehan.com/ruby-on-rails/postfix-actionmailer-and-openssl-fix-on-ubuntu/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 00:27:40 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=390</guid>
		<description><![CDATA[If you run into problems using ActionMailer > 2.2, Postfix and OpenSSL while sending mail from your application, try changing the following: vim /etc/postfix/main.cf Change smtpd_use_tls=yes to smtpd_use_tls=no OpenSSL support with Postfix does not work out of the box. You can either generate valid certificates or tell Postfix not to use the certificates. More information [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fruby-on-rails%2Fpostfix-actionmailer-and-openssl-fix-on-ubuntu%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Postfix, ActionMailer and OpenSSL Fix on Ubuntu" data-url="http://seanbehan.com/ruby-on-rails/postfix-actionmailer-and-openssl-fix-on-ubuntu/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you run into problems using ActionMailer > 2.2, Postfix and OpenSSL while sending mail from your application, try changing the following:</p>
<pre class="wp-code-highlight prettyprint">
  vim /etc/postfix/main.cf
</pre>
<p>Change</p>
<pre class="wp-code-highlight prettyprint">
 smtpd_use_tls=yes
</pre>
<p>to</p>
<pre class="wp-code-highlight prettyprint">
smtpd_use_tls=no
</pre>
<p>OpenSSL support with Postfix does not work out of the box. You can either generate valid certificates or tell Postfix not to use the certificates. More information is available in this discussion forum.</p>
<p>http://forum.slicehost.com/comments.php?DiscussionID=2656</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/ruby-on-rails/postfix-actionmailer-and-openssl-fix-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending eMail with Rails on Mac OS X Development Environment</title>
		<link>http://seanbehan.com/programming/sending-email-with-rails-on-mac-os-x-development-environment/</link>
		<comments>http://seanbehan.com/programming/sending-email-with-rails-on-mac-os-x-development-environment/#comments</comments>
		<pubDate>Sun, 10 May 2009 19:45:34 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sending mail]]></category>

		<guid isPermaLink="false">http://bseanvt.wordpress.com/?p=227</guid>
		<description><![CDATA[You&#8217;ll need a mail transport agent (MTA). I installed and used postfix using Mac Ports. sudo port install postfix You&#8217;ll need to start postfix, to send mail from your Rails application. You can set it as a startup item and it will start on boot. However, since I don&#8217;t send too much mail from my [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fprogramming%2Fsending-email-with-rails-on-mac-os-x-development-environment%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Sending eMail with Rails on Mac OS X Development Environment" data-url="http://seanbehan.com/programming/sending-email-with-rails-on-mac-os-x-development-environment/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>You&#8217;ll need a mail transport agent (MTA). I installed and used postfix using Mac Ports.</p>
<pre class="wp-code-highlight prettyprint">sudo port install postfix</pre>
<p>You&#8217;ll need to start postfix, to send mail from your Rails application. You can set it as a startup item and it will start on boot. However, since I don&#8217;t send too much mail from my Rails app, just for testing normally, I start it manually.</p>
<pre class="wp-code-highlight prettyprint">
sudo postfix start
</pre>
<p>That should do it!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/programming/sending-email-with-rails-on-mac-os-x-development-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

