CS 330 Lecture 5 – Advanced Regex
Agenda instatiating alternation anchors (^ $ \b) another kind: zero-width assertions executing code in the substitution TODO Read chapters 1-3 of Programming From the Ground Up, stopping before the Finding a Maximum Value section (page 21 in the letter-size edition.) Code states.txt instatiate.rb showext.rb State.java javadocify.rb foo.txt eval.rb Haiku
CS 455 Lecture 4 – 2-D Transformations
Before class Scaling, Translation, and Shear Watch http://youtu.be/Vfs7eOjcKuo. (I misspeak at one point: only translation and rotation are rigid-body transforms.) Read about transforms for a different graphics API at http://processing.org/learning/transform2d/, stopping before The Transformation Matrix. Rotation Watch http://youtu.be/qKgYarnLT94. Another brief perspective: http://www.siggraph.org/education/materials/HyperGraph/modeling/mod_tran/2drota.htm. For the inclined, read the sin and cosine summation section of http://oakroadsystems.com/twt/sumdiff.htm. In class First, here’s a fix […]
CS 330 Lecture 4 – State Machines and Regular Expressions
Agenda State machines: states, transitions, accepting states A machine to recognize parenthesized words A machine to recognize numbers A possible implementation Regular expressions as state machine encoding Not much Ruby Composing a string of email addresses Removing all HTML Instantiating states (geographic ones) TODO If we want more on regex, read pages 257-269 of Read […]
CS 455 Lecture 3 – Color, Uniforms, and Geometry
Before class Color and Uniforms Watch http://youtu.be/Jqrdxucra7w. Read http://www.catb.org/jargon/html/L/LERP.html. Read http://en.wikipedia.org/wiki/Linear_interpolation. Geometry Watch http://youtu.be/KkrBwHbjsB8. Read section 2.1 of http://www.informit.com/articles/article.aspx?p=461848. (Consider QUAD and POLYGON are deprecated.) Read http://stackoverflow.com/questions/2954349/when-should-i-use-indexed-arrays-of-opengl-vertices. In class Make sure your renderer from last time is working. Generate a flat ring (a circle with a smaller concentric circle punched out)without repeating any position attributes. Add a color attribute at each […]
CS 330 Lecture 3 – $h3||
Agenda quarter sheets tr echoing a line (in Java) system call (PHP and sed) tcsh vs. bash vs. zsh vs. intellectual development subshells in parentheses vs. curly braces question numbered parameters environment variables redirection and pipes lineN with grep new mail spamming you all what’s the frequency of kenneth? TODO Read http://www.regular-expressions.info/quickstart.html. Bring a quarter sheet […]
CS 330 Lecture 2 – Shell Scripts and Redirection
Agenda shell builtin variables interpolation custom variables reusing output meday custom scripts PATH permissions change extension 1+ files at a time command-line arguments resizing a bunch of images with convert checking for mail STDIN and STDOUT and STDERR output redirection pipes subshells The Unix way Doug McIlroy said: This is the Unix philosophy: Write programs that do […]
CS 455 Lecture 2 – Game Loop and Three Classes
Before class Game Loop Watch http://youtu.be/mI2CSvB1gJU. Read some of http://www.opengl.org/documentation/specs/glut/spec3/spec3.html to get some background on the game loop and windowing system library we’ll be using. Specifically, read sections 1, 3, 4.[156], and 7.[1345]. Three Classes Watch http://youtu.be/daAC6BwwUBI. Read pages 18-34 in the text. (Skim sections on GLEW and GLM. GLEW we’ll use, but GLM we won’t. A lot […]
CS 330 Lecture 1 – Shello
Agenda meta shell basics echo, cat, bc, head, tail, cut, grep man pages paths changing working directories shell builtin variables tab completion interpolation custom variables reusing output PATH command-line arguments Who are you? Name? Where from? Last unassigned book you read? If not computers, what? Setting your shell I’m not certain what your shell program is. […]
CS 455 Lecture 1 – Meta and Learn C++ in 75 Minutes
Agenda meta C++ review TODO Read the syllabus Complete the lesson I send out later today via email About you Your name? Last unassigned book you read? Where are you from? If not computers, what? This course… is about interactive 3-D graphics uses OpenGL has one long-running project is archived on this blog is flipped […]
[HNRS 304.503] Lecture ? – Game plan
Agenda I asked in lab if we wanted to spend today’s lecture thinking about next semester’s project, which you will complete with your original groups. More yesses were heard than nos. So, today, plan to meet with your group. In the last ten minutes of class, I will ask each group to share the description […]