Category: Reliable Penguin

OpenNMS Install

OpenNMS is a great network monitoring tool. Here’s the OpenNMS site: http://www.opennms.org In this case I’m going to do an install on to a RedHat Fedora Core 1 server. Here’s the installation guide: https://sourceforge.net/docman/display_doc.php?docid=23937&group_id=4141 The first step is to install the various prerequisites: – Java 2 SDK 1.4.2 or later from http://java.sun.com We did a stock install of the 1.4.2_07 tar/gz package to /usr/local/. Don’t forget to export the JAVA_HOME environment variable:

– Tomcat 4 from http://jakarta.apache.org/tomcat/index.html We did a standard install of the 4.1.31 tar/gz package following the instructions here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt The install was placed at /usr/local/jakarta-tomcat-4.0. We added the following lines to /etc/rc.local to start Tomcat on bootup and open the appropriate firewall ports:

At this point Tomcat was accessible at http://{myipaddress}:8080 – RRDTool from http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ We used the 1.0.49 source tar/gz package and built it using the instructions in the enclosed README file. The package

Read More »

Loops In XSL

1. Multiple looping within a report. Example: multiple UPS tracking numbers to print in the footer of an invoice after detail lines have looped. Loops are accomplished with xsl:apply-templates statements. At the point in the document that you want the loop, insert an xsl:apply-templates tag with the select attribute set to the node that you want to loop on. For example if you have tracking numbers in //report/tracking elements then use: lt;xsl:apply-templates select=”tracking” /> At the end of the document you’ll want to define a template to render the tracking numbers. For example: <xsl:template match=”//report/tracking” > <fo:block><xsl:value-of select=”@number” /></fo:block> </xsl:template> Here’s what the xml might look like: <report> <tracking number=”123″ /> <tracking number=”456″ /> <tracking number=”789″ /> </report> So for each loop, create a template that renders the looped item and add an apply-templates element at the point where you want the template inserted. There is also ans xsl:for-each looping

Read More »

Image Sizes In XSL-FO

Here was the question:

And here was the answer: This problem come down to image resolutiosn. Here’s an FO faq entry that talks about image resolution. I think this is where your problem is coming from: http://xml.apache.org/fop/graphics.html#resolution Here’s a link to the fo:external-graphic description in the spec: http://www.w3.org/TR/xsl/slice6.html#fo_external-graphic To attributes that look relevant are “scaling” and “scaling-method”.

Read More »

100% Height Tables

Ran into a messy problem getting tables to expand to 100% of available height recently. Found this document that helps understand the problem and the solution: http://www.apptools.com/examples/tableheight.php Basically we need to set the height of the html/body to 100% then we can set the height of the tables to 100%.

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.