<?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>Chris Irish &#124; Ruby, Rails, Javascript Developer &#124; Phoenix, AZ &#187; Uncategorized</title>
	<atom:link href="http://www.christopherirish.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christopherirish.com</link>
	<description>Ruby, Rails, Javascript, all things web development related</description>
	<lastBuildDate>Mon, 19 Jan 2026 07:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Web Development Services</title>
		<link>http://www.christopherirish.com/2012/06/21/freelance-work/</link>
		<comments>http://www.christopherirish.com/2012/06/21/freelance-work/#comments</comments>
		<pubDate>Thu, 21 Jun 2012 23:41:25 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=855</guid>
		<description><![CDATA[Just wanted to make a quick post that if you&#8217;re interested in Ruby on Rails Development, please contact me over at Velocity Labs instead of here. Thanks!]]></description>
			<content:encoded><![CDATA[<p></p><p>Just wanted to make a quick post that if you&#8217;re interested in <a title="Velocity Labs" href="http://velocitylabs.io" target="_blank">Ruby on Rails Development</a>, please contact me over at <a title="Velocity Labs" href="http://velocitylabs.io" target="_blank">Velocity Labs</a> instead of here. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2012/06/21/freelance-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set the timezone on Ubuntu Server</title>
		<link>http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/</link>
		<comments>http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 00:28:56 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=792</guid>
		<description><![CDATA[I find it&#8217;s pretty annoying when you have to go log file spelunking only to find all the timestamps are in UTC.  But we can set the timezone of the server so when Rails, cron, scripts, etc run, they output more readable dates. You can check your current timezone by just running $ dateThu Mar 21 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I find it&#8217;s pretty annoying when you have to go log file spelunking only to find all the timestamps are in UTC.  But we can set the timezone of the server so when Rails, cron, scripts, etc run, they output more readable dates.</p>
<p>You can check your current timezone by just running</p>

<div class="wp-terminal">$ date<br/>Thu Mar 21 18:02:49 MST 2012<br/><br/></div>

<p>Or checking the timezone file at</p>

<div class="wp-terminal">$ more /etc/timezone<br/>US/Arizona<br/><br/></div>

<p>So to change it just run</p>

<div class="wp-terminal">$ sudo dpkg-reconfigure tzdata<br/></div>

<p>And follow on screen instructions.  Easy.</p>
<p>Also be sure to restart cron as it won&#8217;t pick up the timezone change and will still be running on UTC.</p>

<div class="wp-terminal">$ /etc/init.d/cron stop<br/>$ /etc/init.d/cron start<br/></div>

<p>UPDATE July 2016<br />
In the comments Dan mentions that in 16.04 you use something like:</p>

<div class="wp-terminal">$ sudo timedatectl set-timezone Australia/Melbourne<br/></div>

<div id="hire" class="text-center">
  <a href="http://velocitylabs.io"><img src="http://www.christopherirish.com/wp-content/uploads/2018/07/velocity-labs-logo-text.png" alt="" title="velocity-labs-logo-text" width="300" class="alignleft size-full wp-image-971" /></a></p>
<p>
    Need web application development, maintenance for your existing app, or a third party code review?
  </p>
<p>
    <strong class="text-uppercase">Velocity Labs can help.</strong>
  </p>
<p>  <a href="http://velocitylabs.io#contact" class="btn btn-warning btn-block" target="_blank">Click here to get started!</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t get SSH Public Keys working?</title>
		<link>http://www.christopherirish.com/2012/01/27/cant-get-ssh-public-key-working/</link>
		<comments>http://www.christopherirish.com/2012/01/27/cant-get-ssh-public-key-working/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 00:23:40 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=756</guid>
		<description><![CDATA[Having problems getting ssh to use your public key? Log on to your server as root using a password. Remember not to log out as root until you have ssh working with your public key or you may inadvertently lock yourself off the box.. which sucks Double check your sshd_config, I use the following options [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Having problems getting ssh to use your public key?</p>
<p>Log on to your server as root using a password. Remember not to log out as root until you have ssh working with your public key or you may inadvertently lock yourself off the box.. which sucks <img src='http://www.christopherirish.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Double check your sshd_config, I use the following options (note you will have to restart ssh for these changes to take effect):</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Port 30000 &nbsp; &nbsp;&lt;--- change to a port of your choosing<br />
Protocol 2<br />
PermitRootLogin no<br />
PasswordAuthentication no<br />
UseDNS no<br />
AllowUsers deploy &nbsp; &lt;--- change to whatever users you want<br />
ClientAliveInterval 30<br />
ClientAliveCountMax 4</div></td></tr></tbody></table></div>
<p>Make sure your public key is in the .ssh/authorized_keys file for the user you plan on logging onto the server as.  You can use this super helpful <a href="http://www.christopherirish.com/2010/04/19/the-authme-ssh-key-bash-function/" title="authme bash function">authme bash function</a>.</p>
<p>So let&#8217;s say you&#8217;ve done all this and YOU STILL CAN&#8217;T get it to work.  It&#8217;s probably because you have incorrect permissions set on the .ssh directory and/or the authorized_keys file.  You can check this by looking at the ssh auth log. Depending on your server OS it&#8217;s usually either /var/log/auth.log or /var/log/secure .  Tail this file and see if you&#8217;re getting this message</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Authentication refused: bad ownership or modes for directory /home/deploy/.ssh</div></td></tr></tbody></table></div>
<p>Obviously your directory will be different depending on the name of the user you&#8217;re trying to ssh on as. But this message is the give away that your permissions are wrong.  Change them with the following, assuming your username is &#8220;deploy&#8221;, otherwise just substitute that part.</p>

<div class="wp-terminal">$ chmod go-w /home/deploy/<br/>$ chmod 700  /home/deploy/.ssh<br/>$ chmod 600  /home/deploy/.ssh/authorized_keys<br/><br/></div>

<p>Try ssh&#8217;ing on again in another terminal window and you should be good. Now it would be safe to log off as root.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2012/01/27/cant-get-ssh-public-key-working/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ruby 1.9.2 Segmentation Fault and OpenSSL</title>
		<link>http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/</link>
		<comments>http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 22:20:44 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=633</guid>
		<description><![CDATA[In one of my current project, whenever I ran a rake task that did a net/http request it was causing segmentation faults. $ bundle exec rake test:task$ /Users/cirish/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678: [BUG] Segmentation faultruby 1.9.2 (2011-06-30 patchlevel 290) [i686-darwin10.8.0] And it seems whenever I get a segmentation fault the first place I need to look is at OpenSSL. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In one of my current project, whenever I ran a rake task that did a net/http request it was causing segmentation faults.</p>

<div class="wp-terminal">$ bundle exec rake test:task<br/>$ /Users/cirish/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678: [BUG] Segmentation fault<br/>ruby 1.9.2 (2011-06-30 patchlevel 290) [i686-darwin10.8.0]<br/><br/></div>

<p>And it seems whenever I get a segmentation fault the first place I need to look is at OpenSSL.  I&#8217;ve had similar problems with seg faults and openssl in the past, namely this <a href=" http://www.christopherirish.com/2010/06/21/ruby-1-8-7-openssl-bus-error/">OpenSSL Bus Error</a> that I was getting on Ruby 1.8.7.</p>
<p>If you read that post you&#8217;ll see this happened because I use MacPorts and have OpenSSL installed through it, in addition to a local OS X version.  To get Ruby to be happy, you have to point your Ruby install to the correct version at installation time. So remove the bad install</p>

<div class="wp-terminal">$ rvm remove ruby-1.9.2<br/></div>

<p>And reinstall</p>

<div class="wp-terminal">$ rvm install ruby-1.9.2 --with-openssl-dir=/opt/local --with-iconv-dir=$rvm_path/usr<br/></div>

<p>Which I forgot to do with my Ruby 1.9.2 install after upgrading OS X versions.  That last bit about iconv isn&#8217;t directly related, but I have inconv package installed to RVM, you can read about that here <a href="http://beginrescueend.com/packages/iconv/">RVM Iconv</a>.  </p>
<p>Also, this Phusion blog post <a href="http://blog.phusion.nl/2011/02/24/ruby-enterprise-edition-1-8-7-2011-03-released/">REE 1-8-7-2011-03-released</a> mentions problems with OpenSSL and MacPorts.  Moral of the story&#8230; use HomeBrew? Dunno, but I&#8217;ll probably start using it when I upgrade my laptop.</p>
<div id="hire" class="text-center">
  <a href="http://velocitylabs.io"><img src="http://www.christopherirish.com/wp-content/uploads/2018/07/velocity-labs-logo-text.png" alt="" title="velocity-labs-logo-text" width="300" class="alignleft size-full wp-image-971" /></a></p>
<p>
    Need web application development, maintenance for your existing app, or a third party code review?
  </p>
<p>
    <strong class="text-uppercase">Velocity Labs can help.</strong>
  </p>
<p>  <a href="http://velocitylabs.io#contact" class="btn btn-warning btn-block" target="_blank">Click here to get started!</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Rails 3 Authlogic sessions not persisting in production</title>
		<link>http://www.christopherirish.com/2011/08/12/rails-3-authlogic-sessions-not-persisting-in-production/</link>
		<comments>http://www.christopherirish.com/2011/08/12/rails-3-authlogic-sessions-not-persisting-in-production/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 19:16:43 +0000</pubDate>
		<dc:creator>Irish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.christopherirish.com/?p=622</guid>
		<description><![CDATA[I just ran into a rather hard to track down issue with Authlogic and Rails 3. After upgrading an old app to Rails 3, in production, the sessions wouldn&#8217;t persist, but everything worked fine in development mode. After much searching it turns out that there&#8217;s an issue with using Rails 3, Authlogic, and HTTP auth [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I just ran into a rather hard to track down issue with Authlogic and Rails 3.  After upgrading an old app to Rails 3, in production, the sessions wouldn&#8217;t persist, but everything worked fine in development mode.  After much searching it turns out that there&#8217;s an issue with using Rails 3, Authlogic, and HTTP auth together.  I had put up HTTP basic auth in Nginx to prevent the site from getting seen by random people or web crawlers.  When the app was a Rails 2 app, there was no issue, in fact the Rails app shouldn&#8217;t even have known about the HTTP auth since I was doing it in Nginx, not Rails.  Not sure why this is a problem with this Rails/Authlogic/HTTP combination, but anyways, the fix was to add this one-liner to your UserSession model</p>
<pre class="textmate-source sunburst"><span class='linenum'>    1</span> <span class="source source_ruby"><span class="meta meta_class meta_class_ruby"><span class="keyword keyword_control keyword_control_class keyword_control_class_ruby">class</span> <span class="entity entity_name entity_name_type entity_name_type_class entity_name_type_class_ruby">UserSession<span class="entity entity_other entity_other_inherited-class entity_other_inherited-class_ruby"> <span class="punctuation punctuation_separator punctuation_separator_inheritance punctuation_separator_inheritance_ruby">&lt;</span> Authlogic::Session::Base</span></span></span>
<span class='linenum'>    2</span>   allow_http_basic_auth <span class="constant constant_language constant_language_ruby">false</span>
<span class='linenum'>    3</span> <span class="keyword keyword_control keyword_control_ruby">end</span></span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.christopherirish.com/2011/08/12/rails-3-authlogic-sessions-not-persisting-in-production/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
