Suse Linux 10.1

June 17th, 2006
This month’s edition of Linux For You comes with Suse Linux 10.1 DVD. Going by the encouraging review in the magazine i tried this distro and was impressed by it right from the word go. Novell has packaged this very well. Most of the Linux distro installations these days are really trouble-free, so is Suse. Suse’s installer is newbie-friendly. It hides all the bugging details beneath the expert menus and does a neat setup in default configuration mode. One thing which impressed me was the post-installation configuration. After installing the packages from the DVD, it configures the Internet, tests it by fetching the latest release notes from Novell’s site and then it prompts for updating installed packages. On choosing this upgrade option it auto detects its package server, shows the list of upgradable packages, installs them and then optionally deletes the downloaded patches, leaving a clean updated system. Switching from FC2 i find a lot of interesting and new stuff to be explored in Suse 10.1, especially KDE 3.5
Trivia - In tribute to 42, SUSE Linux 10.1 was released on 11th May 2006 and dedicated to Douglas Adams on his fifth death anniversary.

Vim tabs

May 22nd, 2006
Recently stable version of vim 7.0 was released. TabPage is one of the notable feature additions in Vim 7.0. In the earlier versions tabs could have been (sort of) simulated using buffers. Now we can explicitly create tabs and have multiple windows within them.

Some vim settings that i have done to make tabbed vimming more convenient (firefox-ish):-

1. Clicking on a file should open it in existing gvim but in a new tab
For this i have created a batch file in which gvim is invoked with –remote-tab-silent option ( gvim –remote-tab-silent %1 ). Then i have associated the text files which were previously bound to open with gvim to be opened using this batch file.

2. Creating new tab using Ctrl-t
Added following mapping to the vimrc file –
map :tabnew

In vim we can shift tabs using [tabnumber]gt and in gvim we can also use the more familiar Ctrl-[pageUp/pageDown] shortcuts by default.

To know more about Vim’s tabpage feature check out the documentation at http://www.polarfox.com/vim/manual/v70/tabpage.html or :help tabpage from within vim.
A good review of some cool features introduced in vim 7.0 http://bhaskarvk.info/vim70-review-00.html

Some memorable events of my recent trips

May 14th, 2006

Goa
drive to anjuna beach
little Vagator
saturday Night bazaar
shopkeeper wanting to kiss shobith aka karate kid
yummy Crabs
dancing Dolphins
Gokarna
just about managing to board the Bus
Power & Avs: Bus nahi mili kaa…
Cool waters of gokarna, kudlu, Om & paradise beaches
Dandeli
(Pfunk)TiKu & Bappi: Now or Never
traveling on top of Gule Irfan
river Rafting
Night forest trek — spotting Tigers and lots of flying Squirels and night Jars

TiddlyWiki - wiki journal

May 2nd, 2006
This is a very nice way to provide the power of wiki to a journal.

Main advanatages of a wiki:-

  1. Very easy to create and edit content
  2. Neednot worry about the html syntax
  3. Interlinking the articles in like punctuating words
One major disadvantage of a wiki is that it expects us to learn new conventions for formating and linking texts. If one is already familiar with html, this is a bit irritating untill one gets used to the new wiki conventions.

Some interesting features of TiddlyWiki:-

  1. It is purely html and javascript based, so works on any browser, best on firefox.
  2. It doesnot depend on any server technology
  3. All the content is in one html page
Some journal specific features of TiddlyWiki:-
  1. One click creation of new date stamp titled journal entry
  2. Generates xml feeds
  3. Allows tagging of entries ( here an entry is called a tiddler )
  4. Searching of tiddlers, including regex search capabilities
  5. Though it is non-linear, it gives a timeline view
Related links:-
  1. Tiddly wiki site
  2. TiddlyWikiTutorial
  3. EmptyPage from which you can start building your own wiki. No other download required.

Paying respect to the Legend…

April 13th, 2006
In the wake of demise of Dr Rajkumar, fondly known as Annavaru, i would like to remember the great soul. There is no exageration when we say that Raj was the greatest thing to happen for Kannada film industry. He acted in over 200 films showcasing his acting and singing prowess. People who had gathered in lakhs over the last couple of days to pay homage to the departed soul, speaks of his popularity among his fans, whom he used to refer to as “Abhimani Devarugalu”.
Some of the reasons for his popularity among Kannadigas:-
  • Only kannada. Though we got many offers to act in non-kannada films, he stuck to his stand of acting only in kannada films. He also played his part in Gokak Cheluvali, started to uplift the kannada language.
  • No politics. With the kind of fan following he had in karnataka, any person would have been tempted to join politics, float a party etc.. But Annavaru didnot succumb to this temptation. His justification for not joining politics was that, in politics one has to divide and rule, pit against others etc., these things were not of Raj’s liking.
  • Upheld Middle-Class values in his movies and real life. As Dr Ananth Murthy noted on TV yesterday, Dr Raj’s movies used to showcase the middle-class values like respecting your parents and elders, love for children etc.
  • Actor-Singer duo. Apart from being a great actor, Annavaru was also a great singer. It is really rare to find a leading actor also being a leading singer of a film industry.
  • Modest soul. When Raj was offered Karnataka Ratna award he refused to accept the honor ahead of Kuvempu, the great Kannada author. This speaks of Dr Raj’s modesty.
Though he was educated only till 3rd Std, he cherished some great values, which are worth emulating.
Some of the honors that were conferred to him:-
  • Dadha Saheb palke award
  • Padhmabushan
  • Karnataka Ratna
  • Honorary Doctrate from Mysore university
  • Many National, State and Filmfare awards for best actor and singer
All this said, it is true that there are people who question his contribution to the society. There are many ways in which one can contribute to the society. You can do it the Sir M Vishweshvarayya way by striving for people by his services, or the Narayana Murthy way by improving the economic strata of the society or the Dr Rajkumar way by inspiring people to develop good values, raising social awareness, demonstrating his strong will, determination, modesty etc.

Its really sad to see people engaged in violent activities on the demise of this great hero. There is no justification in turning their grief into violence and causing damage to public property and lives of others.

Read more about Raj at http://en.wikipedia.org/wiki/Rajkumar

PS: Most of the comments made in this post may be reflecting opinions expressed on TV over the last couple of days.

Motorola V3

February 25th, 2006
Today I bought a Motorola RAZRV3. It is sleek, solid and looks great.
Some enviable features of Moto V3 –
  • 2.2 inch 176 x 220 pixel 64K color TFT display
  • Sleek metallic body
  • Feather touch keypad
  • Weight: 95 grams
  • External color display
  • Polyphonic speaker with MP3 ringer support
  • Bluetooth enabled
There are lots of other phones which have better features ( like extendable memory, better camera ) and priced less than the Motorola V3. But these are no way close to the superlative design of Moto V3. It just rocks…

When people put their brains and heart while designing a product it is sure to sell.

This is very well justified in the case of iPod. iPod is prefered over other cheaper and feature-rich mp3-players because of its design aesthetics and highly intutive user interface. Motorola seems to have finally learnt the importance of intuitive user interface.

PS: I hope phone manufacturers will stop naming their models using weird 4-digit numbers, and instead have some simple names.

Firefox Keyboard Shortcuts

February 25th, 2006

http://www.mozilla.org/support/firefox/keyboard has a list of Keyboard shortcuts for Firefox. It gives shortcuts for Linux, Mac OS X and Windows users of Firefox. It also lists the corresponding shortcuts for Opera and Internet Explorer, provided they have the corresponding feature.
Some very useful ones among them…

  • Previous tab - Ctl PageUp
  • Next tab - Ctl PageDown
  • Location Bar - Ctl L
  • Open Addr in new tab - Alt Enter
  • Web Search - Ctl K

vim file-explorer

February 10th, 2006
VIM has always been my favourite text editor. As a programmer, i enjoy the power it gives me through features like regular expression search, word completion, beautiful highlighting, auto indentation, macro definitions, system shell interface etc. vim being a command prompt tool, all these features come at the cost of getting used to some key combinations. Some people feel it is not worth to break ones head in remembering some *weird* key strokes to do things as simple as editing a text file. Such people prefer using graphical editors like kate, which also provide some of these good features in an easy to use menu option or through an intuitive shortcut. And if you are a java programmer it is always an advantage to use IDEs like eclipse or netbeans which come bundled with tons of features like object browser, method completion, syntax checker, exhaustive code formatter, debugger etc. But we all know the amount of resources these powerfull IDEs require to provide all these flashy features. But the command line tools like vim are the only hope when you are required to connect to a remote m/c through telnet or ssh and are devoid of the luxuries of graphical user interfaces. Having said all that, i still appreciate GUI tools and so i use the Gvim - a more convinient version of vim, for text-editing and eclipse for java programming. This way i can always remain in a familiar environment whether it is a local desktop or a remote ssh session.

Being forced to use MS windows at work, i hate to find my explorer going for a toss every now and then for reasons beyond my comprehension. So i tried out some replacements like servant salamander but ended up using by favourite text editor also as a file browser. VIM has a very useful *file-explorer* plugin which can be used for browsing or exploring directories or files. This file-explorer plugin comes in the default vim installation. This is lauched when you open a directory in vim or by pressing :E in vim. If you are using Gvim then you can even click on the names of the files to open them. There is a preview option in which it splits the window and displays the contents of the selected file in the newly created buffer. This is particularly useful when you are trying to look at the contents of a bunch of text files. To realise the utility of this embedded vim file-explorer think of a case when you have a directory containing 100s of text files and you have to search for certain file names and examine their contents. With vim you can do a simple regular expression search for the file name in that directory, preview its contents and then move on to next matching file name. Doing the same thing using the windows explorer and an external editor is quite a task.

Some basic vimrc options to customise the *file-explorer* behaviour:-

let g:explVertical=1 ” Split vertically
let g:explSplitRight=1    ” Put new window to the right of the explorer

To get the complete list of options type :help file-explorer in vim. Similar documentation can also be found at http://www.vim.org/htmldoc/pi_expl.html

PS: I have avoided mentioning emacs - “the extensible, customizable, self-documenting real-time display editor”, because i found it too complex to handle.

The Cathedral and the Bazaar

January 29th, 2006
I recently read “The Cathedral and the Bazaar“. I liked the way Eric Raymond has effectively discussed the two models of s/w development or evolution which he aptly calls Cathedral and Bazaar models. In this essay Eric uses his own project fetchmail to substantiate how the Bazaar model of s/w development is much supperior to the Cathedral model. He also discusses about the things that need to be done to get an open source project off the blocks. I like his style of putting things accross.

Some comments and extracts from this revolutionary essay

  • Given enough eyeballs all bugs are shallow. He dubs this as Linus’s Law
  • Every good work of s/w starts by scratching a developers itch
  • Good programers know what to write, great ones know what to rewrite and reuse
  • Plan to throw one away, you will anyhow — Brooks. This essay frequently refers to the theories of Brooks discussed in his book The Mythical ManMonth. Eric very cleverly explains how the Linux’s successful model of development doesnot contradict some of Brook’s theory.
  • If you want to get it right be ready to start over atleast once.
  • If you have right attitude interesting things will find you
  • When you lose interest in a program your last duty towards it is to hand it over to a competent person
  • Treating users as co-developers is the most hassle free route to rapid code development & effective debugging
  • He discusses 2 tier model of development i) Cathedral mode core ii) Bazzar mode toolbox. Examples of such projects are Emacs, MATLAB
  • Release early, release often and listen to your customers
  • He explains the theory of Knowledge of Masses. Averaged opinion of a mass of equally expert (or equally ignorant) observers is quite a bit more reliable a predictor than the opinion of a single randomly-chosen one of the observers. –Delphi’s law
  • More users find more bugs
  • Make distinction between stable & cutting edge versions by the version number
  • He talks about advantages of having source-aware beta testers.
  • Adding more men to a late project makes it latter.– Brook’s Law. The Bazaar model doesnot violate Brook’s law because it usually has a small core group of developers
  • Smart data structures and dumb code works a lot better than the other way around. This one is analogous to Brook’s observation
  • If you treat your beta-testers as if they’re your most valuable resource, they will respond by becoming your most valuable resource.
  • The next best thing to having good ideas is recognizing good ideas from your users. Sometimes the latter is better
  • Often, the most striking and innovative solutions come from realizing that your concept of the problem was wrong.
  • Perfection (in design) is achieved not when there is nothing more to add, but rather when there is nothing more to take away.
  • Exploration essentially by diffusion, followed by exploitation mediated by a scalable communication mechanism :- is applicable to s/w world aswell
  • When your language is nowhere near Turing-complete, syntactic sugar can be your friend.
  • A security system is only as secure as its secret. Beware of pseudo-secrets
  • For Bazaar model to work well you should start from something & should be able to attract people
  • He also talks about Egoless Programming - developers not being territorial about their code
  • For the success of bazaar model “Severe effort of many converging wills” is required and not “principle of command”.
  • More heads are better than one, if the coordinator is good and the communication medium is powerful like the internet
  • In closed commercial s/w development, people have to be motivated to do boring but necessary drudgework. Very True…
  • A happy programmer is one who is neither underutilized nor weighed down with ill-formulated goals and stressful process friction. Hope my manager looks at this :-)
  • Enjoyment predicts efficiency
  • Play is the most economically efficient way of creative work.
  • Open source is not magic pixie dust

India Rocks

January 27th, 2006
I justed watched a program on CNN-IBN called India Rocks. It showcased some of the famous and upcoming music bands of India. Going by the theme of Republic Day all the songs which were aired were patriotic. This program was a bit hatke. Every song that was telecast was interlaced with the members of the band talking about the inspiration for the song and expressing their feelings of being proud of India. There were artists like rabbi, lucky ali, indian occean, euphoria etc.. Of these, the band Indian Occean was the most hatke in their music and lyrics. During the program, in between songs, people used to chant some praises for these bands and also express their deep patriotism. I am not trying to be sarcastic here, when i refer to being patriotic. I am also not expressing my angst against the innumerable patriotic movies / books / songs which are being thrown at us year after year. It always sells to be patriotic. It is one of the most touching rasa’s of all. So it obviously makes sense to pluck some patriotic strings and take to the hearts of the people.
After all these patriotic jibes, the program ended with a song from Rabbi in which he questions all the so called proud to be Indians what they were upto when Gujrat was burning in riots, when a man was shot dead for speaking truth… This man ( i don’t remember his name) was the inspiration for this song by Rabbi and is honestly touching.