Lecture 2 available for download; and about slides with recording
Students,
The slides for Lecture 2 are available for download on the downloads page.
Note that you want to open the “-all.html” page (there are now separate .html files for each slide, for the benefit of Harvard – it’s a lot easier for me to just leave them in the ZIP).
About the slides that we hope will now show with the recorded lecture:
Remember that the recorded lectures will appear here: http://cm.dce.harvard.edu/2010/01/12923/videopage.shtml
When Harvard releases the recorded lecture, it should now be accompanied with the slides, which should be synchronized with the lecture. However, the code might not run in the browser. If that is the case, you will want to use the slides in the download. (The runnable Ruby was not designed to be delivered over the web; one of the components is about 10MB, and it takes a long time to load over the wire. There is also a lot of JavaScript that fools around with frames, and the Harvard slide system is framed, so there is doubtless a conflict.)
John
The ruby evaluation on these web pages isn't working for me (Firefox 3.5.2 on Leopard 10.5.8).
When I first load file:///Users/ronnewman/cs168/lectures/lecture02/lecture02-all.html into Firefox, the Error Console shows this:
--------------
Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: file:///Users/ronnewman/cs168/lectures/lecture02/support/OTS/Slidy/w3c-blue.css
Line: 173
Error: useless setTimeout call (missing quotes around argument?)
Source File: file:///Users/ronnewman/cs168/lectures/lecture02/support/additional/ruby-control.js
Line: 18
---------------
Once I get to page 7, I get lots of these -- just from scrolling the page, not even interacting with it otherwise:
----------------
Error: target.className is undefined
Source File: file:///Users/ronnewman/cs168/lectures/lecture02/support/additional/ruby-control.js
Line: 118
----------------
Clicking on "Run to end" (with or without "irb-style" checked) adds this to the Error Console:
----------------
Error: document.RubyApplet.evalRuby is not a function
Source File: file:///Users/ronnewman/cs168/lectures/lecture02/support/additional/ruby-control.js
Line: 24
----------------
I definitely do have Java enabled -- that's not the problem here.
@Ron Newman
I will look into it.
You can copy-and-paste any code block to irb or to a .rb file and run it that way.
The warnings regarding filters are routine -- the ones about ruby-control.js are bad.
For what it's worth, the file is identical to what I presented last night.
Thanks. I don't get these errors from the lecture 1 JRuby slides -- only from lecture 2.