Gandhi’s Truth

I finished “Gandhi’s Truth: On The Origins of Militant Nonviolence” this morning. I won’t try to summarize what Erik Erikson wrote over 450 pages, but here are a couple quotes I found worth remembering:

… I must reduce myself to zero. So long as a man does not of his own free will put himself last mong his fellow creatures, there is no salvation for him. Ahimsa is the farthest limit of humility.” [pg 59]

… I will not forget the consternation which I caused in some of Gandhi’s odl friends when I asked them to stand up and show me how tall he was as compared with them. It became clear that, while in fact small, he seemed immeasurable. The passing of such a pervasive light leaves the dark even darker and the once-enlightened suddenly forlorn. For the numinous person has the strange power to make the participant feel part of him and yet also feel augmented in himself; and both of these augmentations are apt to wane when the great moment is over.” [pg 63]

Heinrich Zimmer summarizes the meaning of dharma as: “The correct manner of dealing with every life problem that arises, therefore, is indicated by the laws (dharma) of the caste (varna) to which one belongs, and of the particular stage of life (asrama) that is proper to one’s age. One is not free to choose; one belongs to a species — a family, guild, and craft, a group, a denomination. And since this circumstance not only determines to the last detail the regulations for one’s public and private conduct, but also represents (according to this all inclusive and pervasive, unyielding pattern of integration) the real ideal of one’s present natural character, one’s concern as a judging and acting entity must be only to meet every life problem in a manner befitting the role one plays…” [pg 75-76]

.. In all of Gandhi’s utterances … two themes stood out, new in the independence movement: never start what you have not clearly circumscribed in your own mind or what you are not ready to suffer for to the very end.” [pg 89]

In regards to the desire Gandhi had to be untainted and unsmudged: “Mere character could be, as it were, a cold chimney, nothing more than an encasement. A fireplace is not worth more than the fire it can hold and warmth it can generate; and a man like Gandhi, I would surmise, early knew that he had to contain a superior energy of destructive, as well as benevolent, forces..” [pg 101]

On the difference between Indians and Westerners: “… the very qualities of Indians count for defects in South Africa. The Indians are disliked in South Africa for their simplicity, patience, perseverance, frugality, and otherworldliness. Westerners are enterprising, impatient, engrossed in multiplying their material wants and in satisfying them, fond of good cheer, anxious to save physical labor and prodigal in habits.” [pg 190]

An illuminating quote in relation to the chaos that enveloped Baghdad in the days following the initial US occupation: “The point is that excess and riot follow repression and suppression when the moral restraints are lifted, precisely because of the autocratic and blind nature of those restraints…. nonviolence, inward and outward, can become a true force only where ethics replaces moralism. And ethics, to me, is marked by an insightful assent to human values, whereas moralism is blind obedience; and ethics is transmitted with informed persuasion, rather than enforced with with absolute interdicts.” [pg 251]

On our identities, who we are: “For membership in a nation, in a class, or in a caste is one of those elements of an individual’s identity which at the very minimum comprise what one is never not, as does membership in one of the two sexes or in a given race. What one is never not establishes the life space within which one may hope to become uniquely and affirmatively what one is — and then to transcend that uniqueness by way of a more inclusive humanity.” [pg 266]

Nokia 3650

Russell posted an extra long description of why he wants the Nokia 3650 on Mobitopia. This phone seems to be the next ‘big one’, Jeremy Allaire’s got one as well… It’s got everything my phone has, plus video recording, plus camera, plus memory expandability, plus Java MIDP 1.0, plus Symbian. By the way, my phone, the Sony Ericsson T68i, don’t bother, it gets absolutely horrible reception (either that or T-Mobile sucks). It drops just about every call I’m on, I frequently miss calls and I frequently have no service. Not happy about that at all. Maybe I can convince the wife that I need a 3650 as well.

In some sense I guess I’m getting what I deserve: I dropped Sprint after 2.5 years of great service for a phone that had all the gizmos, only to find out that the one thing I really want to do on the phone is uh… make phone calls.

HTTP Testing Tools

After Ray mentioned the CFUnit Testing Components from the DRK today in our development meeting, we got around to talking about automated testing of websites. David mentioned httpunit as one option (you can see a couple examples of how it might be used here). Looks like Cactus might also be an option, althought it appears to be Java specific and aimed more at the testing of the components of a website (EJBs, Taglibs, Servlets) rather than the end result (HTML). Does anyone have any experience with these tools? Do you use other tools?

CFX_LUCENE

I mentioned Lindex (described as a “… high performance, full-featured text search engine that allows developers to create document collections for easy indexing and quick searching” two days ago. After inspecting it a bit further, it looks like it offers an interface for developers to create and maintain Lucene indexes using ColdFusion (and I’m guessing allows them to search indexes as well), which is a nice feature.. I’d love to see it.

Anyway, inspired by Lindex, tonight I hacked together a Java CFX tag that closely mimics the the <cfsearch> tag using Lucene as the search engine. You can download the Java source here [ update 11/04/2003: Nick Burch from torchbox.com sent me an updated version that “behaves better under error conditions and … the command line debug now works“, thanks Nick!, clicking on the ‘lucene.java’ link above will download the updated version ].

To compile it, you’ll have to add both the cfx.jar file (usually in \CFusionMX\lib\cfx.jar) and the lucene.jar (get yours here) file to your classpath manually or specify them at compile time. If you’re compiling from the command line, it might look something like this:

$ javac -classpath c:\cfusionmx\lib\cfx.jar;c:\lucene\lucene.jar lucene.java

After you compile the class, you’ll need to

a) copy it to a directory that ColdFusion is aware of (ie: /cfide/administrator/ –> Java and JVM –> Class Path)

b) add the lucene.jar to the Class Path mentioned in ‘a’

c) register the CFX in the ColdFusion Administrator (/cfide/administrator/ –> Extensions –> CFX Tags. Click on ‘Register Java CFX’. The tag name should be ‘cfx_lucene’, the class name should be ‘lucene’.

d) restart CFMX.

e) and finally, create a .cfm page and add this script:

<cfx_lucene
  query=”r_query”
  indexName=”C:\hosts\cephas.net\wwwroot\blog\index”
  startIndex=”1″
  maxPage=”10″
  queryString=”java”>

The above script presumes that you have a Lucene index already created in the directory ‘C:\hosts\cephas.net\wwwroot\blog\index’, is looking for the keyword ‘java’, and will return a ColdFusion query object to the template with the columns ‘title’, ‘url’, and ‘summary’.

To see the results, you can dump the CFDUMP tag:

<cfdump var=”#r_query#”>

Caveat: It’s 1:42amEST so I’ve done no testing on it and it has no interface (like I’m sure Lindex does). Use at your own risk. If you do use it, please keep my name/email in the source somewhere and remember to thank Joe for the idea. Enjoy!

Now with 50% less caffeine!