<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ruby on Evan Hoffman</title><link>https://evan.wtf/tags/ruby/</link><description>Recent content in Ruby on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Tue, 12 Aug 2014 13:51:08 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/ruby/index.xml" rel="self" type="application/rss+xml"/><item><title>The m3.medium is terrible</title><link>https://evan.wtf/2014/08/12/the-m3-medium-is-terrible/</link><pubDate>Tue, 12 Aug 2014 13:51:08 +0000</pubDate><guid>https://evan.wtf/2014/08/12/the-m3-medium-is-terrible/</guid><description>&lt;p&gt;I&amp;rsquo;ve been doing some testing of various instance types in our staging environment, originally just to see if Amazon&amp;rsquo;s t2.* line of instances is usable in a real-world scenario. In the end, I found that not only are the t2.mediums viable for what I want them to do, but they&amp;rsquo;re far better suited than the m3.medium, which I wouldn&amp;rsquo;t use for anything that you ever expect to reach any load.&lt;/p&gt;</description></item><item><title>"You have to install development tools first." - OSX Mavericks, ruby, chef, and nokogiri</title><link>https://evan.wtf/2014/07/29/you-have-to-install-development-tools-first-osx-mavericks-ruby-chef-and-nokogiri/</link><pubDate>Tue, 29 Jul 2014 16:57:06 +0000</pubDate><guid>https://evan.wtf/2014/07/29/you-have-to-install-development-tools-first-osx-mavericks-ruby-chef-and-nokogiri/</guid><description>&lt;p&gt;I was trying to get knife ec2 working on my Mac, but even though my system Ruby was at 2.0.0, the embedded Ruby that chef/knife use (in /opt/chef/embedded/bin) was 1.9.1. Installing knife-ec2 should just be a matter of typing &amp;ldquo;gem install knife-ec2&amp;rdquo; but due to some weird issues with nokogiri, I burned about 4 hours trying to make it work. I tried everything I could find - installing iconv, libxml2, and libxslt via brew and telling &amp;ldquo;gem install&amp;rdquo; to use the custom libs in /usr/local/Cellar was the most common suggestion on StackOverflow - but nothing worked. What ended up fixing it for me was reinstalling chef. :|&lt;/p&gt;</description></item><item><title>Wasted time with Exchange 2010, SquirrelMail, and IMAP-SSL</title><link>https://evan.wtf/2010/11/30/wasted-time-with-exchange-2010-squirrelmail-and-imap-ssl/</link><pubDate>Tue, 30 Nov 2010 17:32:11 +0000</pubDate><guid>https://evan.wtf/2010/11/30/wasted-time-with-exchange-2010-squirrelmail-and-imap-ssl/</guid><description>&lt;p&gt;I&amp;rsquo;m setting up SquirrelMail to point to my Exchange 2010 server via IMAP (don&amp;rsquo;t ask) and couldn&amp;rsquo;t get SM to talk to Exchange on port 993 (imaps). Even though the servers on the same subnet, any time passwords are being sent over the network I like to opt for SSL. I found a couple of sites suggesting that the problem was that there was no SSL certificate installed, but I knew for a fact there was a valid certificate because I could get to &lt;a href="https://webmail.example.com/"&gt;https://webmail.example.com/&lt;/a&gt; for OWA.&lt;/p&gt;</description></item><item><title>Ruby/Sinatra part 2</title><link>https://evan.wtf/2010/10/08/ruby-sinatra-part-2/</link><pubDate>Fri, 08 Oct 2010 15:38:19 +0000</pubDate><guid>https://evan.wtf/2010/10/08/ruby-sinatra-part-2/</guid><description>&lt;p&gt;Following up on &lt;a href="https://evan.wtf/2010/10/07/trying-to-teach-myself-ruby-again/"&gt;my previous post&lt;/a&gt;, I decided to go the easier route and just install an older version of Ruby that didn&amp;rsquo;t have the problem with Sinatra, since I wanted a setup I could replicate easily, and editing the server.rb each time I installed wasn&amp;rsquo;t what I was going for. I downloaded 1.9.2-rc2 from &lt;a href="http://ftp.ruby-lang.org//pub/ruby/1.9/"&gt;http://ftp.ruby-lang.org//pub/ruby/1.9/&lt;/a&gt;, compiled it and it works:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[evan@evanfc12 ~]$ ruby --version&#10;ruby 1.9.2dev (2010-07-11 revision 28618) [x86_64-linux]&#10;[evan@evanfc12 ~]$ ruby hi.rb ^C&#10;[evan@evanfc12 ~]$ cat hi.rb&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;require &amp;lsquo;sinatra&amp;rsquo;&lt;/p&gt;</description></item><item><title>Trying to teach myself Ruby (again)</title><link>https://evan.wtf/2010/10/07/trying-to-teach-myself-ruby-again/</link><pubDate>Thu, 07 Oct 2010 17:09:28 +0000</pubDate><guid>https://evan.wtf/2010/10/07/trying-to-teach-myself-ruby-again/</guid><description>&lt;p&gt;Now that I have a real web project to work on I figured it&amp;rsquo;s a good time to try and teach myself Ruby again. Sinatra seems to be the new hotness so that&amp;rsquo;s what I&amp;rsquo;m trying, but so far things aren&amp;rsquo;t going quite as I expected. Everything appears to be installed, but when I run the &amp;ldquo;Hello, World!&amp;rdquo; script, the webserver doesn&amp;rsquo;t start as it&amp;rsquo;s apparently supposed to do:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[evan@ehoffman 16:59:34 ~]$ ruby --version&#10;ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]&#10;[evan@ehoffman 16:59:39 ~]$ irb&#10;irb(main):001:0&amp;gt; require &amp;#39;sinatra&amp;#39;&#10;=&amp;gt; true&#10;irb(main):002:0&amp;gt;&#10;You have new mail in /var/spool/mail/evan&#10;[evan@ehoffman 17:00:20 ~]$ cat hi.rb&#10;#require &amp;#39;rubygems&amp;#39;&#10;require &amp;#39;sinatra&amp;#39;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;get &amp;lsquo;/&amp;rsquo; do&#10;&amp;ldquo;Hello World&amp;rdquo;&#10;end&#10;[evan@ehoffman 17:00:24 ~]$ ruby hi.rb&#10;[evan@ehoffman 17:00:33 ~]$&lt;/p&gt;</description></item></channel></rss>