Archive for the ‘Uncategorized’ Category

better multiple pages per sheet

Wednesday, February 15th, 2006

The utility psnup puts multiple logical PostScript pages onto each physical sheet of paper. Unfortunately, I’ve found that I don’t like result. I’ve got a better result after playing with pstops:

cat ~/print.ps | \\
pstops '2:0L@.6(19.5cm,1cm)+1L@.6(19.5cm,14cm)' -pa4 >out.ps

Converting to 3gp

Wednesday, February 15th, 2006

I wanted to play video on my Siemens M75. After some research, I found that the format is 3gp. Video files can be converted to this format using the Linux utility “ffmpeg“.

(more…)

A wonder de-mystified

Tuesday, February 14th, 2006

There is rumour that sometimes people start to speak in a foreign language, even if they have never learnt or heard it. That could be assigned to the overworld mind. But I think the things are simplier.

Today I visited a German hospital. Unexpectedly, I alone had to entertain a 7-month German baby. So I recited Russian poetry for 2 hours. A seed for new wonder has been sowed.

Adobe vs ElcomSoft

Monday, February 6th, 2006

I’d like to enhance an Adobe tool, so some retrospective is useful.

(more…)

How to Sell Your Book, CD, or DVD on Amazon

Sunday, February 5th, 2006

creating xsl-fo is easy

Saturday, February 4th, 2006

A funny quote from frameusers mailing list:

Creating XSL-FO is easy - I just tell a programmer what I want.

DU350PS does work under Linux

Monday, January 30th, 2006

DU350PS is a SATA Hard Drive Mobile Rack with USB 2.0 interface. It seems working under my Linux. No special setup required.

(more…)

before updating the system

Tuesday, January 24th, 2006

Just a note to myself what to do before “apt-get dist-upgrade”:

apt-get clean
apt-get check
apt-get update
apt-get install gnupg bzlib apt rpm

I’m a good tester

Friday, January 20th, 2006

I’ve decided to try XML support in browsers. Half hour later I crashed Mozilla 1.7.2 using expression:
document('authors.xml',document(''))//author[@id=current()/@idref]
Back to xsltproc.

Aspire 1610 internal modem under Linux

Friday, January 6th, 2006

Notebook “Aspire 1610″ has an internal modem which identified by lspci as “Intel Corp. 82801EB/ER (ICH5/ICH5R) AC’97 Modem Controller (rev 02)”. It took much time to make it working under Linux.

(more…)

Python for Lisp Programmers

Thursday, January 5th, 2006

A small Lisp vs Python article: “Python for Lisp Programmers“. The title is very untraditional, one expects Python and Lisp swapped.

I’m near back

Monday, December 26th, 2005

After two-month rest, I recently got modem Internet connection. Expecting upgrade to DSL in the new year.

spam mask

Thursday, October 20th, 2005

I tired of MovableType spam. More and more spam sites. Finally, I’ve added mask “.*” to the filter.

eps to something

Thursday, September 29th, 2005

I generated an HTML version of a product catalogue and found that the result was very bad due to poor PNG images. To get good PNG images, I had to write some code. Here it is: convertor from eps to other formats.

(more…)

who am I

Wednesday, September 28th, 2005

I’ve prepared a mini-bio for a possible DDJ article:

Oleg Paraschenko is a PhD student in the Saint-Petersburg State University, Russia, and a freelance developer in the area of technical documentation. His main research interests are XML technologies and generative programming. In spare time he supports xmlhack.ru, a server for Russian-speaking XML community.

gdb hint for debugging libxml

Wednesday, September 7th, 2005

From a letter to the libxml mailing list. Probably it’s well known, but I’d like to share useful gdb settings. From my ~/.gdbinit:

(more…)

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.