<?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; configuration</title>
	<atom:link href="http://seanbehan.com/tag/configuration/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>How to Add Additional Sub Directories to the Default Rails Test:Unit File Structure</title>
		<link>http://seanbehan.com/ruby-on-rails/how-to-add-additional-sub-directories-to-the-default-rails-testunit-file-structure/</link>
		<comments>http://seanbehan.com/ruby-on-rails/how-to-add-additional-sub-directories-to-the-default-rails-testunit-file-structure/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 21:44:54 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[sub directories]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1496</guid>
		<description><![CDATA[]]></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%2Fhow-to-add-additional-sub-directories-to-the-default-rails-testunit-file-structure%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="How to Add Additional Sub Directories to the Default Rails Test:Unit File Structure" data-url="http://seanbehan.com/ruby-on-rails/how-to-add-additional-sub-directories-to-the-default-rails-testunit-file-structure/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p><script src="https://gist.github.com/1635859.js"> </script></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/ruby-on-rails/how-to-add-additional-sub-directories-to-the-default-rails-testunit-file-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Copy and Paste to/from the Global Register with Tmux on Mac OS X</title>
		<link>http://seanbehan.com/linux/how-to-copy-and-paste-tofrom-the-global-register-with-tmux-on-mac-os-x/</link>
		<comments>http://seanbehan.com/linux/how-to-copy-and-paste-tofrom-the-global-register-with-tmux-on-mac-os-x/#comments</comments>
		<pubDate>Sat, 14 May 2011 03:10:23 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[development environment]]></category>
		<category><![CDATA[named pipe]]></category>
		<category><![CDATA[pipes]]></category>
		<category><![CDATA[tmux]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1304</guid>
		<description><![CDATA[Using the system clipboard with tmux on OS X is broken. I really like tmux but having copy and paste is kind of important for me. Here is my attempt to get it back with a simple bash script until I find something better. The approach is to take a named pipe and feed it [...]]]></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%2Flinux%2Fhow-to-copy-and-paste-tofrom-the-global-register-with-tmux-on-mac-os-x%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="How to Copy and Paste to/from the Global Register with Tmux on Mac OS X" data-url="http://seanbehan.com/linux/how-to-copy-and-paste-tofrom-the-global-register-with-tmux-on-mac-os-x/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Using the system clipboard with tmux on OS X is broken. I really like tmux but having copy and paste is kind of important for me. Here is my attempt to get it back with a simple bash script until I find something better. The approach is to take a named pipe and feed it the contents of &#8220;tmux showb&#8221;. A bash script will manage the pipe and because this script is initialized from a normal session it will write to the system clipboard just fine.</p>
<p>In my .bash_profile&#8230; </p>
<pre class="wp-code-highlight prettyprint">
pipe4tmux=/tmp/pipe4tmux
alias tcp=&quot;tmux showb &gt; $pipe4tmux&quot;
if [[ ! -p $pipe4tmux ]]; then
~/pipe4tmux.sh &amp;
fi
</pre>
<p>And in pipe4tmux.sh&#8230;</p>
<pre class="wp-code-highlight prettyprint">
#!/bin/bash
pipe4tmux=/tmp/pipe4tmux
echo &quot;Starting named pipe $pipe4tmux&quot;
trap &quot;rm -f $pipe4tmux&quot; EXIT

if [[ ! -p $pipe4tmux ]]; then
  mkfifo $pipe4tmux
fi

while true
do
  pbcopy &lt; $pipe4tmux
done

echo &quot;Quitting pipe4tmux $pip4tmux&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/linux/how-to-copy-and-paste-tofrom-the-global-register-with-tmux-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Deploying to Dreamhost</title>
		<link>http://seanbehan.com/posts/deploying-to-dreamhost/</link>
		<comments>http://seanbehan.com/posts/deploying-to-dreamhost/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 15:43:24 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[unpack]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1115</guid>
		<description><![CDATA[Remember to include the host declaration in the database.yml file when you deploy to Dreamhost. Dreamhost does not use &#8220;localhost&#8221; which is typically the default setting when using the mysql adapter and developing locally or even on a small site. At least for me, when I ported a Rails app to Dreamhost, this was the [...]]]></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%2Fposts%2Fdeploying-to-dreamhost%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="Deploying to Dreamhost" data-url="http://seanbehan.com/posts/deploying-to-dreamhost/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Remember to include the host declaration in the database.yml file when you deploy to Dreamhost. Dreamhost does not use &#8220;localhost&#8221; which is typically the default setting when using the mysql adapter and developing locally or even on a small site. </p>
<p>At least for me, when I ported a Rails app to Dreamhost, this was the only &#8220;Gotcha&#8221;, because my log files were not reporting any errors and were instead serving the 500 something went wrong file.<br />
A sample config/database.yml file</p>
<pre class="wp-code-highlight prettyprint">
production:
  adapter: mysql
  username: youruser
  password: yourpasswd
  database: ror_production_db
  host: mysql.yourdomain.com
</pre>
<p>To port, I unpack my gems, if I haven&#8217;t already</p>
<pre class="wp-code-highlight prettyprint">
rake gems:unpack
</pre>
<p>Then I freeze and package rails w/ my app just in case versions aren&#8217;t exact</p>
<pre class="wp-code-highlight prettyprint">
rake rails:freeze:gems
</pre>
<p>Then I upload to Dreamhost!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/posts/deploying-to-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using sendmail to send mail on ubuntu box</title>
		<link>http://seanbehan.com/linux/using-sendmail-to-send-mail-on-ubuntu-box/</link>
		<comments>http://seanbehan.com/linux/using-sendmail-to-send-mail-on-ubuntu-box/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 23:37:00 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mta]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=497</guid>
		<description><![CDATA[I normally install postfix for my MTA. However, I&#8217;ve never really used sendmail so I&#8217;d decide to give it a whirl for a new application I&#8217;m working on. I don&#8217;t use it for anything but handling the mail that the application needs to send out, like new user welcome emails, password resets, etc. apt-get install [...]]]></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%2Flinux%2Fusing-sendmail-to-send-mail-on-ubuntu-box%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="Using sendmail to send mail on ubuntu box" data-url="http://seanbehan.com/linux/using-sendmail-to-send-mail-on-ubuntu-box/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>I normally install postfix for my MTA. However, I&#8217;ve never really used sendmail so I&#8217;d decide to give it a whirl for a new application I&#8217;m working on. I don&#8217;t use it for anything but handling the mail that the application needs to send out, like new user welcome emails, password resets, etc.</p>
<pre class="wp-code-highlight prettyprint">
apt-get install sendmail
</pre>
<p>Sendmail, unlike postfix, won&#8217;t work out of the box. Postfix will prompt you for the necessary config setup when running the install. Sendmail won&#8217;t, and therefore it&#8217;s not &#8216;out of the box&#8217;. You&#8217;ll have to make some modifications on your own. Nothing major but this is what I&#8217;ve found in order to get it to work, reliably and quickly. The first thing I did was add the fully qualified domain name to my /etc/hosts file</p>
<pre class="wp-code-highlight prettyprint">
#vim /etc/hosts
127.0.0.1 www.mydomain.com
</pre>
<p>After this I added the fully qualified domain name to my apache default configuration file</p>
<pre class="wp-code-highlight prettyprint">
#/etc/apache2/sites-available/default
ServerName www.mydomain.com
#vhost info etc...
</pre>
<p>Reload and restart&#8230;</p>
<pre class="wp-code-highlight prettyprint">
/etc/init.d/apache2 force-reload
/etc/init.d/sendmail restart
</pre>
<p>You can test sendmail like so</p>
<pre class="wp-code-highlight prettyprint">
sendmail email@example.com
hello
from
me
.
</pre>
<p>This should deliver a message to you (the &#8220;.&#8221; on a new line, followed by a new line, closes the message).</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/linux/using-sendmail-to-send-mail-on-ubuntu-box/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>Sample Rails Database Config  for MySQL</title>
		<link>http://seanbehan.com/ruby-on-rails/sample-rails-database-config-for-mysql/</link>
		<comments>http://seanbehan.com/ruby-on-rails/sample-rails-database-config-for-mysql/#comments</comments>
		<pubDate>Fri, 01 May 2009 20:29:11 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[yml]]></category>

		<guid isPermaLink="false">http://bseanvt.wordpress.com/?p=209</guid>
		<description><![CDATA[Sample Ruby on Rails database config file for connecting to mysql. production: adapter: mysql encoding: utf8 reconnect: false database: db_production pool: 5 username: db_user password: db_password #socket: /tmp/mysql.sock #this may vary]]></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%2Fsample-rails-database-config-for-mysql%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="Sample Rails Database Config  for MySQL" data-url="http://seanbehan.com/ruby-on-rails/sample-rails-database-config-for-mysql/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Sample Ruby on Rails database config file for connecting to mysql.</p>
<pre class="wp-code-highlight prettyprint">
production:
  adapter: mysql
  encoding: utf8
  reconnect: false
  database: db_production
  pool: 5
  username: db_user
  password: db_password
  #socket: /tmp/mysql.sock #this may vary
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/ruby-on-rails/sample-rails-database-config-for-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

