Monday, December 17, 2007

Could Not Open Default Font 'Fixed' - Linux

This is a #@%$^ of a problem; I fix it every time and forgets the fix; so its time to blog it.

Fix is as simple as creating a symlink to /usr/share/fonts/X11/ as /usr/share/X11/fonts, ie, from command prompt do

ln -s /usr/share/fonts/X11/ /usr/share/X11/fonts

Sunday, December 16, 2007

A cool example of MVC Pattern

MVC (Model-View-Controller) can be bit confusing for some. I like to demonstrate same using a simple example here.

Open my resume [not my latest, if you interested in my latest resume here it is :-)] in any xml-friendly browser such as Firefox and see how the XML is rendered.

1. The xml file is the Model in this case; which contains structured data.
2. The resume.xsl is the Controller which translates this xml to HTML, the View, which gets rendered in the browser user interface.

Note that the Model is not coupled with View and Controller is the binder of the Model to the View.

I am well fed with these !!