From MAILER-DAEMON  Thu Jan 25 05:56:31 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 80C3E23CA87;
	Thu, 25 Jan 2007 05:56:31 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id C1QzaLVXfprY; Thu, 25 Jan 2007 05:56:26 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 989CF23CA88;
	Thu, 25 Jan 2007 05:56:26 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id EMI81207
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 25 Jan 2007 03:35:07 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0PBZ6iS1382468
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 25 Jan 2007 05:35:06 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0PBZ6pl1394255
	for uhcoscstsd@list.prudentlearning.com; Thu, 25 Jan 2007 05:35:06 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701251135.l0PBZ6pl1394255@bay.uh.edu>
Subject: Welcome
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 25 Jan 2007 05:35:06 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 580
X-IMAPbase: 1169723889 175092 $NotJunk $Forwarded JunkRecorded $Junk
Status: O
X-UID: 175049
X-Keywords: $NotJunk           


Greetings,

Welcome to the mailing list for the Ruby, Rails, and AJAX course.
We will use this list to discuss, shared and exchange ideas.
Please keep this as technical as possible.

How to send email to the mailing list?
Please send your email to cosc155g@bayou.uh.edu and it will
be forwarded to the list (with any additional comments if necessary).

Please note: If you send email to the list server directly, it
will be ignored - this is to keep hundreds of spams that try to 
get through to the list each day.

This list is for you, so put it to good use.

Regards,

Venkat

From MAILER-DAEMON  Sat Jan 27 08:22:37 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id EBCA323CA6E;
	Sat, 27 Jan 2007 08:22:36 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id LRaMHEflkPxr; Sat, 27 Jan 2007 08:22:32 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C86F623CA6D;
	Sat, 27 Jan 2007 08:22:31 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GPB28156
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 27 Jan 2007 06:00:56 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0RE0siS1423520
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 27 Jan 2007 08:00:54 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0RE0sUA1407115
	for uhcoscstsd@list.prudentlearning.com; Sat, 27 Jan 2007 08:00:54 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701271400.l0RE0sUA1407115@bay.uh.edu>
Subject: Re: Ruby Code (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 27 Jan 2007 08:00:54 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1726
Status: RO
X-UID: 175050
X-Keywords: $NotJunk                   

>Hi,
>
>Quote from Paul Graham.
>
>"... another big change for the average startup is that programming
>languages have improved-- or rather, the median
>language<http://www.paulgraham.com/avg.html>has. At most startups ten
>years ago, software development meant ten
>programmers writing code in C++. Now the same work might be done by one or
>two using Python or Ruby.
>
>During the Bubble, a lot of people predicted that startups would outsource
>their development to India. I think a better model for the future is David
>Heinemeier Hansson, who outsourced his development to a more powerful
>language instead. A lot of well-known applications are now, like BaseCamp,
>written by just one programmer. And one guy is more than 10x cheaper than
>ten, because (a) he won't waste any time in meetings, and (b) since he's
>probably a founder, he can pay himself nothing."
>
>I get a sense that Mr. Graham view Ruby as an equalizer between small nimble
>startups and large powerful corporations. Personally, I don't think
>established Enterprises are ready for ruby. However, it's already been
>embraced by many startups. The question remaining will be whether Ruby is a
>fad or something more revolutionary that will take the industry by a storm.

Very good points. Large corporations are somewhat slow in adopting new
technologies (with a few exceptions from time to time). I think they
have no choice. It is not that they will use Ruby. It is that they
will be influenced by it and use technology that will make them productive.
For example, Groovy, Grails, and a list of a lot more languages, frameworks
are appearing on the JVM. This can help move larger organizations to 
adapt the benefits of dynamic languages....

Venkat

From MAILER-DAEMON  Fri Jan 26 05:29:00 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5996C23CA87;
	Fri, 26 Jan 2007 05:29:00 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 00-3vThuPmxM; Fri, 26 Jan 2007 05:28:53 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id F36CA23CA80;
	Fri, 26 Jan 2007 05:28:52 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FMH73526
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 26 Jan 2007 03:07:26 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0QB7QiS1406845
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 26 Jan 2007 05:07:26 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0QB7PIf1409029
	for uhcoscstsd@list.prudentlearning.com; Fri, 26 Jan 2007 05:07:25 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701261107.l0QB7PIf1409029@bay.uh.edu>
Subject: Ruby Code (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 26 Jan 2007 05:07:25 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Length: 2518
Status: RO
X-UID: 175051
X-Keywords: $NotJunk                   

Hi

Thank you for opening this mailing list with an interesting question
(towards the end of this email).

> You mentioned about a Ruby code example which generated notifications when
>a checkout happens on the svn repository. Is it possible for you to share
>that piece of code with us.

In svn, you can place hooks in the repository's hooks directory.
It can be either  an executable or a script.

Here is my post commit hook (with some modifications to remove
certain sensitive information):

REPOSITORY_PATH is the location where my repository is.

post-commit.bat has the following content:
ruby C:\REPOSITORY_PATH\hooks\notify.rb %1 %2

notify.rb has the following content:
require 'net/smtp'

class Email
  def Email.send(smtpHost, fromAddr, toAddr, to, subject, msgBody)
    smtp = Net::SMTP.new(smtpHost, 25)
    smtp.start
    smtp.ready(fromAddr, toAddr) { |msg|
      msg.write "To: #{to}\r\n"
      msg.write "Subject: #{subject}\r\n"
      msg.write "\r\n"
      msg.write "#{msgBody}\r\n"
    }
  end
end

def querySVN(repository, revision)
  author = `svnlook author #{repository} -r #{revision}`.chomp
  at = `svnlook date #{repository} -r #{revision}`.chomp
  comment = `svnlook log #{repository} -r #{revision}`.chomp
  changes = `svnlook changed #{repository} -r #{revision}`

  return author, at, comment, changes
end

repository = ARGV[0]
revision = ARGV[1]

author, at, comment, changes = querySVN(repository, revision)
subject = 'REPOSITORY_NAME: Notification'
smtpHost = 'SMTP_HOST'
fromAddr = 'FROM_ADDRESS'
toAddr = ['EMAIL_ADDRESS_1', 'EMAIL_ADDRESS...']
msgBody = <<READ_UNTIL_END
Greetings,
#{author} has checked in at #{at}.
Checkin comment: #{comment}
Check in details:
#{changes}
READ_UNTIL_END

Email.send(smtpHost, fromAddr, toAddr, toAddr.join(','), subject, msgBody)

>Also one more question:
>Is there a real world Rails application which I can look at, I mean more of
>a commercial web application. I just wanted a feel of how scalable it can be
>and whether it would be a fit for an enterprise web application.
>
>Thanks,

I recently attended a talk by Dave Thomas. He made a very interesting point.
He asked us to ask, instead of "is Ruby ready for Enterprise", is
the "Enterprise ready for Ruby." Good point to ponder.

Let me ask this mailing list for examples about enterprise applications
of Ruby and/or Rails. What have you come across or read about?

For one, take a look at wotif.com –, an australian based travel site
that is a hybrid J2EE - Rails application.

Venkat

From MAILER-DAEMON  Sun Jan 28 19:38:02 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id BE00B23CA82;
	Sun, 28 Jan 2007 19:38:02 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id aW16KDo6D7pH; Sun, 28 Jan 2007 19:37:56 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id F2ED423CA6E;
	Sun, 28 Jan 2007 19:37:55 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id ICR15415
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 28 Jan 2007 17:14:15 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0T1EGiS1443809
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 28 Jan 2007 19:14:16 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0T1EFod1442890
	for uhcoscstsd@list.prudentlearning.com; Sun, 28 Jan 2007 19:14:15 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701290114.l0T1EFod1442890@bay.uh.edu>
Subject: Working With Rails (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 28 Jan 2007 19:14:15 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 866
Status: O
X-UID: 175052
X-Keywords: $NotJunk                    

>I've been looking at some Ruby on Rails code and documentation from the 
>official website, and I've kind of noticed that Rails *is* nice to speed 
>up development, but it also seems like it's letting programmer's get 
>more ignorant as well.  Maybe it was the example that made it seem as 
>such (they were showing how to build a full-featured Blog tool in under 
>15 minutes), but as nice as it was to cut around corners (literally 
>being able to build a database and then see the changes show up on a 
>page asking for input), it also seemed like it would teach some bad 
>programming principles.
>
>What are your thoughts on this?  Was it maybe just a bad example or am I 
>maybe just missing the point entirely?

I would like to know specifically what those bad practices are and
how does it teach that. I have not quite come across that "problem" :)

Venkat

From MAILER-DAEMON  Sun Jan 28 19:41:08 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id DD9EA23CA82;
	Sun, 28 Jan 2007 19:41:07 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Su0krx6y8jut; Sun, 28 Jan 2007 19:41:03 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1389123CA6E;
	Sun, 28 Jan 2007 19:41:03 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id ICW14817
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 28 Jan 2007 17:19:17 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0T1JIiS1443715
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 28 Jan 2007 19:19:18 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0T1JIAr1189683
	for uhcoscstsd@list.prudentlearning.com; Sun, 28 Jan 2007 19:19:18 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701290119.l0T1JIAr1189683@bay.uh.edu>
Subject: Re: ruby downloading problem
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 28 Jan 2007 19:19:17 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1135
Status: O
X-UID: 175053
X-Keywords: $NotJunk                    

> Dr. Venkat,

No need for formalities, you can address me as Venkat.

> I am trying to install ruby on MacOS 10.4.7, which has ruby version 1.8.2
> already installed on it. I tried installing the latest version, v1.8.5,
> but I get the foll. message when I run the 'make install' command:
>
>...(deleted)...

Perform a su before you try this. Even though you may be logged in as
administrator, you may not have root privilege.

If that does not work, let me know and I will take a look at this further.
I installed latest version (binary however) recently on Mac.

> even though I am logged in as root. I tried searching for the solution on
> the internet, but have not been able to get any information. I have
> changed the access rights of the parent ruby directory of the owner to rwx
> too.
>
> I will be grateful if you help me resolve the issue. Also, the 'puts
> Date.today()' command on v1.8.2 gives an error 'uninitialized constant
> Date (NameError)', which is why I am trying to get the latest version  of
> ruby.

require 'date'
in your example and that should take care of this problem.

Let me know how it goes.

Venkat

From MAILER-DAEMON  Tue Jan 30 07:34:33 2007Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D364F23CA88;
	Tue, 30 Jan 2007 07:34:33 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id plpH8oSW7cFn; Tue, 30 Jan 2007 07:34:29 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id ED73C23CA82;
	Tue, 30 Jan 2007 07:34:28 -0600 (CST)
Received: from Bayou.UH.EDU (([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id JOQ71926
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 30 Jan 2007 05:12:26 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0UDCPiS1468803
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 30 Jan 2007 07:12:26 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0UDCPA01469247
	for uhcoscstsd@list.prudentlearning.com; Tue, 30 Jan 2007 07:12:25 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701301312.l0UDCPA01469247@bay.uh.edu>
Subject: Question about using Hash in initializing an object (+ a Rails question) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 30 Jan 2007 07:12:25 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 12951
Status: RO
X-UID: 175054
X-Keywords: $NotJunk $Forwarded          

>Dear Dr. Venkat,

No need for formalities... you can address me as Venkat.

>After class today I tried to search for an example of initialize an object
>with a hash as parameter but without much luck. Can you help pointing me
>into the right direction (search term perhaps).

Ruby does not have named parameters (at least not yet). However,
you can trick it using hash. Take a hash as a parameter and send
hash values. We will see this in class tomorrow.

>Also, I and some friends are starting to work on a Ruby on Rails project
>that we hope to be submitted as the final project for this class. I am
>currently stuck on several problems
>1. What are some good guidelines to follow when develop a web user
>authentication system? Is ACL the only option for Rails?
>2. What is the best practice for implementing a search functionality?
>3. One of our team members are especially worried about performance of Rails
>ActiveRecord find (and find_all) method as they tend to fetch a lot of
>redundant information (recursive level 2). From an agile development stand
>point, would you suggest tweaking the associations and find method or
>relying on Rails default behavior and optimize the database performance via
>caching (both on the DB layer and code layer)?

There are generally no best practices - there are better practices depending
on what you actually are trying to do. Performance is a problem if you
access a large number of rows. However, that may be a problem mostly 
irrespective of active records. So, it is important to figure out what
the application does and how to design it. You will face, research, and
arrive at alternatives for these concerns along the way, that is part of
the learning experience.

>Thank you Dr. Venkat. I really enjoy your class and I am looking forward to
>this coming Wednesday.
>
>With warm regards,

See you on Wednesday.

Venkat

From MAILER-DAEMON  Tue Jan 30 19:03:27 200Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B57BF23CA8F;
	Tue, 30 Jan 2007 19:03:27 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id wqDjWLZDSfMf; Tue, 30 Jan 2007 19:03:22 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AF89B23CA8E;
	Tue, 30 Jan 2007 19:03:22 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id KBU23400
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 30 Jan 2007 16:41:00 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l0V0exiS1404352
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 30 Jan 2007 18:40:59 -0600 (CST)
Received: (frfrom cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l0V0exPK1475958
	for uhcoscstsd@list.prudentlearning.com; Tue, 30 Jan 2007 18:40:59 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200701310040.l0V0exPK1475958@bay.uh.edu>
Subject: Fwd: Question about using Hash in initializing an object (+ a Rails question) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 30 Jan 2007 18:40:59 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2709
Status: RO
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104478

OK, I heard that finger nail biting... :)

So, here is the example (finally grabbed a few minutes to write it):

class Car
   attr_accessor :year, :fuel_level

   def initialize(args)
     @year = args[:year] if args.has_key?(:year)
     @fuel_level = args[:fuel_level] if args.has_key?(:fuel_level)
   end
end

my_car = Car.new(:year => 2007, :fuel_level => 100)
puts my_car.inspect

Venkat

Begin forwarded message:

> From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
> Date: January 30, 2007 7:12:25 AM CST
> To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX  
> course) Mailing List)
> Subject: Question about using Hash in initializing an object (+ a  
> Rails question) (fwd)
>
>> Dear Dr. Venkat,
>
> No need for formalities... you can address me as Venkat.
>
>> After class today I tried to search for an example of initialize  
>> an object
>> with a hash as parameter but without much luck. Can you help  
>> pointing me
>> into the right direction (search term perhaps).
>
> Ruby does not have named parameters (at least not yet). However,
> you can trick it using hash. Take a hash as a parameter and send
> hash values. We will see this in class tomorrow.
>
>> Also, I and some friends are starting to work on a Ruby on Rails  
>> project
>> that we hope to be submitted as the final project for this class.  
>> I am
>> currently stuck on several problems
>> 1. What are some good guidelines to follow when develop a web user
>> authentication system? Is ACL the only option for Rails?
>> 2. What is the best practice for implementing a search functionality?
>> 3. One of our team members are especially worried about  
>> performance of Rails
>> ActiveRecord find (and find_all) method as they tend to fetch a  
>> lot of
>> redundant information (recursive level 2). From an agile  
>> development stand
>> point, would you suggest tweaking the associations and find method or
>> relying on Rails default behavior and optimize the database  
>> performance via
>> caching (both on the DB layer and code layer)?
>
> There are generally no best practices - there are better practices  
> depending
> on what you actually are trying to do. Performance is a problem if you
> access a large number of rows. However, that may be a problem mostly
> irrespective of active records. So, it is important to figure out what
> the application does and how to design it. You will face, research,  
> and
> arrive at alternatives for these concerns along the way, that is  
> part of
> the learning experience.
>
>> Thank you Dr. Venkat. I really enjoy your class and I am looking  
>> forward to
>> this coming Wednesday.
>>
>> With warm regards,
>
> See you on Wednesday.
>
> Venkat

From MAILER-DAEMON  Thu Feb  1 05:52:15 20Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1658D23CA96;
	Thu,  1 Feb 2007 05:52:15 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id sW3nkQPGr6g8; Thu,  1 Feb 2007 05:52:10 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 344DC23CA90;
	Thu,  1 Feb 2007 05:52:52:10 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GNE45343
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 03:29:43 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l11BTeiS1494693
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 05:29:40 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l11BTeK91494580
	for uhcoscstsd@list.prudentlearning.com; Thu, 1 Feb 2007 05:29:40 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702011129.l11BTeK91494580@bay.uh.edu>
Subject: Re: Working With Rails (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 1 Feb 2007 05:29:40 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2167
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104479

>I have some thoughts on this.
>
>I agree that the examples on Rails site is a bit simplistic (thus I have
>read a bit of criticism about this). However, the idea is to get people
>excited and delve deeper.

Examples are almost always simplistic. Otherwise, people tend to get
stuck with the details of the example rather than the concepts you're
trying to illustrate.

>Upon more exposure to Rails, I am quite sure that you will find Rails very
>.... (let's say awesome, cause I can't think of any better word). Things
>like Migration, and scaffolding makes Rails fit perfectly as an agile
>development framework. I can get feedback about my work on every step that I
>do. The example showed me just that.

I would certainly agree about Migration. Take scaffolding with a grain
of salt. It is not intended to use that to create a production quality
code.

>I really want to hear more about your argument on bad programming practice
>that these examples might encourage.
>
>With warm regards,

Some tools and technologies does allow for people to create a mess.
Those would requires a bit more learning and discipline. 
I think it is important to address the concerns on specifics.

Venkat

>On 1/28/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >I've been looking at some Ruby on Rails code and documentation from the
>> >official website, and I've kind of noticed that Rails *is* nice to speed
>> >up development, but it also seems like it's letting programmer's get
>> >more ignorant as well.  Maybe it was the example that made it seem as
>> >such (they were showing how to build a full-featured Blog tool in under
>> >15 minutes), but as nice as it was to cut around corners (literally
>> >being able to build a database and then see the changes show up on a
>> >page asking for input), it also seemed like it would teach some bad
>> >programming principles.
>> >
>> >What are your thoughts on this?  Was it maybe just a bad example or am I
>> >maybe just missing the point entirely?
>>
>> I would like to know specifically what those bad practices are and
>> how does it teach that. I have not quite come across that "problem" :)
>>
>> Venkat

From MAILER-DAEMON  Thu Feb  1 06:05:53 2Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6EB8523CA90;
	Thu,  1 Feb 2007 06:05:53 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ssjJ0yjwVy0E; Thu,  1 Feb 2007 06:05:48 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AE47A23CA8D;
	Thu,  1 Feb 2007 06:05:48 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GNS07828
        for for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 03:43:28 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l11BhRiS1453892
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 05:43:27 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l11BhRt31494665
	for uhcoscstsd@list.prudentlearning.com; Thu, 1 Feb 2007 05:43:27 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702011143.l11BhRt31494665@bay.uh.edu>
Subject: Re: File Size
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 1 Feb 2007 05:43:27 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 844
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104480

>Hi Venkat

Hi, please use appropriate subject line when you send email
(I modified this one to what's relevant).

>I just tried to get the size of the file. The size method actually 
>exists on File, I do not know whay it did not list it today in class.
>
>lst =  [1,2,3,4,5,6]
>finder = lambda { |item| item >=3 }
>puts lst.find_all(&finder)
>puts "Size: #{File.size("test.rb")}"
>
>The above code outputs
>4
>5
>6
>Size: 123  (# of chars)

Notice you've called Size on File, that indicates it is a class method
and not an instance method.

I was trying to call it on the instance within the closure.

Try the following:

File.open(__FILE__) do |file|
  puts "Size of #{__FILE__} is #{file.stat.size?}"
end

(of course, using size on class is simpler! However, I was trying to show
how you can use the file object you get from open.)

Venkat

From MAILER-DAEMON  Thu Feb  1 06:09:51 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id ECC2B23CA91;
	Thu,  1 Feb 2007 06:09:50 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BKZbWZtGUirQ; Thu,  1 Feb 2007 06:09:44 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D81DE23CA90;
	Thu,  1 Feb 2007 06:09:43 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GNW68720
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 03:47:20 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l11BlKiS1493195
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 05:47:20 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l11BlJqL1494602
	for uhcoscstsd@list.prudentlearning.com; Thu, 1 Feb 2007 05:47:19 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702011147.l11BlJqL1494602@bay.uh.edu>
Subject: Ruby Idioms (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 1 Feb 2007 05:47:19 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2491
Status: O
X-UID: 175055
X-Keywords: $NotJunk JunkRecorded           

>Hello everyone,
>
>I came across this while browsing for some cool Ruby technique, this page
>talks about some of Ruby Idioms, I think some of you might be interested.
>
>http://wiki.rubygarden.org/Ruby/page/show/RubyIdioms
>
>With warm regards,

Cool. Thanks for sharing. For those of you who love to dig deeper
into the language, you may find the following interesting:

http://www.rubyquiz.com/

Venkat

From MAILER-DAEMON  Thu Feb  1 06:44:45Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id F2A8223CA97;
	Thu,  1 Feb 2007 06:44:44 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id EgWagyt5T3El; Thu,  1 Feb 2007 06:44:40 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 8BCE423CA80;
	Thu,  1 Feb 2007 06:44:40 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GOW03156
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 04:21:56 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l11CLtiS1495216
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 1 Feb 2007 06:21:55 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l11CLtH61492897
	for uhcoscstsd@list.prudentlearning.com; Thu, 1 Feb 2007 06:21:55 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702011221.l11CLtH61492897@bay.uh.edu>
Subject: Project teams
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 1 Feb 2007 06:21:55 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 329
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104482

Thanks to each team for sending the name and email address of their
members.

If you are registered in this course and are not part of a team,
I need to know your team by end of the day today. Contact me with either 
the team you want to be part of (if you know) or let me know and I will 
assign you to a team.

Thanks,

Venkat

From MAILER-DAEMON  Mon Feb  5 05:58:14 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 426BE23CA81;
	Mon,  5 Feb 2007 05:58:14 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Dvz7+0TOUJgS; Mon,  5 Feb 2007 05:58:07 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 86D9923CA7F;
	Mon,  5 Feb 2007 05:58:07 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id KNO14611
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 5 Feb 2007 03:35:11 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l15BZAiS1547020
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 5 Feb 2007 05:35:10 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l15BZAp01546554
	for uhcoscstsd@list.prudentlearning.com; Mon, 5 Feb 2007 05:35:10 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702051135.l15BZAp01546554@bay.uh.edu>
Subject: HW1 posted
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 5 Feb 2007 05:35:09 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2289
Status: O
X-UID: 175056
X-Keywords: $NotJunk JunkRecorded           

Greetings,

For your learning pleasure, HW1 has been posted. 

Visit the class web site and click on the HWs/Assigns. link at
http://www.cs.uh.edu/~svenkat/spring2007STSD

Enjoy.

Venkat

From MAILER-DAEMON  Thu Feb  8 05:12:Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 8D6FC23CA76FC23CA7B;
	Thu,  8 Feb 2007 05:12:18 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id h6eD5ROHKg5f; Thu,  8 Feb 2007 05:12:13 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B9EDD23CA74;
	Thu,  8 Feb 2007 05:12:13 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NME68749
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Feb 2007 02:48:49 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l18AmmiS1078683
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Feb 2007 04:48:48 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l18Amm7e1079198
	for uhcoscstsd@list.prudentlearning.com; Thu, 8 Feb 2007 04:48:48 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702081048.l18Amm7e1079198@bay.uh.edu>
Subject: cosc4397 regarding hw1 (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 8 Feb 2007 04:48:48 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 332
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104484

>When I run the unit test on my HW1, I get stray period marks at the 
>start of my line toward the end of the execution. Is this supposed to 
>happen and/or what's causing it?
>

Each dot represents an unit test execution. If you only see a dot,
that tells you it succeeded. If there is an error, that is indicated
as well.

Venkat

From MAILER-DAEMON  Thu Feb  8 05:21:37 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3A71523CA79;
	Thu,  8 Feb 2007 05:21:37 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5Q54k5bM3DPW; Thu,  8 Feb 2007 05:21:32 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 847BF23CA74;
	Thu,  8 Feb 2007 05:21:32 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NMM40535
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Feb 2007 02:56:35 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l18AuYiS1067662
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Feb 2007 04:56:34 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l18AuYkx1546326
	for uhcoscstsd@list.prudentlearning.com; Thu, 8 Feb 2007 04:56:34 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702081056.l18AuYkx1546326@bay.uh.edu>
Subject: HW1 buddy list
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 8 Feb 2007 04:56:34 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 6185
Status: O
X-UID: 175057
X-Keywords: $NotJunk JunkRecorded           

Greetings,

Yesterday was the deadline for letting me know the buddy list for HW1.

You can visit the following URL to confirm if I got it right:

http://www2.cs.uh.edu/~svenkat/lib/assignments/STSD/Spring2007/HW1/

One or two people were deciding it at the end of the class yesterday,
so if you have decided whom to work with, email the info to me latest
by end of the day today. 

Regards,

Venkat

From MAILER-DAEMON  Sat Feb 10 06:4Return-Path: <>
X-Original-To: svenk-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6594023CA80;
	Sat, 10 Feb 2007 06:45:06 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PwFBNvNG1+JE; Sat, 10 Feb 2007 06:45:01 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1499423CA64;
	Sat, 10 Feb 2007 06:45:01 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id POF62406
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 10 Feb 2007 04:21:06 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1ACL3iS1082382
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 10 Feb 2007 06:21:03 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1ACL3jF1107641
	for uhcoscstsd@list.prudentlearning.com; Sat, 10 Feb 2007 06:21:03 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702101221.l1ACL3jF1107641@bay.uh.edu>
Subject: A database question! (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 10 Feb 2007 06:21:03 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1855
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104486

>Hi Venkat,
>
>First of all, I have to admit that this question doesn't relate to Ruby or
>Ajax in anyway, it relates to the project though. I hope you can give me
>some ideas on this problem.
>Here is part of the structure of my current database:
>
>table permissions:
>id
>permission
>
>table groups
>id
>name
>
>table groups_permissions
>id_group
>id_permission
>
>table groups_users
>id_group
>id_user
>
>table entries
>id
>name
>
>table entries_groups
>id_group
>id_entry
>
>One user can belong to many groups, one group can control many
>entries. Given a list of entries and the user_id, I need to check if
>that user can control those entries, and if possible return a list of
>entries that the user can/can't not control.
>
>Currently I'm using the query below, if the returned COUNT doesnt
>match the number of entries given then the user doesnt have accesst to
>all the give entry. Is there any better way to do this?
>SELECT COUNT(*)AS COUNT FROM entries_usergroups, users_usergroups,
>permissions_usergroups, permissions
>WHERE entries_usergroups.entry_id IN ($entry_list)
>AND users_usergroups.usergroup_id = entries_usergroups.usergroup_id
>AND users_usergroups.user_id = $user_id
>AND permissions_usergroups.usergroup_id =
>entries_usergroups.usergroup_id
>AND permissions.id = permissions_usergroups.permission_id
>AND permissions.name = '$permission';
>Thank you.

I am no database expert. "better" in terms of making the code simpler
may be possible. "better" in terms of performance may involve
details of how you perform the joins. Anyone on the group who
immerses in database each day, feel free to comment.

On thing that is not clear to me here is how you are capturing 
the permission a group has for a specific entry. What if I have
readwrite access to one entry and only read access for another.
How do you express that?

Venkat

From MAILER-DAEMON  Sat Feb 10 06:Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id BF75A23CA80;
	Sat, 10 Feb 2007 06:47:22 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id VQfDrRTTgnlp; Sat, 10 Feb 2007 06:47:18 -0600 (CST)
Received: from mx244e.mysite4now.com te4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 0CBD623CA64;
	Sat, 10 Feb 2007 06:47:18 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id POH35929
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 10 Feb 2007 04:23:29 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1ACNSiS1105225
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 10 Feb 2007 06:23:28 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1ACNSam1107718
	for uhcoscstsd@list.prudentlearning.com; Sat, 10 Feb 2007 06:23:28 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702101223.l1ACNSam1107718@bay.uh.edu>
Subject: HW question (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 10 Feb 2007 06:23:28 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 394
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104487

>Venkat,
>
>Our code gets through your test without failure or error, but what is the
>got_here variable doing? Any hints?

It is a way for the unit test to know if the block of code where
got_here is being set is invoked. Try to modify your code so
the block is not called and see if the unit test fails because got-here
is not what was expected, indicating the block was not invoked.

Venkat

From MAILER-DAEMON  Sat Feb 10 20:52:10 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D52C423CA79;
	Sat, 10 Feb 2007 20:52:10 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id tSfLFoNMMMHg; Sat, 10 Feb 2007 20:52:06 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1099C23CA76;
	Sat, 10 Feb 2007 20:52:06 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id QEM31258
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 10 Feb 2007 18:27:58 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1B2RviS1114291
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 10 Feb 2007 20:27:57 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1B2RvMd1112656
	for uhcoscstsd@list.prudentlearning.com; Sat, 10 Feb 2007 20:27:57 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702110227.l1B2RvMd1112656@bay.uh.edu>
Subject: hw1 question (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 10 Feb 2007 20:27:57 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2497
Status: O
X-UID: 175058
X-Keywords: $NotJunk JunkRecorded           

>RubyMate r5712 running Ruby v1.8.5 (/opt/local/bin/ruby)
>>>> PersonTest.rb
>
>...deleted...
>..
>Finished in 0.000798 seconds.
>
>4 tests, 4 assertions, 0 failures, 0 errors
>
>can you explain to me why are the unit tests executed out of order?

One of the tenets of unit testing is there is not preimposed
ordering of the tests, i.e., tests must be isolated and
independent of each other. There is guarantee on any ordering
of the tests-this is by intent.

Venkat

From MAILER-DAEMON  Sun Feb 11 1Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C505D23CAA0;
	Sun, 11 Feb 200n, 11 Feb 2007 10:33:51 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id CBAnt4g-yDHx; Sun, 11 Feb 2007 10:33:47 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 12A0523CA9A;
	Sun, 11 Feb 2007 10:33:47 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id QSU91013
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 11 Feb 2007 08:09:13 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1BG9DiS1121643
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 11 Feb 2007 10:09:13 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1BG9DFM1121190
	for uhcoscstsd@list.prudentlearning.com; Sun, 11 Feb 2007 10:09:13 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702111609.l1BG9DFM1121190@bay.uh.edu>
Subject: Project Proposal
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 11 Feb 2007 10:09:13 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 268
Status: O
X-Status: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104489

Greetings,

I've reviewed your project proposals.

There are some exciting projects in there-I am actually eager to
see a few of those in action :)

If I had questions about your project, I've directly emailed your team 
coordinator/leader about it.

Regards,

Venkat

From MAILER-DAEMON  Tue Feb 13 05:22:19 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id EC42923CAC5;
	Tue, 13 Feb 2007 05:22:18 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id c2n54+bF7cZn; Tue, 13 Feb 2007 05:22:14 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3E8A723CAC1;
	Tue, 13 Feb 2007 05:22:14 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id SMP49955
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 13 Feb 2007 02:54:55 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1DAsqiS1145274
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 13 Feb 2007 04:54:52 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1DAsqx01145889
	for uhcoscstsd@list.prudentlearning.com; Tue, 13 Feb 2007 04:54:52 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702131054.l1DAsqx01145889@bay.uh.edu>
Subject: dumping objects in memory (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 13 Feb 2007 04:54:52 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 115040
Status: O
X-UID: 175059
X-Keywords: $NotJunk JunkRecorded           

>Hi Venkat, 
>Here is the code to dump all objects in memory, 
>except the objects of current class.
>Thanks, 
>
>class Try
>  def get_all  
>    ObjectSpace.each_object do |o|     
>      puts o.class.to_s + " --> " + o.inspect if o.class.to_s != self.class.to_s
>    end          
>  end
>end
>
>Try.new.get_all

It's interesting to see what all objects it reports!

By the way, do you need those to_s's?

Venkat

From MAILER-DAEMON  Tue Feb 13Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9278D23CAB1;
	Tue, 13 Feb 2007 06:06:43 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 7ofXCCDsCuL2; Tue, 13 Feb 2007 06:06:38 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id BDFCC23CAAE;
	Tue, 13 Feb 2007 06:06:38 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id SNP99900
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 13 Feb 2007 03:28:00 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1DBS0iS1145470
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 13 Feb 2007 05:28:00 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1DBS0sh1139913
	for uhcoscstsd@list.prudentlearning.com; Tue, 13 Feb 2007 05:28:00 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702131128.l1DBS0sh1139913@bay.uh.edu>
Subject: Result of the tests (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 13 Feb 2007 05:27:59 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 812
Status: O
X-UID: 104557
X-Keywords: $NotJunk JunkRecorded          


X-UID: 104491

>Today in the lecture you mentioned that if your test is successful you will
>see a period (.), but when we run the test class for the homework it shows
>that all tests are successful but on the console we have only 2 periods.
>Does that mean that the Person class is incorrect??
>

Here is what I got (I have marked lines with . with [dot #]):

Loaded suite PersonTest
Started
I love programming in Ruby
Let me explain this wonderful concept...
.Create a work of art                     [dot 1]
.writing a composition                    [dot 1]
..                                        [dot 2]
Finished in 0.0 seconds.

4 tests, 4 assertions, 0 failures, 0 errors


Remember that the . appears after the test is completed successfully
(so the print out from that test will occur before the . appears).

Venkat

From MAILER-DAEMON  Wed Feb 1Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id A51C923CABA;
	Wed, 14 Feb 2007 06:59:30 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xppbOvweWHzo; Wed, 14 Feb 2007 06:59:26 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CE18A23CAA8;
	Wed, 14 Feb 2007 06:59:25 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TOU01553
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 04:32:53 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1ECWniS1159407
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 06:32:49 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1ECWnTn1144052
	for uhcoscstsd@list.prudentlearning.com; Wed, 14 Feb 2007 06:32:49 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702141232.l1ECWnTn1144052@bay.uh.edu>
Subject: Re: Result of the tests (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 14 Feb 2007 06:32:49 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1037
Status: O
X-UID: 104558
X-Keywords: $NotJunk JunkRecorded          

d
X-UID: 104492

>I think things look fine here since I see 4 dots. That means 4 tests were
>run.
>
>On 2/13/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Today in the lecture you mentioned that if your test is successful you
>> will
>> >see a period (.), but when we run the test class for the homework it
>> shows
>> >that all tests are successful but on the console we have only 2 periods.
>> >Does that mean that the Person class is incorrect??
>> >
>>
>> Here is what I got (I have marked lines with . with [dot #]):
>>
>> Loaded suite PersonTest
>> Started
>> I love programming in Ruby
>> Let me explain this wonderful concept...
>> .Create a work of art                     [dot 1]
>> .writing a composition                    [dot 1]
>> ..                                        [dot 2]
>> Finished in 0.0 seconds.
>>
>> 4 tests, 4 assertions, 0 failures, 0 errors
>>
>>
>> Remember that the . appears after the test is completed successfully
>> (so the print out from that test will occur before the . appears).
>>
>> Venkat

From MAILER-DAEMON  Wed Feb Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7596D23CABA;
	Wed, 14 Feb 2007 07:00:04 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 8cxw3YkyyAHX; Wed, 14 Feb 2007 07:00:00 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9EF2323CAA8;
	Wed, 14 Feb 2007 07:00:00 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TOX14014
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 04:35:14 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1ECZDiS1160310
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 06:35:13 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1ECZD5l1159619
	for uhcoscstsd@list.prudentlearning.com; Wed, 14 Feb 2007 06:35:13 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702141235.l1ECZD5l1159619@bay.uh.edu>
Subject: Unit Testing => Unit Coding? (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 14 Feb 2007 06:35:12 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1224
Status: O
X-UID: 104559
X-Keywords: $NotJunk JunkRecorded          

ed
X-UID: 104493

>Dear Venkat,
>
>I think that Unit Testing is a fantastic idea and I am ready to implement it
>in any of my future projects. However, for Rails, the logic code in
>controllers are usually big. How do we unit test these controller actions?
>
>So far, my answer for my own question is: try to factor my code into smaller
>private methods both for DRY and for unit testing. Then try to unit test to
>make sure the variables being passed to the views are as expected.
>
>Is this a right approach?

Good point. There is merit to keep business logic DRY and testable 
by unit tests. In addition to that, Rails also provide for exceptional
functional testing facilities. You can write tests on controllers...
Rails calls this unit testing, but it actually is functional testing.
The features is great and you can create and use mocks very easily (due
to of course the power of Ruby).

>With warm regards,
>
>P.S. Your demo of setup and teardown for unit test makes a lot of sense here
>as most of the time, I don't want my controller to render views
>automatically when I unit test them. Or does it not render automatically
>when being unit tested by default?

With functional tests, you will see how these can be handled.

Venkat

From MAILER-DAEMON  Wed FebReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3E7CC23CABB;
	Wed, 14 Feb 2007 07:05:24 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id cauw0FtSpgLv; Wed, 14 Feb 2007 07:05:19 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3C47823CABA;
	Wed, 14 Feb 2007 07:05:19 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TOC92230
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 04:40:30 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1ECeTiS1158573
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 06:40:29 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1ECeTCm1145983
	for uhcoscstsd@list.prudentlearning.com; Wed, 14 Feb 2007 06:40:29 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702141240.l1ECeTCm1145983@bay.uh.edu>
Subject: Re: dumping objects in memory (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 14 Feb 2007 06:40:29 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2140
Status: O
X-UID: 104560
X-Keywords: $NotJunk JunkRecorded          

ded
X-UID: 104494

>Dear Venkat,
>
>agghhh, someone beat me to this. So I did a little more, since I can't wade
>though all the puts that the given code goes so I am aiming more of a
>statistic look (how many objects are there in each type?)

That is cool and interesting analysis (that follows).

>The simple code below outputs
>
>> Total of 3552 objects
>> ThreadGroup ===> 1
>> Hash ===> 31
>> Range ===> 15
>> Gem::Security::Policy ===> 5
>> NoMemoryError ===> 1
>> Object ===> 6
>> fatal ===> 1
>> SystemStackError ===> 1
>> Binding ===> 1
>> Gem::Version ===> 1
>> Array ===> 116
>> String ===> 2837
>> Module ===> 44
>> Regexp ===> 86
>> Class ===> 266
>> DDump ===> 1
>> IO ===> 3
>> File ===> 11
>> Proc ===> 119
>> Thread ===> 1
>> Float ===> 6
>> Gem::Version::Requirement ===> 1
>>
>
>What I find really interesting are: String seems to be the one that is used
>intensively. Take up 75%+ of all the objects. Then the 2nd one is object of
>class Class. What is the coincidence of that? Well, I didn't know what
>Class:Class was, so I digged up on ruby-doc.org and I found this page
>http://www.ruby-doc.org/core/classes/Class.html
>
>It makes sense now: since class Class is the first-class objects, whenever
>there is a class that got created, there is an object of type class created.
>Now I can say in Ruby everything is an object, even a Class is an object.
>^_^. This made my day (well until I have another class of course).
>
>The code I used is below
>
>> class DDump
>>     attr_reader :objects
>>     def initialize
>>         @objects = Hash.new
>>     end
>>     def dump_all_objects
>>         count = ObjectSpace.each_object do |object|
>>             #puts object.inspect
>>             #puts '==='
>>         end
>>         puts "Total of #{count} objects"
>>     end
>>     def count_by_type
>>         ObjectSpace.each_object do |object|
>>             @objects[object.class] ||= 0
>>             @objects[object.class] += 1
>>         end
>>     end
>>
>> end
>>
>> my_dump = DDump.new
>> my_dump.dump_all_objects
>> my_dump.count_by_type
>> my_dump.objects.each do |key,value|
>>     puts key.to_s + ' ===> ' + value.to_s
>> end

From MAILER-DAEMON  Wed FeReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5923A23CABB;
	Wed, 14 Feb 2007 07:05:36 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id eXbrL+gsWpEQ; Wed, 14 Feb 2007 07:05:31 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AEBEB23CABA;
	Wed, 14 Feb 2007 07:05:31 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TOD65609
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 04:41:09 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1ECf8iS1154866
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Feb 2007 06:41:08 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1ECf8tv1159082
	for uhcoscstsd@list.prudentlearning.com; Wed, 14 Feb 2007 06:41:08 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702141241.l1ECf8tv1159082@bay.uh.edu>
Subject: Re: dumping objects in memory (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 14 Feb 2007 06:41:08 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 461
Status: O
X-UID: 104561
X-Keywords: $NotJunk JunkRecorded          

rded
X-UID: 104495

>Dear Venkat,
>
>Just as a quick clarification, (well until I have another class of course)
>means until I come to another class session of our Ruby on Rails course.
>Absolutely no pun intended.
>
>With warm regards,

;)

>> Dear Venkat,
>>
>> agghhh, someone beat me to this. So I did a little more, since I can't
>> wade though all the puts that the given code goes so I am aiming more of a
>> statistic look (how many objects are there in each type?)
>>
...

From MAILER-DAEMON  Sat FReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id E854F23CAA4;
	Sat, 17 Feb 2007 18:39:11 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id OBfHIABjXG5Q; Sat, 17 Feb 2007 18:39:07 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 223A023CAA9;
	Sat, 17 Feb 2007 18:39:07 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id XCG35911
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 17 Feb 2007 16:14:11 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1I0EAiS1184586
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 17 Feb 2007 18:14:10 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1I0EABh1217372
	for uhcoscstsd@list.prudentlearning.com; Sat, 17 Feb 2007 18:14:10 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702180014.l1I0EABh1217372@bay.uh.edu>
Subject: Assignment 1 posted
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 17 Feb 2007 18:14:10 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 240
Status: O
X-UID: 104562
X-Keywords: $NotJunk JunkRecorded          

orded
X-UID: 104496

Greetings,

I've posted Assignment 1. Please continue with the buddy from HW1
(you will continue this through out the semester).

If you have any questions about the Assignment, please feel free to ask
by email or in class.

Enjoy,

Venkat

From MAILER-DAEMON  Tue Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5E2BE23CA83;
	Tue, 20 Feb 2007 21:58:26 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id AXE8Odfdfojm; Tue, 20 Feb 2007 21:58:22 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 74F9423CA7D;
	Tue, 20 Feb 2007 21:58:22 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id AFB51541
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 20 Feb 2007 19:32:41 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1L3WeiS1272432
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 20 Feb 2007 21:32:40 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1L3WeSr1273395
	for uhcoscstsd@list.prudentlearning.com; Tue, 20 Feb 2007 21:32:40 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702210332.l1L3WeSr1273395@bay.uh.edu>
Subject: Re: ruby gem
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 20 Feb 2007 21:32:40 -0600 (CST)
In-Reply-To: <2fd6d1450702201541q42b79544r2a635d099ce684f2@mail.gmail.com> from "jack zhang" at Feb 20, 2007 05:41:10 PM
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 827
Status: RO
X-UID: 104563
X-Keywords: $NotJunk JunkRecorded          

corded
X-UID: 104497

Earlier message...

>./script/../config/boot.rb:18:in `require': no such file to load -- rubygems
>(LoadError)
>
>
>I got the above error and I have no idea how or why. The error popped up
>when I try to fire up webBrick. I have followed the tutorials on "Agile Web
>Development with Rails" many times and I have never had this trouble before.
>
>

And then...
>Sorry to have bothered you with last email.
>
>It seems that gem have made a few updates and there were some compatible
>issues with the version of ruby(1.8.5) I had running. The problem could be
>result of me updating to run ruby1.8.5 without also updating the rubygems.
>After I done got that fixed, things are now running smooth like a well oiled
>machine. :)

Good to hear that it's fixed. I'm forwarding this, just in case
someone else hits this snag.

Venkat

From MAILER-DAEMON  TueReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2177023CA83;
	Tue, 20 Feb 2007 21:58:34 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id b7jNbDLXxQZu; Tue, 20 Feb 2007 21:58:29 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7AA3423CA7D;
	Tue, 20 Feb 2007 21:58:29 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id AFC00010
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 20 Feb 2007 19:33:10 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1L3X9iS1268650
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 20 Feb 2007 21:33:09 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1L3X9DF1272585
	for uhcoscstsd@list.prudentlearning.com; Tue, 20 Feb 2007 21:33:09 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702210333.l1L3X9DF1272585@bay.uh.edu>
Subject: Assignment 1 (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 20 Feb 2007 21:33:09 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 120
Status: RO
X-UID: 104564
X-Keywords: $NotJunk JunkRecorded          

ecorded
X-UID: 104498

>Is this tic-tac-toe 1-person (person vs. computer) or 2-person (person vs.
>person)?

2 players play the game.

Venkat

From MAILER-DAEMON  WeReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6B22A23CA7B;
	Wed, 21 Feb 2007 04:44:25 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DiFwsDqjGbXB; Wed, 21 Feb 2007 04:44:20 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3925823CA7D;
	Wed, 21 Feb 2007 04:44:20 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id AMN39147
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 21 Feb 2007 02:18:47 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1LAIkiS1278061
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 21 Feb 2007 04:18:46 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1LAIka41278023
	for uhcoscstsd@list.prudentlearning.com; Wed, 21 Feb 2007 04:18:46 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702211018.l1LAIka41278023@bay.uh.edu>
Subject: Ruby implementation/documentation conflict causes problem in grading script for hw1? (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 21 Feb 2007 04:18:46 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2690
Status: O
X-UID: 104565
X-Keywords: $NotJunk JunkRecorded          

Recorded
X-UID: 104499

>Venkat,
>
>While trying to figure out how I could get all the test cases to pass I ran
>across what I believe might be a problem in the grading script and a
>conflict between the Ruby implementation and documentation.
>
>The problem I found relates to the test_incorrect_arguments method.  In
>particular, I think that the learn closure has to have an explicit empty
>parameter declaration because of the conflict between Ruby implementation
>and documentation about the arity of these two cases:
>    @person.learn('market') {  }
>    @person.learn('market') { || }
>
>I did a quick check with irb and get
>irb(main):025:0> lambda{}.arity
>=> -1
>irb(main):026:0> lambda{||}.arity
>=> 0
>
>This is contradicts the documentation which says
>------------------------------------------------------------- Proc#arity
>     prc.arity -> fixnum
>------------------------------------------------------------------------
>     Returns the number of arguments that would not be ignored. If the
>     block is declared to take no arguments, returns 0. If the block is
>     known to take exactly n arguments, returns n. If the block has
>     optional arguments, return -n-1, where n is the number of mandatory
>     arguments. A +proc+ with no argument declarations is the same a
>     block declaring +||+ as its arguments.
>
>        Proc.new {}.arity          #=>  0
>        Proc.new {||}.arity        #=>  0
>        Proc.new {|a|}.arity       #=>  1
>        Proc.new {|a,b|}.arity     #=>  2
>        Proc.new {|a,b,c|}.arity   #=>  3
>        Proc.new {|*a|}.arity      #=> -1
>        Proc.new {|a,*b|}.arity    #=> -2
>
>I've seen this behavior in Ruby 1.8.5 in Windows and Linux.  I did see
>something mentioned online saying that this behavior was changing in Ruby
>1.9
>
>Note this doesn't affect the grade of our implementation - we didn't handle
>this case.  Just was frustrating me when trying to figure out how I could
>implement this and wondered if I was missing something.  The arity operator
>on Proc seemed to be the obvious way to check this.

Very good observation!

I was frustrated by this as well and spent quite a few minutes before
I realized that the behavior did not match the documentation. I am glad
you brought this up to the attention of everyone.

As a side note, I have come across these in other languages as well
and sometimes I write test code to (what appears as foolishly) assert 
documented behavior and most of the time, it works as described. However, 
at times I have noticed some fundamental differences. Keeping these tests, especially when it differs, is critical to know when the behavior does change in 
the future releases or bug fixes.

Venkat

From MAILER-DAEMON  TReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1F2F023CA86;
	Thu, 22 Feb 2007 04:28:23 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KmkMj271N+ne; Thu, 22 Feb 2007 04:28:18 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4298223CA85;
	Thu, 22 Feb 2007 04:28:18 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id BMW42133
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 22 Feb 2007 02:00:33 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1MA0ViS1285539
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 22 Feb 2007 04:00:31 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1MA0VJ81293405
	for uhcoscstsd@list.prudentlearning.com; Thu, 22 Feb 2007 04:00:31 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702221000.l1MA0VJ81293405@bay.uh.edu>
Subject: Re: Ruby implementation/documentation conflict causes problem in grading script for hw1? (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 22 Feb 2007 04:00:31 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1079
Status: O
X-UID: 104566
X-Keywords: $NotJunk JunkRecorded          

kRecorded
X-UID: 104500

>I have a question regarding using Proc.arity to check for correct number of
>arguments. My understanding is Ruby Interpreter would make such checks and
>raise errors accordingly. Thus, is it a duplicate of effort to manually
>check and raise these errors ourselves?
>
>My thought is : in order to remain DRY, I would let Ruby Intepreter raise
>the errors for wrong arguments cases. However, I would also raise extra
>error message with information about the learned method in which this
>problem occurs to help in the debug process.
>
>Is my justification well-rounded? Is there a reason behind checking for
>wrong number of argument on our own that I oversee?
>
>With warm regards,

You are correct in that you don't want to do things redundantly.
However, on the surfact, providing dynamic method appears far too
simple, but from implementation point of view, we need to think about
handing cases like optional parameters, etc. I don't think any of us
even touched that part, testing (and these discussions) hopefully
help us to think though that layer of details....

Venkat

From MAILER-DAEMON  Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5E06B23CA86;
	Thu, 22 Feb 2007 04:28:34 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bOU5ixQsEO8J; Thu, 22 Feb 2007 04:28:30 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AB7A823CA85;
	Thu, 22 Feb 2007 04:28:30 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id BMY18752
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 22 Feb 2007 02:02:52 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1MA2oiS1293177
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 22 Feb 2007 04:02:50 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1MA2opB1293772
	for uhcoscstsd@list.prudentlearning.com; Thu, 22 Feb 2007 04:02:50 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702221002.l1MA2opB1293772@bay.uh.edu>
Subject: ruby gui (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 22 Feb 2007 04:02:50 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 724
Status: O
X-UID: 104567
X-Keywords: $NotJunk JunkRecorded          

nkRecorded
X-UID: 104501

>Are there any available Ruby GUI toolkits for Windows that you can 
>recommend? I've tried looking at a few GUI libraries, and it feels like 
>many Windows toolkits are no longer supported and/or extremely buggy at 
>best.

I have no specific recommendation, you can pick just about anything
that works for you and your buddy.

>Also, since you have not specified a standard GUI toolkit for everyone 
>to use, how will we be able to submit our assignment when all of the 
>students could be using drastically different libraries?

No worries, you will send your part and not worry about what others
are using. Clearly state what you are using, what I need to download,
and I will give your code a speacial care. :)

Venkat

From MAILER-DAEMON Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2180D23CA6D;
	Fri, 23 Feb 2007 04:59:18 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id wrvO7HpDMr3O; Fri, 23 Feb 2007 04:59:13 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 473A123CA64;
	Fri, 23 Feb 2007 04:59:13 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id CME79632
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 23 Feb 2007 02:33:32 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1NAXViS1298761
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 23 Feb 2007 04:33:32 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1NAXVNH1316091
	for uhcoscstsd@list.prudentlearning.com; Fri, 23 Feb 2007 04:33:31 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702231033.l1NAXVNH1316091@bay.uh.edu>
Subject: Re: ruby gui (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 23 Feb 2007 04:33:31 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1119
Status: O
X-UID: 104568
X-Keywords: $NotJunk JunkRecorded          

unkRecorded
X-UID: 104502

>...deleted...
>
>See if this helps. I messed around with ...deleted... bindings in Mac and 
>it looks clean and simple.

I will forward the link you sent later on, let's not deprive the
opportunity for the class to do some searching and figuring out
what each pair likes. 

Venkat

>On 2/22/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Are there any available Ruby GUI toolkits for Windows that you can
>> >recommend? I've tried looking at a few GUI libraries, and it feels like
>> >many Windows toolkits are no longer supported and/or extremely buggy at
>> >best.
>>
>> I have no specific recommendation, you can pick just about anything
>> that works for you and your buddy.
>>
>> >Also, since you have not specified a standard GUI toolkit for everyone
>> >to use, how will we be able to submit our assignment when all of the
>> >students could be using drastically different libraries?
>>
>> No worries, you will send your part and not worry about what others
>> are using. Clearly state what you are using, what I need to download,
>> and I will give your code a speacial care. :)
>>
>> Venkat

From MAILER-DAEMONReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 83D2E23CA78;
	Mon, 26 Feb 2007 04:53:14 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BjPA7OMXMsTK; Mon, 26 Feb 2007 04:53:09 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B3B6D23CA7D;
	Mon, 26 Feb 2007 04:53:09 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FMB96900
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 26 Feb 2007 02:27:00 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1QAQviS1364694
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 26 Feb 2007 04:26:57 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1QAQvln1365105
	for uhcoscstsd@list.prudentlearning.com; Mon, 26 Feb 2007 04:26:57 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702261026.l1QAQvln1365105@bay.uh.edu>
Subject: fox toolkit installation problem (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 26 Feb 2007 04:26:57 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1031
Status: O
X-UID: 104569
X-Keywords: $NotJunk JunkRecorded          

JunkRecorded
X-UID: 104503

>Hi
>
>I tried installing the fox toolkit on mac (not the ruby extension yet),
>but I get the foll. error:
>"In file included from FX88591Codec.cpp:1:
>../include/xincs.h:188:19: error: X11/X.h: No such file or directory
>../include/xincs.h:192:22: error: X11/Xlib.h: No such file or directory
>../include/xincs.h:196:22: error: X11/Xcms.h: No such file or directory
>../include/xincs.h:197:23: error: X11/Xutil.h: No such file or directory
>../include/xincs.h:198:27: error: X11/Xresource.h: No such file or directory
>../include/xincs.h:199:23: error: X11/Xatom.h: No such file or directory
>../include/xincs.h:200:28: error: X11/cursorfont.h: No such file or directory
>make[1]: *** [FX88591Codec.lo] Error 1
>make: *** [all-recursive] Error 1"
>
>I tried to look up on the net about this error, but couldn't make a
>headway. The missing .h files as shown above are actually present on my
>machine in the X11 folder.
>Could you help me resolve the issue please?
>
>Thanks

Did you su before you tried this installation?

Venkat

From MAILER-DAEMOReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CC94B23CA81;
	Mon, 26 Feb 2007 05:27:32 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ExHiY6j5P-ia; Mon, 26 Feb 2007 05:27:26 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id E973B23CA7E;
	Mon, 26 Feb 2007 05:27:25 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FNB43721
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 26 Feb 2007 03:01:21 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1QB1KiS1365184
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 26 Feb 2007 05:01:20 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1QB1K3C1364741
	for uhcoscstsd@list.prudentlearning.com; Mon, 26 Feb 2007 05:01:20 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702261101.l1QB1K3C1364741@bay.uh.edu>
Subject: gooey GUI (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 26 Feb 2007 05:01:20 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 817
Status: O
X-UID: 104570
X-Keywords: $NotJunk JunkRecorded          

 JunkRecorded
X-UID: 104504

>Venkat,
>
>I'm trying to use Tk as Chapter 19 in the text describes, but I get the
>following error:
>
>c:/ruby/lib/ruby/1.8/i386-mswin32/tcltklib.so: 126: The specified module
>could not be
> found.   - c:/ruby/lib/ruby/1.8/i386-mswin32/tcltklib.so (LoadError)
>
>I can't find much on the web about this issue except something about a
>tk83.dll being needed (which I don't have is the bin/ directory.
>
>I'm look at Tcl now, but have no idea where to start with it. I'd like to
>use the Tk (since I've got a book with a chapter about it!).
>
>Any help here?


You may have to install Tcl/Tk.

http://www.activestate.com/downloads

Down at the bottom you will see link for Active Tcl.

You may also find the following useful:
http://rubylearning.com/blog/2007/02/12/rubytk-tutorial

Let me know how it goes.

Venkat

From MAILER-DAEMReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 286E823CA7C;
	Tue, 27 Feb 2007 05:58:43 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id HGdmxdB00e4C; Tue, 27 Feb 2007 05:58:37 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AD05F23CA72;
	Tue, 27 Feb 2007 05:58:37 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GNG98442
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 27 Feb 2007 03:31:42 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1RBVfiS1380763
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 27 Feb 2007 05:31:42 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1RBVfWm1380521
	for uhcoscstsd@list.prudentlearning.com; Tue, 27 Feb 2007 05:31:41 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702271131.l1RBVfWm1380521@bay.uh.edu>
Subject: Another FXRuby problem (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 27 Feb 2007 05:31:41 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1039
Status: RO
X-UID: 104571
X-Keywords: JunkRecorded              

nkRecorded    
X-UID: 104505

>Hi Venkat,
>I installed the FXRuby on Windows without trouble. But facing two other 
>problems.
>
>1) Resizing the buttons which should be very trivial, is not . No matter what 
>co-ordinates I set,( X,Y of the top left corner, and height and width), I 'm 
>unable to position the button in places I want . Looks like I need to write 
>them as properties of those buttons
>
>2) When I wrote a piece of code on the button handler ,It worked. But When 
>I moved to a different file ,so logic is separated from UI, Ruby complains 
>that it could not find the file 'FX' (load error)
>There must be something crucial but very simple that leads to this. ( this is 
>the extension of the first tutorial in 
>http://www.mikeparr.info/rubyguib/firstprog.htm
>Is there any loadpath concept ?
>
>AS you suggested rightly to start on early for this assignment, developing 
>gui applications will&nbsp; remain a challenge until we learn how to use 
>these libraries.

If you email me the code, I will be glad to take a look at the two issues.

Venkat

From MAILER-DAEReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4402C23CA83;
	Tue, 27 Feb 2007 06:38:56 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id nzMoC5RtBQzL; Tue, 27 Feb 2007 06:38:51 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6326723CA82;
	Tue, 27 Feb 2007 06:38:51 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GOL60936
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 27 Feb 2007 04:10:36 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1RCAEiS1380909
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 27 Feb 2007 06:10:14 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1RCAEbL1380617
	for uhcoscstsd@list.prudentlearning.com; Tue, 27 Feb 2007 06:10:14 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702271210.l1RCAEbL1380617@bay.uh.edu>
Subject: Compare State of Ruby Objects (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 27 Feb 2007 06:10:14 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2708
Status: RO
X-UID: 104572
X-Keywords: $NotJunk JunkRecorded          

nk JunkRecorded
X-UID: 104506

>Venkat,
>
>Is there a way to compare state of two Ruby objects, i.e. objects of the
>same class? I can think of having a method which returns all the instance
>variables but that would become cumbersome to maintain.
>
>The problem is that some objects when compared to each other like arrays
>equate to true for example:
>
>a = [1, 2, 3]
>b = [1, 2, 3]
>
>a == b returns true since these are arrays have implemented the to_s method
>
>But in the case of
>
>class Car
> attr_writer:car_name
> @car_name
>end
>
>car1 = Car.new
>car1.car_name = "Toyota"
>
> car2 = Car.new
>car2.car_name = "Toyota"
>
>car1 == car2  returns false since now it just compares the object address
>rather than any of the state since I have not implemented the to_s method.
>
>It would be convenient if there is a facility here which just compares the
>state of the objects and returns true or false.....
>
>Your comments will be appreciated, Thanks.

The reason why Array behaves that way is that the == is implemented
in the Array class differently (pages 94 and 95 in the PickAxe book).

If you want to compare value for your objects, you need to define what
comparison means to you (just like in other languages).

Here is a sample code:

require "test/unit"

class Car
  attr_reader :year, :miles, :make
  def initialize(year, miles, make)
    @year = year
    @miles = miles
    @make = make
  end

  def eql?(other)
    if other.instance_of?(Car)
      self == other
    else
      false
    end
  end

  def ==(other) #You decide how to compare cars. Here I don't care for make
    year == other.year && miles == other.miles
  end
end

class EqualTest < Test::Unit::TestCase
  def setup
    @arr1 = [1, 2, 3]
    @arr2 = [1, 2, 3]
    @arr3 = [1, 2, 3, 4]
    @car1 = Car.new(2007, 10, 'Toyota')
    @car2 = Car.new(2007, 10, 'Toyota')
    @car3 = Car.new(2007, 20, 'Toyota')
  end

  #Array has implemented eq? and == methods
  def testArrayIdentity
    assert_equal(false, @arr1.equal?(@arr2))
  end

  def testArrayeql
    assert @arr1.eql?(@arr2)
  end

  def testArrayDblEql
    assert @arr1 == @arr2
  end

  def testArrayIdentityFor1And3
    assert_equal(false, @arr1.equal?(@arr3))
  end

  def testArrayIneql
    assert_equal(false, @arr1.eql?(@arr3))
  end

  def testNotArrayDblEql
    assert @arr1 != @arr3
  end

  def testCarIdentity
    assert_equal(false, @car1.equal?(@car2))
  end

  def testCareql
    assert @car1.eql?(@car2)
  end

  def testCarDblEql
    assert @car1 == @car2
  end

  def testCarIdentityFor1And3
    assert_equal(false, @car1.equal?(@car3))
  end

  def testCarIneql
    assert_equal(false, @car1.eql?(@car3))
  end

  def testNotCarDblEql
    assert @car1 != @car3
  end
end

Venkat

From MAILER-DAReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3B17123CA8A;
	Wed, 28 Feb 2007 05:34:18 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PO3Z-9FgMbNT; Wed, 28 Feb 2007 05:34:13 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3DACE23CA7E;
	Wed, 28 Feb 2007 05:34:13 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HNJ04742
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 03:07:42 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1SB7fiS1396060
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 05:07:41 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1SB7f8L1398403
	for uhcoscstsd@list.prudentlearning.com; Wed, 28 Feb 2007 05:07:41 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702281107.l1SB7f8L1398403@bay.uh.edu>
Subject: Re: fox toolkit installation problem (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 28 Feb 2007 05:07:41 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2791
Status: RO
X-UID: 104573
X-Keywords: $NotJunk JunkRecorded          

unk JunkRecorded
X-UID: 104507

>Hi
>
>I finally got past the error which we were facing regarding the X11 header
>files with the help of Chandler. I had to set the CXX flags to include the
>X11 directory.
>(CXX="c++ -I/sw/include
>-I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/sw/lib
>-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib" ./configure; make)

That is good.

>But then I got  another error during the installation:
>
>FXThread.cpp: In constructor 'FX::FXSemaphore::FXSemaphore(FX::FXint)':
>FXThread.cpp:191: error: 'sem_t' was not declared in this scope
>FXThread.cpp:192: error: expected primary-expression before ')' token
>FXThread.cpp:192: error: 'sem_init' was not declared in this scope
>FXThread.cpp: In member function 'void FX::FXSemaphore::wait()':
>FXThread.cpp:198: error: 'sem_t' was not declared in this scope
>FXThread.cpp:198: error: expected primary-expression before ')' token
>FXThread.cpp:198: error: 'sem_wait' was not declared in this scope
>FXThread.cpp: In member function 'FX::FXbool FX::FXSemaphore::trywait()':
>FXThread.cpp:204: error: 'sem_t' was not declared in this scope
>FXThread.cpp:204: error: expected primary-expression before ')' token
>FXThread.cpp:204: error: 'sem_trywait' was not declared in this scope
>FXThread.cpp: In member function 'void FX::FXSemaphore::post()':
>FXThread.cpp:210: error: 'sem_t' was not declared in this scope
>FXThread.cpp:210: error: expected primary-expression before ')' token
>FXThread.cpp:210: error: 'sem_post' was not declared in this scope
>FXThread.cpp: In destructor 'FX::FXSemaphore::~FXSemaphore()':
>FXThread.cpp:216: error: 'sem_t' was not declared in this scope
>FXThread.cpp:216: error: expected primary-expression before ')' token
>FXThread.cpp:216: error: 'sem_destroy' was not declared in this scope
>FXThread.cpp: In member function 'void FX::FXThread::priority(FX::FXint)':
>FXThread.cpp:479: warning: missing initializer for member
>'sched_param::opaque'
>FXThread.cpp: In member function 'FX::FXint FX::FXThread::priority()':
>FXThread.cpp:498: warning: missing initializer for member
>'sched_param::opaque'
>make[1]: *** [FXThread.lo] Error 1
>make: *** [all-recursive] Error 1
>________________________________________________________________________
>
>I looked up on the fox mailing list and jeroen@fox-toolkit.org had made
>suggestions to someone's post to use the latest snapshot of the toolkit
>for the mac. I compiled using the latest snapshot and installed it
>successfully. But FXRuby requires the stable version of fox (1.6.23) and
>not the snapshot, which is the development version. (1.7.8)
>How do I get around this problem??
>
>Regards

I have no clue, without sitting down and playing with it, it is hard to
suggest any fix.

Has anyone in the class installed Fx on the Mac successfully?

Venkat

From MAILER-DReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2E17C23CA7C;
	Wed, 28 Feb 2007 07:20:23 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id SAPMah2HNYaW; Wed, 28 Feb 2007 07:20:18 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5E05523CA79;
	Wed, 28 Feb 2007 07:20:18 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HOD70354
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 04:53:54 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1SCrriS1371625
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 06:53:53 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1SCrrjA1395995
	for uhcoscstsd@list.prudentlearning.com; Wed, 28 Feb 2007 06:53:53 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702281253.l1SCrrjA1395995@bay.uh.edu>
Subject: Re: ruby/tk question (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 28 Feb 2007 06:53:53 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1514
Status: RO
X-UID: 104574
X-Keywords: $NotJunk JunkRecorded          

Junk JunkRecorded
X-UID: 104508

>Hi,
>This is a follow up on the previous email I sent. It seems that if i launch
>the program in an xTerminal then I can in fact run the Tk binding just fine.
>However, I am still unable to launch from OS X's native terminal. Can you
>explain the cause of this?
>
>> Ruby/Tk is running flawlessly while I was using Eclipse IDE.
>>
>> But when I ran require 'tk' in irb, i got the following error:
>>
>> irb(main):001:0> require 'tk'
>> RuntimeError: tcltklib: fail to Tk_Init(). couldn't connect to display
>> "localhost: 0.0"
>>         from /opt/local/lib/ruby/1.8/tk.rb:1102:in `initialize'
>>         from /opt/local/lib/ruby/1.8/tk.rb:1102:in `new'
>>         from /opt/local/lib/ruby/1.8/tk.rb:1102
>>         from (irb):1:in `require'
>>         from (irb):1
>>
>> And this is what error I got when I ran things in TextMate:
>> RuntimeError: tcltklib: fail to Tk_Init(). no display name and no $DISPLAY
>> environment variable
>>
>> method initialize    in tk.rb at line 1102
>> method new    in tk.rb at line 1102
>> at top level    in tk.rb at line 1102
>> method require    in untitled document at line 1
>> at top level    in untitled document at line 1
>>
>> Do you know what might be causing this? For the longest time I can't think
>> how or where to setup things under Eclipse and I am not able to find any
>> relevant help online. Help.
>> --

I am assuming you are using bash.

In .bash_login (in your home directory), try putting 

export DISPLAY=localhost:0

Let me know if that helps.

Venkat

From MAILER-Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id A45FC23CA86;
	Wed, 28 Feb 2007 08:08:11 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id mvVf4JdXnX7V; Wed, 28 Feb 2007 08:08:07 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id F3E9523CA83;
	Wed, 28 Feb 2007 08:08:06 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HPR90644
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 05:41:44 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1SDfiiS1399839
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 07:41:44 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1SDfiEK1363080
	for uhcoscstsd@list.prudentlearning.com; Wed, 28 Feb 2007 07:41:44 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702281341.l1SDfiEK1363080@bay.uh.edu>
Subject: Re: ruby/tk question (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 28 Feb 2007 07:41:43 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 443
Status: RO
X-UID: 104575
X-Keywords: $NotJunk JunkRecorded          

tJunk JunkRecorded
X-UID: 104509

>Thanks,
>
>By creating a .bash_login (in my home directory) with an added line:
>export DISPLAY=localhost:0
>finally fixed all the problems.
>
>I have actually tried the command during many terminal session but was
>unable to resolve this issue. Do you know why must I add that command in a
>.bash_login file in order to solve this problem?


You may find your answer here:

http://developer.apple.com/opensource/tools/runningx11.htm

Venkat

From MAILERReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4191D23CA86;
	Wed, 28 Feb 2007 10:21:42 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id T02pgTXJsdxd; Wed, 28 Feb 2007 10:21:37 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7DBDA23CA84;
	Wed, 28 Feb 2007 10:21:37 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HRE06352
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 07:54:52 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l1SFsniS1401373
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 09:54:49 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l1SFsnkd1400567
	for uhcoscstsd@list.prudentlearning.com; Wed, 28 Feb 2007 09:54:49 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200702281554.l1SFsnkd1400567@bay.uh.edu>
Subject: RE: Another FXRuby problem (fwd) - code attached (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 28 Feb 2007 09:54:49 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 560
Status: RO
X-UID: 104576
X-Keywords: $NotJunk JunkRecorded          

otJunk JunkRecorded
X-UID: 104510

>Hi Venkat,
>...
>Attached are the two code files. ExtendInches requires InchesX.
>I get error when I run ExtendInches.rb. ( require FX(Load error) .I'm also 
>attaching the rbin file which is the layout for the simple task
>Thanx

I made three changes to your code to make it work:

1. In ExtenInches.rb I changed line 10 from
	convertButton.connect(SEL_COMMAND){
to
	convertButton.connect(Fox::SEL_COMMAND){

2. In InchesX.rb, modified lines 51 and 52 to

require 'libGUIb16'
app=FX::App.new

Now the UI pops up when I run the code.
Hope this helps.

Venkat

From MAILEReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 844C823CA86;
	Thu,  1 Mar 2007 00:05:22 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ImfLrv4Q28e8; Thu,  1 Mar 2007 00:05:17 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B1F2523CA84;
	Thu,  1 Mar 2007 00:05:17 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GIN01624
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 21:38:24 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l215cNiS1425821
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 23:38:23 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l215cNih1425754
	for uhcoscstsd@list.prudentlearning.com; Wed, 28 Feb 2007 23:38:23 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703010538.l215cNih1425754@bay.uh.edu>
Subject: Re: Another FXRuby problem (fwd) - code attached (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 28 Feb 2007 23:38:23 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 894
Status: O
X-UID: 104577
X-Keywords: $NotJunk JunkRecorded          

NotJunk JunkRecorded
X-UID: 104511

>Seems like a namespace problem. Since Fox has all its functions starts with
>FX, it is ok to merge Fox namespace into the program namespace with
>
>using 'Fox'
>
>With warm regards,
>
>On 2/28/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Hi Venkat,
>> >...
>> >Attached are the two code files. ExtendInches requires InchesX.
>> >I get error when I run ExtendInches.rb. ( require FX(Load error) .I'm
>> also
>> >attaching the rbin file which is the layout for the simple task
>> >Thanx
>>
>> I made three changes to your code to make it work:
>>
>> 1. In ExtenInches.rb I changed line 10 from
>>         convertButton.connect(SEL_COMMAND){
>> to
>>         convertButton.connect(Fox::SEL_COMMAND){
>>
>> 2. In InchesX.rb, modified lines 51 and 52 to
>>
>> require 'libGUIb16'
>> app=FX::App.new
>>
>> Now the UI pops up when I run the code.
>> Hope this helps.
>>
>> Venkat

From MAILReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 31A1E23CA87;
	Thu,  1 Mar 2007 00:06:42 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id C1I5w8o2P89q; Thu,  1 Mar 2007 00:06:35 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3E5BA23CA86;
	Thu,  1 Mar 2007 00:06:35 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GIO71959
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 21:39:59 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l215dxiS1424902
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 28 Feb 2007 23:39:59 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l215dxOu1424221
	for uhcoscstsd@list.prudentlearning.com; Wed, 28 Feb 2007 23:39:59 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703010539.l215dxOu1424221@bay.uh.edu>
Subject: Re: Another FXRuby problem (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 28 Feb 2007 23:39:59 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1749
Status: O
X-UID: 104578
X-Keywords: $NotJunk JunkRecorded          

$NotJunk JunkRecorded
X-UID: 104512

>I too faced same problem initially. For setting the coordinates of button,
>we need to do following steps:
>
>1) select layoutHints
>2) check LAYOUT_FIX_X
>3) check LAYOUT_FIX_Y
>4) click ok
>5) Now set the coordinates, it will work properly.
>
>I faced difficulty in using matrix layout. It's not showing the controls in
>matrix form. So had to used above method to place the controls in matrix
>form.
>
>Note: I have used FoxGUIB as gui builder and codegenerator for
>FXRuby<http://www.fxruby.org/>
>.

Thanks for the pointer. I hope this help.

Venkat

>
>On 2/27/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Hi Venkat,
>> >I installed the FXRuby on Windows without trouble. But facing two other
>> >problems.
>> >
>> >1) Resizing the buttons which should be very trivial, is not . No matter
>> what
>> >co-ordinates I set,( X,Y of the top left corner, and height and width), I
>> 'm
>> >unable to position the button in places I want . Looks like I need to
>> write
>> >them as properties of those buttons
>> >
>> >2) When I wrote a piece of code on the button handler ,It worked. But
>> When
>> >I moved to a different file ,so logic is separated from UI, Ruby
>> complains
>> >that it could not find the file 'FX' (load error)
>> >There must be something crucial but very simple that leads to this. (
>> this is
>> >the extension of the first tutorial in
>> >http://www.mikeparr.info/rubyguib/firstprog.htm
>> >Is there any loadpath concept ?
>> >
>> >AS you suggested rightly to start on early for this assignment,
>> developing
>> >gui applications will&nbsp; remain a challenge until we learn how to use
>> >these libraries.
>>
>> If you email me the code, I will be glad to take a look at the two issues.
>>
>> Venkat

From MAIReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CB03F23CA74;
	Sun,  4 Mar 2007 06:58:54 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id gWUd7IV5sAYH; Sun,  4 Mar 2007 06:58:54 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1499C23CA6B;
	Sun,  4 Mar 2007 06:58:54 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id JPJ46139
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 4 Mar 2007 04:31:39 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l24CVciS1551306
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 4 Mar 2007 06:31:38 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l24CVc7P1537894
	for uhcoscstsd@list.prudentlearning.com; Sun, 4 Mar 2007 06:31:38 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703041231.l24CVc7P1537894@bay.uh.edu>
Subject: Should the board controll its players? (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 4 Mar 2007 06:31:38 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 718
Status: RO
X-UID: 104579
X-Keywords: $NotJunk JunkRecorded          

 $NotJunk JunkRecorded
X-UID: 104513

>Dear Venkat,
>
>I am a bit unclear about how much a board should do. My understanding is a
>board can and will prevent players from placing multiple pegs(? what is the
>word for x and o?) on one tile or placing pegs on tiles that are
>out-of-bound. However, it should not complain if I am placing pegs not in an
>alternate order (I can place several x in a row for example) nor should it
>complain if I place more pegs even after there is already a winner.

You can eliminate the last two cases as well, can't you?

>Is my thinking correct? My justification is: a board is just a board. It is
>the players responsibility to play the game according to the rule.
>
>With warm regards,

Or you can go further...

Venkat

From MAReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3C49223CA7A;
	Sun,  4 Mar 2007 22:58:28 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id TAYqXYkmOjKQ; Sun,  4 Mar 2007 22:58:27 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 313FC23CA77;
	Sun,  4 Mar 2007 22:58:27 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id KHI85202
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 4 Mar 2007 20:29:02 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l254T2iS1563549
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 4 Mar 2007 22:29:02 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l254T2681561720
	for uhcoscstsd@list.prudentlearning.com; Sun, 4 Mar 2007 22:29:02 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703050429.l254T2681561720@bay.uh.edu>
Subject: questions reg. hw1 (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 4 Mar 2007 22:29:02 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 683
Status: O
X-UID: 104580
X-Keywords: $NotJunk JunkRecorded          

: $NotJunk JunkRecorded
X-UID: 104514

>Hi
>
>The problem statement says that there must be two parts: the board class
>and the UI and hence they must talk to each other through an interface.

There is not explicit "interface", the UI needs to use the board class.

>I have a board class and I create the UI from a function in the board
>class. They then interface through a function of the board class. Is that
>ok or would you want us to create the UI as a separate entity and not
>through a function in the board class?

I would keep the board completely UI agnostic.

>Also, I ask the player to exit after a game is over. I do not give the
>option of playing again. Is that ok?
>
>Thanks

Not a major concern.

Venkat

From MReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6EAAC23CA7A;
	Sun,  4 Mar 2007 22:58:44 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Eh3r6HrPqztu; Sun,  4 Mar 2007 22:58:43 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id BCC7423CA77;
	Sun,  4 Mar 2007 22:58:43 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id KHK46115
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 4 Mar 2007 20:31:15 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l254VFiS1564107
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 4 Mar 2007 22:31:15 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l254VFW71563497
	for uhcoscstsd@list.prudentlearning.com; Sun, 4 Mar 2007 22:31:15 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703050431.l254VFW71563497@bay.uh.edu>
Subject: Restarting the application (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 4 Mar 2007 22:31:15 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 494
Status: O
X-UID: 104581
X-Keywords: $NotJunk JunkRecorded          

s: $NotJunk JunkRecorded
X-UID: 104515

>Hi Venkat,
>
>I know this sound weird but how can you restart a Ruby application TEST_APP
>from the same application without closing it. Is there a way to do it ? and
>how ?
>
>Regards,

There are a few options.
You can issue a ruby command (like how I showed examples of calling
svn).

However, why do that? Why not simply reassign object reference so
you start using a fresh object rather than restarting an app

(for example
whateverobj = SomeClass.new
when you want to start over)

Venkat

From Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 48A7A23CA77;
	Mon,  5 Mar 2007 03:50:29 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id E5Mk7L7tzakM; Mon,  5 Mar 2007 03:50:28 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 83D7F23CA75;
	Mon,  5 Mar 2007 03:50:28 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id KMC29717
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 5 Mar 2007 01:23:17 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l259NGiS1568459
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 5 Mar 2007 03:23:16 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l259NGti1567719
	for uhcoscstsd@list.prudentlearning.com; Mon, 5 Mar 2007 03:23:16 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703050923.l259NGti1567719@bay.uh.edu>
Subject: Unit Testing for Board GUI? (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 5 Mar 2007 03:23:15 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 796
Status: RO
X-UID: 104582
X-Keywords: $NotJunk JunkRecorded          

ds: $NotJunk JunkRecorded
X-UID: 104516

>Dear Venkat,
>
>I think I must have missed this I thought you mentioned that there is no
>good way (as of now) to unit test GUI. Is that the case?

It is hard to perform unit testing on the UI.
Often functional testing or usability testing at this level
is confused with unit testing. I recommend taht you keep logic
out of UI and keep it thin so you can unit test layers below.

>If so, then unit test is not required for the GUI part of assignment 1. What
>are your recommendation for testing of the GUI?
>
>With warm regards,

Automated testing of the desktop UI is not that easy. There are
some tools for different languages and frameworks, but hard to
come by something that actually works well. For web appliacations
there are tools like Watir and Selenium that are pretty useful.

Venkat

FromReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 42C0623CA74;
	Wed,  7 Mar 2007 05:09:57 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id av5SF3IWyK6l; Wed,  7 Mar 2007 05:09:54 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2498B23CA72;
	Wed,  7 Mar 2007 05:09:54 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MNX17122
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 7 Mar 2007 02:42:22 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l27AgLiS1098493
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 7 Mar 2007 04:42:21 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l27AgLvL1098988
	for uhcoscstsd@list.prudentlearning.com; Wed, 7 Mar 2007 04:42:21 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703071042.l27AgLvL1098988@bay.uh.edu>
Subject: Re: ruby gui (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 7 Mar 2007 04:42:21 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 212
Status: O
X-UID: 104583
X-Keywords: $NotJunk JunkRecorded          

rds: $NotJunk JunkRecorded
X-UID: 104517

>
>http://www.rubycentral.com/book/ext_tk.html
>
>See if this helps. I messed around with Tk/ruby bindings in Mac and it looks
>clean and simple.

I promised to send this out at a later time, here it is.

Venkat

FroReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1D95B23CA72;
	Wed,  7 Mar 2007 05:11:37 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bF9XZnm6ZrSJ; Wed,  7 Mar 2007 05:11:36 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5E2A223CA71;
	Wed,  7 Mar 2007 05:11:36 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MNY43743
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 7 Mar 2007 02:43:43 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l27AhgiS1097632
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 7 Mar 2007 04:43:42 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l27AhgO81063345
	for uhcoscstsd@list.prudentlearning.com; Wed, 7 Mar 2007 04:43:42 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703071043.l27AhgO81063345@bay.uh.edu>
Subject: Feature set for TicTacToe Board (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 7 Mar 2007 04:43:42 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 302
Status: O
X-UID: 104584
X-Keywords: $NotJunk JunkRecorded          

ords: $NotJunk JunkRecorded
X-UID: 104518

at a game of TicTacToe
>would include. Like mine does not include a score collection system (since I
>play for fun, not for score). Umm yeah ..... right.
>
>So my question is, is score collection a part of this assignment?
>
>With warm regards,

Nope, keeping score statistics is not required.

Venkat

FrReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id A798F23CA72;
	Wed,  7 Mar 2007 05:12:36 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id LhR8VVTV7XKD; Wed,  7 Mar 2007 05:12:34 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C7EDD23CA71;
	Wed,  7 Mar 2007 05:12:33 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MNA34304
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 7 Mar 2007 02:45:04 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l27Aj3iS1081149
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 7 Mar 2007 04:45:03 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l27Aj3XI1097655
	for uhcoscstsd@list.prudentlearning.com; Wed, 7 Mar 2007 04:45:03 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703071045.l27Aj3XI1097655@bay.uh.edu>
Subject: reg. assignment - testing (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 7 Mar 2007 04:45:03 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
S: 
Content-Length: 717
Status: O
X-UID: 104585
X-Keywords: $NotJunk JunkRecorded          

words: $NotJunk JunkRecorded
X-UID: 104519

         

>Hi
>
>You mentioned that you expect to see a good number of test cases. The test
>cases that I had written for developing the program do not work after I
>have developed the program as the functions use an instance variable.

These are early signs that you have high coupling and low cohesion.
Unit testing foruces you to separate and modularize your code.

>Hence I cannot run my test cases using a mock object. I have to modify the
>actual variable to run my test cases, for which I have to define it as an
>attr_writer. Should I do so or give you the original test cases which do
>not actually work with the developed program?
>
>Regards,

One of the students in the class "discovered" my article and 

FReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5D72F23CA72;
	Thu,  8 Mar 2007 05:06:27 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id LnlIUednHgF5; Thu,  8 Mar 2007 05:06:25 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9121D23CA71;
	Thu,  8 Mar 2007 05:06:25 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NNS14053
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Mar 2007 02:36:53 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l28AapiS1117907
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Mar 2007 04:36:51 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l28Aaprk1118140
	for uhcoscstsd@list.prudentlearning.com; Thu, 8 Mar 2007 04:36:51 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703081036.l28Aaprk1118140@bay.uh.edu>
Subject: Re: ruby gui (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 8 Mar 2007 04:36:51 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 505
Status: RO
X-UID: 104586
X-Keywords: $NotJunk JunkRecorded          

ywords: $NotJunk JunkRecorded
X-UID: 104520

>Dear Venkat,
>
>Now that the assignment is over. I am wondering what other students use for
>their GUI toolkit. Also, for those whose were beaming with pride to say that
>this is the their first desktop GUI program, how hard is it to use them?
>
>At first I was trying to use RubyFX then I switched to Ruby/GTK2.
>
>With warm regards,

Sure I will post a summary of what I find.

If anyone is interested in sharing the experience and their
pleasure/pain report, the mailing list is open for you.

Venkat

Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 644C623CA72;
	Thu,  8 Mar 2007 05:06:43 -0600 (CST)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BeWs+lxPR8uS; Thu,  8 Mar 2007 05:06:42 -0600 (CST)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9925823CA71;
	Thu,  8 Mar 2007 05:06:42 -0600 (CST)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NNU79624
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Mar 2007 02:38:24 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l28AcNiS1099378
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 8 Mar 2007 04:38:23 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l28AcNBO1460748
	for uhcoscstsd@list.prudentlearning.com; Thu, 8 Mar 2007 04:38:23 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703081038.l28AcNBO1460748@bay.uh.edu>
Subject: rubygem issue (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 8 Mar 2007 04:38:23 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 964
Status: RO
X-UID: 104587
X-Keywords: $NotJunk JunkRecorded          

eywords: $NotJunk JunkRecorded
X-UID: 104521

>Hi Venkat,
>
>I tried the sample example that you mentioned in the lecture for accessing
>the database
>
>require 'rubygem'
>require_gem 'activerecord'
>
>ActiveRecord::Base.establish_connection(:adapter=>'mysql',
>:host=>'localhost', :database=>'csalum_development', :user=>'anonymous',
>:password=>'')
>
>class Graduate < ActiveRecord::Base
>end
>
>alum = Graduate.find(1)
>puts alum.first_name
>
>but when i run the program it gave me following message
>
>c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>`gem_original_re
>quire': no such file to load -- rubygem (LoadError)
>        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>`re
>quire'
>        from C:/Documents and Settings/My Documents/dbConn.rb:1
>Press any key to continue . . .
>
>I did try to install rubygem but nothing happens, can you help me with this
>
>Regards,

Try changing

require 'rubygem'

to

require 'rubygems'

and see if that helps.

Venkat
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7095123CA6F;
	Mon, 12 Mar 2007 09:00:07 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id weiw7YsvVY4L; Mon, 12 Mar 2007 09:00:00 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C335623CA76;
	Mon, 12 Mar 2007 08:59:58 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id RQQ10940
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 12 Mar 2007 05:30:40 -0800
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2CDUciS1173075
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 12 Mar 2007 07:30:38 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l2CDUcST1173791
	for uhcoscstsd@list.prudentlearning.com; Mon, 12 Mar 2007 07:30:38 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703121330.l2CDUcST1173791@bay.uh.edu>
Subject: Lambdas and Mixins in C# (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 12 Mar 2007 07:30:38 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1113
Status: RO
X-UID: 104588
X-Keywords: $NotJunk JunkRecorded          

Keywords: $NotJunk JunkRecorded
X-UID: 104522

>A buddy of mine over at Microsoft sent me to his blog over new features in
>C# 3.0
>He wrote two small posts covering the addition of lambdas and Mixins (known
>as extension methods) in C# 3.0
>Lambdas:
>http://blogs.msdn.com/howard_dierking/archive/2007/01/18/lambda-lambda-lambda.aspx
>Extension Methods:
>http://blogs.msdn.com/howard_dierking/archive/2007/02/09/more-c-3-0-extension-methods.aspx
>
>I'm not sure if you have read about these new additions to C#, but if you
>haven't you'll now be able to write your C# code a lot more like ruby.
>
>On another note in Ft. Worth at the end of April is a free Continuous
>Integration Conference (http://citconf.com/) that has caught my attention
>and I will be attending.

Thank you for sharing this.

Yours truly has done some podcast related to this, if you're interested
in viewing, here are the links. It starts with Ruby in general first
and later shows get into Ruby on .NET

http://www.dnrtv.com/default.aspx?showID=37
http://www.dnrtv.com/default.aspx?showID=38
http://www.dnrtv.com/default.aspx?showID=41
http://dnrtv.com/default.aspx?showID=57

VenkatReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 55F2A23CA7E;
	Wed, 14 Mar 2007 03:08:58 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id D-0m9qkpVqst; Wed, 14 Mar 2007 03:08:53 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5D10E23CA7A;
	Wed, 14 Mar 2007 03:08:53 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TKC04620
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Mar 2007 00:40:20 -0700
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2E7eJiS1198756
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Mar 2007 01:40:19 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l2E7eJY01152620
	for uhcoscstsd@list.prudentlearning.com; Wed, 14 Mar 2007 01:40:19 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703140740.l2E7eJY01152620@bay.uh.edu>
Subject: XML Support and Database Related questions (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 14 Mar 2007 01:40:18 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1693
Status: RO
X-UID: 104589
X-Keywords: $NotJunk JunkRecorded          

-Keywords: $NotJunk JunkRecorded
X-UID: 104523

>Venkat,
>
>I had a few questions:
>
>I wanted to know what kind of support does Ruby have for processing of XML.
>How easy it is to parse XML documents and write XPATH expressions to extract
>meaningful information from it. I know that Ruby and Active Records promote
>the use of YAML, but XML to me is still the ubiquitous way of data
>communication.

Ruby has a strong community. There are some real smart people who have
developed libraries that solve various common problems. You will find
quite a few libraries for processing XML, depending on what your needs are.

>Another database related question is that, are there any known issues with
>Active Records and it's compatibility with existing databases like Oracle
>and SQL Server. My question is more geared towards the issue of SQL-92
>compliance, since Active Records does generate the SQL on the fly to obtain
>the required information.


None that I am aware of, but I have not actively investigated these.

>Also is there discussion based on the ID column of the database I understand
>the framework needs it but it is tough to take an existing database add
>an ID as the primary key to each table and make the current natural key
>(business key) just as a unique constraint. By doing this now the database
>has to maintain two indexes and I have to carrythe burden of this synthetic
>key which is of no use other than making Active Records happy.

Generally I find it much better to use a unique id rather than using
business specific keys. I highly recommend doing that. If for whatever
reason you can't, then you can ask ActiveRecord to map the id to
that business key.

>Your comments will be appreciated.
>
>Thanks!

VenkaReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 76B6723CA75;
	Wed, 14 Mar 2007 03:18:09 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 1sUQDUavxk8P; Wed, 14 Mar 2007 03:18:04 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id BAEF023CA6C;
	Wed, 14 Mar 2007 03:18:04 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.4])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TKL67131
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Mar 2007 00:49:31 -0700
Received: from bay.uh.edu (bay.uh.edu [129.7.235.4])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2E7nViS1197304
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 14 Mar 2007 01:49:31 -0600 (CST)
Received: (from cosc155g@localhost)
	by bay.uh.edu (8.12.10/8.12.10/Submit) id l2E7nVqq1519696
	for uhcoscstsd@list.prudentlearning.com; Wed, 14 Mar 2007 01:49:31 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703140749.l2E7nVqq1519696@bay.uh.edu>
Subject: Unit Testing on private method (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 14 Mar 2007 01:49:30 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 773
Status: RO
X-UID: 104590
X-Keywords: $NotJunk JunkRecorded          

X-Keywords: $NotJunk JunkRecorded
X-UID: 104524

>Dear Venkat,
>
>I encountered a small problem yesterday while I try to write some small ruby
>script. It boils down to me trying to test my private method of a class. How
>do I go about doing this?
>
>With warm regards,

Generally we unit test public methods. On rare occasions, I find a need
to unit test private methods. Ruby allows you to modify the access, so
you can change that in your test.

For example:

class MyClass
  private
  def some_method
    return 1, 2
  end
end

And then

require "test/unit"
require "my_class"

class MyClass
  public :some_method
end

class MyTest < Test::Unit::TestCase
    
  def setup
    @obj = MyClass.new
  end
	      
  def test_some_method    
    result = @obj.some_method

    assert_equal(2, result.size)
  end
end

VenkReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 317BA23CA72;
	Sun, 18 Mar 2007 10:13:34 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2L3WhHzTlcDA; Sun, 18 Mar 2007 10:13:33 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4241623CA6D;
	Sun, 18 Mar 2007 10:13:33 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id XRK40405
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 18 Mar 2007 07:44:05 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2IEi4Fr577226
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 18 Mar 2007 08:44:04 -0600 (CST)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l2IEi494577224
	for uhcoscstsd@list.prudentlearning.com; Sun, 18 Mar 2007 08:44:04 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703181444.l2IEi494577224@creek.uh.edu>
Subject: Re: Unit Testing on private method (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 18 Mar 2007 08:44:04 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1202
Status: RO
X-UID: 104591
X-Keywords: $NotJunk JunkRecorded          


X-Keywords: $NotJunk JunkRecorded
X-UID: 104525

>The moment I saw this I was stunned. -_- This Ruby approach is amazingly
>simple. This is awesome. Thank you very much Venkat.

Since you like it so much, here is a further simplification :)

MyClass.class_eval { public :some_method }

Venkat

>
>On 3/14/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Dear Venkat,
>> >
>> >I encountered a small problem yesterday while I try to write some small
>> ruby
>> >script. It boils down to me trying to test my private method of a class.
>> How
>> >do I go about doing this?
>> >
>> >With warm regards,
>>
>> Generally we unit test public methods. On rare occasions, I find a need
>> to unit test private methods. Ruby allows you to modify the access, so
>> you can change that in your test.
>>
>> For example:
>>
>> class MyClass
>>   private
>>   def some_method
>>     return 1, 2
>>   end
>> end
>>
>> And then
>>
>> require "test/unit"
>> require "my_class"
>>
>> class MyClass
>>   public :some_method
>> end
>>
>> class MyTest < Test::Unit::TestCase
>>
>>   def setup
>>     @obj = MyClass.new
>>   end
>>
>>   def test_some_method
>>     result = @obj.some_method
>>
>>     assert_equal(2, result.size)
>>   end
>> end
>>
>> VenReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D06BD23CA6D;
	Mon, 19 Mar 2007 22:54:08 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KKg-zOyTtJ-g; Mon, 19 Mar 2007 22:54:05 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id ADDDC23CA6C;
	Mon, 19 Mar 2007 22:54:05 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id ZGS04646
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 19 Mar 2007 20:24:46 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2K3OiFr626747
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 19 Mar 2007 21:24:44 -0600 (CST)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l2K3OiVc626745
	for uhcoscstsd@list.prudentlearning.com; Mon, 19 Mar 2007 21:24:44 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703200324.l2K3OiVc626745@creek.uh.edu>
Subject: Testing JS with Rails (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 19 Mar 2007 21:24:44 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 377
Status: RO
X-UID: 104592
X-Keywords: $NotJunk JunkRecorded          

 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104526

>Dear Venkat,
>
>Maybe I am jumping a little bit ahead of time here but I found this good
>article on how to set up and run JS Unit Test and I though that the class
>might want to have a look at them
>http://maintainablesoftware.com/articles/testing_javascript_in_rails
>
>With warm regards,

Thanks for the pointer, I am sure this is of interest and useful.

Regards,

VeReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id F0DCA23CA6E;
	Sun, 25 Mar 2007 19:38:24 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 84YDRBc-WlXy; Sun, 25 Mar 2007 19:38:24 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3FA1823CA6C;
	Sun, 25 Mar 2007 19:38:24 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FDI79309
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 25 Mar 2007 17:08:09 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2Q089Fr780387
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 25 Mar 2007 18:08:09 -0600 (CST)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l2Q089Lc780390
	for uhcoscstsd@list.prudentlearning.com; Sun, 25 Mar 2007 18:08:09 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703260008.l2Q089Lc780390@creek.uh.edu>
Subject: HW 2 and Assignment 2 posted...
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 25 Mar 2007 18:08:09 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 83
Status: RO
X-UID: 104593
X-Keywords: $NotJunk JunkRecorded          

: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104527

Greetings,

HW2 and Assignment 2 has been posted... enjoy.

Venkat
.008D2B91-Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B5CF123CA89;
	Sat, 31 Mar 2007 06:27:43 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id uc17WG0hcH2G; Sat, 31 Mar 2007 06:27:43 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id DF22123CA86;
	Sat, 31 Mar 2007 06:27:42 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id KNJ57717
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 31 Mar 2007 03:56:17 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l2VAuGFr937758
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 31 Mar 2007 04:56:16 -0600 (CST)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l2VAuGE3937747
	for uhcoscstsd@list.prudentlearning.com; Sat, 31 Mar 2007 04:56:16 -0600 (CST)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200703311056.l2VAuGE3937747@creek.uh.edu>
Subject: software analysis tool (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 31 Mar 2007 04:56:16 -0600 (CST)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 651
Status: O
X-UID: 104594
X-Keywords: $NotJunk JunkRecorded          

s: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104528

>Hi
>
>Do you know of some software analysis tool that gives a summary of the
>average cache utilisation, average cpu utilisation of some software etc. I
>need to get a summary of the utlisation of such resources by the software.
>
>Regards

On Unix and Mac, you may find ps useful. It can give you various
information about processes on the command line. Mac OS also has
Activity Monitor (under utilities) that may be of use to you.

On the PC, you can look at Performance Monitor (in addition to the little 
information given in Task Manager). These are part of the OS/system. 

There are also quite a number of third party tools out there.

Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 36E9223CA91;
	Mon,  2 Apr 2007 04:39:08 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id eSQgMIAGv9G7; Mon,  2 Apr 2007 04:39:07 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7E79923CA8F;
	Mon,  2 Apr 2007 04:39:07 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HNJ74903
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 02:07:03 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l32972Fr983630
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 04:07:02 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l32972UD983446
	for uhcoscstsd@list.prudentlearning.com; Mon, 2 Apr 2007 04:07:02 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704020907.l32972UD983446@creek.uh.edu>
Subject: Re: software analysis tool (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 2 Apr 2007 04:07:02 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 163
Status: O
X-UID: 104595
X-Keywords: $NotJunk JunkRecorded          

us: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104529

>In Linux you can run
>
>top
>
>which list CPU and memory usage by process.
>
>With warm regards,

Ah, that's a convenient Unix command! (also on Mac OS).
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2C01423CA92;
	Mon,  2 Apr 2007 04:42:18 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WQokeIo3zEfl; Mon,  2 Apr 2007 04:42:17 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 70C4023CA8F;
	Mon,  2 Apr 2007 04:42:17 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HNK64052
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 02:08:52 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3298pFr983687
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 04:08:51 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3298psB983676
	for uhcoscstsd@list.prudentlearning.com; Mon, 2 Apr 2007 04:08:51 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704020908.l3298psB983676@creek.uh.edu>
Subject: Re: software analysis tool (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 2 Apr 2007 04:08:51 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 258
Status: O
X-UID: 104596
X-Keywords: $NotJunk JunkRecorded          

tus: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104530

>I was looking for a third party tool that can measure parameters like disk
>accesses, average cache utilisation etc by a software. Please let me know
>if you know about a good third party tool that does that.
>
>Thanks

Google is a great friend. :)Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2D6B023CA80;
	Mon,  2 Apr 2007 04:42:31 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GemXxZ2cO7Zr; Mon,  2 Apr 2007 04:42:30 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3B41A23CA7E;
	Mon,  2 Apr 2007 04:42:30 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HNM09350
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 02:10:50 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l329AmFr983723
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 04:10:48 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l329Amjt983705
	for uhcoscstsd@list.prudentlearning.com; Mon, 2 Apr 2007 04:10:48 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704020910.l329Amjt983705@creek.uh.edu>
Subject: Slides for migrations, etc... (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 2 Apr 2007 04:10:48 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 485
Status: O
X-UID: 104597
X-Keywords: $NotJunk JunkRecorded          

atus: 
X-Keywords: $NotJunk JunkRecorded
X-UID: 104531

>Venkat,
>
>On the website, the slides for migrations (and it looks like several other
>topics) are missing (sessions 16-19 are not there).  Just wanted to drop you
>a reminder about this so I can print the slides before class tomorrow if
>possible.
>
>Thanks,

I up loaded session 15 (Migrations) last class. You should be able to
view it now. If not, let me know. Everything is uploaded now.
The slides are not numbered continously, so there are no sessions 16 to 19
slidesReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4165B23CA82;
	Mon,  2 Apr 2007 04:52:20 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ROQLrBZaWjxe; Mon,  2 Apr 2007 04:52:19 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6585123CA80;
	Mon,  2 Apr 2007 04:52:19 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HNW96848
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 02:20:48 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l329KlFr983506
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 2 Apr 2007 04:20:47 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l329KlhU983884
	for uhcoscstsd@list.prudentlearning.com; Mon, 2 Apr 2007 04:20:47 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704020920.l329KlhU983884@creek.uh.edu>
Subject: Rail Faq (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 2 Apr 2007 04:20:47 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1491
Status: O
X-UID: 104598
X-Keywords: $NotJunk JunkRecorded                                                                             


>I'm trying to use scaffold facility provided in rails. Once it worked fine
>and created controller, views and model. But lately its not generating views
>and only empty body for model is created. It is giving " is not a
>class/module" as message at the end. I have pasted the log below for your
>reference.
>
>C:\emporium\temp\script>ruby generate scaffold Product 'admin/product'
>      exists  app/controllers/admin
>      exists  app/helpers/admin
>      exists  app/views/admin/product
>      exists  app/views/layouts/admin
>      exists  test/functional/admin
>  dependency  model
>      exists    app/models/
>      exists    test/unit/
>      exists    test/fixtures/
>   identical    app/models/product.rb
>   identical    test/unit/product_test.rb
>   identical    test/fixtures/products.yml
> is not a class/module

One thing that I am concenred is the directory structure and where
you are running the script from.

cd to the directory above script and run ruby script\generate
and see if that helps.

Also, I am not sure why you have a temp directory. If your application
named temp?

Somethings not right as far as directory structure.

If running script from above the script directory does not help,
you may zip and email me your entire project and I will be glad to take
a look at it further.

Please use appropriate subject line when you email. Rails Faq does
not give me a hint - Rails code generation broke (or something similar)
may be good subject.

Venkat

From MAILER-DAEMON  Fri Apr  6 07:44:28 2007
Return-PatReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 19DFB23CA9A;
	Fri,  6 Apr 2007 07:44:28 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id JVylyIT9LTSv; Fri,  6 Apr 2007 07:44:25 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4391523CA87;
	Fri,  6 Apr 2007 07:44:25 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id LQR51640
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 6 Apr 2007 05:11:40 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l36CBdFr659589
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 6 Apr 2007 07:11:39 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l36CBdnj659580
	for uhcoscstsd@list.prudentlearning.com; Fri, 6 Apr 2007 07:11:39 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704061211.l36CBdnj659580@creek.uh.edu>
Subject: Re: Rail Code generation broken (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 6 Apr 2007 07:11:39 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2038
Status: O
X-UID: 175060
X-Keywords: $NotJunk JunkRecorded           

 problem. I had reinstalled ruby and rails as
>it had got messed up. I didn't  copy ADO.rb after reinstalling and it was
>painful to find what wrong things am I doing.
>
>No, my application is not named temp, this was just I didn't wanted to mesh
>my working project any further, so created a new rail project and tried out
>few things.
>
>Thanks.
>
>On 4/2/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Venkat,
>> >
>> >I'm trying to use scaffold facility provided in rails. Once it worked
>> fine
>> >and created controller, views and model. But lately its not generating
>> views
>> >and only empty body for model is created. It is giving " is not a
>> >class/module" as message at the end. I have pasted the log below for your
>> >reference.
>> >
>> >C:\emporium\temp\script>ruby generate scaffold Product 'admin/product'
>> >      exists  app/controllers/admin
>> >      exists  app/helpers/admin
>> >      exists  app/views/admin/product
>> >      exists  app/views/layouts/admin
>> >      exists  test/functional/admin
>> >  dependency  model
>> >      exists    app/models/
>> >      exists    test/unit/
>> >      exists    test/fixtures/
>> >   identical    app/models/product.rb
>> >   identical    test/unit/product_test.rb
>> >   identical    test/fixtures/products.yml
>> > is not a class/module
>>
>> One thing that I am concenred is the directory structure and where
>> you are running the script from.
>>
>> cd to the directory above script and run ruby script\generate
>> and see if that helps.
>>
>> Also, I am not sure why you have a temp directory. If your application
>> named temp?
>>
>> Somethings not right as far as directory structure.
>>
>> If running script from above the script directory does not help,
>> you may zip and email me your entire project and I will be glad to take
>> a look at it further.
>>
>> Please use appropriate subject line when you email. Rails Faq does
>> not give me a hint - Rails code generation broke (or something similar)
>> may be good subject.
>>
>> Venkat

From MAILER-DAEMON  Fri Apr  6 08:27:51 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uhReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C262F23CA7E;
	Fri,  6 Apr 2007 08:27:51 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id If7kvGDhZceU; Fri,  6 Apr 2007 08:27:51 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 119BA23CA7A;
	Fri,  6 Apr 2007 08:27:51 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id LQJ14153
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 6 Apr 2007 05:55:53 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l36CtqFr660332
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 6 Apr 2007 07:55:52 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l36CtqH3660334
	for uhcoscstsd@list.prudentlearning.com; Fri, 6 Apr 2007 07:55:52 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704061255.l36CtqH3660334@creek.uh.edu>
Subject: Activerecord (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 6 Apr 2007 07:55:52 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 447
Status: O
X-UID: 175061
X-Keywords: $NotJunk JunkRecorded           

e.  Use gem instead.
>
>and then when I try using just gem 'activerecord' it gives me an error
>
>C:/Documents and Settings/tpradhan/My
>Documents/RailsProjects/Library/library.rb
>:4: uninitialized constant ActiveRecord (NameError)
>
>is there some installation missing or can i just ignore the warning message
>??
>
>Thanks,

Replace 

require_gem 'activerecord'

with

gem 'activerecord'
require 'active_record'

and see if that works.

Venkat

From MAILER-DAEMON  Sat Apr  7 09:27:43 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	byReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 75AE423CA95;
	Sat,  7 Apr 2007 09:27:43 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id O0I-x0TrJHsh; Sat,  7 Apr 2007 09:27:42 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 91EDA23CA93;
	Sat,  7 Apr 2007 09:27:42 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MRH56101
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 06:52:01 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l37Dq0Fr685894
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 08:52:00 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l37Dq0sh685379
	for uhcoscstsd@list.prudentlearning.com; Sat, 7 Apr 2007 08:52:00 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704071352.l37Dq0sh685379@creek.uh.edu>
Subject: RE: Activerecord (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 7 Apr 2007 08:52:00 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1166
Status: O
X-UID: 175062
X-Keywords: $NotJunk JunkRecorded           

ng, the version I have on my Mac gave no warning (and I can't
touch it much right now as I am working on a few projects and hate to
break things at the very moment). The version on PC gave error and above
change (or change mentioned below!) seems to fix it.

>> -----Original Message-----
>> From: Dr. Venkat Subramaniam [mailto:cosc155g@Bayou.UH.EDU] 
>> Sent: Friday, April 06, 2007 7:56 AM
>> To: UH STSD (Ruby/Rails/AJAX course) Mailing List
>> Subject: Activerecord (fwd)
>> 
>> >Venkat,
>> >
>> >Whenever I use ActiveRecords using require_gem 'activerecord'  I get 
>> >the following warning
>> >
>> >C:0:Warning: require_gem is obsolete.  Use gem instead.
>> >
>> >and then when I try using just gem 'activerecord' it gives 
>> me an error
>> >
>> >C:/Documents and Settings/tpradhan/My
>> >Documents/RailsProjects/Library/library.rb
>> >:4: uninitialized constant ActiveRecord (NameError)
>> >
>> >is there some installation missing or can i just ignore the warning 
>> >message ??
>> >
>> >Thanks,
>> 
>> Replace 
>> 
>> require_gem 'activerecord'
>> 
>> with
>> 
>> gem 'activerecord'
>> require 'active_record'
>> 
>> and see if that works.
>> 
>> Venkat

From MAILER-DAEMON  Sat Apr  7 09:27:54 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9E69023CA95;
	Sat,  7 Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9E69023CA95;
	Sat,  7 Apr 2007 09:27:54 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id k4F7qiWd+o90; Sat,  7 Apr 2007 09:27:54 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id E78CF23CA93;
	Sat,  7 Apr 2007 09:27:53 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MRK67141
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 06:55:41 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l37DtcFr685947
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 08:55:38 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l37DtcvB685962
	for uhcoscstsd@list.prudentlearning.com; Sat, 7 Apr 2007 08:55:38 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704071355.l37DtcvB685962@creek.uh.edu>
Subject: questions reg. assign#2 (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 7 Apr 2007 08:55:38 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 521
Status: O
X-UID: 175063
X-Keywords: $NotJunk JunkRecorded           

contents or does it mean editing the book name, authors ?

It's editing book name, author, etc.

>3. The problem statement says we can query a book by author, title and
>filter a book on some keywords. I assume we first query the book and only
>then filter it using publication keywords etc? Or does it mean that we can
>query a book using authors, title, subject keywords, publication year?
>
>Thanks and regards

You can query based on these fields (ActiveRecord provides specialized
find methods "by" fields).

Venkat

From MAILER-DAEMON  Sat Apr  7 09:29:47 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 91C3623CA98;
	Sat,  7 Apr 2007 09:29:47 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 91C3623CA98;
	Sat,  7 Apr 2007 09:29:47 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id u9VxEBO6FTWP; Sat,  7 Apr 2007 09:29:47 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CCBA923CA97;
	Sat,  7 Apr 2007 09:29:46 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MRM79641
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 06:57:41 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l37DveFr686010
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 08:57:40 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l37DvefD685998
	for uhcoscstsd@list.prudentlearning.com; Sat, 7 Apr 2007 08:57:40 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704071357.l37DvefD685998@creek.uh.edu>
Subject: More info for Assignment 2
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 7 Apr 2007 08:57:40 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 2368
Status: O
X-UID: 175064
X-Keywords: $NotJunk JunkRecorded           

Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AACA323CA89;
	Sat,  7 Apr 2007 16:38:58 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhosReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AACA323CA89;
	Sat,  7 Apr 2007 16:38:58 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id QzGrV4Gr3qgm; Sat,  7 Apr 2007 16:38:58 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 03E9C23CA86;
	Sat,  7 Apr 2007 16:38:57 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MZJ95224
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 14:02:24 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l37L2LFr695616
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 16:02:21 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l37L2LQp695602
	for uhcoscstsd@list.prudentlearning.com; Sat, 7 Apr 2007 16:02:21 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704072102.l37L2LQp695602@creek.uh.edu>
Subject: Re: More info for Assignment 2 (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 7 Apr 2007 16:02:21 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 104604
Content-Length: 631
X-Keywords: $NotJunk JunkRecorded                                                                             

ains a script that will wipe out the tables if exist
>> from the database and create the necessary tables and any sample
>> data you like to create. I will run this script before tesing your code.
>>
>> Regards,
>>
>> Venkat

From MAILER-DAEMON  Sat Apr  7 16:39:10 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id DD81523CA81;
	Sat,  7 Apr 2007 16:39:09 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	withReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id DD81523CA81;
	Sat,  7 Apr 2007 16:39:09 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ODrZSxjs2v4G; Sat,  7 Apr 2007 16:39:09 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 14E1B23CA6E;
	Sat,  7 Apr 2007 16:39:09 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MZN49957
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 14:06:57 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l37L6uFr696017
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 7 Apr 2007 16:06:56 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l37L6uRE696006
	for uhcoscstsd@list.prudentlearning.com; Sat, 7 Apr 2007 16:06:56 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704072106.l37L6uRE696006@creek.uh.edu>
Subject: Assignment-2 Questions (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 7 Apr 2007 16:06:56 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 885
Status: O
X-UID: 175065
X-Keywords: $NotJunk JunkRecorded           

le possiblities. Anything that requires writing custom 
queries (that is beyond using finder methods), you don't have to cover for
this assignment.

>2. For the Edit and Delete operations we need to get hold of the book first,
>what can the user supply in this case to identify the book. If the name is
>considered unique then does he have to supply the exact one because in the
>case of "like" there could be multiple books returned.

A book may be fetched using any of the query/finder methods.

>3. Based on the responses above the database design can significantly
>change, so is the persistence limited by the fact that we need to have a
>single table?

No, you don't have to have single table.

>3. Can we use Microsoft Sql Server for this assignment or do you prefer
>MySql?
>
>Thank You.

I will run the test on mysql. You can use whatever you like to do 
your coding.

Venkat

From MAILER-DAEMON  Sun Apr  8 06:49:35 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 36A3623CA7B;
	Sun,  8 Apr 2007 06:49:35 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Hu9JMpDLK+6N; Sun,  8 Apr 2007 06:49:34 -0500 (CDT)
ReceReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 36A3623CA7B;
	Sun,  8 Apr 2007 06:49:35 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Hu9JMpDLK+6N; Sun,  8 Apr 2007 06:49:34 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 6FC5523CA7A;
	Sun,  8 Apr 2007 06:49:34 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NPS84350
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 8 Apr 2007 04:10:50 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l38BAnFr714012
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 8 Apr 2007 06:10:49 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l38BAnWS714019
	for uhcoscstsd@list.prudentlearning.com; Sun, 8 Apr 2007 06:10:49 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704081110.l38BAnWS714019@creek.uh.edu>
Subject: Assignment 2 (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 8 Apr 2007 06:10:49 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 6720
Status: O
X-UID: 175066
X-Keywords: $NotJunk JunkRecorded           

edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CB19423CA85;
	Fri, 13 Apr 2007 06:06:14 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Gw7k+H6iWw6l; Fri, 13 Apr 2007 06:06:14 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CB19423CA85;
	Fri, 13 Apr 2007 06:06:14 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Gw7k+H6iWw6l; Fri, 13 Apr 2007 06:06:14 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1689323CA84;
	Fri, 13 Apr 2007 06:06:14 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id SOT43743
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 13 Apr 2007 03:32:43 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3DAWgFr527929
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 13 Apr 2007 05:32:42 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3DAWgo3524840
	for uhcoscstsd@list.prudentlearning.com; Fri, 13 Apr 2007 05:32:42 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704131032.l3DAWgo3524840@creek.uh.edu>
Subject: Final Exam
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 13 Apr 2007 05:32:42 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 104607
Content-Length: 353
X-Keywords:                                                                                                   

pr 2007 06:06:29 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id CjxoF7A3f4yf; Fri, 13 Apr 2007 06:06:29 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2C07623CA84;
	FrReturn-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id CC93723CA85;
	Fri, 13 Apr 2007 06:06:29 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id CjxoF7A3f4yf; Fri, 13 Apr 2007 06:06:29 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2C07623CA84;
	Fri, 13 Apr 2007 06:06:29 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id SOU03106
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 13 Apr 2007 03:33:06 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3DAX5Fr527888
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 13 Apr 2007 05:33:05 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3DAX5co527950
	for uhcoscstsd@list.prudentlearning.com; Fri, 13 Apr 2007 05:33:05 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704131033.l3DAX5co527950@creek.uh.edu>
Subject: Project demo
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 13 Apr 2007 05:33:05 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 104608
Content-Length: 124
X-Keywords:                                                                                                   

244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5AECC23CA7C;
	Sat, 14 Apr 2007 07:54:48 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 28E5323CA7E;
	Sat, 14 Apr 2007 07:54:49 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Ke98EUt-Em3d; Sat, 14 Apr 2007 07:54:48 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 5AECC23CA7C;
	Sat, 14 Apr 2007 07:54:48 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id TQJ12409
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 14 Apr 2007 05:21:09 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3ECL8Fr564166
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 14 Apr 2007 07:21:08 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3ECL8Qv564177
	for uhcoscstsd@list.prudentlearning.com; Sat, 14 Apr 2007 07:21:08 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704141221.l3ECL8Qv564177@creek.uh.edu>
Subject: Final exam day...
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 14 Apr 2007 07:21:08 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 314
Status: RO
X-UID: 104609
X-Keywords: $NotJunk JunkRecorded                                                                                                    

Greetings,

Looks like May 7th is not a good day for a number of students
as there are other exams that day. How about May 1st or May 2nd?

Email me your preference among these two days.

(Note, the group project demo will be on May 9th. This email is
only about the final exam - coding session).

Thanks,

Venkat

From MAILER-DAEMON  Sun Apr 15 05:15:45 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id DE2D523CA84;
	Sun, 15 Apr 2007 05:15:44 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ycfvEjGPLiiT; Sun, 15 Apr 2007 05:15:44 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 0914C23CA7E;
	Sun, 15 Apr 2007 05:15:43 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id UNF10920
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 15 Apr 2007 02:42:20 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3F9gHFr584025
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 15 Apr 2007 04:42:17 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3F9gHqt584045
	for uhcoscstsd@list.prudentlearning.com; Sun, 15 Apr 2007 04:42:17 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704150942.l3F9gHqt584045@creek.uh.edu>
Subject: rails error on mac: SocketError (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 15 Apr 2007 04:42:16 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1112
Status: O
X-UID: 175067
X-Keywords: $NotJunk JunkRecorded           

>Hi
>
>I am trying to run my project on mac and I get this error whenever I try
>to load the login page (or any other page):
>
>SocketError in LoginController#login
>getaddrinfo: No address associated with nodename
>
>There have been a few forums that address this issue and talk about mac
>handling drb in an incorrect way, but I havent quite been able to figure
>out how to get past this issue. It woud be great if you could give me a
>few pointers to this.
>
>Regards

A.  Copy and paste the entire error message so there is more information
to look at.

B. At what point did this error appear. Can you back out to previous
version of your app and then move forward to identify what exactly
is that you are adding to your app that's causing this (in other words
try to isolate it).

C. Are the other pages in your app giving the same error because you
are being directed to login page when you visit other pages or are you
able to visit those pages with out login?

D. Have you tried it on another machine to see if this is something
only on your machine and may be that will help compare settings...

Venkat

From MAILER-DAEMON  Sat Apr 21 09:28:43 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id AFF1F23CA89;
	Sat, 21 Apr 2007 09:28:43 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id rgGL0jQrzai5; Sat, 21 Apr 2007 09:28:43 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id F256123CA72;
	Sat, 21 Apr 2007 09:28:42 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id ARW28155
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 21 Apr 2007 06:53:55 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3LDrsFr782334
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 21 Apr 2007 08:53:54 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3LDrrYU782359
	for uhcoscstsd@list.prudentlearning.com; Sat, 21 Apr 2007 08:53:53 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704211353.l3LDrrYU782359@creek.uh.edu>
Subject: HW3, Assignment 3 and 4 posted
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 21 Apr 2007 08:53:53 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 215
Status: O
X-UID: 175068
X-Keywords: $NotJunk JunkRecorded           

Greetings,

HW3, Assignment 3 and 4 have been posted.

(There will be no more HWs or Assignments.)

Please take note of the due dates.

Feel free to email me if you have any questions about these.

Regards,

Venkat

From MAILER-DAEMON  Sat Apr 21 09:33:57 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id BDC3223CA7B;
	Sat, 21 Apr 2007 09:33:57 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Kt9NI7SU616n; Sat, 21 Apr 2007 09:33:54 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 206B723CA7A;
	Sat, 21 Apr 2007 09:33:54 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id ARC50033
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 21 Apr 2007 06:59:33 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3LDxWFr783851
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 21 Apr 2007 08:59:32 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3LDxWuA783982
	for uhcoscstsd@list.prudentlearning.com; Sat, 21 Apr 2007 08:59:32 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704211359.l3LDxWuA783982@creek.uh.edu>
Subject: issue with json.js and prototype.js (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 21 Apr 2007 08:59:32 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1756
Status: O
X-UID: 175069
X-Keywords: $NotJunk JunkRecorded           

>Hi Venkat,
>
>I was playing around with Ajax this morning and ran into wall.
>Ajax.Request kept throwing exceptions. After banging my head on my desk
>all morning, I finally got it working by removing json.js. A google
>search revealed that there is an incompatibility between json.js and
>prototype.js 1.5.0. I found this page that talks about it. 
http://erratic.inkdeep.com/2007/1/21/prototype-1-5-0-and-json-js
>
>Essentially, around line 915 in prototype.js, you need to change this:
><pre><code class="javascript">915:     <span class="keywords">for</span> <span
> class="brackets">(</span><span class="keywords">var</span> name <span
> class="keywords">in</span> headers<span class="brackets">)</span> 
>916:       <span class="keywords">this</span>.transport.setRequestHeader<span
> class="brackets">(</span>name, headers[name]<span class="brackets">)</span>;
>917:   },</code>
></pre>
>to this:<br>
><pre><code class="javascript">915:     <span class="keywords">for</span> <span
> class="brackets">(</span><span class="keywords">var</span> name <span
> class="keywords">in</span> headers<span class="brackets">)</span> 
><font color="#ff0000">916:       <span class="keywords">if</span> <span
> class="brackets">(</span><span class="keywords">typeof</span> headers[name] != <span
> class="string">'function'</span><span class="brackets">)</span></font> 
>917:         <span class="keywords">this</span>.transport.setRequestHeader<span
> class="brackets">(</span>name, headers[name]<span class="brackets">)</span>;
>918:   },
>
></code>Thought you and the rest of the class would like to know.

Good discovery!

My text based editor on this box, I am sure, did damage to the code above. 
The URL you gave should help.

Thanks for sharing.

Venkat

From MAILER-DAEMON  Sun Apr 22 09:27:02 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2491523CA82;
	Sun, 22 Apr 2007 09:27:02 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id erCn-Q+Dks+d; Sun, 22 Apr 2007 09:27:01 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 52D5E23CA7B;
	Sun, 22 Apr 2007 09:27:01 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id BRU48441
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 22 Apr 2007 06:50:41 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3MDoeFr828851
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 22 Apr 2007 08:50:40 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3MDoeSB828825
	for uhcoscstsd@list.prudentlearning.com; Sun, 22 Apr 2007 08:50:40 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704221350.l3MDoeSB828825@creek.uh.edu>
Subject: Re: issue with json.js and prototype.js (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 22 Apr 2007 08:50:40 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 482
Status: O
X-UID: 175070
X-Keywords: $NotJunk JunkRecorded           

>This is actually a quite popular situation. Prototype does not play well
>with some other JS toolkits. I am a fan of Mootools for their shorter syntax
>comparing to Prototype and some smoother pre-built effects. However,
>Mootools does not work well with Prototype library (they actually rewrite
>the library after some issue arose).
>
>With warm regards,

For the assignment, you may use any framework you like.
I would love to see things besides what I am familiar with.

Venkat

From MAILER-DAEMON  Sun Apr 22 09:27:11 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D567123CA80;
	Sun, 22 Apr 2007 09:27:11 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xXbEMVOJEj1Y; Sun, 22 Apr 2007 09:27:11 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 206CA23CA7B;
	Sun, 22 Apr 2007 09:27:11 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id BRW01507
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 22 Apr 2007 06:52:07 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3MDq6Fr828885
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 22 Apr 2007 08:52:06 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3MDq6kj828879
	for uhcoscstsd@list.prudentlearning.com; Sun, 22 Apr 2007 08:52:06 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704221352.l3MDq6kj828879@creek.uh.edu>
Subject: Re: HW3, Assignment 3 and 4 posted (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 22 Apr 2007 08:52:06 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 160
Status: O
X-UID: 175071
X-Keywords: $NotJunk JunkRecorded           

>Venkat,
>
>For homework 3, are we allowed to include json.js and prototype.js?

The main intent is to use json (you don't need prototype.js for this).

Venkat

From MAILER-DAEMON  Tue Apr 24 06:17:22 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 30F8223CA7C;
	Tue, 24 Apr 2007 06:17:22 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 1Hlsb0deg+GU; Tue, 24 Apr 2007 06:17:19 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2D1AA23CA8D;
	Tue, 24 Apr 2007 06:17:19 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id DOO56243
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 24 Apr 2007 03:42:43 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3OAggFr897239
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 24 Apr 2007 05:42:42 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3OAggxJ897243
	for uhcoscstsd@list.prudentlearning.com; Tue, 24 Apr 2007 05:42:42 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704241042.l3OAggxJ897243@creek.uh.edu>
Subject: A couple of useful tools... (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 24 Apr 2007 05:42:42 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 750
Status: O
X-UID: 175072
X-Keywords: $NotJunk JunkRecorded           

>Venkat,
>
>Here is a firefox add-on that adds a button to clear the cache.  If you
>suspect you're being affected by the cache (like we saw in class), just
>click this button and try again.  I've found this very useful for several
>projects I've done.
>http://clearcachebutton.mozdev.org/
>
>Also, for Internet Exploder, if you need to debug AJAX asynchronous
>requests, Fiddler is a free M$ tool that helps with this.
>http://www.fiddlertool.com/fiddler/
>
>Another useful tool for IE is their IE Developer toolbar.  It has a disable
>cache feature, dom tree viewer/editor, and other goodies.
>http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

Cool, thanks for sharing.

Regards,

Venkat

From MAILER-DAEMON  Mon Apr 23 21:20:23 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7382B23CA82;
	Mon, 23 Apr 2007 21:20:23 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id SDs5Ryl54mau; Mon, 23 Apr 2007 21:20:21 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C2FF723CA81;
	Mon, 23 Apr 2007 21:20:20 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id DFR06344
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 23 Apr 2007 18:45:44 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3O1jhFr866440
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 23 Apr 2007 20:45:43 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3O1jgtX866477
	for uhcoscstsd@list.prudentlearning.com; Mon, 23 Apr 2007 20:45:42 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704240145.l3O1jgtX866477@creek.uh.edu>
Subject: code from class today
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 23 Apr 2007 20:45:42 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 245
Status: RO
X-UID: 175073
X-Keywords: $NotJunk JunkRecorded           

Greetings,

Since you were all so interested and interacive, I can't hold the code
any longer, so here it the code we wrote today:

http://www.cs.uh.edu/~svenkat/spring2007STSD/csalum.part1.zip

Part II will follow on Wednesday.

Enjoy.

Venkat

From MAILER-DAEMON  Tue Apr 17 05:01:41 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id A0EBF23CA76;
	Tue, 17 Apr 2007 05:01:41 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZkPTHz89heIj; Tue, 17 Apr 2007 05:01:41 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D6AC023CA6F;
	Tue, 17 Apr 2007 05:01:40 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id WNT68706
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 17 Apr 2007 02:28:06 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3H9S5Fr657358
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 17 Apr 2007 04:28:05 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3H9S5ug657372
	for uhcoscstsd@list.prudentlearning.com; Tue, 17 Apr 2007 04:28:05 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704170928.l3H9S5ug657372@creek.uh.edu>
Subject: Final exam - coding session
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 17 Apr 2007 04:28:05 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 218
Status: RO
X-UID: 175074
X-Keywords: $NotJunk JunkRecorded           

Greetings,

The final exam coding session will be on May 2nd.
We can nail down the details about timing etc. in class
on Wednesday.

If you have any questions regarding this, please
ask me in class.

Regards,

Venkat


From MAILER-DAEMON  Mon Apr 16 07:45:23 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 23D5423CA72;
	Mon, 16 Apr 2007 07:45:23 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id B5SzHNmb6FmQ; Mon, 16 Apr 2007 07:45:22 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 32B4423CA6C;
	Mon, 16 Apr 2007 07:45:22 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id VQB96842
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 16 Apr 2007 05:11:42 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3GCBgFr623082
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 16 Apr 2007 07:11:42 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3GCBgXo623106
	for uhcoscstsd@list.prudentlearning.com; Mon, 16 Apr 2007 07:11:42 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704161211.l3GCBgXo623106@creek.uh.edu>
Subject: Re: rails error on mac: SocketError (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 16 Apr 2007 07:11:42 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1476
Status: RO
X-UID: 175075
X-Keywords: $NotJunk JunkRecorded           

>Hi
>I found out where I was going wrong. The hostname in database.yml was set
>to 'localhost.' (with a dot). I changed it to localhost and it worked. No
>wonder the socket was not able to recognize 'localhost.'. Some things just
>dawn upon you suddenly one morning.
>
>Thanks

:)

Venkat

>>>Hi
>>>
>>>I am trying to run my project on mac and I get this error whenever I try
>>>to load the login page (or any other page):
>>>
>>>SocketError in LoginController#login
>>>getaddrinfo: No address associated with nodename
>>>
>>>There have been a few forums that address this issue and talk about mac
>>>handling drb in an incorrect way, but I havent quite been able to figure
>>>out how to get past this issue. It woud be great if you could give me a
>>>few pointers to this.
>>>
>>>Regards
>>
>> A.  Copy and paste the entire error message so there is more information
>> to look at.
>>
>> B. At what point did this error appear. Can you back out to previous
>> version of your app and then move forward to identify what exactly
>> is that you are adding to your app that's causing this (in other words
>> try to isolate it).
>>
>> C. Are the other pages in your app giving the same error because you
>> are being directed to login page when you visit other pages or are you
>> able to visit those pages with out login?
>>
>> D. Have you tried it on another machine to see if this is something
>> only on your machine and may be that will help compare settings...
>>
>> Venkat

From MAILER-DAEMON  Thu Apr 26 06:21:59 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 13DFE23CA84;
	Thu, 26 Apr 2007 06:21:59 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xgdXkX-sKMg9; Thu, 26 Apr 2007 06:21:56 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id C38B423CA7A;
	Thu, 26 Apr 2007 06:21:55 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FOU31250
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 03:46:50 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3QAkkFr970615
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 05:46:46 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3QAkkok970916
	for uhcoscstsd@list.prudentlearning.com; Thu, 26 Apr 2007 05:46:46 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704261046.l3QAkkok970916@creek.uh.edu>
Subject: validates_confirmation_of (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 26 Apr 2007 05:46:46 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1557
Status: O
X-UID: 175076
X-Keywords: $NotJunk JunkRecorded           

>Venkat,
>
>   I've been struggling with trying to validate a field and found out an 
>added 'feature'
>
>  even though Ruby documentation says you dont need to declare the 
>_confirmation attribute, it turns out you do.
>
>.. taken from  http://dev.rubyonrails.org/ticket/1819 ....
>
>When using validates_confirmation_of in a class protected with 
>attr_accessible the confirmation will not be checked unless the 
>attr_accessible also includes the confirmation field. For example, the 
>following will not check the confirmation:
>
>class User < ActiveRecord::Base
>  attr_accessible :login, :password
>  validates_confirmation_of :password
>end
>
>While the following will:
>
>class User < ActiveRecord::Base
>  attr_accessible :login, :password, :password_confirmation
>  validates_confirmation_of :password
>end
>
>.................................
>
>I also found out that when writing a unit test for this, you have to set the 
>_confirmation attribute to something, otherwise it will pass
>
>u = User.find(:first)
>
>u.password = "this is my new password"
>
>u.save
>
># => true
>
>u.password = "A new pass again"
>
>u.password_confirmation = ""
>
>u.save
>
># => false
>
>-------------------------------
>
>just thought i would share this in case anyone else had this problem

While password may be a field in the database (I say may because
I would rather store the hasshed password), password_confirmation
will not be. I would have expected the declarative statement to
create this if it did not exist. Good pointer. Thanks for sharing.

Venkat

From MAILER-DAEMON  Thu Apr 26 06:31:48 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id ACF9723CA84;
	Thu, 26 Apr 2007 06:31:48 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id hS6i-edUO+XU; Thu, 26 Apr 2007 06:31:48 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 0248723CA7A;
	Thu, 26 Apr 2007 06:31:47 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FOE45354
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 03:56:54 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3QAurFr971132
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 05:56:53 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3QAurVB971122
	for uhcoscstsd@list.prudentlearning.com; Thu, 26 Apr 2007 05:56:53 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704261056.l3QAurVB971122@creek.uh.edu>
Subject: Homework 3 Query ( innerHTML not working for IE ) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 26 Apr 2007 05:56:53 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 824
Status: O
X-UID: 175077
X-Keywords: $NotJunk JunkRecorded           

>Venkat,
>
>I'm facing difficulty in homework3.
>
>To make use of
>
>"var template = "<TR><TD>%last%</TD><TD>%first%</TD><TD>%lang%</TD></TR>";"
>
>I wrote innerHTML as - document.getElementById('teamtable').innerHTML=
>document.getElementById('teamtable').innerHTML + template ;
>
>This works fine in Mozilla, but IE is having innerHTML as readonly for TABLE
>and TR, so it is not working in IE.

I am curious, did you try += instead of =?
document.getElementById('teamtable').innerHTML += template;

I am not sure if that will make any difference, but just curious.

>To make the application run in IE as well,  I used DOM Table methods to
>create rows dynamically.  Can I use the below mentioned approach for this
>homework?
>
>...deleted...
>
>thanks.

Looks reasonable, but make sure it works on both browsers.

Venkat

From MAILER-DAEMON  Thu Apr 26 08:49:42 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 144B923CA86;
	Thu, 26 Apr 2007 08:49:42 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 8L3ON61zWpqD; Thu, 26 Apr 2007 08:49:41 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 358C423CA85;
	Thu, 26 Apr 2007 08:49:41 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FRO78112
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 06:14:12 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3QDEBFr973262
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 08:14:11 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3QDEBJk972925
	for uhcoscstsd@list.prudentlearning.com; Thu, 26 Apr 2007 08:14:11 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704261314.l3QDEBJk972925@creek.uh.edu>
Subject: Re: Homework 3 Query ( innerHTML not working for IE ) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 26 Apr 2007 08:14:11 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1724
Status: O
X-UID: 175078
X-Keywords: $NotJunk JunkRecorded           

>But Venkat,
>
>If we use the DOM structure to generate the table we wont be using the
>template
>var template = "<TR><TD>%last%</TD><TD>%first%</TD><TD>%lang%</TD></TR>";
>that you have given ..
>Am I saying it right ?
>
>because earlier when I tried using the DOM structure i created rows, tds and
>cells using the DOM create functions and the template couldnt be used.
>
>Tell  me if i'm wrong
>
>Regards

I see your point.
Can you insert the template into the DOM structure?

If it gives you too much trouble, use the template and 
prototype's insertion to insert the node into table.
(It would be nice to depend on the least, but if it is too much
trouble, then don't spend too much time tyring to isolate from
the library).

Venkat

>On 4/26/07, Dr. Venkat Subramaniam <cosc155g@bayou.uh.edu> wrote:
>>
>> >Venkat,
>> >
>> >I'm facing difficulty in homework3.
>> >
>> >To make use of
>> >
>> >"var template =
>> "<TR><TD>%last%</TD><TD>%first%</TD><TD>%lang%</TD></TR>";"
>> >
>> >I wrote innerHTML as - document.getElementById('teamtable').innerHTML=
>> >document.getElementById('teamtable').innerHTML + template ;
>> >
>> >This works fine in Mozilla, but IE is having innerHTML as readonly for
>> TABLE
>> >and TR, so it is not working in IE.
>>
>> I am curious, did you try += instead of =?
>> document.getElementById('teamtable').innerHTML += template;
>>
>> I am not sure if that will make any difference, but just curious.
>>
>> >To make the application run in IE as well,  I used DOM Table methods to
>> >create rows dynamically.  Can I use the below mentioned approach for this
>> >homework?
>> >
>> >...deleted...
>> >
>> >thanks.
>>
>> Looks reasonable, but make sure it works on both browsers.
>>
>> Venkat

From MAILER-DAEMON  Thu Apr 26 08:49:52 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2E9DB23CA86;
	Thu, 26 Apr 2007 08:49:52 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Ttn7HR-FRfnA; Thu, 26 Apr 2007 08:49:51 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 7D46823CA85;
	Thu, 26 Apr 2007 08:49:51 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id FRO59357
        for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 06:14:57 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3QDEuFr973259
	for <uhcoscstsd@list.prudentlearning.com>; Thu, 26 Apr 2007 08:14:56 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3QDEu8g973238
	for uhcoscstsd@list.prudentlearning.com; Thu, 26 Apr 2007 08:14:56 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704261314.l3QDEu8g973238@creek.uh.edu>
Subject: Testing part II posted
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Thu, 26 Apr 2007 08:14:56 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 120
Status: O
X-UID: 175079
X-Keywords: $NotJunk JunkRecorded           

Greetings,

Functional and Integration testing code from class yesterday is
posted as csalum.part2.zip.

Enjoy.

Venkat

From MAILER-DAEMON  Fri Apr 27 05:53:13 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1F05123CA7B;
	Fri, 27 Apr 2007 05:53:13 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 3V4tEARoxuvm; Fri, 27 Apr 2007 05:53:12 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 562CA23CA79;
	Fri, 27 Apr 2007 05:53:12 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id GOT64111
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 27 Apr 2007 03:18:11 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3RAIBFr996536
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 27 Apr 2007 05:18:11 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3RAIAho996531
	for uhcoscstsd@list.prudentlearning.com; Fri, 27 Apr 2007 05:18:10 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704271018.l3RAIAho996531@creek.uh.edu>
Subject: Re: Homework 3 Query ( innerHTML not working for IE ) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 27 Apr 2007 05:18:10 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 476
Status: O
X-UID: 175080
X-Keywords: $NotJunk JunkRecorded           

>Hi Venkat,
>
>I think the assignment would be equally informative if we can add an id to
>the div that has already been surrounding the table. This way we can use the
>same code and avoid the IE problem.
>
>something like div id="teamtable_div"
>
>With warm regards,

To avoid any confusion, the requirement "not to change anything
above" is still true.

A lot of time it is not what you learn directly, but what you learn
looking for answer that's more informative.

Venkat

From MAILER-DAEMON  Sat Apr 28 09:26:26 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id D22CC23CA8C;
	Sat, 28 Apr 2007 09:26:26 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id b3XMXcQiSPyt; Sat, 28 Apr 2007 09:26:26 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 1BEDE23CA83;
	Sat, 28 Apr 2007 09:26:26 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HRB06208
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 28 Apr 2007 06:51:08 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3SDp7Fr1027712
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 28 Apr 2007 08:51:07 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3SDp7xa1027743
	for uhcoscstsd@list.prudentlearning.com; Sat, 28 Apr 2007 08:51:07 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704281351.l3SDp7xa1027743@creek.uh.edu>
Subject: Re: Homework 3 Query ( innerHTML not working for IE ) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 28 Apr 2007 08:51:07 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 385
Status: O
X-UID: 175081
X-Keywords: $NotJunk JunkRecorded           

>Dear Venkat,
>
>Problem solved. ^_^ Turned out I just need an extra line to actual get the
>unnamed div. This was quite an experience juggling these pre-defined HTML
>elements.
>
>I have a question regarding testing my code. I have tested it successfully
>on both IE7 and FF2. Do I need to test my code on IE6 or any other browser?
>
>With warm regards,

IE7 and FF2 is good.

Venkat

From MAILER-DAEMON  Sat Apr 28 09:28:26 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 0147D23CA8C;
	Sat, 28 Apr 2007 09:28:26 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Ch+q0eDLO928; Sat, 28 Apr 2007 09:28:25 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 4F53123CA8A;
	Sat, 28 Apr 2007 09:28:25 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HRD90614
        for <uhcoscstsd@list.prudentlearning.com>; Sat, 28 Apr 2007 06:53:14 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3SDrEFr1027801
	for <uhcoscstsd@list.prudentlearning.com>; Sat, 28 Apr 2007 08:53:14 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3SDrEMl1024422
	for uhcoscstsd@list.prudentlearning.com; Sat, 28 Apr 2007 08:53:14 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704281353.l3SDrEMl1024422@creek.uh.edu>
Subject: Rails question (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sat, 28 Apr 2007 08:53:13 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 355
Status: O
X-UID: 175082
X-Keywords: $NotJunk JunkRecorded           

>I've been looking for, but can't find, the command you used to populate the
>test database for unit 
>and functional testing. I seem to remember some rake commands, but what are
>they?

rake -T 

will list you all available rake commands.

rake test

should do the trick. You can study what these rake tasks do by
looking at the rake task files.

Venkat

From MAILER-DAEMON  Mon Apr 30 05:20:29 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9382223CA6F;
	Mon, 30 Apr 2007 05:20:29 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id HcPvSttENgeb; Mon, 30 Apr 2007 05:20:28 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 75A6F23CA6E;
	Mon, 30 Apr 2007 05:20:28 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id JNW12427
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 30 Apr 2007 02:44:27 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3U9iPFr562975
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 30 Apr 2007 04:44:26 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3U9iPnn562987
	for uhcoscstsd@list.prudentlearning.com; Mon, 30 Apr 2007 04:44:25 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704300944.l3U9iPnn562987@creek.uh.edu>
Subject: hw3, ie7 access denied (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 30 Apr 2007 04:44:25 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1373
Status: RO
X-UID: 175083
X-Keywords: $NotJunk JunkRecorded           

>For HW3, we're trying to use an XMLHttp object to read from the 
>'authors.htm' file. We've used the CreateXHR() function almost verbatim 
>from slide 23, page 8, and the following function:
>
>function fetch() {
>    xhr = createXHR();
>    if (xhr) {
>
>       // ...snip...
>
>        }
>        xhr.open('GET', 'authors.htm');
>        xhr.send(null);
>    }
>}
>
>The script works as intended using FF2 but we receive an "Access Denied" 
>error using IE7 surrounding the "xhr.open" and "xhr.send" commands.
>
>At first glance, it looked like an IE7 security setting problem, but 
>even after setting the security settings on IE7 to default and even low, 
>the script refuses to access the 'authors.htm' file. To add frustration 
>to the problem, I've used the XMLHttp object in the same manner before 
>in previous Web projects without this problem.
>
>Is there something I'm overlooking when trying to access the 'authors' 
>file, or am I taking an entirely incorrect approach?
>
>A copy of the entire script can be found at: 
>...deleted...
>
>-- 
>Regards,

I visited the URL you provided using FF2 and IE7.
Both of them behaved identical (with the alert boo!).

When I tried the second time, it was different
and a view of source shows changes.
I think you are currently modifying the code as I write this!
Looks like you've made progress resolving this.

Venkat

From MAILER-DAEMON  Mon Apr 30 05:21:04 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3378123CA6F;
	Mon, 30 Apr 2007 05:21:04 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id INDhprhNzX8A; Mon, 30 Apr 2007 05:21:03 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 8080023CA6E;
	Mon, 30 Apr 2007 05:21:03 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id JNX79604
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 30 Apr 2007 02:45:04 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l3U9j3Fr563018
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 30 Apr 2007 04:45:04 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l3U9j3ZZ562955
	for uhcoscstsd@list.prudentlearning.com; Mon, 30 Apr 2007 04:45:03 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200704300945.l3U9j3ZZ562955@creek.uh.edu>
Subject: Re: Homework 3 Query ( innerHTML not working for IE ) (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 30 Apr 2007 04:45:03 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 84
Status: RO
X-UID: 175084
X-Keywords: $NotJunk JunkRecorded           

>Hi Venkat,
>
>          Can we use prototype in HW 3?
>
>Regards,

You may, if you

From MAILER-DAEMON  Wed May  2 12:43:05 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 718C723CA84;
	Wed,  2 May 2007 12:43:05 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id T26gdbSzvhpK; Wed,  2 May 2007 12:43:04 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B3FD723CA83;
	Wed,  2 May 2007 12:43:04 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id HWJ31213
        for <uhcoscstsd@list.prudentlearning.com>; Wed, 2 May 2007 10:07:13 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l42H7BFr642863
	for <uhcoscstsd@list.prudentlearning.com>; Wed, 2 May 2007 12:07:11 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l42H7B3c642861
	for uhcoscstsd@list.prudentlearning.com; Wed, 2 May 2007 12:07:11 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705021707.l42H7B3c642861@creek.uh.edu>
Subject: Final exam posted
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Wed, 2 May 2007 12:07:11 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 137
Status: O
X-UID: 175085
X-Keywords: $NotJunk JunkRecorded       

Greetings,

Please visit following URL:

http://www.cs.uh.edu/~svenkat/lib/assignments/STSD/Spring2007/Final/final.txt

Regards,

Venkat

From MAILER-DAEMON  Fri May  4 08:37:29 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 59CD423CAAC;
	Fri,  4 May 2007 08:37:29 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id rnjI6iripppT; Fri,  4 May 2007 08:37:26 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id A4C3823CAAD;
	Fri,  4 May 2007 08:37:25 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id JSF40619
        for <uhcoscstsd@list.prudentlearning.com>; Fri, 4 May 2007 06:01:19 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l44D1IFr700214
	for <uhcoscstsd@list.prudentlearning.com>; Fri, 4 May 2007 08:01:18 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l44D1IGv710341
	for uhcoscstsd@list.prudentlearning.com; Fri, 4 May 2007 08:01:18 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705041301.l44D1IGv710341@creek.uh.edu>
Subject: Rails performance... (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Fri, 4 May 2007 08:01:18 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1573
Status: RO
X-UID: 175086
X-Keywords: $NotJunk JunkRecorded           

>So the business guy I'm working with on a startup just sent me this
>interview with a developer from Twitter who is fairly critical of the
>scalability of Ruby/Rails.
>
>I've been pushing to switch to Ruby/Rails before we start the bulk of the
>web development portion of the startup.  However, convincing the others
>might be more difficult.  Before I learned Ruby in this class, I've used
>Java for web development for 7 years.  How similar is Groovy/Grails to
>Ruby/Rails?  And with Grails being based on Java do you know if it tends to
>scale any better?  Wondering if it came to it, if that might be a good
>compromise to avoid having to go back to struts and XML configurations or
>PHP :-)
>
>http://www.radicalbehavior.com/5-question-interview-with-twitter-developer-alex-payne/
>
>Thanks,

One thing I learned a while back is not to make arbitrary assumptions
about performance or follow benchmarks or analysis blindly. What may
work really well for one app, may not be true for another (and viceversa).

I would take the time to analyze the needs of particular application and
see (a) if performance is a concern and (b) if there are ways to
improve it.

Having said that, Grails does have some exciting promises in several
areas. It is certainly a great way to realize the benefits of Ruby,
Rails,... in enterprise applications. I can't make a blanket statement
that Grails will out perform Rails. It depends on how much Groovy
you will use, and a number of other concerns. Also, Ruby/Rails
is more mature than Groovy/Grails. I use both and I like both.

Venkat

From MAILER-DAEMON  Sun May  6 06:40:17 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 56F3423CA83;
	Sun,  6 May 2007 06:40:17 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id cTpu0SpWRePM; Sun,  6 May 2007 06:40:16 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 8DF4A23CA82;
	Sun,  6 May 2007 06:40:16 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id LQG28134
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 6 May 2007 04:00:34 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l46B0WFr768791
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 6 May 2007 06:00:32 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l46B0Wbi768734
	for uhcoscstsd@list.prudentlearning.com; Sun, 6 May 2007 06:00:32 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705061100.l46B0Wbi768734@creek.uh.edu>
Subject: Inheritence with Active Records (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 6 May 2007 06:00:32 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 376
Status: RO
X-UID: 175087
X-Keywords: $NotJunk JunkRecorded           

>When I was doing the final, my group was stuck an hour and a half trying,
>unsuccessfully, to find how to access to a base class that has belongs_to
>set. How do you access a "child" like that?

Generally using the name of the model type in lowercase.

Give me an example and I will be able to help further
or look at the example in the book where belongs_tois used.

Venkat

From MAILER-DAEMON  Sun May  6 06:40:28 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 3F94A23CA84;
	Sun,  6 May 2007 06:40:28 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vKdW5ChkwfDA; Sun,  6 May 2007 06:40:27 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 820DF23CA83;
	Sun,  6 May 2007 06:40:27 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id LQJ31239
        for <uhcoscstsd@list.prudentlearning.com>; Sun, 6 May 2007 04:03:39 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l46B3ZFr768848
	for <uhcoscstsd@list.prudentlearning.com>; Sun, 6 May 2007 06:03:35 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l46B3ZDf768816
	for uhcoscstsd@list.prudentlearning.com; Sun, 6 May 2007 06:03:35 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705061103.l46B3ZDf768816@creek.uh.edu>
Subject: ajax question (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Sun, 6 May 2007 06:03:35 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 634
Status: RO
X-UID: 175088
X-Keywords: $NotJunk JunkRecorded           

>Hi
>Can we use Ajax to fetch data from an action instead of an html file on
>the server? In all examples of Ajax that I have seen, the Ajax code reads
>an html file on the server. Is it possible to get data in the form of a
>variable (@var in the controller) from an action class using Ajax?
>
>Regards

Most certainly. Ajax call is sent to a controlelr's action. The
action can render either a template or a partial. It can set any
variables and then the view can use that information to render appropriatly.

The action also can render into a text directly as well, if you like.
In this case, you don't need any view page.

Venkat

From MAILER-DAEMON  Mon May  7 07:42:33 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 72FA423CA91;
	Mon,  7 May 2007 07:42:33 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PnMZa8xfUWuo; Mon,  7 May 2007 07:42:32 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 9FEAB23CA8E;
	Mon,  7 May 2007 07:42:32 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MRM76656
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 7 May 2007 05:05:56 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l47C5tFr792260
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 7 May 2007 07:05:55 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l47C5tEY801655
	for uhcoscstsd@list.prudentlearning.com; Mon, 7 May 2007 07:05:55 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705071205.l47C5tEY801655@creek.uh.edu>
Subject: Ajax calls (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 7 May 2007 07:05:55 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 175089
Content-Length: 237
X-Keywords: $NotJunk JunkRecorded                                                                              

>Venkat,
>
>Is it fine if we make Ajax calls from the Javascprit function or should it
>be made thru the rhtml only ?
>
>Regards,

I don't see any reason for such restriction. I have done both in apps
depending on the situation.

Venkat

From MAILER-DAEMON  Mon May  7 07:48:28 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 178B423CA9D;
	Mon,  7 May 2007 07:48:28 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id m+c61D1ZgUVN; Mon,  7 May 2007 07:48:27 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 2868123CA97;
	Mon,  7 May 2007 07:48:27 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id MRS01656
        for <uhcoscstsd@list.prudentlearning.com>; Mon, 7 May 2007 05:11:56 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l47CBsFr801797
	for <uhcoscstsd@list.prudentlearning.com>; Mon, 7 May 2007 07:11:54 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l47CBscL801795
	for uhcoscstsd@list.prudentlearning.com; Mon, 7 May 2007 07:11:54 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705071211.l47CBscL801795@creek.uh.edu>
Subject: controller question! (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Mon, 7 May 2007 07:11:54 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 175090
Content-Length: 822
X-Keywords: $NotJunk JunkRecorded                                                                              

>I need to access a controller method from outside (from a filter file which
>is loaded when my program starts)
>
>This works:
>obj = ImagesController.new
>ImagesController.list
>
>but I need to create the object dynamically from a string I get from the
>params passed, I tried
>obj = eval('ImagesController')
># or
>obj = eval('ImagesController.methods')
>but none returns the obj I want which should contain ImagesController
>method.
>
>How should I get around this?

My first suggestion is to see if can put those much needed method(s)
in a module and include it where needed.

To create an object based on a string you're passed, here is the code:

klass = Module.const_get(class_name_string)

klass.class_method_name(...) # to call class /static methods

obj = klass.new # to create object 

Hope this helps.

Venkat

From MAILER-DAEMON  Tue May  8 07:44:09 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id 8B56F23CA8E;
	Tue,  8 May 2007 07:44:09 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id L0UtKQ+93fo5; Tue,  8 May 2007 07:44:06 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id ADBCB23CA8C;
	Tue,  8 May 2007 07:44:06 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NRP73411
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 8 May 2007 05:07:11 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l48C7BFr832655
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 8 May 2007 07:07:11 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l48C7ArY832808
	for uhcoscstsd@list.prudentlearning.com; Tue, 8 May 2007 07:07:10 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705081207.l48C7ArY832808@creek.uh.edu>
Subject: Question about find! (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 8 May 2007 07:07:10 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 175091
Content-Length: 435
X-Keywords: $NotJunk JunkRecorded                                                                              

>'group' has many images
>'image' belongs to group
>
>I want to search and get a specific field only:
>@result = Image.find(:first, :select => ['groups.id'], :conditions => {:id
>=> 1}, :include => [:group])
>
>However, the above code returns all the fields, not just groups.id, did I do
>something wrong here?

I am not sure since I've not done this one. You may try issuing
a find by sql and see if that behaves differently.

Venkat

From MAILER-DAEMON  Tue May  8 07:50:04 2007
Return-Path: <>
X-Original-To: svenkat@cs.uh.edu
Delivered-To: svenkat@cs.uh.edu
Received: from localhost (dijkstra.cs.uh.edu [127.0.0.1])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id B4D3A23CAA1;
	Tue,  8 May 2007 07:50:04 -0500 (CDT)
X-Virus-Scanned: amavisd-new at cs.uh.edu
Received: from dijkstra.cs.uh.edu ([127.0.0.1])
	by localhost (dijkstra.cs.uh.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id TPgN-2AiALZ9; Tue,  8 May 2007 07:50:04 -0500 (CDT)
Received: from mx244e.mysite4now.com (mx244e.mysite4now.com [66.186.25.244])
	by dijkstra.cs.uh.edu (Postfix) with ESMTP id EAB8F23CAA0;
	Tue,  8 May 2007 07:50:03 -0500 (CDT)
Received: from Bayou.UH.EDU ([129.7.235.5])
        by mx244e.mysite4now.com (Webhost4life Mail Server v8.0) with ESMTP id NRV81220
        for <uhcoscstsd@list.prudentlearning.com>; Tue, 8 May 2007 05:13:20 -0700
Received: from creek.uh.edu (creek.uh.edu [129.7.235.5])
	by Bayou.UH.EDU (8.12.10/8.12.10) with ESMTP id l48CDIFr832863
	for <uhcoscstsd@list.prudentlearning.com>; Tue, 8 May 2007 07:13:18 -0500 (CDT)
Received: (from cosc155g@localhost)
	by creek.uh.edu (8.12.10/8.12.10/Submit) id l48CDIhM832895
	for uhcoscstsd@list.prudentlearning.com; Tue, 8 May 2007 07:13:18 -0500 (CDT)
From: "Dr. Venkat Subramaniam" <cosc155g@Bayou.UH.EDU>
Message-Id: <200705081213.l48CDIhM832895@creek.uh.edu>
Subject: Should I reinstall MySQL? (fwd)
To: uhcoscstsd@list.prudentlearning.com (UH STSD (Ruby/Rails/AJAX course) Mailing List)
Date: Tue, 8 May 2007 07:13:18 -0500 (CDT)
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: O
X-UID: 175092
Content-Length: 1351
X-Keywords: $NotJunk JunkRecorded                                                                              

>Venkat -
>
>Should I reinstall MySQl?  I ask this because evidently I installed it in a=
>n
>inconvenient way.  It doesn't bother me, but it might cause you some
>difficulty when I submit the assignments that involve MySQL (that is, almos=
>t
>all of them).
>
>The way I installed MySQL I have to boot it up like this:
>
>C:\MySQL =96h localhost =96u root =96p
>
>C:\Enter Password:  ************   =DF My password
>
>And in my files that begin with   require gem 'activerecord'
>
>require 'active_record'
>
>I have to include this statement:
>
>ActiveRecord::Base.establish_connection(:adapter =3D> 'mysql',
>
>                                    :host =3D> 'localhost', :database =3D>
>'assignments',
>
>                                    :user =3D> 'root', :password =3D> 'My
>password'
>
>When I run scripts I also have to re-enter this same information.
>
>I think all this entering of user and password would  probably be
>unnecessary if I had installed MySQL a different way.  However, I am
>reluctant to reinstall it and then find out it's not working correctly.  Ri=
>ght
>now everything is working fine =96 it's just a little bit inconvenient.  Sh=
>ould
>I reinstall MySQL so that it's unnecessary to enter user and password?
>
>Thank you,

No need to reinstall it. I will take care of making your code work
with my installation.

Venkat

