CSC151.02 2016S, Class 05: RGB Colors
=====================================

* New Partners!  (Take a card to figure out where you are and who your
  partner will be.)
    * Don't forget to introduce yourself to your partner!

_Overview_

* Preliminaries.
    * Admin.
    * Upcoming Work.
    * Extra Credit.
    * Questions.
* Lab.

Preliminaries
-------------

### Admin

* Quiz 1 to be returned tomorrow.
* A lot of snow is scheduled within the next day.  Please be careful.
* The Registrar wants me to remind you that Add/Drop deadline is Friday.
* Enjoy caucusing (or watching the Caucuses) tonight!
* Email policies
    * When you send me email asking questions, it helps if you title it
      something like "HELP" or "QUESTION".  (Yes, all caps is okay.)
    * I tend to respond to email promptly, but I get a lot of email.
      If I haven't responded to email within 24 hours, send me a reminder.
* Yes, I know that I have to work on the formatting of today's lab.

### Reminders

* Office hours: MTWF 10-11, Tu 1-2.
    * Sign up at <http://rebelsky.youcanbook.me>.
    * Also feel free to stop by when my door is open.
    * Or to email me for an appointment.
* Tutor hours
    * Sunday, 3-5 p.m.
    * Sunday-Thursday, 7-10 p.m.
* Weekly review sessions:
    * Wednesday at 8pm in the CS Commons with Sarah
    * Thursday at 10am in this room with SamR
    * Thursday at 8pm in the CS Commons with Kumar

### Upcoming Work:

* Reading for Tuesday:
  [Transforming RGB Colors](../readings/transforming-rgb-early-reading.html)
* [Assignment 2](../assignments/assignment.02.html) due TOMORROW!
  at 10:30 p.m.
* Lab Writeup: Exercise 9
    * Send email titled __CSC 151 Lab Writeup 5 (Your Names)__
    * Do not include the underscores.
    * Send to <CSC151-02-grader@grinnell.edu>
    * Due before class on Wednesday.

### Extra Credit

#### Academic

* CS Table, Tuesday, Noon, White PDR: Facebook's Walled Internet.
  (Readings to be distributed via email.)
* Community Conversations on Race, 7:30 p.m., Tuesday, February 2, 
  Lazier 3rd Floor Lounge
* CS Extra on Thursday: LaTeX (4:15 p.m., 3813)

#### Peer

* Track and Field Grinnell Invite February 6. (30 min suffices)
* Swimming February 6 vs. UN and IAState, starts at 1pm. (30 min suffices)

#### Miscellaneous

* Caucus TONIGHT.  (Or observe a Caucus.)

### Questions from Sam

_What does `round` do?_

### Questions from Students

_How do we submit extra credit._

> Send a message titled something like "CSC 151 Extra Credit (Your Name)" to
  <rebelsky@grinnell.edu>.

> The message should be your *reflections* on the talk or activity.  I
  don't really need summaries.

> You should strive to do this within two days of the event.

_When we rewrite the algorithm, should it just return yes/no or should 
 it give a count of matching birthdays?_

> You only need to give yes/no, but a count would be cool, too.

> However, you should be careful.  I've seen algorithms that give the
  wrong count if three people have the same birthday.

_Do you want us to base our algorithm off of the bad one that was
 there, or should we start from scratch?_

> Either.

_What are the odds that I ended up with the same partner?_

> The odds that someone ends up with the same partner are reasonably
  good.

_GIMP and DrRacket aren't playing nice.  Why?_

> Sam is not necessarily competent.  But we'll try to fix it today.

_Are mentor sessions in the commons?_

> Yes.

_Where is the commons?_

> We think it's Science 3817.  It's the big room that overlooks Kistle.

Lab
---

_I'm getting an error message that says "DBus not working!"_

> Go to GIMP and under the **Mediascript Menu** select **Start DBus Server**

_The color swatch isn't showing up_

> Try `(image-show (color-swatch (irgb 255 0 0)))`

_I'm getting an error message at the bottom that says "default-load-extension-handler ..."_

> *Ignore it* Sam is not competent.  He has no idea what it's happening and can't fix it.

Lab writeup: Exercise 9

Debrief
-------

Things that I hope you thought about ...

* How (and why) to write nested Scheme expressions.
  `(image-show (color-swatch (irgb 200 100 200)))`
* Different ways of thinking about colors (names, three components, etc.)
  (None of these things are colors.)
* How you will keep track of the vocabulary.
