Wednesday, November 07, 2007

Windows woes (part 2)

I haven't felt this exasperated in many years. I've never banged my head harder than I did tonight trying to install a little application onto a Windows Mobile smartphone device.

"What does every mobile developer ultimately want to do?" Simple question, simple answer: "To get the application to run on the phone". It took me hours of poring through MSDN's documentations and technical articles to find out just HOW exactly to do that.

<RANT ALERT!>

Alphabet Soup
"CAB", "INF", ActiveSync, are some of the terms thrown around liberally in the developers' articles. As if everybody knows what they mean. I don't know what a CAB is, I don't know why only a CAB file can install the app on the phone, and I don't know how do I make a CAB out of my executable. The only reason why I started searching for the keyword "CAB" was because I happened to remember that a year ago, that's what a colleague of mine used to run his Windows Mobile app. Now, if only these three simple questions can be answered in the same article, I think MSFT is justified paying good salaries to their technical writers.

Instead, here I am writing in frustration at 4AM in the morning because the documentation is so fragmented and the information design obfuscated! I really don't want to nitpick, but I'd think that since on-device deployment is a common goal for all developers, creating a CAB project would be a highlighted task/feature in Visual Studio 2005. But no, to create a CAB project, you have to add another project into your existing Project, and on top of that, select it from "Other Project Types"!

Frankly I was impressed the first time I saw the collection of documentation and technical articles available at MSDN website, but very soon it's clear quantity certainly does not trump over quality.

The last hop
Getting the app to the device, after a frustrating battle to generate a CAB file, was jumping through another set of hoops. 'Impressive' was my first reaction when I saw how many delivery mechanisms Windows Mobile support for the app installation: SMS/Email/Cab Installer/ActiveSync/Push SMS, you name it. After another wild goose chase trying to find out what is ActiveSync, and whether it ships with the SDK, and whether I really need to install it, it took another half hour to figure out what is the best way of getting the device 'online' and getting it to access the CAB file.

Needless to say, I did manage to install the app and that's why I am writing this now. But the tears of blood may not be worth it.

Tuesday, November 06, 2007

Some tech updates

This blog hits 10,000 visits yesterday! I can't remember when the site traffic meter was first put in, perhaps some 2 years ago, but still... it's a reminder of how long it's been here, since August 2003!

On other news, I've got an announcement that in the tech world may be seen as nothing short of an apostasy: I started developing software on Microsoft .NET! *Gasp* *Choke* Well, to be fair I had evaluated all my choices and it came down to economics. So a potential client came up to us and asked us to do a Windows Mobile client job. The price was good and we said yes.

So I spent the last few days trying to install the various Microsoft animals that are required to get the IDE and the SDK up and running. Let me write here briefly what I had to do (just in case I ever need to do this again... I sure hope I don't have to!)

  1. Install Visual Studio 2005 (15 minutes)
  2. Explore the IDE, find out just what can it do... (20 minutes)
  3. Complete a little application in half hour's time (30 minutes)
  4. Choose the target mobile platform (Smartphone 2003 / PocketPC 2003 / choose your animal) (1 minute)
  5. Build the project, run into a strange error (0.5 minute)
  6. It says .NET 1.1 is required (hmm.. what is that?) (0.5 day gone)
  7. Try to install .NET 1.1 Framework.... run into error! (1 day is gone)
  8. Google search says .NET 1.1 Redistributable Framework needs to be installed
  9. Try to install .NET 1.1 Redistributable framework... run into error! Even worse than before, because it was not a documented known issue (1 day is gone)
  10. Another Google search says that it's a known issue with Vista! (darn.. don't they all come from the same company??!!) and that the workaround is to do the following with .NET 1.1 SP1 (are you telling me .NET Framework needs a Service Pack too???):
    1. Download Microsoft .NET Framework 1.1 Redistributable Package and Microsoft .NET Framework 1.1 Service Pack 1 using links below:
    * Microsoft .NET Framework 1.1 Redistributable Package
    * Microsoft .NET Framework 1.1 Service Pack 1
    2. Save both installations in the same directory
    3. Ensure that the Microsoft .NET Framework 1.1 Redistributable Package is named dotnetfx.exe. If not, change its name to dotnetfx.exe.
    4. Ensure that Microsoft .NET Framework 1.1 Service Pack 1 is named dotnetfxsp1.exe. If not, change its name to dotnetfxsp1.exe.
    5. Open command prompt as Administrator, and change to the directory where the two installations are saved.
    6. Run the following commands using the order shown below
    * dotnetfx.exe /c:"msiexec.exe /a netfx.msi TARGETDIR=C:\dotnet"
    * dotnetfxsp1.exe /Xp:C:\dotnet\netfxsp.msp
    * msiexec.exe /a c:\dotnet\netfx.msi /p c:\dotnet\netfxsp.msp
    7. Install both Microsoft .Net Framework 1.1 and Service Pack 1 by running C:\dotnet\netfx.msi
  11. After a few days of troubleshooting, fully expecting that these animals won't get along, suddenly the same project compiles beautifully! TA-DA!

By this time, I have come to realize that the price quoted was fully justified -- the IDE installation process alone was painful enough. Welcome to Microsoftville *evil cackle*

Sunday, November 04, 2007

Universal widget?

I was not quite convinced when I saw this heading "Universal Widget", but that's what NetVibes claims they were doing with their open widget platform. They claim they support these widget platforms currently:
- netvibes
- Mac dashboard
- iGoogle
- Opera
- Windows Vista
- Windows Live
- (coming soon) Yahoo!

If this is true, it's too good to be true! Prior to making the two widgets, I had deliberated between iGoogle and Yahoo! platforms, because their user demographics seem quite exclusive (non-overlapping). Now it seems it'll be possible to port them for different platforms using similar (if not single), codebase.

Wednesday, October 31, 2007

Communion of saints

For many years, the Communion of saints is a Catholic concept that is probably one of the hardest things to understand for me, a convert. To me, from observing many cradle-Catholic friends of mine, the communion of saints means, roughly, praying to St Anthony for a certain kind of intention, St Jude to another kind of intention, going to novenas, visiting the shrines of our Lady for all sorts of special intentions, etc. What often came to my mind is a picture of old ladies clutching prayer cards and rosaries, and occasionally, physical penance carried out to 'bargain' with the saints for their intercession. Their piety amaze and move me, but really, is it necessary?

I suppose I did not much understand this because my life frankly, has not been one where much bargaining for divine intercession is needed. There were many ups and downs, but I trust that God knows better what's good for us than we do ourselves.

Fast forward to the present day, I share an apartment with a cradle Catholic from the Philippines, and made friends with many other cradle Catholics from traditionally Catholic countries. They expose me to these heretofore alien pious practices. And many intercessions, invocations, devotions, and Marian pilgrimages later, I realize that it has helped me form a habit to pray for other people's intentions and needs. I also realize that means I can ask many more people to pray for my intentions. It is strange for me today if there are nobody's intentions to pray for... and if friends ask me, a lowly member of the Church militant and a sinner, to pray for their intentions, why can't we turn to the saints and holy souls to intercede for us? For the petitions of the just surely carry more merit in heaven...

Through other means I have also 'discovered' the communion of saints. Since I started reading Catholic blogs, there have been so many new acquaintances made, and so many people and intentions to pray for. Two years ago, I found out that one of the twins (of Angry Twins) was about to enter the monastery and began praying for him. And the blogger formerly known as Moneybags, have also entered the seminary this fall. And the blogger who's praying for the safety of a baby in threat of being aborted. And the blogger who's praying that the San Diego fire may not harm a monastery nearby. There are many other examples through which I realize that the communion of saints is so REAL.

Today, for instance, I read a lovely story about Kate's grandfather who recently passed away and whom she remembered especially for his famous butter cinnamon toast. I don't know who Kate is, I don't know who her grandpa is, and I've never eaten cinnamon toast before... but from now on, I'll remember them in prayer whenever I eat cinnamon toast. Isn't the communion of saints beautiful?

Saturday, October 27, 2007

Rosary Widget

For the month of October, my contribution to Our Lady of the Holy Rosary is this little widget (official link here). Similar to the earlier aspirations widget, it is a Yahoo! Widget (not to be confused with widgets for blogs). It was this earlier widget that started a few requests coming my way, one of them is a request for a rosary widget as a prayer aid.

A few months after the request, I finally took a few hours on a Friday night to do it. Actually the real reason was because I had been home-bound and desk-bound for the last few days and personally had trouble concentrating in the praying of the rosary, which I normally say whilst travelling. Also, I keep giving away my rosaries to people around me, that it's time to use an electronic aid...


To start, simply click on the red beads. It will scroll through the prayers (no going back though!) and display a counter of Hail Mary's said.

Some features:

- Option to turn ON/OFF the illustration images
- Option to say mystery of the day (default) or your choice of mystery
- Option to switch between English & Latin

I've submitted this widget for public download at Yahoo! Widgets Gallery and it's still now under review. (I will update this post and the link when it goes live.) In the meanwhile, if you trust that I'm not going to run some malicious code on your machine, you can also download it here (UPDATE: link refreshed). If it helps you to pray better, it's enough reward! Feedback welcome.

UPDATE: I found an article that talks about how powerful praying the rosary is. It's not the only example, but it's good to remember especially if we slip into remission. Spread the rosary!

UPDATE #2: The widget now is ready for download from Yahoo! site. The link is here

Monday, October 22, 2007

Formula One 2007 season concludes

One of my favorite sports (well, sports to watch) is Formula One motor racing, which I started watching since 1998. It's mesmerizing at a glance, and upon learning further about the sports, one gains respect for its intricacy. A hundredth of a second may tip the balance towards victory, or defeat. It's one of the sports that combines precision engineering, performance calibration, strategy, teamwork and individual (the racer's) gumption. What's not to like about the sports?

Well, for one, this year has been a scandal-ridden one for McLaren-Mercedes (now renamed "Vodafone McLaren Mercedes"), from accusation of corporate espionage, to multiple possibilities of rules infringement such as using two sets of wet tyres and running on fuel with temperature higher than allowed. The stars of this sports don't seem to be as colorful as those of, say, soccer. Not that they are above bickering, or sometimes, less than honorable deeds like blocking a rival. But still...


This year's Drivers' Championship is won by Kimi Räikkönen, one of my favorite drivers since his days at McLaren, by just one point! What a race Interlagos was... he started the race as a Championship contender in third position. In brief, Alonso and rookie McLaren driver Lewis Hamilton tied for 2nd and 3rd at 109 points each, with Kimi at 110. More about this year's season here.

Thursday, October 11, 2007

Finding "God-spot" in our brains

This article amuses me to no end... some scientists are trying to 'map God' into regions of the human brain. What's amusing to me are: (1) how they try to see what's happening in the brains of several Buddhists as well as Carmelite and Franciscan nuns as they meditate / pray (or tried to pray, given that they are lying prone in an MRI scanner with electric caps attached to their heads), (2) how they explain 'away' the sensation of divine presence (and in the Buddhist cases, one-ness with the universe feeling), and then ironically, (3) how they would like to reproduce the apparent benefits associated with the practice of prayers in other (presumably non-praying) people by 'firing' on some regions of the brain to activate the 'God experience': "If you know how to electrically or neurochemically change functions in the brain, then you [might] in principle be able to help normal people, not mystics, achieve spiritual states using a device that stimulates the brain electromagnetically or using lights and sounds."

The conclusion seems a little disappointing to the scientists in this study, though not unexpected:

"There is no single God spot, localized uniquely in the temporal lobe of the human brain," Beauregard (ed: a neuroscientist) concludes. "These states are mediated by a neural network that is well distributed throughout the brain."

This is an interesting comment, although a little inconsistent, given that they did indeed volunteer themselves to this 'silly' study:

Although Beauregard had hoped the nuns would experience a mystical union while in the scanner, the best they could do, it turned out, was to conjure up an emotionally powerful memory of union with God. "God can’t be summoned at will," explained Sister Diane, the prioress of the Carmelite convent in Montreal.

To be fair, the article also mentioned that there are significant physical differences in certain areas of the brains amongst those who pray. The 'benefits' noted include alleviation of stress and sadness, as well as a slight reversal of the usual process of aging of the brain, which are still tangible benefits for anyone else who do not pray.

The reporter concludes thus:

[No] matter what neural correlates scientists may find, the results cannot prove or disprove the existence of God. Although atheists might argue that finding spirituality in the brain implies that religion is nothing more than divine delusion, the nuns were thrilled by their brain scans for precisely the opposite reason: they seemed to provide confirmation of God’s interactions with them. After all, finding a cerebral source for spiritual experiences could serve equally well to identify the medium through which God reaches out to humanity. Thus, the nuns’ forays into the tubular brain scanner did not undermine their faith. On the contrary, the science gave them an even greater reason to believe.

Read the rest here.

Wednesday, October 10, 2007

Uber Dorky Nerd Queen

One of those timesinks that I can't resist taking today... (h/t to Fr Erik)

NerdTests.com says I'm an Uber-Dorky Nerd Queen.  What are you?  Click here!

Looks like I need to work on the lit thingy and get a life..

PS: This is a 2.0 version of the earlier quiz

Saturday, September 29, 2007

Tiny miracle

25 week old baby weighing 10oz delivered in Hanover, Germany. She survived against all odds and have been allowed to go home after six months. While not the youngest case recorded, it's the smallest preemie baby I've seen! More here.

It's sad that in many places, Singapore is one of them, the limit for legal abortion is 24 weeks, when it is clearly, obviously, already a baby. (Yeah, it's already a baby since conception, but you can't say that 25-week-old Kimberley Mueller was a blob of tissue.)

Wednesday, September 26, 2007

I believe in Love

If I should ever find myself in doubt and darkness, I shall read again this short but profound reflection on Mercy, drawing from the writings of St Therese of Lisieux, St Paul and the life of Our Lord as written in the Gospels.

The good God would not inspire unattainable desires; I can, then, in spite of my littleness, aspire to sanctity.—St Therese of Lisieux

This page is taken from the 2nd chapter of a personal retreat volume "I Believe in Love" by a French priest, Rev. Jean C. J. d'Elbeé, who wrote it based on St. Therese's 'teaching about confident love'. It may not be unfamiliar to most, but encountering it at this point of my life is nothing less than a caress, an oasis in the desert.

A sampler is here:

I am not telling you, "You believe too much in your own wretchedness." We are much more wretched than we ever realize. But I am telling you, "You do not believe enough in merciful love."

We must have confidence, not in spite of our miseries, but because of them, since it is misery which attracts mercy.

Oh, this word, mercy — misericordia — "miseris cor dare," a heart which gives itself to the miserable, a Heart which nourishes itself on miseries by consuming them. Meditate on this word.

St. Thomas says that "to have mercy belongs to the nature of God, and it is in this that His omnipotence manifests itself in the highest degree."

Little Thérèse perceived this when she wrote these lines which complete and crown her manuscript: "Yes, I sense that even if I had on my conscience all the sins which can be committed, I would go, my heart broken, to repent and throw myself into the arms of Jesus, for I know how much He cherishes the prodigal child who returns to Him. It is not because the dear Lord in His provident mercy has preserved my soul from mortal sin that I am lifted up to Him by confidence and love."

Again, shortly before her death, speaking to Mother Agnes, she said, "You may truly say that if I had committed all possible crimes, I would still have the same confidence; I would feel that this multitude of offenses would be like a drop of water thrown into a flaming furnace." All possible crimes, a multitude of offenses, a drop of water in an immense furnace: that is the proportion.