<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - Ruby</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our Ruby forum is the place for Q&A-style discussions related to Ruby development.]]></description>
		<language>en-US</language>
		<lastBuildDate>Fri, 27 Nov 2009 22:17:58 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Ruby</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>How to deploy RoR?</title>
			<link>http://www.daniweb.com/forums/thread240265.html</link>
			<pubDate>Sat, 21 Nov 2009 16:10:41 GMT</pubDate>
			<description>* Can any one just give a video tutorial link to deploy ...a complete ror app..or any text tuts for tat.... 
Thanks in advance 
.*</description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold"> Can any one just give a video tutorial link to deploy ...a complete ror app..or any text tuts for tat....<br />
<span style="color:Red">Thanks in advance</span><br />
.</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>sebinjose</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240265.html</guid>
		</item>
		<item>
			<title>Posting formdata onto webpage and into file</title>
			<link>http://www.daniweb.com/forums/thread240139.html</link>
			<pubDate>Sat, 21 Nov 2009 02:23:46 GMT</pubDate>
			<description><![CDATA[I am posting form data into a file and also on the web page. Could please tell me how do i do that with ruby. This is my code for html form 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am posting form data into a file and also on the web page. Could please tell me how do i do that with ruby. This is my code for html form<br />
 <pre style="margin:20px; line-height:13px">#!/usr/bin/ruby<br />
print &quot;Content-type:text/html\n\n&quot;;<br />
&nbsp; &nbsp; # Display the form<br />
&nbsp; &nbsp; print &lt;HTML;<br />
&nbsp; &nbsp; &lt;html&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &lt;form action=&quot;form1.rb&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &lt;p&gt;Your Name:&lt;input type=&quot;text&quot; name=&quot;name&quot;&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt; &lt;/form&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;&lt;/html&gt;<br />
&nbsp; &nbsp; HTML</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>cutekate</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240139.html</guid>
		</item>
		<item>
			<title><![CDATA[Meaning of '!(...' EG: "myObject.parse!(argv)" ..?]]></title>
			<link>http://www.daniweb.com/forums/thread239123.html</link>
			<pubDate>Tue, 17 Nov 2009 06:18:00 GMT</pubDate>
			<description><![CDATA[Hi there, 
 
QUESTION:  
Whilst "parse(argv)" is obvious, what does "opts.parse!(argv)" do in the below code? And what is the word use to describe doing this? 
 
CONTEXT: 
I am looking at a class called 'Options' whose job is to parse command line options which get passed to a program called...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
QUESTION: <br />
Whilst &quot;parse(argv)&quot; is obvious, what does &quot;opts.parse!(argv)&quot; do in the below code? And what is the word use to describe doing this?<br />
<br />
CONTEXT:<br />
I am looking at a class called 'Options' whose job is to parse command line options which get passed to a program called 'PartInspector'. An extract of this class follows: <br />
 <pre style="margin:20px; line-height:13px">class Options<br />
&nbsp; &nbsp; <br />
&nbsp; def initialize(argv)<br />
&nbsp; &nbsp; @directory = DEFAULT_DIR<br />
&nbsp; &nbsp; parse(argv)&nbsp; <br />
&nbsp; end<br />
<br />
&nbsp; private<br />
&nbsp; &nbsp; def parse(argv)<br />
&nbsp; &nbsp; &nbsp; OptionParser.new do |opts|<br />
&nbsp; &nbsp; &nbsp; opts.banner = &quot;Usage:&nbsp; PartInspector [part_number]&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; opts.on(&quot;-h&quot;, &quot;Shows this message&quot;) do<br />
&nbsp; &nbsp; &nbsp; &nbsp; puts opts<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit<br />
&nbsp; &nbsp; &nbsp; end<br />
<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; argv = [&quot;-h&quot;] if argv.empty?<br />
&nbsp; &nbsp; &nbsp; &nbsp; opts.parse!(argv)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &lt;------- HERE?!!?!<br />
&nbsp; &nbsp; &nbsp; &nbsp; rescue OptionParser::ParseError =&gt; e<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STDERR.puts e.message, &quot;\n&quot;, opts<br />
&nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; end#def parse()&nbsp; &nbsp; <br />
&nbsp;  end#private class<br />
<br />
end#Options class</pre>I know its probably some basic syntax for ruby, not knowing what it is called however makes it difficult to look it up. <br />
<br />
Thanks in advance, Michelle</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>michelle1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239123.html</guid>
		</item>
		<item>
			<title><![CDATA[(Installed Ruby 1.9.1) gem isn't working]]></title>
			<link>http://www.daniweb.com/forums/thread237373.html</link>
			<pubDate>Tue, 10 Nov 2009 03:48:27 GMT</pubDate>
			<description><![CDATA[Hello there, 
 
*Ruby Version Installed:* ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32] 
*Operating Systems:* Windows XP (both PC and laptop) 
 
*Laptop:* I can run a gem command on with no problem 
*PC: * gem won't work despite that ruby works fine. I get this message for any gem command: ...]]></description>
			<content:encoded><![CDATA[<div>Hello there,<br />
<br />
<span style="font-weight:bold">Ruby Version Installed:</span> ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]<br />
<span style="font-weight:bold">Operating Systems:</span> Windows XP (both PC and laptop)<br />
<br />
<span style="font-weight:bold">Laptop:</span> I can run a gem command on with no problem<br />
<span style="font-weight:bold">PC: </span><span style="color:Red"> gem won't work despite that ruby works fine. I get this message for any gem command: </span><br />
 <pre style="margin:20px; line-height:13px">% gem -v<br />
C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load -- stringio (LoadError)<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `&lt;top (required)&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/lib/ruby/1.9.1/rubygems/config_file.rb:7:in `require'<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/lib/ruby/1.9.1/rubygems/config_file.rb:7:in `&lt;top (required)&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/lib/ruby/1.9.1/rubygems/gem_runner.rb:8:in `require'<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/lib/ruby/1.9.1/rubygems/gem_runner.rb:8:in `&lt;top (required)&gt;'<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/bin/gem.bat:17:in `require'<br />
&nbsp; &nbsp; &nbsp; &nbsp; from C:/ruby1.9/bin/gem.bat:17:in `&lt;main&gt;'</pre>It is the exact same installation as on my laptop (where gem works). All the above files are in the installation. Perhaps an environment variable somewhere that has not been set? <br />
<br />
I'm at a loss here, I'd *really* appreciate any help or suggestions on how to fix this. I'm hitting my 5th hour here of pulling out my hair. <br />
<br />
Thanks in advance,<br />
Michelle</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>michelle1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237373.html</guid>
		</item>
		<item>
			<title>Create HTML files using RUBY</title>
			<link>http://www.daniweb.com/forums/thread236062.html</link>
			<pubDate>Wed, 04 Nov 2009 21:52:43 GMT</pubDate>
			<description>Hi, 
 
How do you create HTML files using RUBY. I have a requirement where I need to set color and font of the text, and also provide formatting options for tables having different colors for rows and border(on/off). 
 
Can anybody tell how to do this 
 
Thanks, 
K</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
How do you create HTML files using RUBY. I have a requirement where I need to set color and font of the text, and also provide formatting options for tables having different colors for rows and border(on/off).<br />
<br />
Can anybody tell how to do this<br />
<br />
Thanks,<br />
K</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>skrithikaa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236062.html</guid>
		</item>
		<item>
			<title>this regular expression</title>
			<link>http://www.daniweb.com/forums/thread234539.html</link>
			<pubDate>Thu, 29 Oct 2009 23:47:01 GMT</pubDate>
			<description><![CDATA[Why is this regular expression (pat) not working? According to documentation, scan takes both string and regexp. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>Why is this regular expression (pat) not working? According to documentation, scan takes both string and regexp.<br />
<br />
 <pre style="margin:20px; line-height:13px">irb(main):001:0&gt; pat = '\d+ (\w+) \(\d+\)'<br />
=&gt; &quot;\\d+ (\\w+) \\(\\d+\\)&quot;<br />
irb(main):002:0&gt; string = 'dfasdf 1 up (2009) sdfasdf 2 walle (2008) adfasdf'<br />
=&gt; &quot;dfasdf 1 up (2009) sdfasdf 2 walle (2008) adfasdf&quot;<br />
irb(main):003:0&gt; string.scan(pat)<br />
=&gt; []</pre><br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>johndoe444</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234539.html</guid>
		</item>
		<item>
			<title>Mixing PHP and Ruby together... opinions and suggestions.</title>
			<link>http://www.daniweb.com/forums/thread234027.html</link>
			<pubDate>Wed, 28 Oct 2009 03:07:10 GMT</pubDate>
			<description><![CDATA[Hey; 
I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to "mix languages" like PHP and ruby or will I run into some major problems? I would really appreciate your opinion. If your advice is helpful to my...]]></description>
			<content:encoded><![CDATA[<div>Hey;<br />
I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to &quot;mix languages&quot; like PHP and ruby or will I run into some major problems? I would really appreciate your opinion. If your advice is helpful to my situation I'll add to your reputation.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>tiger86</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234027.html</guid>
		</item>
		<item>
			<title>Create elements in memory</title>
			<link>http://www.daniweb.com/forums/thread233955.html</link>
			<pubDate>Tue, 27 Oct 2009 19:52:54 GMT</pubDate>
			<description>Hi, 
 
Can some one tell me how to create elements like (text, tables) in memory, then edit them in memory and finally print it on a file. 
 
Thanks, 
K</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Can some one tell me how to create elements like (text, tables) in memory, then edit them in memory and finally print it on a file.<br />
<br />
Thanks,<br />
K</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>skrithikaa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233955.html</guid>
		</item>
		<item>
			<title>create doc and add elements like tables and text</title>
			<link>http://www.daniweb.com/forums/thread233411.html</link>
			<pubDate>Mon, 26 Oct 2009 09:40:38 GMT</pubDate>
			<description>Hi, 
 
I am new to ruby programming. I would like to know how to create a document and add elements like texts and tables. I also need to modify those and then write them into a file. 
 
Is it possible to do it with Ruby? 
 
Thanks, 
K</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am new to ruby programming. I would like to know how to create a document and add elements like texts and tables. I also need to modify those and then write them into a file.<br />
<br />
Is it possible to do it with Ruby?<br />
<br />
Thanks,<br />
K</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>skrithikaa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233411.html</guid>
		</item>
		<item>
			<title>problems with ruby dbi</title>
			<link>http://www.daniweb.com/forums/thread231928.html</link>
			<pubDate>Wed, 21 Oct 2009 10:17:38 GMT</pubDate>
			<description>Hello 
 
Hopefully someone can help me. 
 
I am trying to update fields in a mysql database using ruby with dbi, but no matter what I try, i just cannot update the row. 
 
I am able to search it, but never update.  
 
I search for the right string, then open a file, search for that string and then...</description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
Hopefully someone can help me.<br />
<br />
I am trying to update fields in a mysql database using ruby with dbi, but no matter what I try, i just cannot update the row.<br />
<br />
I am able to search it, but never update. <br />
<br />
I search for the right string, then open a file, search for that string and then update the mysql row. but the update part will not work.<br />
<br />
here is the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">#!/usr/bin/ruby<br />
<br />
require 'dbi'<br />
require 'mysql'<br />
<br />
# quit unless our script gets two command line arguments<br />
unless ARGV.length == 1<br />
&nbsp; puts &quot;Wrong number of arguments\n&quot;<br />
&nbsp; puts &quot;Usage: ruby mysql-test*.rb csv_file\n&quot;<br />
&nbsp; exit<br />
end<br />
<br />
dbh = DBI.connect('DBI:Mysql:testlink', 'user', 'passwd')<br />
<br />
query = dbh.prepare(&quot;SELECT field_id, node_id, value FROM cfield_design_values ORDER BY node_id;&quot;)<br />
query.execute()<br />
while row = query.fetch() do<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;field_id = %d, node_id = %d, value = %s \n&quot;, row[0], row[1], row[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( row[0] == 7 ) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;we have a match&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if row[2].empty? <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;Nothing to parse&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;Something to parse&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Set up an empty array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; databaseArray = []<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Split the web address in the database into the array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; databaseArray = row[2].split(&quot;/&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Check the end value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $databaseSplit = databaseArray.last<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;value of the last element of the array = #$databaseSplit&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if $databaseSplit.include?(&quot;DispForm&quot;) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;Disp form found&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # set up an array for the string<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fileArray = []<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fileHTTParray = []<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # open the file for reading<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;opening the file&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Create a bool for breaking when a match is found<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $matchFound = false<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File.open(ARGV[0], &quot;r&quot;) do |file|<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while line = file.gets<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Break from the loop when a match is found<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break(line) if $matchFound == true<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #puts &quot;matchFound in the first part of the loop is #$matchFound&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Split the line of the file into an array&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fileArray = line.split(&quot;,&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Put into a new variable<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileSplit = $fileArray[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Split it into another array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fileHTTParray = fileSplit.split(&quot;/&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # put into a variable for comparison<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fileCompare = $fileHTTParray.last<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Compare with the value from database<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #puts &quot;#$databaseSplit, #$fileCompare&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( $databaseSplit == $fileCompare)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;WE HAVE A MATCH !!!! \n&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;row[2] = %s\n&quot;, row[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;filearray[4] = #$fileArray[4]\n&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row[2] = $fileArray[4]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;row[2] = %s\n&quot;, row[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;row[0] = %d\n&quot;, row[0]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;row[1] = %d\n&quot;, row[1]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $field_id = row[0] <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $node_id = row[1]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $value = row[2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Change the value contained in the field node<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbh.do(&quot;UPDATE cfield_design_values SET value=? WHERE field_id=? &amp;&amp; node_id=?&quot;, $value, $field_node, $node_id)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $matchFound = true<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #puts &quot;They do not match&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $matchFound = false<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts &quot;Filename found&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
end<br />
dbh.disconnect</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>thegoatboy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231928.html</guid>
		</item>
		<item>
			<title>Ruby is hot i want to learn it</title>
			<link>http://www.daniweb.com/forums/thread231846.html</link>
			<pubDate>Wed, 21 Oct 2009 04:40:30 GMT</pubDate>
			<description>After twitter, many people are ready to do projects with ruby on rails, let me tell you frankly i dont know even a inch about it, I just know basic languages like javascript, xml, html , asp. Give me a roadmap how to read ruby on rails and master at least before 2010 year end.</description>
			<content:encoded><![CDATA[<div>After twitter, many people are ready to do projects with ruby on rails, let me tell you frankly i dont know even a inch about it, I just know basic languages like javascript, xml, html , asp. Give me a roadmap how to read ruby on rails and master at least before 2010 year end.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>mhenry</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231846.html</guid>
		</item>
		<item>
			<title>R on R on Vista</title>
			<link>http://www.daniweb.com/forums/thread231328.html</link>
			<pubDate>Mon, 19 Oct 2009 07:35:38 GMT</pubDate>
			<description><![CDATA[Hello everyone, 
 
I am a newbie to Ruby.  I installed Instant Rails on a Windows Vista machine and whenever I started the InstantRails, it gave an error message "Either Apache or MySQL cannot run because another program is using it's ports." 
 
I have checked my firewall settings and couldn't...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
<br />
I am a newbie to Ruby.  I installed Instant Rails on a Windows Vista machine and whenever I started the InstantRails, it gave an error message &quot;Either Apache or MySQL cannot run because another program is using it's ports.&quot;<br />
<br />
I have checked my firewall settings and couldn't figure out what is causing this error.<br />
<br />
Can someone help me, please.<br />
<br />
Thank you,<br />
<br />
SR</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>sram6</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231328.html</guid>
		</item>
		<item>
			<title>making a webpage using ruby</title>
			<link>http://www.daniweb.com/forums/thread228875.html</link>
			<pubDate>Fri, 09 Oct 2009 13:57:47 GMT</pubDate>
			<description>anyone here who could help me make a webpage using ruby? is it possible? im having a hard time..</description>
			<content:encoded><![CDATA[<div>anyone here who could help me make a webpage using ruby? is it possible? im having a hard time..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>sheishei</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228875.html</guid>
		</item>
		<item>
			<title>Writing a Mad Libs program?</title>
			<link>http://www.daniweb.com/forums/thread227446.html</link>
			<pubDate>Sat, 03 Oct 2009 14:51:39 GMT</pubDate>
			<description>How would I go about writing a Mad Libs program? 
 
Any examples would be greatly appreciated. 
 
Thanks!</description>
			<content:encoded><![CDATA[<div>How would I go about writing a Mad Libs program?<br />
<br />
Any examples would be greatly appreciated.<br />
<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>ringling</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227446.html</guid>
		</item>
		<item>
			<title><![CDATA[[BUG] Segmentation fault]]></title>
			<link>http://www.daniweb.com/forums/thread222525.html</link>
			<pubDate>Sat, 12 Sep 2009 14:04:36 GMT</pubDate>
			<description><![CDATA[Hey! 
 
I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Hey!<br />
<br />
I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with<br />
 <pre style="margin:20px; line-height:13px">ruby mycode.rb</pre>The execution stops returning:<br />
 <pre style="margin:20px; line-height:13px">/usr/lib/ruby/site_ruby/1.8/i386-cygwin/sdl.so: [BUG] Segmentation fault</pre>Of course, /usr makes no sense in windows.<br />
On the other hand, if I simply double-click mycode.rb from the explorer, or type<br />
 <pre style="margin:20px; line-height:13px">mycode.rb</pre>on CMD, without the ruby part, it works.<br />
<br />
The thing is that I am not able to use any IDE that way!<br />
It's quite sad to finish writing the code and then go searching for the file in the explorer to double-click it, instead of hitting Run!<br />
<br />
Thanks in advance<br />
<br />
- EDIT -<br />
<br />
As I finished posted the thread, I found the problem.<br />
When writing<br />
 <pre style="margin:20px; line-height:13px">ruby myfile.rb</pre>the ruby interpreter that was launched was the one which came with Cygwin. That's why it couldn't find the lib.<br />
<br />
I updated my PATH, and done.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>theGraffo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222525.html</guid>
		</item>
		<item>
			<title>Compressing Question</title>
			<link>http://www.daniweb.com/forums/thread215503.html</link>
			<pubDate>Tue, 01 Sep 2009 16:40:38 GMT</pubDate>
			<description><![CDATA[Hello, 
I'm learning Ruby, and i want to know how to compress files using Ruby. 
 
Thanks, 
Nathan Paulino Campos]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
I'm learning Ruby, and i want to know how to compress files using Ruby.<br />
<br />
Thanks,<br />
Nathan Paulino Campos</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>Nathan Campos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215503.html</guid>
		</item>
	</channel>
</rss>
