<?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>Nobody Listens Anyway &#187; configuration</title>
	<atom:link href="http://www.justinball.com/tag/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinball.com</link>
	<description>Life is an optimization issue</description>
	<lastBuildDate>Sat, 31 Jul 2010 16:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
		<item>
		<title>Wordpress on Mac OSX 10.6</title>
		<link>http://www.justinball.com/2009/10/04/wordpress-on-mac-os/</link>
		<comments>http://www.justinball.com/2009/10/04/wordpress-on-mac-os/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 20:51:44 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[Mac OSX 10.6]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=1118</guid>
		<description><![CDATA[I do a little Wordpress work on my site using my Mac.  After upgrading to Snow Leopard I started getting errors like this:

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those [...]]]></description>
			<content:encoded><![CDATA[<p>I do a little Wordpress work on my site using my Mac.  After upgrading to Snow Leopard I started getting errors like this:</p>
<p><i><br />
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /Users/scott/Sites/usic.net/wp-includes/functions.php on line 35<br />
</i></p>
<p>I found <a href="http://wordpress.org/support/topic/308902">this post that talks about setting the time zone in Wordpress</a>.  Unfortunately, just setting a default time zone didn't fix the problem  (it's still a good idea though).</p>
<p>The <a href="http://www.macosxhints.com/article.php?story=20090831101932728">solution was to set a default time zone in my /etc/php.ini file</a>:</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/date"><span style="color: #000066;">date</span></a>.timezone = <span style="color: #ff0000;">&quot;America/Boise&quot;</span>
&nbsp;</pre>
<p>You might not have a php.ini file in /etc.  If you don't then look for a file called 'php.ini.default' and copy that to php.ini.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2009/10/04/wordpress-on-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending email with Ruby on Rails 2.3.2 and gmail</title>
		<link>http://www.justinball.com/2009/06/25/sending-email-with-ruby-on-rails-2-3-2-and-gmail/</link>
		<comments>http://www.justinball.com/2009/06/25/sending-email-with-ruby-on-rails-2-3-2-and-gmail/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 00:04:09 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[2.3.2]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=1068</guid>
		<description><![CDATA[If you need an easy way to setup email for your company or for a client it's hard to not love Google Apps.  (The 'standard' ie free version is here).  
It is very likely that at some point you will need to send out emails from your application.  Don't cry.  Gmail [...]]]></description>
			<content:encoded><![CDATA[<p>If you need an easy way to setup email for your company or for a client it's hard to not love Google Apps.  (<a href="http://www.google.com/apps/intl/en/group/index.html">The 'standard' ie free version is here</a>).  </p>
<p>It is very likely that at some point you will need to send out emails from your application.  Don't cry.  Gmail can do this for you.  Rails 2.3.2 makes it easier than ever with the addition of 'enable_starttls_auto'.  Put the following code in production.rb, development.rb or environment.rb and you 'should' be able to send out emails:</p>
<pre class="ruby">&nbsp;
  <span style="color:#6666ff; font-weight:bold;">ActionMailer::Base</span>.<span style="color:#9900CC;">smtp_settings</span> = <span style="color:#006600; font-weight:bold;">&#123;</span>
    <span style="color:#ff3333; font-weight:bold;">:enable_starttls_auto</span> =&gt; <span style="color:#0000FF; font-weight:bold;">true</span>,
    <span style="color:#ff3333; font-weight:bold;">:address</span>        =&gt; <span style="color:#996600;">'smtp.gmail.com'</span>,
    <span style="color:#ff3333; font-weight:bold;">:port</span>           =&gt; <span style="color:#006666;">587</span>,
    <span style="color:#ff3333; font-weight:bold;">:domain</span>         =&gt; <span style="color:#996600;">'your.domain.com'</span>,
    <span style="color:#ff3333; font-weight:bold;">:authentication</span> =&gt; <span style="color:#ff3333; font-weight:bold;">:plain</span>,
    <span style="color:#ff3333; font-weight:bold;">:user_name</span>      =&gt; <span style="color:#996600;">'login@your.domain.com'</span>,
    <span style="color:#ff3333; font-weight:bold;">:password</span>       =&gt; <span style="color:#996600;">'some_password'</span>
  <span style="color:#006600; font-weight:bold;">&#125;</span>
&nbsp;</pre>
<p>If you are one of the lucky ones this will actually work.  It didn't work for me but since I still needed to get email working here's what I did:</p>
<p>First be sure to activate the email account that you are using.  To do that you only need to login.  Google will walk you through entering a captcha etc.</p>
<p>You might get this error:<br />
<strong>Net::SMTPAuthenticationError: 530 5.7.0 Must issue a STARTTLS command first.</strong></p>
<p>If you do then check your Ruby version.  <a href="https://rails.lighthouseapp.com/projects/8994/tickets/1336-starttls-for-smtp-makes-gmail-go">Ruby 1.8.7 has this built in but Ruby 1.8.6 does not</a>. </p>
<p>I'm currently running my apps on <a href="http://www.engineyard.com/solo">EngineYard's Solo product <</a>a href="https://cloud-support.engineyard.com/discussions/problems/203-engineyard-cloud-support-for-ruby-187-p73">which is currently using Ruby 1.8.6</a> so changing versions isn't an option (not an easy option anyway).</p>
<p>The next best thing is to <strong>get action_mailer_tls</strong>.  Most of the links you will find in forum and blog posts are broken.  The code is on github and neatly packaged as a gem: <a href="http://github.com/openrain/action_mailer_tls/tree/master">http://github.com/openrain/action_mailer_tls/tree/master</a>.  Follow the directions to install and configure the plugin there and you should be able to send email.</p>
<p>Here's a couple of handy conversations for reference:<br />
<a href="http://www.railsforum.com/viewtopic.php?id=28480">http://www.railsforum.com/viewtopic.php?id=28480</a><br />
<a href="http://www.ruby-forum.com/topic/184137">http://www.ruby-forum.com/topic/184137</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2009/06/25/sending-email-with-ruby-on-rails-2-3-2-and-gmail/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
