Linux Core Kernel Commentary: The LineFinder Applet
Most Recent Change: Fri Aug 3 08:33:00 2001 UTC.
About LineFinder
The LineFinder applet is meant to be used in conjunction with the book
Linux Core Kernel Commentary.
It displays the same code printed in the book; the applet just saves
you from having to flip back and forth between the commentary section
you're reading and the pages with the relevant code.
Using the applet should be self-explanatory: just type in the line
number you want to see and press Enter; the applet will scroll to the
indicated line for you. I'd add the ability to search for arbitrary
text, and other cool features, but because of the size of the text,
the behind-the-scenes string copies tend to make the applet run out of
memory (it almost does so already).
Running LineFinder Standalone
You can download
the source code;
it's
GPLd,
so you can freely copy, improve, and redistribute it as you please.
More important, you can run it on your own machine, which is usually
faster and more convenient, not to mention that you can then resize
the window to suit yourself. Note that for some reason, under
Kaffe,
LineFinder runs excruciatingly slowly and consumes huge amounts of
memory, so I compile and run it with the
Linux port
of the
Sun JDK
instead.
You can also download the
precompiled JAR,
which you can run with a command line like this one:
java [ -Dprop=value ... ] LineFinder.jar LineFinder
LineFinder understands the following system properties:
- file should be the path to the lckc_code file for
the applet to read (default /mnt/cdrom/lckc_code). A setting
for file will override any setting for url (below).
- url should be the URL to the lckc_code.gz file for
the applet to read (default
http://www.ScottMaxwell.org/lckc/lckc_code.gz).
- width is the width of the frame to open when the applet
runs in a standalone mode (default 512).
- height is the height of the frame to open when the
applet runs in a standalone mode (default 512).
lckc@ScottMaxwell.org