GEC students at Peace Jam

Posted by: Jeff Kupperman Mon, 15 Oct 2007 13:54:36 GMT

Four students from Genesee Early College attended Peace Jam's "slam" in Kalamazoo on Saturday. 

IMG_2699.JPGIMG_2701.JPG
We had to go through hoops just to get in....

IMG_2704.JPGIMG_2705.JPGIMG_2708.JPG
High school and college students from schools and clubs in Michigan, Illinois, Indiana, and Ohio spent the day in workshops and activities around the theme of "water," while teachers and club leaders attended a curriculum training.

We also learned that the 2003 Nobel Peace Prize winner Shirin Ebadi will be the featured guest at the capstone gathering in April.  Peace out!

Posted in  | no comments

EDE 601 Position Papers and Profiles - Debate 1

Posted by: Jeff Kupperman Sat, 06 Oct 2007 14:19:43 GMT

These are the position papers and critic profiles I have in electronic form for the first diverse perspective debate in EDE 601. (If you are in EDE 302, see my previous post on this blog.) Click the thumbnail image to download them as needed. If you have an additional one for the first debate, please send it to me.

Case1 Position-2
Case 1 Teacher Position Paper

Case2 Position
Case 2 Teacher Position Paper

Case3 Position-2
Case 3 Teacher Position Paper

Bond
Horace Mann Bond

Beecher
Catharine Beecher

Bloom
Allan Bloom

Hunter-1
Madeline Cheek Hunter

Kohn
Alfie Kohn

Posted in  | no comments

EDE 302 Position Papers and Profiles

Posted by: Jeff Kupperman Fri, 05 Oct 2007 20:35:19 GMT

These are all the position papers and critic profiles I have in electronic form. Click the thumbnail image to download them as needed. If you have an additional one for the first debate, please send it to me.

Case1 Position-1
Case 1 Teacher Position Paper

Case2 Position-1
Case 2 Teacher Position Paper

Case3 Position-1
Case 3 Teacher Position Paper

Profiles:

Addams-1
Jane Addams

Montessori-1
Maria Montessori

Locke-1
John Locke

Hirsch-1
E. D. Hirsch

Neill-1
A. S. Neill

Connerly-1
Ward Connerly

Chavez-2
Caesar Chavez

Malcolmx
Malcolm X

Martin
Jane Roland Martin

Marshall
Thurgood Marshall

Freire
Paulo Friere

Goodlad
John Goodlad

Schorr
Lisbeth B. Schoor

Posted in  | no comments

"has_many :through =>" and checkboxes

Posted by: Jeff Kupperman Sat, 29 Sep 2007 03:51:24 GMT

I was working with Jaime on the Fair Labor simulation, and we ran into this problem:

There will be multiple games, each with multiple users, but a user may belong to more than one game. She wanted to use a checkbox list to add and remove users from a game. So far so good -- it's a classic "has_and_belongs_to_many" problem, and the code is very concise. We made a join table, games_models, using the migration in my previous post. Then:

In the Game model:

has_and_belongs_to_many :users


In the User model

has_and_belongs_to_many :games


In the view (edit_game.rhtml):

<% form_tag :controller=>'main', :action=>'update_game', :id=>@game.id do %>

 <% for user in User.find(:all) %>

   <%= check_box_tag "game[user_ids][]", user.id, @game.users.include?(user) %>

   <%= user.name %>

 <% end %>

 <P><%= submit_tag 'Add' %></P>

<% end %>


In the controller:

	
def edit_game
  @game = Game.find(params[:id])
  @users = User.find(:all)
end
	
def update_game
  @game = Game.find(params[:id])
  @game.update_attributes(params[:game])
  redirect_to :action=>'edit_game', :id=>@game
end



So we made a join table the usual way and used "has_and_belongs_to_many" in the models, and everything was fine and dandy...except she needed to identify some of the roles as "leader" roles -- in other words, the HABTM relationship needed to contain additional information.

So we made a model called Member to hold the join table, and that was fine, but we no longer could use the magic that comes with HABTM. Instead, we needed to set up the relationships in the models manually, like this:

class Game < ActiveRecord::Base
	has_many :members, :dependent => true
	has_many :users, :through => :members
end

class User < ActiveRecord::Base
	has_many :members, :dependent => true
	has_many :games, :through => :members
end

class Member < ActiveRecord::Base
	belongs_to :user
	belongs_to :game 
end


That worked, sort of, but it turns out that the "game[user_ids][]" nomenclature goes with HABTM, and when we did it manually, it choked. Thankfully, we're not the first people to get stuck on this (see http://railsforum.com/viewtopic.php?id=803). We can write our own user_ids method, as follows, which we put in the Game model declaration (game.rb):

def user_ids=(user_ids)
  members.each do |mb|
    mb.destroy unless user_ids.include? mb.user_id
  end
     
  user_ids.each do |user_id|
     self.members.create(:user_id => user_id) unless members.any? { |d| d.user_id == user_id }
  end
end 


Whew!

Posted in  | no comments

Migration example for a join table

Posted by: Jeff Kupperman Fri, 28 Sep 2007 15:15:24 GMT

... because I will forget again:

class GamesUsers < ActiveRecord::Migration

	def self.up		
		create_table :games_users, :id => false do |t|
			t.column :user_id, :integer
			t.column :game_id, :integer
		end
		add_index :games_users, [:user_id]
		add_index :games_users, [:game_id]
	end
	
	def self.down	
		drop_table :games_users
	end
	
end

Posted in  | no comments

Give 1 Get 1

Posted by: Jeff Kupperman Tue, 25 Sep 2007 21:11:29 GMT

Until now, if you wanted to get your hands (or your kids' hands) on one of the laptops being made for the "One Laptop Per Child" program, you basically had to be the government of a developing country. But for one week in November, individuals in the U.S. can buy one through the Give 1 Get 1 program: For $399 you buy 2 laptops, one for yourself, and one that is donated to a child in a developing nation. (The donation part is even tax deductible.) The laptop itself looks, well, really great, so it's a good bet they will sell out in far less than a week.

Posted in ,  | no comments

Ariel Community Academy

Posted by: Jeff Kupperman Mon, 17 Sep 2007 15:26:53 GMT

Interesting school in Chicago, supported by the Ariel mutual funds group, where K-8 students get to invest and manage real money as they study finance and economics:

From their
brochure:

"...Each first-grade class entering the Academy receives a grant of $20,000. As students progress through each grade, they assume increasing responsibility for managing the portfolio. In middle school, the Junior Board of Directors is established to discuss investment performance and make investment decisions on behalf of their class. Upon graduation, the original $20,000 is given to the incoming first-grade class. Any profits accumulated in the account are split in half. One half is given back to the school as a class gift, while the other half is divided among the students as cash or matched contributions to a 529 college savings plan..."



Here's a quick overview, and there's also an article in Time Magazine about the school.

Posted in  | no comments

Missing information

Posted by: Jeff Kupperman Tue, 04 Sep 2007 19:00:55 GMT

A particularly interesting and relevant column from web design curmudgeon extraordinaire, Jakob Nielsen. He gave test users the task of going to the U.S. Census Bureau homepage and looking for the current U.S. population. (Go ahead, try it now.)

It turns out that the information is right there in huge red numbers, but an amazing 86% of user could not complete the task successfully. (One even left the site and searched for the information on Google instead.) Nielsen attributes the low success rate to the violation of a couple simple but important design principles. Definitely worth keeping in mind!

Posted in ,  | no comments

MoMB

Posted by: Jeff Kupperman Tue, 04 Sep 2007 02:31:05 GMT

The Museum of Modern Betas (MoMB, get it?) is a pretty good place to start if you're looking for a bird's eye view of what enterprising web developers are doing these days -- or at least how Web 2.0 buzzwords are being recycled by geeks looking for venture capital.

Posted in  | no comments

Best coffee maker review ever

Posted by: Jeff Kupperman Wed, 22 Aug 2007 13:14:22 GMT

I've been threatening Susanna with the prospect of becoming a full-blown coffee snob, but I haven't quite mustered the energy, not to mention the money. I think I may have a compromise, though: One day in Geneva a group of us happened across a Nespresso showroom, and lo and behold, the stuff is pretty good. And couldn't be easier. And not terribly expensive.

Of course, I had to see what the real coffee snobs on coffeegeek.com had to say, and amazingly enough, most liked it. The best was this review, which may be enough to seal the deal for me.

Posted in  | no comments

Older Posts

Older posts: 1 ... 3 4 5 6 7 ... 11