Friday, June 16, 2006

Corpus Christi Mass times

The Corpus Christi feast triduum begins this evening at the Cathedral:

Friday: Jesus, God of Love
Mass at 19:00, P&W at 18:30 and Adoration and 'General Healing' at 20:00

Saturday: Jesus, The Savior
Mass at 18:30, P&W at 19:30 and Adoration & healing at 20:00

Sunday: Jesus, The Giver of Life
Mass at 08:00, 10:00 (with Adoration & healing), 18:00 (with Procession).

Another consortium for Linux on Mobile

Several big names have decided to join forces to promote Linux for mobiles. Motorola, NEC, Panasonic Mobile Communications and Samsung Electronics, as well as two mobile operators, NTT DoCoMo and Vodafone, announce an independent effort to build Linux platform for mobiles.

This announcement seems like a duplication of efforts; this is not the first consortium ('Linux Phone Standards Forum' and the 'Mobile Linux Initiative') and Linux-based systems were already running on 14% of smart phones (Symbian is leading at 75%, and Windows Mobile holds 5%). This multiple consolidation seems to reflect that Linux on mobile has the same problem as Linux on PC; many contributors, many levels and points of consolidation, and many stakeholders.

While the Good News™ is yet to come for a developer, it is yet another hopeful sign that most of the code written for a particular Linux kernel will run on other hardwares running the same branch.

News here, here and here.

Corpus Christi at the Cathedral

I've been wanting to post this and invite everyone, everytime I saw the notice on the Cathedral door after weekday mass.

This year, the Cathedral of the Good Shepherd celebrates its 160th year, on the Feast of Corpus Christi. A triduum of healing (as all masses are!) Masses is planned from Friday evening until Sunday, and this Sunday's evening Mass will have Eucharistic Procession. There is also food fair all day.

I forgot the exact times, will post again with more precise information. Don't miss this... we can never have enough of eucharistic adoration!

Wednesday, June 14, 2006

Feast: Memorial of St Anthony of Padua (13 June)

St Anthony of Padua is one of the saints I am probably named after. (The circumstances of my baptism were somewhat unusual; I didn't know which St Anthony is my namesake)

Born in Lisbon, Portugal, St Anthony lived an extraordinary life for such a short period of 36 years. He first joined the Augustinian Order and then left it and joined the Franciscan Order in 1221, inspired by the first Franciscan martyrs who died in Morocco, Africa. On the way to Morocco however, he fell seriously ill and was shipped back, first to Sicily, and then later to Padua. Some excerpt from catholic.org:

He is called the “hammer of the Heretics”. His great protection against their lies and deceits in the matter of Christian doctrine was to utter, simply and innocently, the Holy Name of Mary. When St. Anthony of Padua found he was preaching the true Gospel of the Catholic Church to heretics who would not listen to him, he then went out and preached it to the fishes. He is typically depicted with a book and the Infant Child Jesus, to whom He miraculously appeared, and is commonly referred to today as the "finder of lost articles." Upon exhumation, some 336 years after his death, his body was found to be corrupted, yet his tongue was totally incorrupt, so perfect were the teachings that had been formed upon it.

St Anthony was declared a saint less than a year after his death. He was declared a Doctor of the Church in 1946. His memorial is celebrated on June 13th.

St Anthony, pray for us, inspired by your example, that we may become as loving, humble, prayerful, faithful and zealous witness that you were.

Tuesday, June 13, 2006

J2ME Bug: mapped SoftKey values

Description: In some Motorola handsets, J2ME application running Canvas does not seem to respond when the left, middle or right soft key is pressed.

Affects: Motorola V3, V3x, SLVR L6 (only tested on these)

Workaround: In your code, expect the values of left, middle, and right soft key press to be -21, -23, -22, instead of the original 21, 23, 22.

In J2ME Polish, change the affected devices specification in devices.xml to have these extra capability parameters as described here.

Monday, June 12, 2006

Unexpected joy

The house where I stay is crazy about soccer. The landlady subscribed to cable TV just to watch World Cup matches. So tonight I arrived home when half of Japan-Australia first match was over, with Japan leading 1-0. Not understanding the point of soccer, I read a book next to three excited girls glued to the TV set, and blurted a memorable line:

Girls, where's the ad?

When the match seemed to almost end with a Japan win, you could see anxiety grew in the Australian fans' faces. But the Australian team itself didn't seem fazed at all. In fact, they scored three goals in the last six minutes. Isn't it fantastic, a team that looked like it's a goner (they didn't score a single goal in the last 32 years), rose from the dead to victory?

(What happened aferwards was interesting; because my friend emphatizes too much with any losing team and accused me of not sympathizing with her 'side'. But that's for another topic of "What can happen to you if you are not allowed to express joy when your team wins")

The only thing I 'like' about soccer is that determined seeking to score goals and that earnest joy when they are beget. Another thing is that, this is a game that gives both teams a chance to win til the very last minute, the very last second. What an unexpected joy it is to see hope born!

Kinda remind me that for grace is like that; it comes in the least expected moments and for some people, it literally snatches them from the jaws of Hell moments before death... like this lucky creature here.

 

UPDATE: My friend Vergel writes a classy commentary live for the World Cup series. You can read his writings on your cellphone by downloading this free mobile application here.

Saturday, June 10, 2006

God's eye candy today

While strolling outside a church's meeting room today, I saw a tree with beautiful leaves. I don't know what it's called, but it sure made my day! How great He is who made them!

 

PS: Picture quality was degraded due to MMS size limitation (original resolution: 1280x960, reduced to 640x480)

Ultimate weight-loss activity

I bought a little drawer set made of wooden frames and cardboard boxes this morning, in an effort to combat mess. When I came back tonight from the Choice reflection day, I sat down to assemble its parts together.

Being the eldest daughter in a family with no sons, I grew up as my dad's assistant handyman. I guess I'm out of practice, because I'm totally drained and my arms are still shaking after taming the imperfect holes with wooden plugs and screwdrivers and L-wrench. Some pictures to entertain the idle visitor: (Sorry, no picture of the parts before assembly!)

This is the trickiest part: putting together the drawer handles!
 

For anyone who wants to burn serious calories to lose weight: purchase a small furniture from IKEA, assemble it yourself, feel the hunger in your rumbling tummy and enjoy! My thumbs are now bright-red. Hope this little baby brings order to my room. Have a good weekend.

Friday, June 09, 2006

J2ME Polish: obfuscator bug

This bug has been the bane of my life for the past few weeks. To a non-IT person (that's a lot of you and I, before my company started), it might have seemed strange to want to obfuscate anything!

The American Heritage® Dictionary defines obfuscate as:
1. To make so confused or opaque as to be difficult to perceive or understand
2. To render indistinct or dim; darken

For people who gets irked when their code gets lifted, obfuscation can be done on their codebase. In J2ME, obfuscation helps to reduce the final JAR size by eliminating classes which have been declared but never referenced, at the same time renaming classes to one-letter or two-letter names, thus 'obfuscating' it for the code thief. It is a nearly standard practice, and I would like to document my little tête-à-tête (or a wrestle?) for others whose search take them here.

Description: J2ME Polish v1.2.4 seems to have a problem obfuscating code which contains the javax.microedition.media.Manager class.

Should we abandon Polish? What if your codebase has grown dependent on Polish? What if, worse, you've fallen in love with Polish' elegant UI? Both were true for me. So here's what I did:

1. Don't obfuscate
No go. I absolutely need two library JARs, one for floating-point-decoding operation (33KB), the other for xml parsing (kxml2-min.jar—18KB). Total JAR size was 295KB. Costs a bomb to download OTA. How can we ever hope anyone would download it to their phone?

2. Manually prune my code & optimize images
Eclipse helps me to see what methods and variables are not being used. I also renamed packages, methods, variables and packages to use shorter names while trying to remember their mnemonics! Basically, all the 'good programming practices' taught in school have to be thrown out of the window when it comes to making lean codes for mobile phones. I only have two 1-KB image files. My effort reduced the JAR size to 188KB.

3. Attempt to implement my UI using Canvas
This took me two days: euphoria and dypshoria took turns when it worked smoothly on Nokia 6230i and then I realized I might have to provision customization for every single phone model!

4. Attempt to fix it
I suspected this bug might be due to two JAR files used by J2ME Polish containing the Manager class in the same package javax.microedition.media. So I bravely combined the two JAR files and replaced the Manager class in Polish' JAR files with the original Sun Wireless Toolkit's. Didn't work.

5. Use Proguard's parameters in J2ME Polish
I tried introducing some parameters "-dontskipnonpubliclibraryclasses", "-dontusemixedcaseclassnames" and "-keep" on the Manager class, in the obfuscator element of the build.xml file. Didn't get past step one, because it requires me to overwrite a Polish obfuscator class.

6. Upgrade to J2ME Polish v1.3-beta4
Not only this version doesn't solve the problem, it introduces new bugs for the function Display.setCurrent(Alert, Displayable)

7. Use alternative obfuscators
Jode, or Retroguard both didn't work with v1.2.4 and v1.3-beta4.

8. Upgrade to ProGuard v3.4 or v3.6
Didn't work. These two versions are not backward-compatible with the calls that Polish v1.2.4 make.

9. Finally, (THIS WORKED!) Obfuscate outside J2ME Polish
I compiled the JARs in Polish for some fifty phone models without obfuscation. Open them using other Wireless Toolkits (Sun's, Siemens' or Sony Ericssons'), attach the source and the library JARs independently, rebuild with obfuscation (Proguard v3.2—same version as what Polish uses)! Smooth as butter. Extra patience required.

RESULT: Final JAR sizes are between 95KB to 106KB (depending on device models).

Talk about dismantling the whole building just to fix a little plumbing problem. What one wouldn't do for something one loves... Hope this helps, folks!

Thursday, June 08, 2006

Pentecost & Holy Trinity

As Trinity Sunday approaches, the Church reflects on unity of the 'visible'—aspiring after the ultimate unity of the Holy Trinity. In last night's prayer meeting we discussed how sometimes it is hard to see unity, harder still to promote it! Today I found the Pope's homily at Vespers, on the eve of Pentecost. What a wonderful teacher we have in him! Read it for yourself, and may you grow in the love of our Triune God!