Tuesday, February 22, 2011

No Gnus v0.13 is released

No Gnus v0.13 is released

It seems to depend on EIEIO ("Enhanced Implementation of Emacs Interpreted Objects"), a new CLOS implementation; apparently EIEIO must get installed manually.
EIEIO in turn is part of CEDET ("Collection of Emacs Development Environment Tools").

Monday, February 21, 2011

movie: Unknown (2011) - IMDb

Unknown (2011) - IMDb

The location of the thriller is Berlin; the main characters are played by Liam Neeson and Diane Kruger.

The way from the Adlon hotel to the Tegel airport does not go through Oberbaumbrücke, where the car dumps into the rive – but then: who minds this?

RVM: Ruby Version Manager

http://rvm.io (!!! worth having a look there for the most up-to-date installation procedure !!!)

Allows you to work very well with more than one ruby installation, just like App::perlbrew for perl.

The rvm command is implemented through a lot of bash functions.

The PragProg ruby3 and the jruby book both talk about rvm, and it looks, as if rvm is really quite helpful, if  you deal with more than one ruby interpreter.

I installed rvm locally on an openSUSE-11.3 system and also remotely (git-based), and also on Mac OS X 10.6.6 (not git-based (yet)).

Update 2011-02-22:
Output from my $HOME/.bashrc disturbed the smooth execution of rvm, I had to remove that output (although I really liked that).

Update 2011-07-15 – how to upgrade:
$ rvm get stable
$ rvm reload
$ rvm list known
$ rvm list
$ rvm install jruby-1.6.99999
$ rvm install ruby-1.9.99999
rvm all do gem install xml-simple
$ …


Update 2012-01-… – trouble with "get head"!!!
$ rvm get head # looks broken, avoid it for the time being!
This really caused me a lot of grief and fear.

$ rvm get stable # better for me

Update 2013-09-30
(Nowadays) before running rvm, you need to run some initialisation code:
source $HOME/.rvm/scripts/rvm

Wednesday, February 16, 2011

installing Chromium snapshots

snapshots on build.chromium.org

Execute the provided $CHROMIUM_INSTALL_DIR/chrome-wrapper instead of the binary executable, it will create necessary symlinks to system libraries.

After unpacking the zipped snapshot file on my openSUSE Linux system, privileges were wrong:
files and directories were only readable, writable, and executable for the owner, which was root;

As a very quick solution I made "myself" the owner :
$ chown -R myself $CHROMIUM_INSTALL_DIR

Of course there are better solutions than this, e.g. like this one:
$ cd $CHROMIUM_INSTALL_DIR
$ chmod -R a+r .
$ find . | while read f; do ! test -L "$f" && test -x "$f" && chmod --changes a+x "$f"; done

Thursday, February 10, 2011

xpdf: Error (...): Missing 'endstream'

There are a few PDF documents around here, that I can read with Acrobat Reader w/o problems, but xpdf and its companions moan. I guess, that's because they got modified and a little destroyed using Acrobat X Pro.

I used pdftk to get rid of that problem: first output/uncompress, than output/compress again:

$ pdftk x.pdf output \
    x.uncompressed.pdf uncompress
$ pdftk x.uncompressed.pdf output \
    x.recompressed.pdf compress

Tuesday, February 8, 2011

"pdftohtml" vs. DRM

A project of mine involves extracting strings and other details from PDF files using "pdftohtml -xml".

A plain "pdftohtml -xml" refuses to read PDF files with set copy-protection bits set. But if you add "-nodrm" on the command line, it reads them anyway, but it mentions the problem on STDERR.

Monday, February 7, 2011

XSLT Questions and Answers - FAQ.

XSLT Questions and Answers - FAQ.

very nice, very helpful!!

helped me to create "<![CDATA[…]]" into XML output, which isn't trivial to do.

Sunday, January 30, 2011

Wednesday, January 26, 2011

my Adium Skype problem

When I try to let Adium connect to my Skype account, it says this after a while:
skype (Skype): Error
Could not connect to Skype process.
Skype not running?
I searched the web for this text, and I found the solution on adiumxtras.com.
Within Skype under Account -> Manage API Clients, I have to check,  that Adium is "Allowed to use Skype". That was certainly checked before, and my combination of Adium and Skype was rather useful and in use for a couple of weeks, but I guess, my attempted upgrade to Skype-5 changed that. I am curious, whether Adium also works with Skype-5. (But I still don't like the Skype-5's huge profile icons.)

Wednesday, January 12, 2011

.properties - Java's Property Resource Bundles

.properties - Wikipedia, the free encyclopedia

  • For Western Europeans it's quite comfortable to be able to edit .properties files in ISO-8859-1 aka Latin-1.
  • The 1st German .properties file, that I came across, was actually written using '\u00HH' for the German umlauts, with HH being the hexadecimal digits of the Latin-1 encoding of the character.
    I looked up the Wikipedia article on Unicode, and I learned that this is a perfectly legal encoding of the Latin-1 character set, i.e. the 1st 256 characters of Latin-1 and Unicode (resp. its "BMP") are the same.
  • ...

Wednesday, January 5, 2011

how to burst a PDF document into single pages (etc.)

This command line shows, how to get the output files named your way:

$ pdftk … burst output 'page.%02d.pdf'

Split Select Pages from Multiple PDFs into a New Document:

$ pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf


Select a single page into a new document:

$ pdftk A=one.pdf cat A130 output one.p130.pdf


Please find more information (like examples, man page, …) on pdftk here!

Monday, January 3, 2011

.DS_Store - Wikipedia, the free encyclopedia

.DS_Store - Wikipedia, the free encyclopedia


From www.greci.cc:
By default, MacOS X will create a .DS_Store file in every folder it accesses, while this is ok in OS X it may be annoying for network shares. To prevent the creation of .DS_Store files on network volumes execute this from a Terminal:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Sunday, January 2, 2011

XSLT - O'Reilly Media

XSLT, Second Edition - O'Reilly Media
From this text book I got to Saxon9.

The SAXON XSLT and XQuery Processor

The SAXON XSLT and XQuery Processor

Downloaded Saxon-HE from the above URL on my Linux box, decided to go for the Java variant, installed saxonhe.jar and "the resources" into /usr/local/saxon-resources9-3.

I wasn't able to browse the documentation below saxon-resources9-3/doc with Chrome-10, so I use Firefox-3.6 for that.
But I also read the documentation here.

This is from "Getting started with Saxon on the Java platform", adapted for my Unix-like platform:
$ java -cp /usr/local/saxon-resources9-3/saxon9he.jar net.sf.saxon.Query -t '-qs:current-date()'
Well, no error messages. I like that. Looks like I got all preconditions fulfilled.
More command lines tries from there:


$ cd /usr/local/saxon-resources9-3

$ java -cp /usr/local/saxon-resources9-3/saxon9he.jar net.sf.saxon.Transform -t -s:samples/data/books.xml -xsl:samples/styles/books.xsl -o:$HOME/temp.html

$ java -cp /usr/local/saxon-resources9-3/saxon9he.jar net.sf.saxon.Query -t -s:samples/data/books.xml -q:samples/query/books-to-html.xq > $HOME/temp.html

      


(to be continued)

Martin-Gropius-Bau Berlin: László Moholy-Nagy – Art of Light