Archive for October, 2006

Textual Confirmation

Sunday, October 29th, 2006

I’ve got stuck in phpBB. I’ve just announced new anti-spam hack: Textual Confirmation. Yet another must-have for phpBB. Discussion on


Wednesday, October 25th, 2006

Seems interesting: plasTeX is a LaTeX document processing framework written entirely in Python. It currently comes bundled with an XHTML renderer (including multiple themes), as well as a way to simply dump the document to a generic form of XML. Other renderers can be added as well and are planned for future releases.

Unit testing for phpBB

Saturday, October 21st, 2006

I was writing a MOD for phpBB, and at some moment I found I can’t go further without unit testing. I found it’s quite a hard task because phpBB is written without testing in mind. However, unit testing for phpBB is possible.


unit testing for PHP

Tuesday, October 17th, 2006

At some moment, I found that I’m afraid of writing new code. The reason was simple. I wrote in PHP and, obviously, without unit testing. I got the programmer’s block as punishment. To overcome the block, I had to create tests first.

As usual, the first thing I made, was searching Usenet. And I’m astomished by the result. The search for “unit testing” in the group “comp.lang.php” generates on four (4!) pages! PHP developers suck!


messy Perl code

Tuesday, October 17th, 2006

I download my mail using fetchmail. During the process, “tail -f” shows the subjects of the incoming letters. Unfortunately, most of them are unreadable, something like “=?windows-1251?B?0e/g7CDt4CBwaHBCQg==?=“. Finally, I tired of it and decided to make life better.


use “perl -w”!

Saturday, October 14th, 2006

I thought “use strict” is enough and didn’t try to run an application with the “-w” flag. (Don’t blame me, it was under Windows.) As result, I played ping-pong with an user trying to identify an error instead of preventing the error.


joining entities

Wednesday, October 11th, 2006

XML tools are good when the input data is XML. And they are awful when the data is XML-like. As result, instead of using “xmllint --noent“, I had to write my own entity substitutor “”.


XString: XML as String

Sunday, October 8th, 2006

In xml-dev mailing list, William Gilreath posted an preview announce of XString, an XML technology “XML as a String”. I found time to look at the paper and write comments.

(more…) a better “psnup -2”

Sunday, October 1st, 2006

A new tool from me. puts two PostScript pages onto one page. It is similar to “psnup -2”, but
* drops the margins, and
* zooms the pages as much as possible.

fixing /invalidfont in ghostscript

Sunday, October 1st, 2006

Recently I updated ghostscript, and it stopped working even on its own examples:

$ pwd
$ ps2pdf ~/a.pdf
ERROR: /invalidfont in findfont
Operand stack:
   (Palatino-Italic)   Font   (Palatino-Italic)   228176   (Palatino-
   Italic)   --nostringval--   (Palatino-Italic)   URWPalladioL-Ital
   Times-Italic   NimbusRomNo9L-ReguItal
Execution stack: