<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments for UW Ruby Blog</title>
	<atom:link href="http://uwruby.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://uwruby.com</link>
	<description>UW Ruby Class Blog!</description>
	<pubDate>Wed, 10 Mar 2010 02:54:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Week 2 Homework Requirements by Jordan Dobson</title>
		<link>http://uwruby.com/2009/01/week-2-homework-requirements/comment-page-1/#comment-65</link>
		<dc:creator>Jordan Dobson</dc:creator>
		<pubDate>Tue, 03 Feb 2009 03:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/2009/01/week-2-homework-requirements/#comment-65</guid>
		<description>&lt;p&gt;Mark&lt;/p&gt;

&lt;p&gt;Not sure if you need to check if it's blank. Shouldn't the div class be enough as long as the input is inside it?&lt;/p&gt;

&lt;p&gt;assert "div.fieldWithErrors input#product_title"&lt;/p&gt;

&lt;p&gt;Seems like that would work just fine.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mark</p>

<p>Not sure if you need to check if it&#8217;s blank. Shouldn&#8217;t the div class be enough as long as the input is inside it?</p>

<p>assert &#8220;div.fieldWithErrors input#product_title&#8221;</p>

<p>Seems like that would work just fine.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 2 Homework Requirements by Mark Holton</title>
		<link>http://uwruby.com/2009/01/week-2-homework-requirements/comment-page-1/#comment-64</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Thu, 29 Jan 2009 22:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/2009/01/week-2-homework-requirements/#comment-64</guid>
		<description>&lt;p&gt;since the mailing list is 'on the fritz':&lt;/p&gt;

&lt;p&gt;On Sun, Jan 25, 2009 at 9:26 PM, bill dussler  wrote:
    &gt;
    &gt; billd$ script/console
    &gt; Loading development environment (Rails 2.2.2)
    &gt; &gt;&gt; ActiveRecord::Errors.default_error_messages[:blank]
    &gt;&gt;
    &gt;&gt; =&gt; "can't be blank"
    &gt;&gt;
    &gt;&gt; or:
    &gt;&gt;
    &gt;&gt; &gt;&gt; I18n.translate('activerecord.errors.messages.blank')
    &gt;&gt; =&gt; "can't be blank"
    &gt;&gt;
    &gt;&gt; Presumably ActiveRecord prepends the field_name to the error message
    &gt;&gt; when  adding it to @errors
    &gt;&gt;
    &gt;&gt; I may simply be overthinking this, which wouldn't be the first time ;)
    &gt;&gt;
    &gt;&gt; bill&lt;/p&gt;

&lt;p&gt;Hi Bill,
I used a css selector via assert_select to check and see if a particular (expected) field was blank.&lt;/p&gt;

&lt;p&gt;E.g.:  assert_select "div.fieldWithErrors &gt; input#product_title", :text =&gt; ""&lt;/p&gt;

&lt;p&gt;Hope that helps,
:Mark&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>since the mailing list is &#8216;on the fritz&#8217;:</p>

<p>On Sun, Jan 25, 2009 at 9:26 PM, bill dussler  wrote:
    &gt;
    &gt; billd$ script/console
    &gt; Loading development environment (Rails 2.2.2)
    &gt; &gt;&gt; ActiveRecord::Errors.default_error_messages[:blank]
    &gt;&gt;
    &gt;&gt; =&gt; &#8220;can&#8217;t be blank&#8221;
    &gt;&gt;
    &gt;&gt; or:
    &gt;&gt;
    &gt;&gt; &gt;&gt; I18n.translate(&#8217;activerecord.errors.messages.blank&#8217;)
    &gt;&gt; =&gt; &#8220;can&#8217;t be blank&#8221;
    &gt;&gt;
    &gt;&gt; Presumably ActiveRecord prepends the field_name to the error message
    &gt;&gt; when  adding it to @errors
    &gt;&gt;
    &gt;&gt; I may simply be overthinking this, which wouldn&#8217;t be the first time <img src='http://uwruby.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />     &gt;&gt;
    &gt;&gt; bill</p>

<p>Hi Bill,
I used a css selector via assert_select to check and see if a particular (expected) field was blank.</p>

<p>E.g.:  assert_select &#8220;div.fieldWithErrors &gt; input#product_title&#8221;, :text =&gt; &#8220;&#8221;</p>

<p>Hope that helps,
:Mark</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Your Week 5 Homework by Mark Holton</title>
		<link>http://uwruby.com/2008/04/your-week-5-homework/comment-page-1/#comment-16</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Thu, 24 Apr 2008 18:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=24#comment-16</guid>
		<description>&lt;p&gt;Hi Aaron,
Can you place a link to download the class 5 samples?
cheers,
:Mark&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Aaron,
Can you place a link to download the class 5 samples?
cheers,
:Mark</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 4 Extra Credit Test by Garrick West</title>
		<link>http://uwruby.com/2008/04/week-4-extra-credit-test/comment-page-1/#comment-15</link>
		<dc:creator>Garrick West</dc:creator>
		<pubDate>Wed, 23 Apr 2008 21:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=21#comment-15</guid>
		<description>&lt;p&gt;Must have been late last night;) I got it running ok with the smaller data file
included in the test data.   Based on what's going on here, my first thought is to see if there's a reasonable replacement or optimization for Fixnum plus operator and perhaps think about how we're using String indexing.&lt;/p&gt;

&lt;p&gt;%total   %self     total      self      wait     child            calls   Name&lt;/p&gt;

&lt;h2&gt;/opt/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:26: warning: treating Symbol as an integer&lt;/h2&gt;

&lt;p&gt;/opt/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:30: warning: treating Symbol as an integer
/opt/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:30: warning: treating Symbol as an integer
 100.00%   0.00%      0.39      0.00      0.00      0.39                0     #encode_alac (./lib/week_4.rb:23}  ./lib/week_4.rb:23
                      0.06      0.06      0.00      0.00      32768/32768     Fixnum#&#124;
                      0.00      0.00      0.00      0.00              1/1     Fixnum#==
                      0.00      0.00      0.00      0.00              2/2     String#length
                      0.08      0.08      0.00      0.00      40960/40960     Fixnum#+
                      0.05      0.05      0.00      0.00      24578/24578     String#[]=
                      0.08      0.08      0.00      0.00      40960/40960     String#[]
                      0.03      0.03      0.00      0.00      16384/16384     Fixnum#&amp;
                      0.03      0.03      0.00      0.00      16384/16384     Fixnum#&gt;&gt;
                      0.02      0.02      0.00      0.00        8193/8193     Fixnum#&lt;
                      0.03      0.03      0.00      0.00      16384/16384     Fixnum#&lt;&lt;
                      0.00      0.00      0.00      0.00              1/1     Kernel#dup&lt;/p&gt;

&lt;p&gt;-Garrick&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Must have been late last night;) I got it running ok with the smaller data file
included in the test data.   Based on what&#8217;s going on here, my first thought is to see if there&#8217;s a reasonable replacement or optimization for Fixnum plus operator and perhaps think about how we&#8217;re using String indexing.</p>

<p>%total   %self     total      self      wait     child            calls   Name</p>

<h2>/opt/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:26: warning: treating Symbol as an integer</h2>

<p>/opt/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:30: warning: treating Symbol as an integer
/opt/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/lib/ruby-prof/abstract_printer.rb:30: warning: treating Symbol as an integer
 100.00%   0.00%      0.39      0.00      0.00      0.39                0     #encode_alac (./lib/week_4.rb:23}  ./lib/week_4.rb:23
                      0.06      0.06      0.00      0.00      32768/32768     Fixnum#|
                      0.00      0.00      0.00      0.00              1/1     Fixnum#==
                      0.00      0.00      0.00      0.00              2/2     String#length
                      0.08      0.08      0.00      0.00      40960/40960     Fixnum#+
                      0.05      0.05      0.00      0.00      24578/24578     String#[]=
                      0.08      0.08      0.00      0.00      40960/40960     String#[]
                      0.03      0.03      0.00      0.00      16384/16384     Fixnum#&amp;
                      0.03      0.03      0.00      0.00      16384/16384     Fixnum#&gt;&gt;
                      0.02      0.02      0.00      0.00        8193/8193     Fixnum#&lt;
                      0.03      0.03      0.00      0.00      16384/16384     Fixnum#&lt;&lt;
                      0.00      0.00      0.00      0.00              1/1     Kernel#dup</p>

<p>-Garrick</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 4 Extra Credit Test by Aaron Patterson</title>
		<link>http://uwruby.com/2008/04/week-4-extra-credit-test/comment-page-1/#comment-14</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Wed, 23 Apr 2008 20:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=21#comment-14</guid>
		<description>&lt;p&gt;I think we'll discuss profiling this more in class tonight!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think we&#8217;ll discuss profiling this more in class tonight!</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 4 Extra Credit Test by Garrick West</title>
		<link>http://uwruby.com/2008/04/week-4-extra-credit-test/comment-page-1/#comment-13</link>
		<dc:creator>Garrick West</dc:creator>
		<pubDate>Wed, 23 Apr 2008 07:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=21#comment-13</guid>
		<description>&lt;p&gt;Well, Benchmark was a waste of time and RubyProf seems to spin into infinity for me.  These were my "establish a beachhead" approach to figuring out where to spend my optimizing time (e.g. WTF is taking the most time in the 1st place, eh?
Anyone else have any luck with either of these (or come up with another) profiling tool to start zeroing in on where the cycles are being spent?&lt;/p&gt;

&lt;p&gt;--Garrick&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well, Benchmark was a waste of time and RubyProf seems to spin into infinity for me.  These were my &#8220;establish a beachhead&#8221; approach to figuring out where to spend my optimizing time (e.g. WTF is taking the most time in the 1st place, eh?
Anyone else have any luck with either of these (or come up with another) profiling tool to start zeroing in on where the cycles are being spent?</p>

<p>&#8211;Garrick</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 3 Slides by UW Ruby Blog &#187; Blog Archive &#187; Week 3 Homework Update</title>
		<link>http://uwruby.com/2008/04/week-3-slides/comment-page-1/#comment-12</link>
		<dc:creator>UW Ruby Blog &#187; Blog Archive &#187; Week 3 Homework Update</dc:creator>
		<pubDate>Mon, 14 Apr 2008 17:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=12#comment-12</guid>
		<description>&lt;p&gt;[...] found a problem with the Week 3 homework and posted in the comments for week 3. In the week 3 homework, test_add_to_metaclass should be [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] found a problem with the Week 3 homework and posted in the comments for week 3. In the week 3 homework, test_add_to_metaclass should be [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 3 Slides by Aaron Patterson</title>
		<link>http://uwruby.com/2008/04/week-3-slides/comment-page-1/#comment-11</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Mon, 14 Apr 2008 16:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=12#comment-11</guid>
		<description>&lt;p&gt;Absolutely.  I think I had 1.9 on the brain.  As we discussed in class, 1.8 is not very consistent when it comes to Strings vs Symbols.  Changing those to strings is the right thing to do!  Good catch!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Absolutely.  I think I had 1.9 on the brain.  As we discussed in class, 1.8 is not very consistent when it comes to Strings vs Symbols.  Changing those to strings is the right thing to do!  Good catch!</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 3 Slides by Garrick West</title>
		<link>http://uwruby.com/2008/04/week-3-slides/comment-page-1/#comment-10</link>
		<dc:creator>Garrick West</dc:creator>
		<pubDate>Sun, 13 Apr 2008 23:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=12#comment-10</guid>
		<description>&lt;p&gt;There's a slight 1.9isim in the Week 3 homework.  It seems the test case 
for test_add_to_the_metaclass is expecting the array of method names returned from Kernel#singleton_methods to be symbols.  However, in 1.8 they are Strings as it is discussed here: http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9 in the section "Kernel#singleton_methods, Kernel#methods".  Is it OK for us to go ahead and change the test case to the 1.8 version?&lt;/p&gt;

&lt;p&gt;--Garrick West&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There&#8217;s a slight 1.9isim in the Week 3 homework.  It seems the test case 
for test_add_to_the_metaclass is expecting the array of method names returned from Kernel#singleton_methods to be symbols.  However, in 1.8 they are Strings as it is discussed here: <a href="http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9" rel="nofollow">http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9</a> in the section &#8220;Kernel#singleton_methods, Kernel#methods&#8221;.  Is it OK for us to go ahead and change the test case to the 1.8 version?</p>

<p>&#8211;Garrick West</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Week 3 Slides by Leigh Caplan</title>
		<link>http://uwruby.com/2008/04/week-3-slides/comment-page-1/#comment-9</link>
		<dc:creator>Leigh Caplan</dc:creator>
		<pubDate>Fri, 11 Apr 2008 05:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://uwruby.com/?p=12#comment-9</guid>
		<description>&lt;p&gt;I'm not sure if this was brought up in class, but I found this wonderful explanation of metaclasses by the always poignant Why:&lt;/p&gt;

&lt;p&gt;http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if this was brought up in class, but I found this wonderful explanation of metaclasses by the always poignant Why:</p>

<p><a href="http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html" rel="nofollow">http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html</a></p>]]></content:encoded>
	</item>
</channel>
</rss>
