Archive for the ‘Uncategorized’ Category

pseudo-unicode bookmarks in Acrobat Reader

Tuesday, September 6th, 2005

Although Acrobat Reader 5.0 is supposed to support Unicode bookmarks, it doesn’t. I can make bookmarks “ßß” or “Ñ?Ñ?“, but I can’t create a bookmark “ßÑ?“. Alas, only a slice of unicode per bookmark.

(more…)

float to integer conditionally

Thursday, September 1st, 2005

I need to check if a float value is actually an integer. If so, I use the value as integer, otherwise as float.

(more…)

xsltproc: nodeset sort fails on a namespace node

Monday, August 29th, 2005

Another libxml2/libxslt bug is found and reported by me.

(more…)

debugging memory problems - II

Sunday, August 28th, 2005

After fixing problems with garbage collection, other memory errors are trivial, even if they take a while. This time I used xmlXPathConvertString, which frees its argument. I must read documentation more attentive. What I need is xmlXPathCastToString.

debugging memory problems

Saturday, August 27th, 2005

I should feel lucky. I’ve debugged and fixed program crashes, which were induced by garbage collection. It have taken only 4 days. I’ve added 5 lines to the program, and 8 problem issues go away, and more issues will be closed after testing.

(more…)

one more libxslt bug

Thursday, August 18th, 2005

That’s not funny. Again the namespaces, again a libxslt bug. Libxslt is confused when XSLT and XML use the same prefix with different URI.

(more…)

now wt2db bug

Thursday, August 18th, 2005

Yet another bug, in yet another program. I like wt2db (WikiText to DocBook, I’ve already written about wt2db), so I’ve submitted a bug.

(more…)

namespace collision with namespace-alias

Wednesday, August 17th, 2005

I’m trying to write a sort of generative XSLT: an XSLT stylesheet which creates another XSLT stylesheet. Unfortunately, I’ve confused xsltproc.

(more…)

make sure if it is really an error

Tuesday, August 16th, 2005

I was near starting to fix a “bug”. Fortunately, I asked myself: “is it really a bug, or is it misunderstanding of the specification?” That’s saved me a time. Actually, all works correct and error is in tests.

too smart

Thursday, August 11th, 2005

From a letter. “You should make Python Script for … look more impressive. Currently it works less than 1 second and displays: “ready, press any key”. We expect …”

programlistingco is fake

Thursday, August 11th, 2005

Don’t use programlistingco and other co-elements of DocBook. They are not supported in full by the DocBook XSL stylesheets.

(more…)

adding recursive targets to [auto]make

Wednesday, August 10th, 2005

I wanted to add my own recursive target in addition to the recursive targets produced by automake. It was not easy.

(more…)

creating mysql users without pain

Friday, August 5th, 2005

On my computer, I often install web-applications which use a mysql database. I prefer to run different applications under different database accounts. Till now I used boring manual manipulations to create accounts, but now I worked out a better way.

(more…)

diff, patch, diff3

Friday, July 29th, 2005

In order to produce a patch file, I’ve looked through the following books:

(more…)

script wrapper for Windows

Monday, July 11th, 2005

I’m always spending lots of time searching for these information: “Using batch parameters“, “Using batch files“, “Command shell overview“.

(more…)

libxml doesn’t compile

Tuesday, June 21st, 2005

The latest CVS version of libxml2 doesn’t build. Linking fails with messages:

../../.libs/libxml2.so: undefined reference to `pthread_getspecific'
../../.libs/libxml2.so: undefined reference to `pthread_once'
../../.libs/libxml2.so: undefined reference to `pthread_key_create'
../../.libs/libxml2.so: undefined reference to `pthread_setspecific'

(more…)

take some time to do it

Tuesday, June 7th, 2005

On the 1st April (fool’s day; in our culture a day for jokes) I got a letter from a customer with a specification and the words: “take some time to do it”. Unintentional joke of “take some time” is that I have finished coding only now, 7 June.

sourceforge have done it!

Wednesday, May 25th, 2005

Finally, SourceForge.net repaired statistics for the projects. It was a dream since the middle of January.

comparing two similar strings

Wednesday, May 25th, 2005

I’ve advertised GetReuse once again in response to the following question:

How do you compare 2 strings, and determine how much they are “close” to each other?

(more…)

SATA HDD works under Linux

Wednesday, May 11th, 2005

Due to historical reasons, my Linux box at work uses Promise RAID. Recently (month ago) I added a new HDD (AFAIK, attached to ICH5). Unfortunately, the HDD didn’t work.

(more…)