Alvin Alexander | Java, Scala, Unix, Perl, Mac OS X
I just started a LaTeX section in this blog. Today I'm including two LaTeX examples that I often use as reference material:
Here's a sample LaTeX document where I'm experimenting with
newenvironment, a definition list, and tables (the tabular environment. I don't have the output with me at the moment, but I think all of these worked correctly when using pdflatex (LaTeX PDF) and latex2html (LaTeX HTML).
Here is some example LaTeX code where I'm experimenting with image inclusion, as well as tags like
latexonly, and the
This LaTeX example/test file was created for tests with the pdflatex (LaTeX PDF) and latex2html (LaTeX HTML) utilities. This is definitely not for newbies.
Hmmm, it looks like maybe somebody was working a little too hard one day ... here's a link to the "IBM Songbook". Somebody *should* buy the guy a drink.
A review of my Fujitsu T Series Lifebook Tablet PC
I've had a Fujitsu T Series Lifebook PC for about six months now. It's actually a Tablet PC, or more appropriately, a hybrid. That means that it can switch between being a small notebook computer and a "slate" model Tablet PC. It converts to a slate model by swiveling the monitor 180 degrees, and then folding it down onto the keypad (which is a very clever design).
Some of my cohorts in development are using the Hibernate object/relational mapping software with decent success.
And although this must seem trivial to most people, last night I found the LaTeX "strikethrough" (strikeout) capability I've been looking for. Just use the "sout" tag in the "ulem" package. I don't know why that had to be so hard to find (arghhh).
Here are some links to Java installer/installation programs I've found.
I've learned something about myself the last few weeks that maybe I didn't know before. While I don't like being tired, these last few weeks have been very trying, with long hours and hard work. The thing that I've learned is that this actually helps me to settle down, and focus on one thing at a time.
I've included the source code for a Stopwatch class here so I won't lose it. It's a good class for benchmarking the performance of certain operations in your code.
I think I found the Java Stopwatch class (shown below) in a book named Java Platform Performance. You can use the class for general performance timings, or make it part of an overall benchmarking system.
I take no credit for this Java code -- I didn't write it, and at the moment I can't find that book -- but I found it on my laptop, and wanted to make sure I have a copy of it laying around for when I need it.
Ahh, Cinco de Mayo, always a good reason for a margarita at OTB ...
In other news, here's a link to a guy that's crazier than I am. He has posted a page with a bunch of sed commands and command options. Although the examples weren't exactly what I needed, I was able to pull enough from his command examples to get some stuff going. FWIW, I was specifically looking for a command that would let me grab a pattern during the "search", and let me use that pattern during the "replace".
I just started working with a product named yGuard. yGuard is a Java obfuscator that can also be built into your Ant build process. My initial experiment using it in an Ant build process has been very successful. I haven't tried decompiling my class files yet, but I can see that several/many of the class files have been renamed, and the app runs fine from the obfuscated Jar file.
Here's a link to a sample 242-page requirements document. This is a real world example, full of use cases, requirements, and a few other things.
The following three links are web site references from Joel Spolsky's book "User Interface Design for Programmers".
- Jakob Nielsen's web site on usability
- Bruce Tognazzini's web site on usability
- Joel on Software (his web site)
Another link I want to remember is tweakxp.com. I found some useful info here the other day on Windows XP shortcuts.
A co-worked gave me this URL today for low-cost magazine subscriptions. As much as I like to read (and save money) this could be a lot of fun.
Yahoo keeps a list of Mutual funds that are sorted by several categories, including one that I'm most interested in: Mutual funds ranked by top performers.
LaTeX question: For a technical document I'm creating with LaTeX, there are a lot of sections that have a repeated/consistent format. This is exactly what I want, but for a 160 page document, I ended up with a 15-page table of contents (TOC). Is there are way to control the "depth" of the table of contents?
After a little research ... yes, I can. Here's some sample code that I put in the LaTeX preamble, just before the