*** MOVED ***

NOTE: I have merged the contents of this blog with my web-site. I will not be updating this blog any more.

2007-05-26

Indic Scripts and Linux

If you have the fonts for Indic scripts (for example, the Lohit fonts), Firefox on Linux is able to display the Devanagari text on sites like BBC Hindi and Google News in Hindi. (Devanagari is the primary writing system for languages like Hindi, Sanskrit, etc.) However, if you are using the builds released by mozilla.com, you would notice that the matras (diacritics) are not applied properly to form the correct ligatures. For example, the word "हिन्दी" ("Hindi") itself is not rendered properly. Konqueror does not suffer from such problems.

It turns out that Firefox does not support complex text layout because it doesn't use Pango in the officially-released builds (Firefox 3 will support it by default). You have to either compile it yourself from the source and enable the support for Pango by using --enable-pango, or use a build that has Pango enabled - for example, the builds provided by the Fedora Project. (Setting the environment variable MOZ_ENABLE_PANGO to "1" had no effect for me with Firefox 2.0.0.3.)

On Fedora Core 6 (FC6), it is very simple to get this working:
  1. Install the fonts for the Indic scripts you are interested in. For example, "sudo yum install fonts-hindi" , "sudo yum install fonts-malayalam", "sudo yum install fonts-kannada", etc.
  2. Install a Firefox build for Fedora using "sudo yum install firefox". Note that FC6 installs Firefox 1.5 by default - if you prefer Firefox 2.0 instead, you can install it using "sudo yum --enablerepo=development install firefox".


By the way, I recently came across Omniglot, a site about the writing systems of almost all known human languages, existing or extinct, naturally-evolved or artificially-created. I found it extremely fascinating and insightful. For example, I did not know that Devanagari was not considered to be an "alphabet" but an "abiguda". Check out the International Phonetic Alphabet (IPA) that can represent almost all spoken languages. How about Loglan (and its freer derivative, Lojban) that claims to be a "logical" language? (I first came across the IPA on Wikipedia, where it is used to provide the pronunciation for some terms. xkcd is where I first read about Lojban.)

2007-05-23

ICFP Contest 2007

The 10th ICFP Contest is scheduled for the weekend of 20th July 2007. I hope it turns out to be as fun as the one held last year.

There is already a blog written by one of the organisers that contains some teaser puzzles. (Do these images use some form of steganography or can we simply work out the graphical transformations applied to the original image and apply them in reverse to obtain the desired image? I wonder.)

"Superstition Reigns"

"Superstition Reigns" by Rahul Singh, published in The Times of India today:
"Amitabh Bachchan, an icon for tens of millions of Indians, makes his daughter-in-law [Aishwarya Rai] perform outlandish ceremonies because she is supposedly under the evil influence of Mars. Politicians routinely consult astrologers before taking important decisions, despite abundant proof that astrology is no science at all, just quackery. Horoscopes continue to be cast in most families and palmists consulted. A newly-inducted cabinet minister insists that her bungalow be completely redesigned because it does not follow vaastu principles, a system nobody had heard of till only a few years ago."

Superstition in all its ugly forms is sickeningly pervasive in India, even among educated people who ought to know better. We waste a lot of time and money and unnecessarily make life difficult for ourselves as well as others, all in the name of something that doesn't withstand rational scrutiny.

2007-05-19

Firefox 3 and Linux

Mike Connor blogs about the proposed requirements for Firefox 3 to run on Linux. A nasty surprise for me was the inclusion of GNOME as a dependency. While the GTK/Pango/Cairo/etc. requirements are quite understandable, I don't understand why it should need GNOME. Many of us are happy with KDE or Xfce and would like to avoid the bloat and the dependency hell of GNOME for the sake of running a browser.

As an aside, Firefox on Linux also seems to behave quite differently from Firefox on Windows. For example, on Linux Firefox seems to consistently consume more CPU time and memory than on Windows. Some pages are rendered differently on Windows and Linux (perhaps due to the availability, or otherwise, of the fonts requested by the page designer and the rendering infrastructure). I have personally also noticed bug-337093 on Windows but not on Linux.

2007-05-14

VU3RDD Gets $2.56 From Donald Knuth

VU3RDD (a.k.a. Ramakrishnan Muthukrishnan) recently received a cheque for $2.56 from Donald Knuth as a reward for spotting a mistake in TAoCP Volume 2. Among the people I have met, he is the first such person. Congratulations!

Mohan Embar

I met Mohan Embar this weekend. He used to maintain the Windows port of GCJ. It was nice to finally be able to associate a face and a voice with the name, since our interaction so far had only been over email. He turned out to be much thinner, more soft-spoken and more boyish than I had imagined.

I think I ended up asking him a bit too much about how he managed to remain a freelance programmer for so long, that too in Milwaukee, since it is something that interests (as well as scares) me.

2007-05-09

Wayanad

The Labour Day holiday last Tuesday, combined with a day's leave off work on Monday, offered us a four day long weekend that Anusha and I used for a mini vacation in Wayanad in Kerala.

A couple of Anusha's friends, along with their spouses, also joined us on this trip. We drove from Bangalore to Wayanad via Mysore, Nanjangud, Gundlupet and Sultan Battery, taking SH-17 and NH-212 and passing through the Bandipur wildlife sanctuary. The roads were quite good in general and the road from Bangalore to Mysore was excellent in particular. We covered the distance in about 5.5 hours, including a couple of short breaks. We stayed in Edakkal Hermitage, a resort quite close to the Edakkal Caves.

Pre-historic Carvings of the Edakkal Caves

Kerala is one of the most beautiful states in India. Even for someone from a generally green city like Bangalore, the lush and pervasive greenery of Kerala is an exhilarating change. As with The Tall Trees Resorts in Munnar that we had visited earlier, the cottages of Edakkal Hermitage were located on the quiet slopes of a mountain in a way that allows one to soak in the beauty of nature in relative privacy while affording a fantastic view of the valley below. The two resorts were also very similar in the amazing service provided by the respective staff and the delicious food that were served by them.

Our Cottage

On the first day, after having refreshed ourselves and having had lunch at the resort, we drove down to the Pookote Lake. This lake turned out to be a disappointment. It was small, filthy and full of tourists. We didn't stay there long, moving on to a view-point and then returning to our resort. Later in the evening, we had our dinner in a cave in the resort that was beautifully lit by more than a hundred candles.

The next morning, we visited the Edakkal Caves and admired the pre-historic carvings on the walls of the caves. The climb to the caves is a bit difficult and is not everyone's cup of tea. Three of our party, including me, wanted to climb further up the mountain and on to the summit, while the others preferred to stay back on a landing waiting for us to come back. We kept climbing up till we reached a rock-face that was a bit steep. There was a single rope for support and not many footholds. Not being experienced climbers and only having our ordinary shoes for support, we chickened out. We tried to find an alternate route to the summit and turned back on not finding any. I regret this now and wish I had mustered the courage.

Our only consolation was spotting a huge butterfly on the way back. It was the biggest butterfly I had ever seen and must have been about 20 to 25 centimetres (8 to 10 inches) across. We were able to get very close to the butterfly and even touch it - it just moved its wings and continued to sit on its tree.

The Butterfly

Tired from our trek, Anusha and I chose to relax in our cottage that afternoon while the rest of the party drove to the Suchipara waterfalls. In the evening we had our dinner in an amphitheatre in the resort.

The next morning we went for a safari through the Muthanga wildlife sanctuary. The safari was utterly disappointing for the most part with not many animals in sight (as has been our luck on all such occasions), when it suddenly turned rather interesting towards the end. Our way was blocked by a herd of at least seven elephants, one of which was a baby elephant. The driver of the Jeep was evidently quite scared and was ready to scoot at the slightest hint of trouble. Retreating was a bit difficult since the path was rather narrow (you had to either retreat in reverse gear or find a clearing large enough to turn the Jeep around) and there were other Jeeps behind us. We had to wait for about half an hour before the herd moved away and we could proceed. Other than the elephants, we were able to spot a Malabar Squirrel, different types of deer, langurs and peacocks.

The Elephants

That afternoon we headed back to Bangalore, regretting that we could not stay longer and dreading the plunge back into the daily grind of our lives.