[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Project 2 Fix
- To: "Garrett Wolf" <Garrett.Wolf@asu.edu>
- Subject: Project 2 Fix
- From: "Garrett Wolf" <garjit@gmail.com>
- Date: Tue, 28 Oct 2008 13:55:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=1MAA+4/Iyz9MGdtC1UD0fm44Yd31jxtyM2AdzY9rhXE=; b=vY61zfR4+IfeVqg5W6+kYe1aX4DBWF5ubYn32bMguHIcay1LNtsxRj7XUPYg3KXSI9 Rx5SnrT9AGPvIYG0P9BcAj+V83svmyQZJ+G6NavmJA/5YHABZYf1NhEZGRe/tAU/eBG2 ICkV3AAbiBrlhZ+DjQxNFRXnHZIXXPlK86KsE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=moty4CpFfvgoLKgvjilMblQpvXUaPf9LaFIau04Y3xNny7ILFdwo0K9fTuPs9yI9dc b6MiyrqJBSz2n3PdZY6szPzjGbMh3ol/N2ZBju4eoUKGYSf1dmCIrieBZRUW3kcGWGs+ IuL2S30Zkl81u74E+FZI71prqBZTvj3id2uZ8=
It was pointed out that some of the pages in the LinkExtract file have a space at the beginning of their name and therefore might not be matched when provided with the name w/o the space. Some of you have worked around this but if you are having problems, there are two quick solutions to this problem.
1) Simply edit the Hashedlinks file replacing ", " with "," (replace comma followed by space with just a comma)
2) Edit the LinkExtract.java file and add the following after this line in the constructor sin = sin.substring(sin.indexOf("[")+1,sin.indexOf("]"));
sin = sin.replace(", ", ",").trim();
You can add this line yourself and recompile or you can download the updated file from here (didn't want the java file to get caught by virus checker)
http://asu.mine.nu/CSE494/LinkExtract.zip
Garrett