Skip to main content

Posts

Showing posts from August, 2009

exSCO app now prints to PDF

The easiest way to do that turned out to be writing HTML, then feeding that to a converter. The downside is that a 48-page report works out to be 700kB of HTML, which htmldoc chokes on & silently dies. So... a bit of re-engineering now to start a new temp text file (shut down & restart <html> & <body> tags in between), spawn htmldoc with a bunch of them instead of one file with throwing a <!-- PAGE BREAK --> directive in at the end of each page. Extra victory: I have one report spitting contents into a <table> tag. It looks much neater & more elegant.

I am your Commander!

Varth Dader Earlly Nilliterate Make mine a Penne Arabiata So the shirt would read, but for a lack of fabric paints. I’ll be attending a sci-fi themed birthday party for a nephew tonight. (The meal reference is from the Lego parody of the Death Star Canteen)

Minor victory in ex-SCO application

47,300 lines of C (plus 6,800 lines of headers) should not take a full day of effort to get to compile, yet compile it does... & even seems to work. The few sections I tested on my laptop (running Mandriva Linux 2009.1 rather than SCO Unix 5.0.7) behaved flawlessly. Now if the rest proves to be working, we’re poised to actually change a few things, to the immense relief of their staff. Driving a terminal ( any terminal other than strict VT-100B at 24x80 (or x132) would be good) via ncurses rather than from hand-coded printfs to “\33[%d;%dH” would be fantastic. Then we could axe the proprietary terminal program they’re forced to use under MS-Windows (was even Windows98 in one case until the day before yesterday). Printing (eventually via PDFs &) CUPS will mean that they can use the hp laser (which does only wordprocessing now) for reports & documents like reminders (A5 sized) & invoices. This replaces a dodgy, ageing impact printer (again, hand-coded with “\33w0” &