<?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>Sun, 08 Nov 2009 16:46:54 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>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>
		<item>
			<title>HAML/SASS Auto-Updater</title>
			<link>http://www.daniweb.com/forums/thread214510.html</link>
			<pubDate>Thu, 27 Aug 2009 21:43:48 GMT</pubDate>
			<description><![CDATA[The recession has hit my family hard, so I've decided to sell an application that I use quite often when designing websites. 
 
Screenshot: http://img195.imageshack.us/img195/5440/screenshotisl.png 
 
With this application, you may add haml/sass files and when they are changed, they automatically...]]></description>
			<content:encoded><![CDATA[<div>The recession has hit my family hard, so I've decided to sell an application that I use quite often when designing websites.<br />
<br />
Screenshot: <a rel="nofollow" class="t" href="http://img195.imageshack.us/img195/5440/screenshotisl.png" target="_blank">http://img195.imageshack.us/img195/5...eenshotisl.png</a><br />
<br />
With this application, you may add haml/sass files and when they are changed, they automatically transform into html/css. This is great for making templates or creating webpages outside of rails.<br />
<br />
I'm selling the complete source code for a mere $2 and once bought you may do whatever you'd like with the code. You may edit it, sell it, give it away, or anything.<br />
<br />
If you are interested, email me at <a href="mailto:c00lryguy@gmail.com">c00lryguy@gmail.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>c00lryguy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214510.html</guid>
		</item>
	</channel>
</rss>
