The Elephant (象)

I will bear criticism like an elephant in battle bears an arrow from a bow. Most people are bad behaviour. (戦場の象が、射られた矢にあたっても堪え忍ぶように、われらはひとのそしりを忍ぼう。多くの人は実に性質(たち)が悪いからである。)

One can take a trained elephant even into a crowd. The king himself will ride a trained elephant. He who is disciplined is the best of men, since he can bear criticism. (馴らされた象は、戦場にも連れて行かれ、王の乗りものとなる。世のそしりを忍び、自らをおさめた者は、人々の中にあっても最上の者である。)

Trained mules are excellent, and so are thoroughbred horses from the Sindh, and so are great battle elephants, but more excellent than them all is a disciplined man. (馴らされた騾馬は良い。インダス河のほとりの血統よき馬も良い。クンジャラという名の大きな象も良い。しかし自己をととのえた人はそれらよりもすぐれている。)

There is no reaching the unattainable with mounts like these, but with himself well under control a disciplined man can get there. (何となれば、これらの乗物によっては未到の地(ニルヴァーナ)に行くことはできない。そこへは、慎しみある人が、おのれ自らをよくととのえておもむく。)

Dhammapalo, the elephant, is hard to control in rut. Even when tied up, he refuses his food. The great tusker is thinking of the elephant forest. (「財を守る者」という名の象は、発情期にこめかみから液汁をしたたらせて強暴になっているときは、いかんとも制し難い。捕らえられると、一口の食物も食べない。象は象の林を慕っている。)

Then a man is a lie-abed and over-eats, a lazy person who wallows in sleep like a great over-fed hog, a fool like that will be reborn time after time. (大食いをして、眠りをこのみ、ころげまわって寝て、まどろんでいる愚鈍な人は、大きな豚のように糧を食べて肥り、くりかえし母胎に入って(迷いの生存をつづける)。)

My mind used formerly to go off wandering wherever it felt like, following its own inclination, but today I shall control it carefully, like a mahout does a rutting elephant. (この心は、以前には、望むがままに、欲するがままに、快きがままに、さすらっていた。今やわたくしはその心をすっかり抑制しよう、___象使いが鉤をもって、発情期に狂う象を全くおさえつけるように。)

Take pleasure in being careful. Guard your mind well. Extricate yourself from the mire, like a great tusker sunk in the mud. (つとめはげむのを楽しめ。おのれの心を護れ。自己を難処から救い出せ。___泥沼に落ち込んだ象のように。)

If you find an intelligent companion, a wise and well-behaved person going the same way as yourself, then go along with him, overcoming all dangers, pleased at heart and mindful. (もしも思慮深く聡明でまじめな生活をしている人を伴侶として共に歩むことができるならば、あらゆる危険困難に打ち克って、こころ喜び、念いをおちつけて、ともに歩め。)

But if you do not find an intelligent companion, a wise and well-behaved person going the same way as yourself, then go on your way alone, like a king abandoning a conquered kingdom, or like a great elephant in the deep forest. (しかし、もしも思慮深く聡明でまじめな生活をしている人を伴侶として共に歩むことができないならば、国を捨てた国王のように、また林の中の象のように、ひとり歩め。)

It is better to travel alone. There is no companionship with a fool. Go on your way alone and commit no evil, without cares like a great elephant in the deep forest. (愚かな者を道伴れとするな。独りで行くほうがよい。孤独(ひとり)で歩め。悪いことをするな。求めるところは少なくあれ。___林の中にいる象のように。)

It is good to have companions when occasion arises, and it is good to be contented with whatever comes. Merit is good at the close of life, and the elimination of all suffering is good. (事がおこったときに、友だちのあるのは楽しい。(大きかろうとも、小さかろうとも)、どんなことにでも満足するのは楽しい。善いことをしておけば、命の終るときに楽しい。(悪いことをしなかったので)、あらゆる苦しみ(の報い)を除くことは楽しい。)

Good is filial devotion to one’s mother in the world, and devotion to one’s father is good. It is good to be a sanyasi in the world and to be a brahmin too. (世に母を敬うことは楽しい。また父を敬うことは楽しい。世に修行者を敬うことは楽しい。世にバラモンを敬うことは楽しい。)

Good is good behaviour up to old age, good is firmly established faith, good is the acquisition of understanding, and abstention from evil is good. (老いた日に至るまで戒しめをたもつことは楽しい。信仰が確立していることは楽しい。明らかな知慧を体得することは楽しい。もろもろの悪事をなさないことは楽しい。)

English translation by John Richards.
Japanese translation by 中村元 (NAKAMURA Hajime)

Werkzeug 0.1 released – WSGI toolbox

Armin Ronacher has released Werkzeug 0.1 a little while ago. As the website for Werkzeug says: “Werkzeug is a collection of various utilities for WSGI applications. It features request and response objects as well as a powerful url dispatcher and a debugging system.”

I have it on my todo list to convert my current CherryPy environment to Werkzeug as a proof of concept and see which one of the two I prefer and will ultimately use for my Japanese-Dutch dictionary project.

Office 2007 Proofing and Input Method Editors (IME)

So I have been toying with the proofing tools and input method editors (IME) from Office 2007. The issue with the single language packs is that you cannot just group the entire stuff together.

Also trying to run the MSIs from the individual directories for the proofing tools or the IMEs greets you with an ‘Error 1713′. On the other hand, if you run the MSI from the command prompt and passing along LAUNCHEDBYSETUPEXE=1 as an argument it will install. Curious.

Python’s sys.stdout loses encoding

When you use Python with sys.stdout you might run into a problem where sys.stdout.encoding suddenly becomes None. This happens due to the fact that upon using a pipe or redirection, at least under Unix, it falls back to not knowing anything about the target. In order to work around this you can add a fallback to use locale.getpreferredencoding(). So if you use encode() on a string you can do something like:

from locale import getpreferredencoding
text = u"Something special"
print text.encode(sys.stdout.encoding or getpreferredencoding() or 'ascii', 'replace')

This is how we currently use it within Babel as well for printing the locale list.

Opera files anti-trust claim with the European Union against Microsoft

An acquaintance of mine who works for Opera forwarded me a link to an Opera press release today. In this press release we find that yesterday, Wednesday the 12th, 2007, Opera filed an anti-trust claim with the European Union against Microsoft. In this claim Opera describes:

“[...] how Microsoft is abusing its dominant position by tying its browser, Internet Explorer, to the Windows operating system and by hindering interoperability by not following accepted Web standards. Opera has requested the Commission to take the necessary actions to compel Microsoft to give consumers a real choice and to support open Web standards in Internet Explorer.”

“Opera requests the Commission to implement two remedies to Microsoft’s abusive actions. First, it requests the Commission to obligate Microsoft to unbundle Internet Explorer from Windows and/or carry alternative browsers pre-installed on the desktop. Second, it asks the European Commission to require Microsoft to follow fundamental and open Web standards accepted by the Web-authoring communities. The complaint calls on Microsoft to adhere to its own public pronouncements to support these standards, instead of stifling them with its notorious “Embrace, Extend and Extinguish” strategy. Microsoft’s unilateral control over standards in some markets creates a de facto standard that is more costly to support, harder to maintain, and technologically inferior and that can even expose users to security risks.”

The funny thing is that Apple bundles Safari with Mac OS X and no one complains about that. I think that’s mainly because the Apple guys are working hard to ensure it supports the standards well. So from the two points above in the Opera press release I find the requirement for Microsoft to follow the standards the most important.

Internet Explorer 8, oh the joy

Over at the IE blog Dean Hachamovitch talked about how the new Internet Explorer will be called IE8.


Yes, I am as amazed as you about this. I mean, who would have figured that after IE6 and IE7 we would get an IE8? Yes, I am being sarcastic.

Of course we can only hope they will finally ditch their proprietary muck and start supporting CSS 2.1 better. Heck, maybe we can even see some MathML support. Because in related and definitely more exciting news Opera’s 9.5 beta gained MathML support. It is not fully implemented yet, but they’re actively asking people to provide results. I am secretly wishing for a web developer uprising that will enforce websites using standards and limit the workaround hacks.