<?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>Mark Stahler - Blog &#187; programming</title>
	<atom:link href="http://blog.markstahler.ca/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.markstahler.ca</link>
	<description>Coding, Gaming, CrackBerry&#039;ing and everything else white and nerdy</description>
	<lastBuildDate>Mon, 30 Aug 2010 01:07:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ruby on Rails + Gmail SMTP (TLS)</title>
		<link>http://blog.markstahler.ca/2009/07/ruby-on-rails-gmail-smtp-tls/</link>
		<comments>http://blog.markstahler.ca/2009/07/ruby-on-rails-gmail-smtp-tls/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 00:55:36 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.markstahler.ca/?p=197</guid>
		<description><![CDATA[This took way too long to figure out the answer to without using a custom plugin. I hope this helps others! I was setting up Redmine with Gmail as an SMTP server utilizing config/email.yml. Behold! email.yml with no other related changes in environment.yml using Rails 2.2.2 production: delivery_method: :smtp smtp_settings: enable_starttls_auto: :true address: smtp.gmail.com port: [...]]]></description>
			<content:encoded><![CDATA[<p>This took way too long to figure out the answer to without using a custom plugin. I hope this helps others! I was setting up Redmine with Gmail as an SMTP server utilizing config/email.yml. Behold!</p>
<p>email.yml with no other related changes in environment.yml using Rails 2.2.2</p>
<pre name="code">production:

delivery_method: :smtp
smtp_settings:
enable_starttls_auto: :true
address: smtp.gmail.com
port: 587
domain: GMAILDOMAIN.com
authentication: :plain
tls: :true
user_name: "EMAIL@YOURGMAILDOMAIN.com"
password: "YOURPASS"
</pre>
<p>If you are setting up Redmine, there is a nice feature under Administration > Settings > Email Notifications > and in the very bottom right corner of the page, a &#8220;Send a Test Email&#8221; link. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.markstahler.ca/2009/07/ruby-on-rails-gmail-smtp-tls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The beautiful phrase &#8220;Man, I am an idiot&#8230;&#8221;</title>
		<link>http://blog.markstahler.ca/2009/01/the-beautiful-phrase-man-i-am-an-idiot/</link>
		<comments>http://blog.markstahler.ca/2009/01/the-beautiful-phrase-man-i-am-an-idiot/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 02:49:13 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.markstahler.ca/?p=106</guid>
		<description><![CDATA[How often do you have &#8220;Man, I am an idiot&#8221; moments? Forgetting to pay a bill on time, saying something stupid and regretting it immediately after, or chopping the tip of your finger off cutting red peppers? Yeah, gross&#8230; Well if I did either of those things I dont think I would be too happy [...]]]></description>
			<content:encoded><![CDATA[<p>How often do you have &#8220;Man, I am an idiot&#8221; moments? Forgetting to pay a bill on time, saying something stupid and regretting it immediately after, or chopping the tip of your finger off cutting red peppers? Yeah, gross&#8230; Well if I did either of those things I dont think I would be too happy but in the programming world &#8221;Man, I am an idiot&#8221; is one of the things I like to hear most&#8230;</p>
<p>Today my team and I were plugging away, coding up a storm. We have some upcoming deadlines so we are all in crunch mode. The problem is that if I have done a ton of work that is all on a  related task, I begin to make stupid errors. I dont know if that is normal but I need to mix up my tasks. A little of programming, a little of building gui forms, database work or whatever else needs to be done.</p>
<p>Anyways, what got me thinking about this is that today I had to give a hand to two friends that were having problems that they couldn&#8217;t figure out in their code. It never hurts to have someone else take a glace at your simple mistakes, the same two friends helped me figure out a problem in 5 minutes that stumped me for an hour. So for each friend, I go over, looking over their shoulder as we step through the program. I offer some advice or suggestions where I think the bug may be hiding and leave them to get it. Lo and behold, after 5-10 minutes after I left each of them I hear one of my favourite programming phrases: &#8220;Man, I am an idiot.&#8221; </p>
<p>I am not saying I found their problem but sometimes when we explain our code to other we read parts of it that you think are 100% fine and wouldnt think to check it yourself. I myself have yelled many a &#8220;Man, I am an idiot&#8221; to whoever is in earshot when I have a eureka moment. I love the feeling of overcoming a seemingly insurmountable error in ones software that turns out to be something a new programmer could spot. So today was a good day, alot was accomplished and issues were resolved. I hope to have more &#8220;Man, I am an idiot&#8221; moments soon as there are still alot of bugs <img src='http://blog.markstahler.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What is your best &#8221;Man, I am an idiot&#8221; moment?</p>
<p>P.S. The errors in the software I believe were that a regular expression wasnt being matched properly because of a missing escape character and the other had a simple SubSonic/SQL query problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.markstahler.ca/2009/01/the-beautiful-phrase-man-i-am-an-idiot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
