On Sat, 2003-03-01 at 19:43, fish wrote: > On Sun, Mar 02, 2003 at 11:40:33AM +1100, fish wrote: > > > > if you have a tag [reveseinclude blog.data/*], it would then generate > > a set of pages for every file in blog.data (of the same filename) containing > > of course this template and the appropriate content at the reverseinclude > > point - obviously, you could only use this once per html file. > > > > you would also probably be wnating [forwardurl] and [backwardurl] for this, > > as well as running your file list through a semi-numerical (that is, an > > alphasort that knows that 10 is less than 100. the simple way to do this > > in this case, is make numbers the highest priority, and mention that people > > need an extension). > > (actully, one could have this tag more than once in a document, but it would > need to read the same directory - it'd just put multiple posts on a page, in > that case. one interesting idea would be to allow multiple reverseinclude > pointers, and to implent your stuff as a queue, so you could then do > *all sorts of crazy tricks* :-p.) > > - fish
It would probably be better to use something like rsync to find matching blocks between versions, then have the most recent document automatically "include" matching blocks. It could also be made more robust by allowing references to blocks within a file, then point to those blocks directly (i.e. something like [CHK at oadOOExh473blahblah...pAgM/oldFile.html][1024-8192], would refer to oldFile.html bytes 1024 to 8192). Basically this would work by generating a checksum table for every file that is viewable to a user (i.e. files they download or upload), and then use that checksum table to find matching data. After the matching data is found then it could point to it. I started up an open source project that uses this idea for a filesystem. The web page for it is at yfs.sf.net and I have an early working version written in java (the webpage really sucks right now, but it's still usable). It could potentially be adapted for use in Freenet. _______________________________________________ devl mailing list devl at freenetproject.org http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
