/var/spool/weblog
   


Prof Avery's weblog
snapped axle on the wonder wagon

<spool@kenytt.net>

CSU Fullerton Perl Powered Python vi Hacker

Geek News

del.icio.us bookmarks

RSS


       
Mon, Feb 28, 2005

Missing Course Notes
If you picked up my course notes after class Friday night, please e-mail me or drop them off in the Department office.

/var/spool/courses/csuf/2005/spring/cpsc423 #

Class Diagram And Use-Case Exercises
Click here for today's Lab Exercises.

/var/spool/courses/csuf/2005/spring/cpsc461 #

Thu, Feb 24, 2005

Assignment 1
Now that the deadline has passed, I've posted a working solution to Assignment 1. If you weren't able to get your program working, feel free to steal the code. If your program worked, feel free to laugh at it.

Note that posting code for this assignment does not imply that I will do so again. In fact, I probably won't. But if you can't get past the first assignment, you're likely to have trouble for the rest of the semester.

One more thing: remember that you are allowed to work with a partner on programming assignments (you did read the syllabus, right?). I note that the students who didn't finish the assignment on time were all working alone. If you're having trouble, find a buddy. If you can't find a buddy, get in touch with me.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Wed, Feb 23, 2005

An Illustrated Guide to Cryptographic Hashes
I've added a link to Steve Friedl's An Illustrated Guide to Cryptographic Hashes to the course outline. I'll say about this page what I said about the Kerberos paper: if you have trouble following the book, see if this helps.

/var/spool/courses/csuf/2005/spring/cpsc433 #

Cracking DES
For the full story on DES, see Cracking DES: Secrets of Encryption Research, Wiretap Politics, and Chip Design.

/var/spool/courses/csuf/2005/spring/cpsc433/misc #

Tue, Feb 22, 2005

Assignment Update
I've updated the assignment sheet with a more detailed list of guidelines, based on common problems with the first set of summaries. Please take a few moments to read them prior to turning in Assignment 2.

/var/spool/courses/csuf/2005/spring/cpsc433 #

Mon, Feb 21, 2005

A clarification
I received an e-mail asking whether the example programming language is case-sensitive.

Well, err... yes, isn't everything these days case-sensitive? (Whaddaya mean "not Visual Basic?")

Yes, Pascal was case-insensitive, but subsequent languages in the Wirth family (e.g., Modula-2, Modula-3, Oberon, Component Pascal) have all been case-sensitive. I've updated the assignment to reflect that.

/var/spool/courses/csuf/2005/spring/cpsc423 #

Sun, Feb 20, 2005

Compiler Construction using Flex and Bison
If you decide to use lex and yacc (or GNU flex and bison) for the programming projects this semester, you may find this book helpful.

/var/spool/courses/csuf/2005/spring/cpsc423 #

Fri, Feb 18, 2005

Assignment 2 Extra Credit
Apparently I'm getting soft in my old age. You are no longer required to add antialiasing to Assignment 2, but you may do so for extra credit.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Wed, Feb 16, 2005

Big Crypto News
From Bruce Schneier's weblog: SHA-1 has been broken. Two weeks from now we'll be talking about hash functions. By that time it may be confirmed, and we'll talk about the implications.

/var/spool/courses/csuf/2005/spring/cpsc433/misc #

The Reshape Callback
Ok, so I had to go back and re-read the documentation to get this working.

The default reshape callback (the one you get if you don't call glutReshapeFunc()) calls glViewport(0, 0, w, h) and doesn't change the coordinate system. The default coordinate system (which won't change unless you call gluOrtho2D()) has its origin in the lower left corner of the window.

Unfortunately, the coordinate system used for the mouse position has its origin in the upper left corner. That means that if you don't have a reshape callback, or if you call gluOrtho2d(0, w, 0, h);, you'll end up with mouse coordinates that are the opposite of drawing coordinates. To fix that, you need to do one of two things:

  1. Subtract the mouse y-coordinate from the height of the window
  2. Change your drawing coordinate system to match the mouse coordinate system
Luckily, option (2) also allows us to resize the window without stretching the drawing or moving it all over the screen. Use the following reshape callback:
void reshape(int w, int h)
{
	glViewport(0, 0, w, h); 

	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluOrtho2D(0, w, h, 0);
}
Don't forget to register the callback in main() with glutReshapeFunc(reshape).

Here's what the function does:

glViewport(0, 0, w, h);
Specifies that the viewport rectangle should occupy the entire window. The default reshape callback does the same thing.
glMatrixMode(GL_PROJECTION);
We're about to specify 2D Orthographic projection. The default matrix mode is GL_MODELVIEW, so we need to switch.
glLoadIdentity();
Clear any existing projection matrix
gluOrtho2D(0, w, h, 0);
Specify the left, right, bottom, and top clipping planes. Note that the bottom clipping plane is h, not 0.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Tue, Feb 15, 2005

More reading material
I've added another article to the March 10 reading on Kerberos: "Designing an Authentication System: a Dialogue in Four Scenes."

I know, I know, yet more reading; but if you run into trouble while reading Section 14.1, try this article and see if it clears things up.

/var/spool/courses/csuf/2005/spring/cpsc433 #

Assignment 2
Click here for details.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Assignment 1
Click here for details.

/var/spool/courses/csuf/2005/spring/cpsc423 #

Mon, Feb 14, 2005

Lab Session
The Design Patterns Exercise is available.

/var/spool/courses/csuf/2005/spring/cpsc461 #

Fri, Feb 11, 2005

Grammar and Examples
The grammar for this semester's programming assignments is available, as well as some examples.

/var/spool/courses/csuf/2005/spring/cpsc423 #

Thu, Feb 10, 2005

How to Read Mathematics
From the Computer Science Department at Stonehill College: How to Read Mathematics.

/var/spool/courses/csuf/2005/spring #

Wed, Feb 09, 2005

RSS Readers
I refer to RSS in the syllabi for my classes, and mentioned it on the first day of class, but a student asked about it, so here's my 30-second explanation:

RSS is an XML format that allows you to "subscribe" to a web site, getting updates as they are posted. The format is supported by the "Live Bookmarks" feature of the Mozilla Firefox browser and by the Thunderbird e-mail client.

There are also a number of specialized RSS Readers. Click here for a list, or try searching Google for RSS.

If you're looking for a recommendation, I've used each of the following at various points:

I don't read too many blogs regularly these days (too busy prepping lectures and assigning homework), but the last time I did, I used an RSS reader that ran as a cron job and e-mailed me updates. I wrote it myself. (Although, of course, I stole liberally from rss2email and rawdog.) E-mail me if you'd like to play with the code.

Once you've gotten yourself a newsreader, try to subscribing to one or more RSS feeds:

Don't go crazy with the update-checking -- every half hour is more than enough. In the meantime, happy news-reading!

/var/spool/courses/csuf/2005/spring #

Linear and Differential Cryptanalysis Tutorial
On Thursday, we'll be talking about cryptanalysis. I'll give you an overview of the linear and differential techniques, but if you want to know more, check out A Tutorial on Linear and Differential Cryptanalysis by Howard M. Keys.

/var/spool/courses/csuf/2005/spring/cpsc433/misc #

The Two-Page Limit
I received an e-mail asking how firm I intend to be about the two-page limit for Thursday's assignment. The short version of the answer is "pretty firm."

The long version of the answer is that you should consider two pages to be a firm lower limit -- go much more than a paragraph under two pages, and you're not likely to get full credit for having completed the assignment.

The upper limit is slightly more flexible. Take three pages, if you feel like you need the space. But I do not want more than that -- I don't grade by volume. If you can't get it in three, get some help editing. If you can't find someone to help you edit, come by during office hours (I am available Wednesday afternoon) and ask for help, or send me e-mail.

/var/spool/courses/csuf/2005/spring/cpsc433 #

Tue, Feb 08, 2005

OpenGL and GLUT in Visual Studio .NET
Donn Clark has found a tutorial with screenshots for building applications with OpenGL and GLUT in Visual Studio.NET. The tutorial says that it works with both the 2002 and 2003 versions, and if I recall correctly, the steps in older versions of Visual Studio (i.e. non-.NET) are largely the same.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Assignment 1
Click here for details.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Mon, Feb 07, 2005

Lab Session
Design Exercises 2 and 3 are available.

/var/spool/courses/csuf/2005/spring/cpsc461 #

SPiGoT
I've posted the documentation and code for SPiGoT, and will post the first assignment on Monday.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Sun, Feb 06, 2005

OpenGL Tutorial Site
Ok, this is really impressive: NeHe Productions has 48(!) OpenGL tutorials, including instructions for getting OpenGL up and running on Solaris and MacOS X. When you get there, note that if you scroll down to "Resources" in the left-hand column, you can download all the tutorials as a single file.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Computer Animation
We won't have a whole lot to say about animation in class; not because it's not interesting, but because it's a topic large enough to fill several books on its own. If you're interested in animation, check out Computer Animation: Algorithms and Techniques by Rick Parent.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Handbook of Applied Cryptography
Another reference book available free on the Internet is the Handbook of Applied Cryptography from CRC Press.

/var/spool/courses/csuf/2005/spring/cpsc433/misc #

Sat, Feb 05, 2005

Army Cryptanalysis Field Manual
This is interesting... a copy of a US Army Field Manual for Cryptanalysis. (via Slashdot)

/var/spool/courses/csuf/2005/spring/cpsc433/misc #

CpSc 423, Language Processor Techniques
Click here for the syllabus, outline, and other resources.

/var/spool/courses/csuf/2005/spring/cpsc423 #

Thu, Feb 03, 2005

GLUT
You can download documentation and a copy of the library from the official GLUT page. If you grab the .ZIP file from the GLUT for Win32 page, you'll see the following files:

glut.def
The DLL module definition file. You probably don't need this unless you're rebuilding GLUT from the sources.
glut.h
This is the file that your C program will need to #include.
glut32.dll
The actual GLUT library; put it somewhere in your path.
glut32.lib
The "import" library; link your program against this to automatically import the GLUT functions from the DLL.
README-win32.txt
The, ummm... readme. You should probably read it.
If you need more help getting up and running on Windows, check out Installing GLUT on a Windows machine.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Tue, Feb 01, 2005

Reading Updates
I've added readings for May 3 and May 5 to the outline that do not appear on the version handed out in class.

May 3
Dhanjani, N., "Installing and Configuring Nessus," ONLamp.com, April 2004.

Dhanjani, N., "Writing Nessus Plugins," ONLamp.com, June 2004.

McNab, C., "IP Network Scanning," Chapter 4 of Network Security Assessment, O'Reilly and Associates, March 2004.

May 5
Aleph One, "Smashing the Stack for Fun and Profit," Phrack, Vol. 7, No. 47, November 1996.

/var/spool/courses/csuf/2005/spring/cpsc433 #

CpSc 465, Principles of Computer Graphics
Click here for the syllabus and outline.

/var/spool/courses/csuf/2005/spring/cpsc465 #

Grading Policy Update
I've made a decision on grading for this semester:

Grades will be assigned on the usual 90%-80%-70% scale, i.e. without plus or minus grades.
The syllabus has been updated to reflect this policy. My apologies for not including this information initially; I'd completely forgotten until it came up in class.

/var/spool/courses/csuf/2005/spring/cpsc461 #

CpSc 433, Data Security and Encryption Techniques
Click here for the syllabus, outline, and other resources.

Please note that the outline is incomplete -- I have not yet decided on readings for May 3, 5, 12, and 19. When they become available, I will post a notice here.

/var/spool/courses/csuf/2005/spring/cpsc433 #


       

 

December 2017
Sun Mon Tue Wed Thu Fri Sat
         
           

RSS

Topics


Archives