EBoard 28: HTML and CSS and the WWW

Approximate overview

  • Admin
  • Some notes on yesterday’s lab
  • Lab

Administrative stuff

Introductory notes

  • New places!
  • I was wrong about the elections. We have a very different school board coming up.
  • I forgot my hearing aids today. Apologies.
  • Today’s lab has been significantly rewritten for a new Web infrastructure. There may be a few hiccups.
  • Monday’s reading and lab require an updated csc151 package and other new packages. (File -> Install Package …)
    • html-parsing
    • html-writing
    • sgml
  • Happy belated Diwali!
  • Sam will fix the bug in today’s lab that someone just identified.

Friday PSA

  • It’s the end of daylight savings time. Turn off your clock at 2am Sunday and turn it on again after an hour. Use the extra hour of sleep appropriately.
  • Moderation is essential. Take care of yourself.
  • Consent is even more essential.

Upcoming activities

Events

  • Mock swimmers on Saturday, 1 pm.
  • Mentor sessions Sunday at 4pm. So many options!
  • Singers in a week or so.

Other good things

  • Men’s Basketball vs. Coe, 7 pm Friday, Darby.
  • Do you feel anger? in about two weeks.

Upcoming work

  • Mini Project 6 due Sunday
  • SoLA 3 due next Thursday. Topics have been rearranged (I hope).
    • Sample SoLA has been updated.
  • Reading for Monday: Processing XML

Q&A

thingy.html link is broken. Can you fix it?

Yes. Give me a few minutes.

Are readings supposed to be due at 8pm?

Yes. If it’s been 10:30, it’s a mistake.

Other links are broken, too.

Damn.

Notes from Wednesday’s lab

How I expected you to write rebelsky-chirps.

(define rebelsky-chirps
  (map chirp-contents 
       (filter (o (section equal? "rebelsky" <>)
                  chirp-author)
               chirp-list)))

How some of you wrote rebelsky-chirps.

(define rebelsky-chirp?
  (lambda (chirp)
    (equal? "rebelsky" (chirp-author chirp))))
(define rebelsky-chirps
  (map chirp-contents (filter rebelsky-chirp? chirps)))

How others of you wrote rebelsky-chirps.

(let ([rebelsky-chirp?
       (lambda (chirp)
         (equal? "rebelsky" (chirp-author chirp)))])
  (define rebelsky-chirps
    (map chirp-contents (filter rebelsky-chirp? chirps))))

Alternately,

(define rebelsky-chirps
  (map chirp-contents 
       (filter (lambda (chirp)
                  (equal? "rebelsky" (chirp-author chirp)))
               chirp-list)))

How I expected you to write count-of-harris-chirps

(define count-of-harris-chirps
  (tally (o (section equal? "harris" <>) chirp-author)
         chirp-list))

If I can get the appropriate infrastructure in place, your next mini project will be processing chirps (Tweets).

Lab

Preliminaries

  • Join on computers!

Notes during lab

It’s easy to get things wrong

Our css file does not include css. (That was a fun one.)

The link to the style sheet is wrong if you download the files in the wrong way.

“I have three versions of the file and grabbed the wrong one.”

Notes post lab

Whatever you did is fine.

Paste the URL for your site in the Gradescope link