![]() |
![]() Spring Semester 2008 |
Fri Feb 1
More SQL that could be used to set up your Homework Three database:
create table performers (username char(8) primary key, lastName char(32), firstName char(32));
insert into performers (firstName, lastName, username) values
("Jordan", "Crawford", "jcrawfor"),
("D.J.", "White", "djwhite"),
("Deandre", "Thomas", "dthomas"),
("A.J.", "Ratliff", "ajratlif"),
("Eric", "Gordon", "egordon"),
("Mike", "White", "mwhite"),
("Armon", "Bassett", "abassett"),
("Jamarcus", "Ellis", "jmellis"),
("Lance", "Stemler", "lstemler");
create table ratings (player char(8) , judge char(8), rating int, primary key (player, judge));
insert into ratings (judge, player, rating) values
('lbird' , 'egordon' , 9 ),
('lbird' , 'djwhite' , 10 ),
('lbird' , 'dthomas' , 7 ),
('lbird' , 'ajratlif', 8 ),
('mjordan', 'egordon' , 10 ),
('mjordan', 'mwhite' , 8 ),
('mjordan', 'abassett', 7 ),
('tkukoc' , 'jmellis' , 10 ),
('tkukoc' , 'lstemler', 5 );
select all players and the number of votes they have received:
mysql> select player, count(*) from ratings group by player; +----------+----------+ | player | count(*) | +----------+----------+ | abassett | 1 | | ajratlif | 1 | | djwhite | 1 | | dthomas | 1 | | egordon | 2 | | jmellis | 1 | | lstemler | 1 | | mwhite | 1 | +----------+----------+ 8 rows in set (0.00 sec)
select all judges with how many votes they cast:
mysql> select judge, count(*) from ratings group by judge; +---------+----------+ | judge | count(*) | +---------+----------+ | lbird | 4 | | mjordan | 3 | | tkukoc | 2 | +---------+----------+ 3 rows in set (0.00 sec)
select the judges, and their average ratings:
mysql> select judge, avg(rating) from ratings group by judge order by avg(rating) desc; +---------+-------------+ | judge | avg(rating) | +---------+-------------+ | lbird | 8.5000 | | mjordan | 8.3333 | | tkukoc | 7.5000 | +---------+-------------+ 3 rows in set (0.00 sec)
Thu Jan 31How your website should look (need to add more info below):
| Lab One (01/10-11) | |
| Homework One (due 01/18) | Lab Two (01/17-18) |
| Homework Two (due 02/01) | Lab Three (01/31-02/01) |
| Homework Three (due 02/08) | Lab Four (02/07-08) |
| Homework Four (due 02/15) | Lab Five (02/14-15) |
| Homework Five (due 02/22) | Lab Six (02/21-22) |
| Midterm (in class 02/26) | Practical (in lab, 02/28-29) |
| Homework Six | Lab Eight |
| Homework Seven | Lab Nine |
| Lab Ten | |
| Lab Eleven | |
| Lab Twelve |
Wed Jan 30
Tue Jan 29
Fri Jan 25Also please be sure to put this in the passwd file:
-bash-3.1$ cat passwd dgerman:UIaTPpE.ZpwHw -bash-3.1$
Thu Jan 24Homework Three will be based on this older final exam in A114/I111.
Wed Jan 23
Here's some code you could use directly:
The two lines you need to add to./configure \ --with-mysql=/nobackup/dgerman/mysql \ --with-apxs2=/u/dgerman/apache/bin/apxs \ --with-config-file-path=/u/dgerman/apache/conf \ --with-xml --enable-track-vars \ --prefix=/u/dgerman/apache
httpd.conf:
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
The notes on the class notes page will not add much more to what's posted here.
Steps for installing MySQL: one, two, three, four.
Another set of notes with a shorter sequence of steps.
Add this line as the last but one command line argument to yourmysql_start batch file:
--log-error=/nobackup/dgerman/mysqld-error.log \
Careful to put your username instead of mine.
Steps for installing a protected folder: one, two.
Mon-Tue Jan 21-22
Sun Jan 20
Fri-Sat Jan 18-19
clreinki: one | johmyers: two | mrengler: three |
Lab on Thu did almost the exact same thing. So, just for our reference.
Thu Jan 17Here's Homework Two, as formal as we can make it.
Wed Jan 16
Tue Jan 15
Also,
Mon Jan 14
Sat-Sun Jan 12-13
Apache installation. Basic Unix commands. HTML
|
Basic elements of Perl and Python. Simple CGI scripts that keep state.
|
They've been written for A290/A590 but apply very well here as well.
Additional notes forthcoming and please don't forget about the textbook as well.
Fri Jan 11
Thu Jan 10.tar.gz file. Here's a sketch of the steps you need to take (a summary appears on pp. 17-20 in your text).
I will be posting a new set of notes for this week and the next over the weekend.
Wed Jan 09Andrew's office hours are as follows:
Minute paper of yesterday had the following content.
Tue Jan 08List of port assignments on silo for this semester has been posted.
Mon Jan 07