Wednesday, March 31, 2010

Be thankful this time

SCO's case against Novell concerning the copyright of Unix related to Linux is finally dead. I never considered it as having any merit, but decisions defying logic could certainly happen in a court. We should all be thankful that is not the case this time.

It has been a test on how well the open-source model can stand against people's urge to keep all profit to themselves. The whole saga should make people think twice before trying to profit at other's expense: just because a certain way of business makes it difficult for everyone to keep profit all to himself, it still doesn't mean everyone would treat the model as an enemy.

I'm not as a staunch cheerleader for FOSS as Steven J. Vaughan-Nichols is, but I'm certainly a strong supporter of it. The whole open-source way happens to bring out the best of us social animals in my opinion - everyone else benefits when you prosper, when doing it right. This makes less useful for our instinct to exploit and fight others to preserve our own genes, because the goal for your own benefit is aligned with others' welfare, and that makes us less animal and more... human, shall we say?

in reference to:

"Novell Wins! SCO Loses!"
- Novell Wins! SCO Loses! - Computerworld Blogs (view on Google Sidewiki)

Monday, March 8, 2010

Migrating Ubuntu ... no sweat

Here's how I moved a Jaunty installation from one computer to another. The old one is Core 2 Quad Q6600 on LANParty DK X38-T2R. The new one has Core 2 Quad Q9550 running on Gigabyte GA-EP45-UD3P. Different memory and drive configuration. The only thing shared was a pair of HD4670. I just moved the drive containing the root partition to the new computer, booted Live CD, and did the following under grub:
root (hd2,1)
setup (hd2)

Done. Reboot, select the drive to boot from, and I was back in my old Jaunty desktop. Could it BE any easier? It actually could, if I hadn't install grub on another boot drive in the old computer. I wouldn't have even needed the grub reinstall. True plug-n-play.

Could anyone imagine the pain if I were to try moving a Win 7 installation?

By the way, the only thing that caused a bit trouble was the RAID volume (Intel Matrix Storage based) on the new computer. After the grub reinstall, one of the RAID drive got dropped so the volume became degraded. GRUB shouln't touch the drive or anything related to the volume, so what the heck? Luckily the Win7 installation on the volume did survive so I was able to rebuild it, but not without complications.
I'll have another post on my frustration on this Intel fake RAID junk.

Friday, March 5, 2010

The annoying "Save error: Unable to perform save on all files" from Force.com IDE

Sometimes Force.com IDE would throw such generic error when trying to save to the server, the error mentioned is "An unexpected error has occurred".  Right, that's helpful... The Log Viewer will have "Save failed!(Open log file for full message and/or stacktrace" and I never found a good way to "open log file" other than checking the debug log from the Web UI (Admin Setup > Monitoring > Debug logs).  Mostly I found the error is the result of using field values without including them in a query, or a failed System.assert call.  Why couldn't the IDE just say so?  There are a host of other things that may cause this too, which makes debugging a pain.