CPSCM, how the compiled code looks like

November 2nd, 2010

I spent time understanding the result of CPSCM conversion from Scheme to Scheme and JavaScript backends. Notes are here: http://github.com/olpa/cpscm/blob/master/doc/driving-functions.

xata2010 paper and presentation

October 21st, 2010

Finally, uploaded my XATA 2010 (XML: Aplicações e Tecnologias Associadas) things:

* The paper XML to paper publishing with manual intervention
* The MetaPost source of the workflow image in the paper: workflow-image.tar.gz
* Slides of the talk

retiring a wordpress blog

October 19th, 2010

I wanted to retire a WordPress-based site, converting everything to static HTML. My first idea was to mirror the site with wget (or any other web downloader), but I decided to search if a better solution was available. Not found, but instead a ready wget recipe was found: How to retire a Wordpress blog (make Wordpress a static site). My addition:

Read the rest of this entry »

Fritz und Fertig (= and Chesster) works in Wine under Mac OS X

October 19th, 2010

Frintz and Fertig (english version: “Learn to Play Chess with Fritz and Chesster”, russian: “Большое шахматное путешеÑ?твие”) is a great children game. I found it works stable under Wine.

Read the rest of this entry »

UnsupportedClassVersionError workaround hack

October 13th, 2010

I tried to run an “iText toolbox” tool but got:

Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/lowagie/toolbox/Toolbox (Unsupported major.minor version 49.0)

In the target environment, upgrade of Java is out of question. Therefore, I had a choice:

Read the rest of this entry »

scheme as a virtual machine - II

October 4th, 2010

Closing a TODO, I’ve filtered the list of Scheme implementations to find candidates for experimenting with using Scheme as a VM. The winners are:

Read the rest of this entry »

r5rs scheme as a virtual machine - I

September 28th, 2010

Some time ago I advocated that the programming language Scheme is a new portable assembler. We can code something in Scheme and then compile it to PHP or Python. Now I want to try this idea. First, an explanation why Scheme:

Read the rest of this entry »

python wtf: strip() eats too much

June 1st, 2010

Many of python-xml code is probably wrong. Tracing a bug, I found an interesting WTF. A minimal example:

import string
s1 =  "\xa0x\xa0"
s2 = u"\xa0x\xa0"
print repr(s1.strip())
print repr(s2.strip())
print repr(s2.strip(string.whitespace))

And what we see in the output?

Read the rest of this entry »

running TeX tools from non-standard locations

April 28th, 2010

In some configurations (for example, when using MacTeX), if you copy a TeX-related binary to non-standard location, the tool stops working. More precisely, if a tool uses kpathsea library, special setup is required. More practically, is you compile something like dvisvgm, it might not work.

Read the rest of this entry »

finding deleted files in a subversion repository

April 26th, 2010

I needed file which was deleted some time ago. Thanks to Subversion, the task is easy as long as you remember the name of the file. Unfortunately, it wasn’t a case. Fortunately, I found a magic spell. In the directory where the file was located, say: svn log –verbose, and the output will contain all the names and the revisions.

XML to paper publishing with manual intervention

April 15th, 2010

My paper “XML to paper publishing with manual intervention” is accepted for XATA 2010 (XML: Aplicações e Tecnologias Associadas), 19 and 20 May, Vila do Conde, Portugal. Abstract:

Read the rest of this entry »

unicode math in xelatex

March 26th, 2010

In XeTeX, an unicode version of TeX, it’s logical to use unicode math. However, till now (march 2010) unicode math publishing doesn’t work directly out of the box. Here are two solutions, one is fast (and not so wrong) and one is probably the future standard.

Read the rest of this entry »

entering special characters in vim

March 10th, 2010

Time to time, I forget it. Found again in some wiki: “Entering special characters“. In short: ^Vnnn or ^Vxnn. Note also: “how to input diacritic characters“.

converting sourceforge.net repository from CVS to subversion

March 9th, 2010

Probably there is no need to switch from CVS to subversion, but I’m starting to forget the options of the cvs command, therefore decided to migrate. Unfortunately, there is no button “convert” on the site, therefore I had to find how to do it manually.

Read the rest of this entry »

setting up a local macports repository

February 12th, 2010

Many OSes have port systems, Mac OS X has too. Macports provides a lot of useful software, but not all. If a software can’t be in the macports for some reason (for example, the software isn’t intended for public), one has to setup a local macports repository.

Read the rest of this entry »

TeXML is not at XML Prague 2010

February 12th, 2010

To my great surprise, TeXML presentation was not accepted for XML Prague 2010. It’s so unexpected, that I’m even not upset, only puzzled. TeXML is one of a few projects which are somehow revolutionary. Seems it’s my fault I didn’t make it clear. The abstract, the reviews and conclusions follow.

Read the rest of this entry »

chess diagrams on A6 cards using LaTeX - 2/2

December 4th, 2009

In the first part I wrote: “put to a template in your favourite text processor”. Attached is a template (class-file) for LaTeX and an example, the explanations are below.

Read the rest of this entry »

chess diagrams on A6 cards using LaTeX - 1/2

November 27th, 2009

As a part of improvement in chess, it is often recommended to analyze positions. The idea is good, but how to find time to do it? One option is to use otherwise unproductive time: walking, in bus, queues etc. I have printed positions with me, and always can analyze something.

Read the rest of this entry »

TexML and unicode characters for math operators

November 25th, 2009

Bug (?) report: “after switching from LaTeX(pdflatex) to XeTeX(xelatex) as the PDF generator something has ceased to work. Mathematical operators given as unicode characters in math formulas do not show up in the final document.´´

Read the rest of this entry »

running Fritz&Fertig (eng: Fritz and Chesster) in the parental control mode (Mac OS X)

September 24th, 2009

I purchased “Fritz und Fertig: Schach lernen und trainieren (”Fritz and Chesster: learn to play chess“, other languages also available). My opinion is simple: it’s a masterpiece and the best ever computer game for children.

Unfortunately, I got technical problems. Fortunately, solved them.

Read the rest of this entry »