<?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>Peter Hoeg&#187; ruby</title>
	<atom:link href="http://www.hoeg.com/archives/tag/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hoeg.com</link>
	<description>Who gives a blog?</description>
	<lastBuildDate>Thu, 12 Jan 2012 05:19:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>RVM problem &#8211; &#8216;rvm-prompt&#8217; returns &#8216;rvm&#8217;</title>
		<link>http://www.hoeg.com/archives/73</link>
		<comments>http://www.hoeg.com/archives/73#comments</comments>
		<pubDate>Mon, 18 Apr 2011 05:02:17 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://www.hoeg.com/?p=73</guid>
		<description><![CDATA[The amazing RVM was throwing a bit of a tantrum and rvm-prompt was simply returning rvm in new shells. I tried re-installing but no dice. So after bothering the nice people on IRC as well as on the rvm mailing list, the solution was in the rvm help. When in doubt and seeing odd behavour [...]]]></description>
			<content:encoded><![CDATA[<p>The amazing <a href='http://rvm.beginrescueend.com'>RVM</a> was throwing a bit of a tantrum and <a href='http://rvm.beginrescueend.com/workflow/prompt/'>rvm-prompt</a> was simply returning
<pre>rvm</pre>
<p> in new shells.</p>
<p>I tried re-installing but no dice.</p>
<p>So after bothering the nice people on IRC as well as on the rvm mailing list, the solution was in the rvm help. When in doubt and seeing odd behavour run
<pre>rvm reset</pre>
<p> and lo and behold, &#8216;rvm-prompt&#8217; now works again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoeg.com/archives/73/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IDE for Ruby development</title>
		<link>http://www.hoeg.com/archives/71</link>
		<comments>http://www.hoeg.com/archives/71#comments</comments>
		<pubDate>Thu, 14 Apr 2011 08:11:38 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[jetbrains]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubymine]]></category>

		<guid isPermaLink="false">http://www.hoeg.com/?p=71</guid>
		<description><![CDATA[If you&#8217;re on the lookout for a new IDE for Rails in particular (or simply Ruby development in general) then have a look at RubyMine from JetBrains. It knocks the socks off NetBeans.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re on the lookout for a new IDE for Rails in particular (or simply Ruby development in general) then have a look at RubyMine from JetBrains. It knocks the socks off NetBeans.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoeg.com/archives/71/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RVM &amp; GEM_PATH &#8211; things to check if RVM doesn&#8217;t play ball</title>
		<link>http://www.hoeg.com/archives/48</link>
		<comments>http://www.hoeg.com/archives/48#comments</comments>
		<pubDate>Thu, 23 Dec 2010 03:55:56 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://www.hoeg.com/?p=48</guid>
		<description><![CDATA[After having discovered RVM (Ruby enVironment Manager) and realizing how much easier it makes your life (application specific gemsets are pure genuis), I couldn&#8217;t get it to work on the desktop while it was fine on the laptop. gem kept looking in /var/lib/gems/1.8 and it turns out there is quite a few places where GEM_PATH [...]]]></description>
			<content:encoded><![CDATA[<p>After having discovered <a href="http://rvm.beginrescueend.com/" target="_blank">RVM (Ruby enVironment Manager)</a> and realizing how much easier it makes your life (application specific gemsets are pure genuis), I couldn&#8217;t get it to work on the desktop while it was fine on the laptop.</p>
<p><code>gem</code> kept looking in <code>/var/lib/gems/1.8</code> and it turns out there is quite a few places where GEM_PATH and GEM_HOME are being (or can be) set on your Linux box:</p>
<ol>
<li>/etc/environment</li>
<li>/etc/security/pam_env.conf</li>
<li>$HOME/.gemrc</li>
<li>$HOME/.bashrc and $HOME/.profile</li>
</ol>
<p>In my case it was the first 3 and after removing GEM_(PATH|HOME) assignments from those files, RVM started working.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoeg.com/archives/48/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF::Writer and Ruby on Rails</title>
		<link>http://www.hoeg.com/archives/35</link>
		<comments>http://www.hoeg.com/archives/35#comments</comments>
		<pubDate>Wed, 14 Jan 2009 16:25:25 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.hoeg.com/?p=35</guid>
		<description><![CDATA[Was struggling with an unbelievably annoying error, where PDF::Writer (or pdf-writer as it&#8217;s also called) simply refused to show special accented characters incl the Euro sign, but presented garbage instead. Turns out that as of pdf-writer 1.1.8, the following is the case: a) No, it doesn&#8217;t accept utf-16, despite what it claims b) Feeding it [...]]]></description>
			<content:encoded><![CDATA[<p>Was struggling with an unbelievably annoying error, where PDF::Writer (or pdf-writer as it&#8217;s also called) simply refused to show special accented characters incl the Euro sign, but presented garbage instead. Turns out that as of pdf-writer 1.1.8, the following is the case:</p>
<p>a) No, it doesn&#8217;t accept utf-16, despite what it claims<br />
b) Feeding it utf-8, will look fine for what can be mapped to 7bit ASCII<br />
c) Feeding it Win-1252 seems to do the trick, although some people claim it&#8217;s also hit and miss.</p>
<p>In your class doing the PDF generation, add a method like this:</p>
<pre>def to_pw(text = '')
  return Iconv.conv('win-1252', 'utf-8', text)
end</pre>
<p>And then call that to output all the text.</p>
<p>YMMV, but it worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoeg.com/archives/35/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.236 seconds -->

