<?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>Sara Trice &#187; tech</title>
	<atom:link href="http://saratrice.com/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://saratrice.com</link>
	<description>Just a website designin', bellydancin', hair dyein' kinda girl</description>
	<lastBuildDate>Wed, 14 Jul 2010 21:48:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby: how to split a string into equal chunks</title>
		<link>http://saratrice.com/2010/07/14/ruby-how-to-split-a-string-into-equal-chunks/</link>
		<comments>http://saratrice.com/2010/07/14/ruby-how-to-split-a-string-into-equal-chunks/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 21:48:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://saratrice.com/?p=189</guid>
		<description><![CDATA[&#8220;some long test string or other&#8221;.scan(/.{15}/)
Snagged from http://snippets.dzone.com/posts/show/5621 and posted here so I can find it later.
]]></description>
			<content:encoded><![CDATA[<p>&#8220;some long test string or other&#8221;.scan(/.{15}/)</p>
<p>Snagged from <a href="http://snippets.dzone.com/posts/show/5621">http://snippets.dzone.com/posts/show/5621</a> and posted here so I can find it later.</p>
]]></content:encoded>
			<wfw:commentRss>http://saratrice.com/2010/07/14/ruby-how-to-split-a-string-into-equal-chunks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RubyGems 1.3.7 doesn&#8217;t play nice with OSX 1.5.8</title>
		<link>http://saratrice.com/2010/05/27/rubygems-1-3-7-doesnt-play-nice-with-osx-1-5-8/</link>
		<comments>http://saratrice.com/2010/05/27/rubygems-1-3-7-doesnt-play-nice-with-osx-1-5-8/#comments</comments>
		<pubDate>Thu, 27 May 2010 19:21:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://saratrice.com/?p=180</guid>
		<description><![CDATA[If you ever run into this pain in the butt error, hopefully this&#8217;ll save you some time:
Installing a gem without the version works fine; installing a gem using &#8220;-v 2.x.x&#8221; or whatever version you like ends in:
spec_fetcher.rb:254: warning: getc is obsolete; use STDIN.getc instead
Guess what? RubyGems 1.3.7 doesn&#8217;t play nice with OSX 10.5.8. So downgrade [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever run into this pain in the butt error, hopefully this&#8217;ll save you some time:</p>
<p>Installing a gem without the version works fine; installing a gem using &#8220;-v 2.x.x&#8221; or whatever version you like ends in:<br />
<code>spec_fetcher.rb:254: warning: getc is obsolete; use STDIN.getc instead</code></p>
<p>Guess what? RubyGems 1.3.7 doesn&#8217;t play nice with OSX 10.5.8. So downgrade to 1.3.6, or if you&#8217;re using RVM, do this:<br />
<code>echo 'rubygems_version=1.3.6' &gt;&gt; ~/.rvm/config/user ; rvm remove 1.8.7 ; rvm install 1.8.7</code></p>
<p>(assuming you are using 1.8.7 in your RVM, otherwise, use 1.9.1 or whatever)</p>
<p>Voila, works like a charm.</p>
<p>Thanks to Wayne E. Seguin for his help on irc.freenode.net #rvm (and for <a href="http://rvm.beginrescueend.com/" target="_blank">RVM</a> in the first place!)</p>
<p>PS You may have to downgrade to 1.3.5 to get &#8220;rake gems:install&#8221; to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://saratrice.com/2010/05/27/rubygems-1-3-7-doesnt-play-nice-with-osx-1-5-8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Images showing negative in Safari, and not displaying in IE.</title>
		<link>http://saratrice.com/2010/03/26/images-showing-negative-in-safari-and-not-displaying-in-ie/</link>
		<comments>http://saratrice.com/2010/03/26/images-showing-negative-in-safari-and-not-displaying-in-ie/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 22:06:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://saratrice.com/?p=168</guid>
		<description><![CDATA[This problem drove me crazy for a while:
I did a website for recently an established webcomic and some of the old archive images were showing up in negative on some browsers, and not showing up at all in others. But it didn&#8217;t happen to all the images, and not on all browsers. I beat my [...]]]></description>
			<content:encoded><![CDATA[<p>This problem drove me crazy for a while:</p>
<p>I did a website for recently <a href="http://www.partiallyclips.com">an established webcomic</a> and some of the old archive images were showing up in negative on some browsers, and not showing up at all in others. But it didn&#8217;t happen to all the images, and not on all browsers. I beat my head against this for a while.</p>
<p>When you can&#8217;t figure out what&#8217;s wrong with an image, you look at the image properties, rather than beat your head against a wall. This is what I suggest, anyway, because I didn&#8217;t do that.</p>
<p>They were CMYK.</p>
<p>CMYK images show as negative in Safari, and don&#8217;t show up at all in some versions of IE.</p>
<p>Yay. Great. Converted them to RGB, re-uploaded, all fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://saratrice.com/2010/03/26/images-showing-negative-in-safari-and-not-displaying-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails: When Textmate Breaks</title>
		<link>http://saratrice.com/2009/11/13/ruby-on-rails-when-textmate-breaks/</link>
		<comments>http://saratrice.com/2009/11/13/ruby-on-rails-when-textmate-breaks/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 18:12:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://saratrice.com/?p=159</guid>
		<description><![CDATA[After installing Ruby 1.8.7 on my shiny iMac, Textmate decided that it no longer knew where the Ruby environment was. Oh, it knew where Ruby was, and would run Ruby scripts just fine, but whenever I tried to use anything from any bundle, all I got was:
&#8220;env: ruby: No such file or directory&#8221;
Maddening.
Turns out I [...]]]></description>
			<content:encoded><![CDATA[<p>After installing Ruby 1.8.7 on my shiny iMac, Textmate decided that it no longer knew where the Ruby environment was. Oh, it knew where Ruby was, and would run Ruby scripts just fine, but whenever I tried to use anything from any bundle, all I got was:</p>
<p>&#8220;env: ruby: No such file or directory&#8221;</p>
<p>Maddening.</p>
<p>Turns out I didn&#8217;t have a environment.plist file in my /Users/(username)/.MacOSX/ directory, and even though it worked just fine before without it, that was no longer the case.</p>
<p><a href="http://devender.wordpress.com/2009/03/29/write-shell-variables-into-environmentplist/" target="_blank">Here&#8217;s</a> where to get a nifty little Ruby script to build it and even stick it in the right place for you. Note, the file must already exist, so you&#8217;ll have to make a .MacOSX directory in your user directory, and create an empty file &#8220;environment.plist.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://saratrice.com/2009/11/13/ruby-on-rails-when-textmate-breaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails: Autocomplete with jQuery error: &#8220;Couldn&#8217;t find FileData with ID&#8221;</title>
		<link>http://saratrice.com/2009/06/08/ruby-on-rails-autocomplete-with-jquery-error-couldnt-find-filedata-with-id/</link>
		<comments>http://saratrice.com/2009/06/08/ruby-on-rails-autocomplete-with-jquery-error-couldnt-find-filedata-with-id/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 22:16:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://saratrice.com/?p=150</guid>
		<description><![CDATA[Just in case anyone else has this problem and does not want to bang their head against the wall for an hour like I did:
When using the autocomplete plugin that uses jQuery instead of scriptaculous, you need to add a route:
map.auto_complete ':controller/:action',
     :requirements =&#62; { :action =&#62; /auto_complete_for_\S+/ },
   [...]]]></description>
			<content:encoded><![CDATA[<p>Just in case anyone else has this problem and does not want to bang their head against the wall for an hour like I did:</p>
<p>When using the <a href="http://github.com/chris/auto_complete_jquery/tree/master" target="_blank">autocomplete plugin</a> that uses jQuery instead of scriptaculous, you need to add a route:</p>
<pre>map.auto_complete ':controller/:action',
     :requirements =&gt; { :action =&gt; /auto_complete_for_\S+/ },
     :conditions =&gt; { :method =&gt; :get }</pre>
<p>As per <a href="http://railsforum.com/viewtopic.php?pid=72135#p72135" target="_blank">this post</a> by the author of the plugin, who for some unknown reason hasn&#8217;t included that step with the instructions for the plugin. (WTF?) Otherwise it just sends the request to the show action, which looks at you stupidly and replies, &#8220;Couldn&#8217;t find FileData with ID=auto_complete_for_yourfieldname&#8221;, replacing &#8220;yourfieldname&#8221; with whatever you&#8217;d actually like it to return.</p>
]]></content:encoded>
			<wfw:commentRss>http://saratrice.com/2009/06/08/ruby-on-rails-autocomplete-with-jquery-error-couldnt-find-filedata-with-id/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
