Monthly Archive for June, 2007

Lecture evaluation results

The results of the course evaluation are available (PDF):

and will be discussed during the last lecture.

Sample solution to the proxy lab

On the lab page you can find a sample solution to the filesystem lab.

 

OpenMP parallel lab is online

The last (optional) lab is finally online. You can get all the details at the parallel lab webpage.

As usual, if there are any questions, comments or bugs, file them to Mathias.

So long, and have fun with the last optimization lab.

Possible problem with parse_uri if the URL is malformed

If the URL that is passed to parse_uri just contains a hostname withouy any path (e.g. http://www.foo.bar) then the function might cause a core dump because there is a small bug in the parse_uri function…

The diff for the parse_uri function looks as follows:

/* Extract the host name */
hostbegin = uri + 7;
- hostend = strpbrk(hostbegin, ” :/\r\n\0″);
+ /* does not work because it maps to the end-of-string and strpbrk
+ * will return NULL
+ */
+ //hostend = strpbrk(hostbegin, ” :/\r\n\0″);
+ hostend = strpbrk(hostbegin, ” :/\r\n”);
+ if (hostend == NULL) hostend = hostbegin+strlen(hostbegin);
len = hostend – hostbegin;
strncpy(hostname, hostbegin, len);
hostname[len] = ‘\0′;

Of course you can download the corrected handout at http://www.lst.inf.ethz.ch/teaching/lectures/ss07/2100/proxy_lab/proxylab-handout.tar

Semesterapéro

The traditional D-INFK Semesterapéro with teachers and students will take place on July, 19 at 5:30pm in the Dozentenfoyer (HG J floor).

Programming language of choice for proxy-lab

As Matteo said in the lecture you can choose your programming language for this lab. But keep in mind that the exercise should not be made simpler than it is in C. So you should not use any high-level functions to program sockets and use high-level objects for String manipulation or URL-handling.

Also dont use any uncommon or unusual languages. If you are in doubt, check back with Mathias.