CPSCM, how the compiled code looks like
November 2nd, 2010I 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.
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.
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
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:
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.
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:
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:
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:
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?
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.
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:
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.
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“.
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.
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.
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.
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.
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.
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.´´
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.