You need to update that relic you're using to browse the internet.
Updated: 1/25/2002; 7:53:54 PM.


Tech
Random outbursts on programming, gadgets, widgets, etc.



01.24.2002

PostgreSQL/JDBC tip of the day:

With the 7.1.x drivers, loading and saving binary data is an unintuitive process.  Just keep these things in mind:

  • All access to OID columns must be in transactions.  Even reads...
  • No BYTEA columns for you!
  • You might need to use the native Statement and ResultSet if you are using pooling software that acts as a proxy to the underlying implementation. 
  • Use getBytes/setBytes
And this will supposedly all change with the 7.2 drivers.  Boo!

Formatted Object (FO) tip of the day:

My client wanted their generated PDF documents to have the "Page x of y" footer.  Getting the current page number is trivial (<fo:page-number />), but getting the page count isn't so obvious. 

First, create a block where you know it will be the very last block in the document.  Give it a unique id:

<fo:block id="endofdoc"></fo:block>

Then, use this element to get the page count:

<fo:page-number-citation ref-id="endofdoc"/>


This has been tested with the Apache FOP renderer.


© Copyright 2002 Rich Rodriguez.
 
January 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31  
Jan   Feb