Friday, March 26, 2010

my CV or Resume in XML

Until not too long ago I had kept my CV in DocBook, then I converted it to XMLRésumé (but the project really looks dead nowadays), now I am converting it to HR-XML/Resume. Yes, I know, its project admin just recently declared this SourceForge project as inactive. But then, what alternatives are there?
Of course, I want to edit HR-XML files in emacs using a RELAX-G grammar, but I didn't find any on the web. Well, that's not really a huge problem. Take a few nice sample files (of any XML), stuff them into trang, and trang creates a RELAX-NG grammar from them. Of course, that kind of grammar is far from perfect, but it's better than nothing, and you can always improve it manually, that's not that hard. That way I created a RELAX-NG "compact grammar" for HR-XML/Resume last night.
The grammar created actually has problems with  InternetWebAddress and Competency, but I was able to fix that for my personal use.
HR-XSL comes with a nice "XMLRésumé -> HR-XML/Resume" converter, that way my old XMLRésumé CV got converted into a good initial version for HR-XML/Resume. HR-XSL uses DocBook for creating HTML and PDF, but there is also a "DocBook -> RTF" converter, that I want to make use of.

Thursday, March 25, 2010

perl's pattern matching enhanced by "named capture buffers"

python has long had it: symbolic groups. They allow you to refer to a substring matched by a symbolic group name: "(?P<id>)", id in this case. Now perl has drawn equal: "(?<id>)" does the same job, and the feature is called named capture buffers. Read it up in the perlre manual page or online here! Basically the pieces go to "%+", i.e. a hash array by the name of "+". 

Thursday, March 4, 2010

Eclipse Pydev: refactoring

What Pydev (will be inserted a little later, promised) calls Refactoring is quite a nice toy, but not too reliable.
I tried "Rename...", and it does not rename keyword parameter usages.
I tried to use "Inline Local..." on an attribute getter, and it simply fell on its nose shouting "Could not translate editor coordinates into source node".
Not really good enough for professional usage, not too bad for Open Source. Quite a good starter at least.

Wednesday, March 3, 2010


My mate at work pointed me to a techie article with this core phrase: "if it works,don't fix it!" aka IIWDFI.