Wednesday, June 07, 2006

J2ME: Golden bug

I have exactly 13 days to release my company's app (and the other company's app too). After playing around with the look-n-feel, and running it hard to slim down the JAR file size, I finally got to look at the part that reads from the mobile phone's filesystem. At first, the bug's behavior is hardly noticeable underneath all those J2ME midlet permission pop-ups (one for every file listed).

Description:
On most Java MIDP2.0 phones supporting JSR-75 (FileConnection API), the following call should return the directory names requested:
System.getProperty("fileconn.dir.photos")
should return
"file:///c:/pictures/"(or something equivalent applicable to the handset make).
Similarly other getProperty calls to "fileconn.dir.tones", "fileconn.dir.videos", should return ringtones' and videos' respective folders.

On Sony Ericsson's models K750, W800 series and possibly its entire Java Platform 6 family, this call fails—returns nothing basically. The root cause of this was simple:

Cause
“fileconn.dir.xxx” has accidentally been misspelled as “filconn.dir.xxx” in those phones' Java API implementation.

Link here

Many programmers, especially those new to J2ME, spent countless hours of near despair wondering what on earth happened, or did not happen, on that tiny machine. Despair no more!

Tuesday, June 06, 2006

Elsewhere on the blogosphere...

1. 06-06-06: Back to work—good day for me—all tests clear! Evening spent at my company's new office. Not seen anything unusual this day. Besides, in a hundred years, we will get 06-06-06 again!

2. Roundup on Pentecost celebrations
Reflecting on the Holy Spirit's gifts
Some crazy rainbow sashers denied communion: someone distributed the Host to them illegally.

This brings to the point of liturgical practices: I haven't been in the Church long enough to know what proper liturgies should be. My experience of being denied Communion on the tongue (the excuse being to curb the spread of Hand-Foot-Mouth disease—which doesn't happen in Singapore where no cattle grazes) was the furthest extent of my disturbance. Bad taste in music is next, but I will even say sometimes it can be tolerated with a thought to charity.

Some of the hardcore traditionalists like Gerard have either really experienced banal liturgies or are just plain cranky :) One of them suggested that in a traditional Novus Ordo mass or Tridentine Mass everyone would take the Lord reverently (while kneeling, on the tongue) no one would take the Host and break it and give it to those who protest the Church's teachings (and by definition, not in Communion).

Without going into 'liturgy' and definitions, my take on the Mass is that it should be carried out as reverently as possible. Certainly there are times when the Spirit infuse some of our parish members to express themselves more 'joyfully' than others, but Fear of the Lord should always guide liturgists. After all, they do not celebrate liturgies to showcase their 'talents' but also for their fellow parishioners. More often than not, unnecessary embellishment to the Mass (in the name of local culture) rather lessens than magnifies the solemnity given to the occasion.

Our pope BXVI, while a Cardinal, wrote ever so eloquently:

"I am convinced that the crisis in the Church that we are experiencing today is to a large extent due to the disintegration of the liturgy, which at times has even come to be a matter of indifference whether or not God exists and whether or not He speaks to us and hears us. But when the community of faith, the worldwide unity of the living Christ are no longer visible in the liturgy, where else then, is the Church to become visible on her spiritual essence? Then the community is celebrating only itself, an activity that is utterly fruitless."

Sunday, June 04, 2006

Feast of Pentecost

Veni Sanctus Spiritus!
Sine tuo numine,
nihil est in homine,
nihil est innoxium.

After nine days of praying the Novena to the Holy Spirit, Pentecost is finally here! Rejoice!

Mens sana in corpore sano: I'm not fit to write anything this weekend. Wishing all of you a blessed Pentecost and a renewed spirit!

Friday, June 02, 2006

J2ME references

This week I've been grappling at low-level firefighting on the J2ME mobile platform. One of the most frustrating things I encountered is finding similar problem being reported in the various forums, but not the followup!

So here are some reference for those who stumble here through late-night Google search:

For newbies who get frustrated by JSR-135 non-compliant implementation in Nokia phones: theory vs. practice
Mobile Media API Support In Nokia Devices

For those who find their JARs too big / want to 'hide' their code so that codelifters have to work a little harder:
Obfuscators: Proguard, Retroguard, Jode, etc.

For those who want to 'polish' up their clunky app:
J2ME Polish—be warned, there may be some problem using J2ME Polish with Obfuscators!

Update: Will post more on my wrestling match with J2ME-Polish and Proguard later. Down and out for the week.

Wednesday, May 31, 2006

Abuses by priests: Facts and Trends

I found this interesting summary of figures and trends of the sex abuses committed by priests, posted by Gerard of The cafeteria is closed.

Definitely not an apologia for abusing priests, but a great defense of our late Pope JPII-the-Great whenever you meet someone who claims that he "let them happened."

Monday, May 29, 2006

A little slice of love

Disclaimer: a lot of these thoughts are private & personal, I only put some of them here because they are background of a story I think I'd like to give witness to. You have been warned.

These past few weeks in the Easter season, I felt such dry-ness that was never before so apparent. Each day was as bad as the one before: my grandmother came to visit the whole of last week; I still went for masses & confessions. But only part of me seemed to live. Fast forward to Monday (today): another long day of bug-fixing, constantly interrupted with mundane requests to perform yet more fixes that should not come to me because I'm running a tight schedule on another product. It was 21:45, time to go home; I had lost my temper a few times that day and productivity was going down. Another day of half-consciously-lived life.

On the way home I thought, how on earth did this happen? How did I suddenly find myself unable to see, feel, taste, hear or touch the love of God? How was it possible that I can not feel much compassion for pretty much anything? How much longer must You hide Your face? I found myself asking. How much longer must I walk in this shadow? I was afraid my faith would wither and die due to lack of light. (I confess I have said more things more embarrassing than those!)

When I received in my inbox today's commentary of the daily Gospel reading, I was astounded to read this:

“That you may find peace in me”

“Lord, since the days of my youth my mind has sought an I-don’t-know-what with impatient thirst. So what was it, Lord? I still haven’t understood it entirely. It is many years now that I have ardently desired it, and I have not yet been able to grasp it… And yet that is what draws my heart and my soul and without which I cannot settle down in true peace.

Lord, I wanted to find happiness in the creatures of this world, as I saw so many people doing all around me. But the more I sought, the less I found; the closer I got, the further away I was. For everything told me: “I am not what you are seeking.” So is it you, Lord, whom I have sought for so long? Has the attraction of my heart always and constantly been struggling to reach you? Then why did you not show yourself to me? How could you put off this meeting for so long? On how many exhausting paths have I got bogged down? For the person whom you anticipate with so much love, is truly happy, the person whom you do not let rest until he seeks his rest in you alone.
—Blessed Henry Suso (around 1295 – 1366), Dominican
The Book of Eternal Wisdom

Is this walk in the shadow a part of His answer as well? Blessed Henry Suso certainly believed so!

As I arrived home, too tired and preoccupied to prepare dinner, I saw a little box of lapis surabaya (three-layered sponge cake: yellow, brown and yellow) that my mom gave to my grandma to pass to me. Although I don't have a sweet tooth, I recall with some sadness that I would normally refuse to carry lots of food my mom prepared for me whenever I am leaving home. Today this little slice of my mom's love tasted so smooth and sweet, as if it was God's own gracious answer to my plea: indeed, I had a taste of the love of God tonight. Deo gratias!

Saturday, May 27, 2006

Earthquake in Yogyakarta

More than 2,700 people have been reported dead after an earthquake struck Yogyakarta, a densely populated capital of Yogyakarta province, at dawn today. The earthquake's epicenter is close the tumultous volcano Mt. Merapi which has been pouring lava and spouting smokes and debris. One town near Yogyakarta, Bantul, has been flattened. It is feared that this earthquake may increase the activity of the volcano and thus worsen the situation.

News here and here

My friends in Yogyakarta are safe, although there is chaos everywhere because the electricity supply has been cut off. The airport is closed because the runway is cracked. Prayers and help needed. Will post more details on how we can help soon.

UPDATE: links to donate below

Catholic Relief Services is already there; they've been stationed to anticipate the volcanic eruption.

(For those who can read Bahasa) Dana Kemanusiaan Kompas

UPDATE 2:

IDEP Foundation

OS-on-network

The day our PC applications run off the Internet may finally be here! Google now has Dell pre-shipping its softwares on PCs sold to home & SME customers.

Just last Friday, we had an effective 'shutdown' when the company I consult for had their Internet cut off because they forgot about the bills. The few of us in the office literally could do nothing because everything, and I mean everything, is either on the 'Net or needs the 'Net. Already (on Windows) I don't use any app other than Mozilla Firefox, Secure Shell, IM clients (which now can be connected to over a browser) and Office suite.

Friday, May 26, 2006

Awakened from vegetative state

Scientists have managed to rouse a small number of people from a permanent vegetative state using the insomnia drug zolpidem, giving hope to the relatives of those in such a condition.

Original article here:
Sanofi-Aventis’s drug zolpidem wakes patients from a vegetative state.

Methinks there are many more conscious, living & breathing people who needs to be awakened from a spiritual vegetative state! Jokes aside, read the article & what do you think is the catch ;)

Thursday, May 25, 2006

Preparing for Pentecost

Moneybags at A Catholic Life is carrying out a very interesting devotion. Earlier, he promoted the "Saint of the Year" devotion—allowing the saints to pick us for a change—and now he has this devotion:

The creator of that devotion (ed: Saints of the Year) had the brillant idea of starting another devotion where we receive a fruit/gift of the Holy Spirit. With Pentecost approaching, it would be great not just to pray for all the gifts/fruits but to focus on one special one.
...

Traditionally, the twelve fruits of the Holy Spirit are charity, joy, peace, patience, benignity, goodness, long-suffering, mildness, faith, modesty, continency, and chastity. These are human qualities that can be activated by the Holy Spirit. The seven gifts of the Holy Spirit are wisdom, understanding, counsel, fortitude, knowledge, piety, and fear of the Lord. These gifts are supernatural graces given to the soul.

When was the last time you thought about these blessing bestowed upon you? Have some of your "fruits" rotted or dried up? Are your gifts sitting on a shelf, collecting dust?

To commemorate Pentecost, how about asking the Holy Spirit to look inside you, deep inside you and pick out one particular fruit and one particular gift that is unique to you that He wants you to pray about? He may want you to develop this gift and fruit. He may want you to share this gift and fruit. He may want you to be an example of your fruit and gift. Only you and the Holy Spirit will know.
...

Well, Moneybags' friend did draw for me and I'm going to start reflecting on the gift of knowledge and peace. Do check it out, and I pray you may grow ever closer to God.