<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for katemuse</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#usercomments-b59cfa80" type="application/json"/><link>http://disqus.com/people/katemuse/</link><description></description><language>en</language><lastBuildDate>Wed, 21 Jan 2009 16:59:39 -0000</lastBuildDate><item><title>Re: Syllabus</title><link>http://e168f08.plugh.org/syllabus/#comment-5447561</link><description>Are there still student project demos planned?  I'd love to see what other people are doing.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Wed, 21 Jan 2009 16:59:39 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5104241</link><description>Where is everybody?  &lt;br&gt;&lt;br&gt;Can anyone suggest a good summary of the differences between all the different ajax remote tags and when to use which?  &lt;br&gt;&lt;br&gt;Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 13 Jan 2009 21:40:31 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5083372</link><description></description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 19:37:06 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5080585</link><description>Nokogiri seemed simpler to me and the reviews seemed quite positive.  I never tried Hpricot.  The glob I wrote was just to show what I was trying to achieve, although I understood that wasn't the way to do it.  I guess what I'm asking is, how would you suggest handling this in ruby?  Would I need to use "mechanize"? &lt;br&gt;thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 16:46:35 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5075689</link><description>Here's my code from file asanas_helper.rb:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;require 'rubygems'&lt;br&gt;require 'open-uri'&lt;br&gt;require 'nokogiri'&lt;br&gt;&lt;br&gt;module AsanasHelper      &lt;br&gt;    def self.feed&lt;br&gt;      &lt;br&gt;      doc = Nokogiri::HTML(open('http://www.yogabasics.com/asana/postures/*.html'))   #this doesn't work.&lt;br&gt;&lt;br&gt;      poses = doc.search('/html/body/div/div/div/div[5]/div[div/div/span/@class="pathway"]')&lt;br&gt;                          &lt;br&gt;      postures = []&lt;br&gt;&lt;br&gt;      poses.each do |pose|   &lt;br&gt;        &lt;br&gt;        english         = pose.search('span[@class="pathway"].first').text  &lt;br&gt;     . . . .&lt;br&gt;        postures &amp;lt;&amp;lt; {:message =&amp;gt; "searching yoga plexus", :english =&amp;gt; english, :sanskrit =&amp;gt; sanskrit,  :basic_instruction =&amp;gt; basic_instruction}   #:difficulty =&amp;gt; difficulty, , :benefits =&amp;gt; benefits, :contraindications =&amp;gt; contraindications&lt;br&gt;      end&lt;br&gt;      &lt;br&gt;      return postures&lt;br&gt;&lt;br&gt;  end&lt;br&gt;end</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 13:52:53 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5075612</link><description>In order to get a decently populated database I decided to try Hpricot's rival, Nokogiri for html scraping.  I'm puzzled as to how to point the parser to a directory of docs as opposed to individual documents.  It can't be too different from the way Hpricot does it.  Has anyone had experience with this?  Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 13:48:00 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-5068929</link><description>Amy set me straight in about 10 minutes.  ps. please don't take me seriously; I was joking around.  In the words of steve martin: soooooorry!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 12 Jan 2009 01:17:26 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4963703</link><description>All these geniuses like Philadelphia ready to deploy already, and me still struggling to get through my darn multiple model forms, ain't even touched ajax yet...  Are there any more schmo's out there?  Please, normal dufuses, tell me you're alive!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Wed, 07 Jan 2009 12:56:17 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4873459</link><description>I am SO CONFUSED!  ARRRGGGGh!&lt;br&gt; &lt;br&gt;My Sequence form is the most complicated.  In a single region I need to have:&lt;br&gt;one form that just wants to collect preferences (pose type and pose subtype) so the app can narrow what's listed in the next section.  If the user selects either type or subtype the next section will list only the poses that are children of that type/subtype.  If the user selects both type &amp; subtype the list will include only poses in both sets (overlapping).  I want to do something like   &amp;lt;% form_tag {:action =&amp;gt;"accept_asana_categories_and_return_asanas", :id =&amp;gt; @asana_type } do %&amp;gt;.. but instead of choosing just @asana_type I want to return either/both asana_type and asana_subtype as parameters to "accept_asana_categories_and_return_asanas".    &lt;br&gt;&lt;br&gt;Any ideas as to how to accomplish that? &lt;br&gt;&lt;br&gt;The next form needs to list a collection of asanas based on the first form's returned parameters, types/subtypes; each pose is a link that will create a new row in the join table, asanas_sequences. Ultimately when Ajax comes in (I haven't even been able to think about Ajax yet!) the list of poses will update automatically.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Sat, 03 Jan 2009 21:16:23 -0000</pubDate></item><item><title>Re: Screencast - RestfulAuthentication - 1</title><link>http://e168f08.plugh.org/screencasts/screencast-restfulauthentication-1/#comment-4786137</link><description>I fixed the problem.  thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 30 Dec 2008 15:13:48 -0000</pubDate></item><item><title>Re: Screencast - RestfulAuthentication - 1</title><link>http://e168f08.plugh.org/screencasts/screencast-restfulauthentication-1/#comment-4785621</link><description>One thing I should mention is that i hadn't tested user.new for a while, and may not have anything to do with the db switch except for the fact that I lost my user data from the old db.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 30 Dec 2008 14:37:43 -0000</pubDate></item><item><title>Re: Screencast - RestfulAuthentication - 1</title><link>http://e168f08.plugh.org/screencasts/screencast-restfulauthentication-1/#comment-4785606</link><description>I love this screencast and instruction sheet.  It's so clear and easy to use, and it worked for me until I changed database types.  I had started my project using mysql so that I could make an easy chart of my models using dbvisualizer.  I had been happily rolling along until today when I finally switched to sqlite3.  Suddenly the authentication system is broken, and user.new silently fails.  Any thoughts?  Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 30 Dec 2008 14:36:10 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4783850</link><description>Heres's a way to easily pick out syntax errors in your code:  Go to &lt;a href="http://blog.hungrymachine.com/2008/06/04/rake-task-for-syntax-checking-a-ruby-on-rails-project/" rel="nofollow"&gt;http://blog.hungrymachine.com/2008/06/04/rake-t...&lt;/a&gt;, and copy the code to a new file in lib/tasks.  Name the file check.rake or something ending in .rake.  I surrounded the code in a 'namespace :check do' block (after the require statements) so I can just run rake check:check_syntax from the command line and it checks all my code for syntax!  It's beautiful.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 30 Dec 2008 13:04:22 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4626214</link><description>that was a really stupid question and I tried to delete it but no go.  No wonder Anne wanted to start a separate google group!  I couldn't figure it out until I realized that once you post a comment here, it's impossible to delete it.  Now everyone knows I'm a schmo.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Thu, 25 Dec 2008 10:41:01 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4625797</link><description>Can you write multiple routing statements about the same model?, eg&lt;br&gt;  map.resources :sequences&lt;br&gt;  map.resources :sequences, :member =&amp;gt; { :get_postures =&amp;gt; :get }  &lt;br&gt;  map.resources :sequences, :has_many=&amp;gt;:user_observations</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Thu, 25 Dec 2008 09:28:52 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4591929</link><description>thanks, John!  Makes sense.  It does beg the question of how to validate a model for associated instances, but I clearly don't need to use that at this point.  Merry Chanukah/Happy Xmas</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 23 Dec 2008 12:31:27 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4576327</link><description>Sure. &lt;br&gt;&lt;br&gt;AsanasSequences is the join table.  I implemented acts_as_list so that users could rearrange the order of postures in their sequences.  The actual name of the association I want to validate in Sequence.rb is "postures", and each of these is an instance of AsanasSequences that relates to one of the asanas.&lt;br&gt;&lt;br&gt;To access the properties of an asana in a Sequence named sequence1 you need to use sequence1.posture.asana.&lt;br&gt;&lt;br&gt;Here is the class def for Sequence:&lt;br&gt;class Sequence &amp;lt; ActiveRecord::Base  &lt;br&gt;  belongs_to :user &lt;br&gt;  has_many :postures, :class_name =&amp;gt; "AsanasSequences", :order =&amp;gt; :position&lt;br&gt;  has_many :asanas, :through =&amp;gt; :asanas_sequences     &lt;br&gt; end&lt;br&gt;&lt;br&gt;thanks!&lt;br&gt;catherine</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 22 Dec 2008 15:47:24 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-4571176</link><description>Hi -- I'm playing with a model, "Sequence", that should have no existence independent of its collection of objects.  Validation is tricky here because the model, Sequence, has no attribute that correlates with its collection.  It has a has_many :through relationship to "Asana".    I don't want to allow any new Sequences to be created without at least one asana associated with them.  How would one validate such a thing?  Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Mon, 22 Dec 2008 11:09:38 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.plugh.org/assignments/assignment-3-milestone-iii/#comment-4236101</link><description>thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Sun, 07 Dec 2008 11:48:22 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.plugh.org/assignments/assignment-3-milestone-iii/#comment-4236091</link><description>I just wanted to confirm that you can't change the unit of a measurement, even if you create a new unit and associate it with the same measurement.  Is this true?  Should we enable to user to select a different unit of measurement, or are we stuck with the first, "preferred" unit?  For example in the reference application I created a new unit "corpses" to be used for a certain kind of measurement of "bodies" and created a new "bugs_measured_in_corpses" observation kind, but could only, in truth, measure it in "units" -- the first unit created with "bodies" as the measurement type.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Sun, 07 Dec 2008 11:47:08 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.plugh.org/assignments/assignment-3-milestone-iii/#comment-4235662</link><description>Hello!&lt;br&gt;&lt;br&gt;My tests complained that a new ObservationKind was created without a :measurement_id value.  My ObservationKind model file includes "validates_presence_of :measurement_id".  &lt;br&gt;&lt;br&gt;First, it looks like the validation isn't working.  Wha?&lt;br&gt;&lt;br&gt;Second, I started a new migration, adding ":null =&amp;gt; false" as an option to change_column:&lt;br&gt;    change_column :observation_kinds, :measurement_id, :null =&amp;gt; false   &lt;br&gt;&lt;br&gt;but the migration failed with the message, -- change_column(:observation_kinds, :measurement_id, {:null=&amp;gt;false})&lt;br&gt;rake aborted!&lt;br&gt;undefined method `to_sym' for {:null=&amp;gt;false}:Hash&lt;br&gt;&lt;br&gt;WHA???&lt;br&gt; this seems nuts!  any suggestions?  thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Sun, 07 Dec 2008 10:48:33 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-3088914</link><description>cool!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Thu, 16 Oct 2008 10:36:43 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-3087200</link><description>Along the same lines: wouldn't it be nice if these comments appeared latest-first?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Thu, 16 Oct 2008 08:24:19 -0000</pubDate></item><item><title>Re: Cooler</title><link>http://e168f08.plugh.org/cooler/#comment-3087188</link><description>Wouldn't it be nice if rake spot/test printed the errors in reverse order?   Searching up the terminal window for the first error in a long string of tests is a time consuming pain.  I wonder if anyone has ever tried printing tests to a file, reversing the paragraph order and then reading the file from the terminal.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Thu, 16 Oct 2008 08:23:04 -0000</pubDate></item><item><title>Re: Assignment 0</title><link>http://e168f08.plugh.org/assignments/assignment-0/#comment-2555032</link><description>An older version of XCode on my Mac prevented me from installing sqlite3--  "C compiler cannot create executables" was the error at the configure stage.  Only after I updated XCode did the install run smoothly.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">katemuse</dc:creator><pubDate>Tue, 23 Sep 2008 22:49:07 -0000</pubDate></item></channel></rss>