From: Matthias Felleisen (matthias at ccs.neu.edu) Date: Mon Aug 18 10:23:57 EDT 2008 |
|
Apologies. The Prologue was supposed to energize an HtDP/2e effort and was supposed to come with pictures and web pages. Well, I was too busy and I am still too busy. So Shriram has collected our world material and has put out a collection for now. -- Matthias On Aug 18, 2008, at 2:24 AM, Benjamin L.Russell wrote: > While trying to follow along "How to Design Programs/2e: Prolog, > Section 2" (see > http://www.ccs.neu.edu/home/matthias/HtDP/Prologue/book-Z-H-4.html), I > got stuck in trying to insert the rocket-s.jpg image; viz.: > >> One important library -- world.ss -- supports operations for >> computing the width and height of an image: >> >> (* (image-width <rocket-s.jpg image> ) >> (image-height <rocket-s.jpg image> )) >> >> Once you have added a library to your program, clicking Run gives you >> >> 1200 > > I was unable to find this image just by going to the "Insert" -> > "Insert Image..." menu item, and when I finally right-clicked on the > image in the browser, then clicked on "Save Image As...," it saved as > "rocket-s.jpg," but then executing the above function in the > Definitions Window returned the following value in the Interactions > Window: > >> 1176 > > This is not what the text specifies. How should I insert the image so > that I get "1200" as the result of executing the above function? > > (Incidentally, do you know why "Prolog" comes up as the page title > when saving a bookmark of the page? Is this a bug, or is the book > actually related to Prolog?) > > -- Benjamin L. Russell > > _________________________________________________ > For list-related administrative tasks: > http://list.cs.brown.edu/mailman/listinfo/plt-scheme