<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>1.9.2-P0 on Evan Hoffman</title><link>https://evan.wtf/tags/1.9.2-p0/</link><description>Recent content in 1.9.2-P0 on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Fri, 08 Oct 2010 15:38:19 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/1.9.2-p0/index.xml" rel="self" type="application/rss+xml"/><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>