teaching machines

Block vs. Inline-block vs. Inline

If I were to rank the most important things about making a website, I’d write down the following: The content The display property Everything else The display property dictates how the content appears in relation to other content, and it silently cancels out other properties that don’t make sense for one its settings. I find […]

CS 268 – Web Systems

Course Information Syllabus Enrollment: 70 Lectures Homework Exams

CS 491 – Game Development and Physical Computing

Course Information Syllabus Enrollment: 20 Posts Project

Bathroom Angles

Our bathroom gave me a math problem, and I failed. Herein I document my failure and visualize the answer I should have provided. When we bought our home, the bathroom had carpet but no baseboard. This combination makes painting the walls difficult. As we are preparing to paint, I decided to install some baseboard. Measuring, […]

CS1: Final

See the questions and answer sheet.

Coscars

Something came in the mail this week from the University of Canterbury in New Zealand. The Department of Computer Science and Software Engineering (who use COSC as a prefix for their computer science courses) just held their end-of-year awards ceremony, the COSCARs. I was honored with this Most Wholesome Lecturer award: How exactly I was […]

Cutting Corners

I learned recently of Chaikin’s Algorithm, a method for rounding off the corners of a polygon. The algorithm works like this: Find the midpoints of each line segment in the polygon’s perimeter. Connect each consecutive pair of midpoints using a quadratic Bezier curve. The midpoints are the curve’s endpoints. The vertex between them is the […]

CS1: Lecture 38 – Slideshow

Dear students, A primary benefit of object-oriented design is that it helps us organize our programs coherently. We can put code and the data that it regularly processes together into the same chunk. Objects allow for the separation of concerns. Class A can focus on its task, and be very good at it. It can […]

Circle Dance

At one time, people believed that the Earth was the center of the universe, and that the planets and the sun orbited around it. Copernicus came along and challenged this idea, suggesting that the sun was the center. These are the only two sides of the debate that we ever hear about. Heliocentrism vs. geocentrism […]

Background Check

There’s somebody on Twitter named Dave who makes animations that break your mind. I fell in love with a simple rotating one a couple of weeks ago and recreated it in Twoville: Several others have recreated it too, but they appear to have fallen for the same trap that I initially fell for. They enumerated […]

1 30 31 32 33 34 204